diff --git a/packages/devui-vue/devui/button/src/button.tsx b/packages/devui-vue/devui/button/src/button.tsx index 554a99b2a6..a132922eb4 100644 --- a/packages/devui-vue/devui/button/src/button.tsx +++ b/packages/devui-vue/devui/button/src/button.tsx @@ -1,11 +1,15 @@ import { computed, defineComponent, ref } from 'vue'; import { Icon } from '../../icon'; +import loadingDirective from '../../loading/src/directive'; import { buttonProps } from './button-types'; import './button.scss'; export default defineComponent({ name: 'DButton', + directives: { + devLoading: loadingDirective + }, props: buttonProps, setup(props, ctx) { const buttonContent = ref(null); @@ -49,13 +53,17 @@ export default defineComponent({ width } = props; return ( -
+