mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-06 12:17:13 +08:00
fix(button): hasIcon isn't reactive, shouldn't be used in template
This commit is contained in:
parent
5c698a7911
commit
a09b505201
@ -19,8 +19,8 @@
|
||||
[`n-button--${type}-type`]: true,
|
||||
[`n-button--${colorHash || type}-colored`]: true,
|
||||
[`n-button--${syntheticSize}-size`]: true,
|
||||
[`n-button--${iconPlacement}-icon`]: hasIcon && iconPlacement && !noTextContent,
|
||||
[`n-button--${iconDepth}-icon-depth`]: hasIcon && type === 'default',
|
||||
[`n-button--${iconPlacement}-icon`]: iconPlacement && !noTextContent,
|
||||
[`n-button--${iconDepth}-icon-depth`]: type === 'default',
|
||||
[`n-${syntheticTheme}-theme`]: syntheticTheme,
|
||||
}"
|
||||
:tabindex="syntheticFocusable ? 0 : -1"
|
||||
|
Loading…
Reference in New Issue
Block a user