fix: button support disabled=false #4930

close #4930
pull/4940/head
tangjinzhou 2021-11-27 15:23:08 +08:00
parent 61bf98e641
commit 95cae149c4
1 changed files with 4 additions and 0 deletions

View File

@ -175,6 +175,10 @@ export default defineComponent({
],
onClick: handleClick,
};
// https://github.com/vueComponent/ant-design-vue/issues/4930
if (!disabled) {
delete buttonProps.disabled;
}
const iconNode = innerLoading.value ? <LoadingOutlined /> : icon;