fix(button): link and text should not have wave (#6226)

This commit is contained in:
zkwolf 2023-02-02 18:08:36 +08:00 committed by GitHub
parent dd57d1e305
commit 989bedda47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,14 +209,10 @@ export default defineComponent({
);
if (!isUnBorderedButtonType(type)) {
buttonNode = <Wave disabled={!!innerLoading.value}>{buttonNode}</Wave>;
buttonNode = <Wave ref="wave" disabled={!!innerLoading.value}>{buttonNode}</Wave>;
}
return wrapSSR(
<Wave ref="wave" disabled={!!innerLoading.value}>
{buttonNode}
</Wave>,
);
return wrapSSR(buttonNode);
};
},
});