:特性 文档按需测试

This commit is contained in:
sight
2022-04-29 22:32:31 +08:00
parent 813c56f86a
commit 9803b09ee6
87 changed files with 258 additions and 198 deletions

View File

@@ -1,3 +1,3 @@
export * from "./domUtil"
export * from "./guidUtil"
export * from "./install"
export * from "./domUtil";
export * from "./guidUtil";
export * from "./install";

View File

@@ -0,0 +1,17 @@
import type { App } from "vue";
import i18n from "../language";
export const withInstall = (comp: any) => {
comp.install = (app: App | any) => {
if (
!app._instance?.isCE &&
!app._instance?.appContext?.app?.__VUE_I18N_SYMBOL__
) {
app.use(i18n);
}
app.component(comp.name, comp);
};
return comp;
};