fix(button): hasIcon isn't reactive, shouldn't be used in template

This commit is contained in:
07akioni 2020-06-01 23:42:28 +08:00
parent 5c698a7911
commit a09b505201

View File

@ -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"