From 74a3812ebbbef3150bc97bcec0b060f1a652398d Mon Sep 17 00:00:00 2001 From: whylost Date: Thu, 9 Dec 2021 15:10:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(Button=20&=20Table):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=8D=95=E7=8B=AC=E5=BC=95=E5=85=A5=E6=97=B6?= =?UTF-8?q?=E6=97=A0loading=E6=8C=87=E4=BB=A4=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/devui-vue/devui/button/index.ts | 4 +++- packages/devui-vue/devui/table/index.ts | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/devui-vue/devui/button/index.ts b/packages/devui-vue/devui/button/index.ts index 2888c545..91a9eb8d 100644 --- a/packages/devui-vue/devui/button/index.ts +++ b/packages/devui-vue/devui/button/index.ts @@ -1,11 +1,13 @@ import type { App } from 'vue' import Button from './src/button' +import { Loading } from '../loading/index' Button.install = function (app: App) { + app.directive('dLoading', Loading) app.component(Button.name, Button) } -export * from './src/button-types'; +export * from './src/button-types' export { Button } diff --git a/packages/devui-vue/devui/table/index.ts b/packages/devui-vue/devui/table/index.ts index 30393dd6..8a9d848e 100644 --- a/packages/devui-vue/devui/table/index.ts +++ b/packages/devui-vue/devui/table/index.ts @@ -1,8 +1,10 @@ import type { App } from 'vue' import Table from './src/table' import Column from './src/column/column' +import { Loading } from '../loading/index' -Table.install = function(app: App): void { +Table.install = function (app: App): void { + app.directive('dLoading', Loading) app.component(Table.name, Table) app.component(Column.name, Column) } -- Gitee