From 73d081ea80f24c63cdfb922c37b8ab8d4d4bbfe0 Mon Sep 17 00:00:00 2001 From: Uyarn Date: Thu, 11 Apr 2024 14:39:58 +0800 Subject: [PATCH] chore: rename loading directive export --- src/index.ts | 1 + src/loading/index.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 45d215a8e..f2c549d92 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,6 +8,7 @@ function install(Vue: VueConstructor, config?: object) { } Object.keys(components).forEach((key) => { if (components[key]) { + if (/directive/i.test(key)) return; /plugin/i.test(key) ? Vue.use(components[key]) : Vue.use(components[key], config); } }); diff --git a/src/loading/index.ts b/src/loading/index.ts index eab605676..0482b8532 100644 --- a/src/loading/index.ts +++ b/src/loading/index.ts @@ -10,6 +10,6 @@ export * from './type'; export * from './plugin'; export { default as LoadingPlugin } from './plugin'; -export { vLoading as LoadingRirective }; +export { default as LoadingDirective } from './directive'; export const Loading = withInstall(_Loading, null, { name: 'loading', comp: vLoading }); export default Loading;