fix: button classname error

pull/6213/head
tangjinzhou 2023-01-26 22:13:01 +08:00
parent 75e4b72c21
commit 94c2887c81
4 changed files with 1 additions and 5 deletions

View File

@ -85,8 +85,8 @@ export default defineComponent({
return { return {
[hashId.value]: true, [hashId.value]: true,
[`${pre}`]: true, [`${pre}`]: true,
[`${pre}-${type}`]: type,
[`${pre}-${shape}`]: shape !== 'default' && shape, [`${pre}-${shape}`]: shape !== 'default' && shape,
[`${pre}-${type}`]: type,
[`${pre}-${sizeCls}`]: sizeCls, [`${pre}-${sizeCls}`]: sizeCls,
[`${pre}-loading`]: innerLoading.value, [`${pre}-loading`]: innerLoading.value,
[`${pre}-background-ghost`]: ghost && !isUnBorderedButtonType(type), [`${pre}-background-ghost`]: ghost && !isUnBorderedButtonType(type),
@ -177,7 +177,6 @@ export default defineComponent({
if (!disabled) { if (!disabled) {
delete buttonProps.disabled; delete buttonProps.disabled;
} }
const iconNode = const iconNode =
icon && !innerLoading.value ? ( icon && !innerLoading.value ? (
icon icon

View File

@ -1,7 +1,6 @@
@import '../../style/themes/index'; @import '../../style/themes/index';
@import '../../style/mixins/index'; @import '../../style/mixins/index';
@import '../../input/style/mixin'; @import '../../input/style/mixin';
@import '../../button/style/mixin';
@import '../../grid/style/mixin'; @import '../../grid/style/mixin';
@import './components'; @import './components';
@import './inline'; @import './inline';

View File

@ -1,7 +1,6 @@
@import '../../style/themes/index'; @import '../../style/themes/index';
@import '../../style/mixins/index'; @import '../../style/mixins/index';
@import '../../input/style/mixin'; @import '../../input/style/mixin';
@import '../../button/style/mixin';
@import '../../grid/style/mixin'; @import '../../grid/style/mixin';
@form-prefix-cls: ~'@{ant-prefix}-form'; @form-prefix-cls: ~'@{ant-prefix}-form';

View File

@ -1,6 +1,5 @@
@import '../../style/themes/index'; @import '../../style/themes/index';
@import '../../style/mixins/index'; @import '../../style/mixins/index';
@import '../../button/style/mixin';
@import './mixin'; @import './mixin';
@search-prefix: ~'@{ant-prefix}-input-search'; @search-prefix: ~'@{ant-prefix}-input-search';