Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ defineExpose({ open })
:closable="false"
:title="debugSucceeded ? '运行成功' : '运行失败'"
:type="debugSucceeded ? 'success' : 'error'"
class="mb-4"
class="mb-4!"
show-icon
/>
<p class="mb-2">输出</p>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change from class="mb-4" to class="mb-4!" introduces a syntax error and is invalid.

Issues:

  1. Invalid Syntax: In HTML templates (Vue/React/etc.), !" is not a valid character sequence for ending an attribute value or CSS class name. The closing quote " is missing, and the ! is treated as part of the string literal, resulting in the class name becoming mb-4!.
  2. Broken Rendering: This will likely cause a parsing error by the compiler (breaking the build) or render an element with an invalid/non-existent Tailwind/utility class, potentially breaking styling or causing unexpected layout shifts.

Suggestion:
Revert to the original code:

class="mb-4"

Expand Down
Loading