From 4b1425c0046c412c297799b7dfbfaaf92aa81c81 Mon Sep 17 00:00:00 2001 From: zcating Date: Sat, 18 Dec 2021 11:37:35 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(modal=20&=20button):=20dLoading=20?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E5=8D=95=E7=8B=AC=E5=BC=95=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/devui-vue/devui/button/src/button.tsx | 10 +++++++++- packages/devui-vue/devui/modal/src/modal.tsx | 1 - 2 files changed, 9 insertions(+), 2 deletions(-) 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 ( -
+