-
Notifications
You must be signed in to change notification settings - Fork 186
fix(bubble):修复无内容时气泡高度问题 #373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -67,11 +67,9 @@ const DEFAULT_TYPING: TypingConfig = { | |||||||||||||||||||
| const _typing = computed(() => { | ||||||||||||||||||||
| if (typeof props.typing === 'undefined') { | ||||||||||||||||||||
| return false; | ||||||||||||||||||||
| } | ||||||||||||||||||||
| else if (typeof props.typing === 'boolean') { | ||||||||||||||||||||
| } else if (typeof props.typing === 'boolean') { | ||||||||||||||||||||
| return props.typing; | ||||||||||||||||||||
| } | ||||||||||||||||||||
| else { | ||||||||||||||||||||
| } else { | ||||||||||||||||||||
| return Object.assign({}, DEFAULT_TYPING, props.typing); | ||||||||||||||||||||
| } | ||||||||||||||||||||
| }) as boolean | TypingConfig; | ||||||||||||||||||||
|
|
@@ -178,7 +176,8 @@ defineExpose(instance); | |||||||||||||||||||
| 'el-bubble-content-filled': variant === 'filled' && !noStyle, | ||||||||||||||||||||
| 'el-bubble-content-borderless': variant === 'borderless' && !noStyle, | ||||||||||||||||||||
| 'el-bubble-content-outlined': variant === 'outlined' && !noStyle, | ||||||||||||||||||||
| 'el-bubble-content-shadow': variant === 'shadow' && !noStyle | ||||||||||||||||||||
| 'el-bubble-content-shadow': variant === 'shadow' && !noStyle, | ||||||||||||||||||||
| 'no-content': !content | ||||||||||||||||||||
|
Comment on lines
+179
to
+180
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Critical: no-content class hides the loading indicator. When Apply this diff to conditionally apply the 'el-bubble-content-filled': variant === 'filled' && !noStyle,
'el-bubble-content-borderless': variant === 'borderless' && !noStyle,
'el-bubble-content-outlined': variant === 'outlined' && !noStyle,
'el-bubble-content-shadow': variant === 'shadow' && !noStyle,
- 'no-content': !content
+ 'no-content': !content && !loading
}"📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||
| }" | ||||||||||||||||||||
| > | ||||||||||||||||||||
| <div | ||||||||||||||||||||
|
|
||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix the brace-style violations.
ESLint is flagging brace-style issues where closing curly braces appear on the same line as subsequent blocks. This violates the project's configured style guide.
Apply this diff to fix the formatting:
if (typeof props.typing === 'undefined') { return false; - } else if (typeof props.typing === 'boolean') { + } + else if (typeof props.typing === 'boolean') { return props.typing; - } else { + } + else { return Object.assign({}, DEFAULT_TYPING, props.typing); }📝 Committable suggestion
🧰 Tools
🪛 ESLint
[error] 70-70: Closing curly brace appears on the same line as the subsequent block.
(style/brace-style)
[error] 72-72: Closing curly brace appears on the same line as the subsequent block.
(style/brace-style)
🤖 Prompt for AI Agents