🐛: 修复 withInstall
This commit is contained in:
parent
f972c94f55
commit
334699b210
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { LayIcon as Component } from "@layui/icons-vue";
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../../utils";
|
||||
import { withInstall, WithInstallType } from "../../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,11 +1,10 @@
|
||||
import type { App, Component } from "vue";
|
||||
import type { App, Plugin } from "vue";
|
||||
|
||||
import "./theme/index.less";
|
||||
import "@layui/layer-vue/lib/index.css";
|
||||
import "@layui/icons-vue/lib/index.css";
|
||||
import { layer } from "@layui/layer-vue";
|
||||
import layerInstall from "@layui/layer-vue";
|
||||
import i18n from "./language";
|
||||
|
||||
import LayBacktop from "./component/backTop/index";
|
||||
import LayAvatar from "./component/avatar/index";
|
||||
@ -86,7 +85,7 @@ import LayNoticeBar from "./component/noticeBar/index";
|
||||
import LayConfigProvider from "./provider";
|
||||
import { InstallOptions } from "./types";
|
||||
|
||||
const components: Record<string, Component> = {
|
||||
const components: Record<string, Plugin> = {
|
||||
LaySplitPanel,
|
||||
LaySplitPanelItem,
|
||||
LayRadio,
|
||||
@ -167,11 +166,9 @@ const components: Record<string, Component> = {
|
||||
};
|
||||
|
||||
const install = (app: App, options?: InstallOptions): void => {
|
||||
for (const key in components) {
|
||||
const item = components[key];
|
||||
app.component(item.name || key, item);
|
||||
for (const key of Object.keys(components)) {
|
||||
app.use(components[key], options);
|
||||
}
|
||||
app.use(i18n);
|
||||
app.use(layerInstall);
|
||||
};
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { withInstall } from "../utils";
|
||||
import { withInstall, WithInstallType } from "../utils";
|
||||
import Component from "./index.vue";
|
||||
|
||||
const component = withInstall(Component);
|
||||
const component: WithInstallType<typeof Component> = withInstall(Component);
|
||||
export default component;
|
||||
|
@ -1,3 +1,3 @@
|
||||
export * from "./domUtil";
|
||||
export * from "./guidUtil";
|
||||
export * from "./install";
|
||||
export * from "./withInstall";
|
||||
|
@ -1,17 +0,0 @@
|
||||
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;
|
||||
};
|
17
package/component/src/utils/withInstall.ts
Normal file
17
package/component/src/utils/withInstall.ts
Normal file
@ -0,0 +1,17 @@
|
||||
import type { App, Plugin } from "vue";
|
||||
import i18n from "../language";
|
||||
|
||||
export type WithInstallType<T> = T & Plugin;
|
||||
|
||||
export const withInstall = <T>(comp: T): T & Plugin => {
|
||||
const component = comp as any;
|
||||
|
||||
component.install = (app: App | any) => {
|
||||
if (!app.__VUE_I18N_SYMBOL__) {
|
||||
app.use(i18n);
|
||||
}
|
||||
app.component(component.name, comp);
|
||||
};
|
||||
|
||||
return component as T & Plugin;
|
||||
};
|
124
package/document/components.d.ts
vendored
124
package/document/components.d.ts
vendored
@ -33,85 +33,85 @@ declare module '@vue/runtime-core' {
|
||||
IconPicker: typeof import('./src/document/zh-CN/components/iconPicker.md')['default']
|
||||
Input: typeof import('./src/document/zh-CN/components/input.md')['default']
|
||||
InputNumber: typeof import('./src/document/zh-CN/components/inputNumber.md')['default']
|
||||
LayAvatar: typeof import('@layui/layui-vue')['LayAvatar']
|
||||
LayAvatarList: typeof import('@layui/layui-vue')['LayAvatarList']
|
||||
LayBacktop: typeof import('@layui/layui-vue')['LayBacktop']
|
||||
LayAvatar: typeof import("@layui/layui-vue")["LayAvatar"];
|
||||
LayAvatarList: typeof import("@layui/layui-vue")["LayAvatarList"];
|
||||
LayBacktop: typeof import("@layui/layui-vue")["LayBacktop"];
|
||||
LayBadge: typeof import('@layui/layui-vue')['LayBadge']
|
||||
LayBody: typeof import('@layui/layui-vue')['LayBody']
|
||||
LayBreadcrumb: typeof import('@layui/layui-vue')['LayBreadcrumb']
|
||||
LayBreadcrumbItem: typeof import('@layui/layui-vue')['LayBreadcrumbItem']
|
||||
LayBreadcrumb: typeof import("@layui/layui-vue")["LayBreadcrumb"];
|
||||
LayBreadcrumbItem: typeof import("@layui/layui-vue")["LayBreadcrumbItem"];
|
||||
LayButton: typeof import('@layui/layui-vue')['LayButton']
|
||||
LayButtonContainer: typeof import('@layui/layui-vue')['LayButtonContainer']
|
||||
LayButtonGroup: typeof import('@layui/layui-vue')['LayButtonGroup']
|
||||
LayCard: typeof import('@layui/layui-vue')['LayCard']
|
||||
LayCarousel: typeof import('@layui/layui-vue')['LayCarousel']
|
||||
LayCarouselItem: typeof import('@layui/layui-vue')['LayCarouselItem']
|
||||
LayCheckbox: typeof import('@layui/layui-vue')['LayCheckbox']
|
||||
LayCheckboxGroup: typeof import('@layui/layui-vue')['LayCheckboxGroup']
|
||||
LayCol: typeof import('@layui/layui-vue')['LayCol']
|
||||
LayCollapse: typeof import('@layui/layui-vue')['LayCollapse']
|
||||
LayCollapseItem: typeof import('@layui/layui-vue')['LayCollapseItem']
|
||||
LayButtonContainer: typeof import("@layui/layui-vue")["LayButtonContainer"];
|
||||
LayButtonGroup: typeof import("@layui/layui-vue")["LayButtonGroup"];
|
||||
LayCard: typeof import("@layui/layui-vue")["LayCard"];
|
||||
LayCarousel: typeof import("@layui/layui-vue")["LayCarousel"];
|
||||
LayCarouselItem: typeof import("@layui/layui-vue")["LayCarouselItem"];
|
||||
LayCheckbox: typeof import("@layui/layui-vue")["LayCheckbox"];
|
||||
LayCheckboxGroup: typeof import("@layui/layui-vue")["LayCheckboxGroup"];
|
||||
LayCol: typeof import("@layui/layui-vue")["LayCol"];
|
||||
LayCollapse: typeof import("@layui/layui-vue")["LayCollapse"];
|
||||
LayCollapseItem: typeof import("@layui/layui-vue")["LayCollapseItem"];
|
||||
LayColorPicker: typeof import('@layui/layui-vue')['LayColorPicker']
|
||||
LayConfigProvider: typeof import('@layui/layui-vue')['LayConfigProvider']
|
||||
LayContainer: typeof import('@layui/layui-vue')['LayContainer']
|
||||
LayCountUp: typeof import('@layui/layui-vue')['LayCountUp']
|
||||
LayContainer: typeof import("@layui/layui-vue")["LayContainer"];
|
||||
LayCountUp: typeof import("@layui/layui-vue")["LayCountUp"];
|
||||
LayDropdown: typeof import('@layui/layui-vue')['LayDropdown']
|
||||
LayDropdownMenu: typeof import('@layui/layui-vue')['LayDropdownMenu']
|
||||
LayDropdownMenuItem: typeof import('@layui/layui-vue')['LayDropdownMenuItem']
|
||||
LayEmpty: typeof import('@layui/layui-vue')['LayEmpty']
|
||||
LayDropdownMenu: typeof import("@layui/layui-vue")["LayDropdownMenu"];
|
||||
LayDropdownMenuItem: typeof import("@layui/layui-vue")["LayDropdownMenuItem"];
|
||||
LayEmpty: typeof import("@layui/layui-vue")["LayEmpty"];
|
||||
Layer: typeof import('./src/document/zh-CN/components/layer.md')['default']
|
||||
LayException: typeof import('@layui/layui-vue')['LayException']
|
||||
LayField: typeof import('@layui/layui-vue')['LayField']
|
||||
LayFooter: typeof import('@layui/layui-vue')['LayFooter']
|
||||
LayException: typeof import("@layui/layui-vue")["LayException"];
|
||||
LayField: typeof import("@layui/layui-vue")["LayField"];
|
||||
LayFooter: typeof import("@layui/layui-vue")["LayFooter"];
|
||||
LayForm: typeof import('@layui/layui-vue')['LayForm']
|
||||
LayFormItem: typeof import('@layui/layui-vue')['LayFormItem']
|
||||
LayFullscreen: typeof import('@layui/layui-vue')['LayFullscreen']
|
||||
LayFormItem: typeof import("@layui/layui-vue")["LayFormItem"];
|
||||
LayFullscreen: typeof import("@layui/layui-vue")["LayFullscreen"];
|
||||
LayHeader: typeof import('@layui/layui-vue')['LayHeader']
|
||||
LayIcon: typeof import('@layui/icons-vue')['LayIcon']
|
||||
LayIconPicker: typeof import('@layui/layui-vue')['LayIconPicker']
|
||||
LayIconPicker: typeof import("@layui/layui-vue")["LayIconPicker"];
|
||||
LayInput: typeof import('@layui/layui-vue')['LayInput']
|
||||
LayInputNumber: typeof import('@layui/layui-vue')['LayInputNumber']
|
||||
LayLayer: typeof import('@layui/layer-vue')['LayLayer']
|
||||
LayInputNumber: typeof import("@layui/layui-vue")["LayInputNumber"];
|
||||
LayLayer: typeof import("@layui/layer-vue")["LayLayer"];
|
||||
LayLayout: typeof import('@layui/layui-vue')['LayLayout']
|
||||
LayLine: typeof import('@layui/layui-vue')['LayLine']
|
||||
LayLine: typeof import("@layui/layui-vue")["LayLine"];
|
||||
LayLogo: typeof import('@layui/layui-vue')['LayLogo']
|
||||
LayMenu: typeof import('@layui/layui-vue')['LayMenu']
|
||||
LayMenuItem: typeof import('@layui/layui-vue')['LayMenuItem']
|
||||
LayNoticeBar: typeof import('@layui/layui-vue')['LayNoticeBar']
|
||||
LayMenu: typeof import("@layui/layui-vue")["LayMenu"];
|
||||
LayMenuItem: typeof import("@layui/layui-vue")["LayMenuItem"];
|
||||
LayNoticeBar: typeof import("@layui/layui-vue")["LayNoticeBar"];
|
||||
Layout: typeof import('./src/document/zh-CN/components/layout.md')['default']
|
||||
LayPage: typeof import('@layui/layui-vue')['LayPage']
|
||||
LayPanel: typeof import('@layui/layui-vue')['LayPanel']
|
||||
LayProgress: typeof import('@layui/layui-vue')['LayProgress']
|
||||
LayQuote: typeof import('@layui/layui-vue')['LayQuote']
|
||||
LayRadio: typeof import('@layui/layui-vue')['LayRadio']
|
||||
LayRate: typeof import('@layui/layui-vue')['LayRate']
|
||||
LayResult: typeof import('@layui/layui-vue')['LayResult']
|
||||
LayRipple: typeof import('@layui/layui-vue')['LayRipple']
|
||||
LayRow: typeof import('@layui/layui-vue')['LayRow']
|
||||
LayPage: typeof import("@layui/layui-vue")["LayPage"];
|
||||
LayPanel: typeof import("@layui/layui-vue")["LayPanel"];
|
||||
LayProgress: typeof import("@layui/layui-vue")["LayProgress"];
|
||||
LayQuote: typeof import("@layui/layui-vue")["LayQuote"];
|
||||
LayRadio: typeof import("@layui/layui-vue")["LayRadio"];
|
||||
LayRate: typeof import("@layui/layui-vue")["LayRate"];
|
||||
LayResult: typeof import("@layui/layui-vue")["LayResult"];
|
||||
LayRipple: typeof import("@layui/layui-vue")["LayRipple"];
|
||||
LayRow: typeof import("@layui/layui-vue")["LayRow"];
|
||||
LayScroll: typeof import('@layui/layui-vue')['LayScroll']
|
||||
LaySelect: typeof import('@layui/layui-vue')['LaySelect']
|
||||
LaySelectOption: typeof import('@layui/layui-vue')['LaySelectOption']
|
||||
LaySelect: typeof import("@layui/layui-vue")["LaySelect"];
|
||||
LaySelectOption: typeof import("@layui/layui-vue")["LaySelectOption"];
|
||||
LaySide: typeof import('@layui/layui-vue')['LaySide']
|
||||
LaySkeleton: typeof import('@layui/layui-vue')['LaySkeleton']
|
||||
LaySkeletonItem: typeof import('@layui/layui-vue')['LaySkeletonItem']
|
||||
LaySlider: typeof import('@layui/layui-vue')['LaySlider']
|
||||
LaySplitPanel: typeof import('@layui/layui-vue')['LaySplitPanel']
|
||||
LaySplitPanelItem: typeof import('@layui/layui-vue')['LaySplitPanelItem']
|
||||
LayStep: typeof import('@layui/layui-vue')['LayStep']
|
||||
LayStepItem: typeof import('@layui/layui-vue')['LayStepItem']
|
||||
LaySubMenu: typeof import('@layui/layui-vue')['LaySubMenu']
|
||||
LaySkeleton: typeof import("@layui/layui-vue")["LaySkeleton"];
|
||||
LaySkeletonItem: typeof import("@layui/layui-vue")["LaySkeletonItem"];
|
||||
LaySlider: typeof import("@layui/layui-vue")["LaySlider"];
|
||||
LaySplitPanel: typeof import("@layui/layui-vue")["LaySplitPanel"];
|
||||
LaySplitPanelItem: typeof import("@layui/layui-vue")["LaySplitPanelItem"];
|
||||
LayStep: typeof import("@layui/layui-vue")["LayStep"];
|
||||
LayStepItem: typeof import("@layui/layui-vue")["LayStepItem"];
|
||||
LaySubMenu: typeof import("@layui/layui-vue")["LaySubMenu"];
|
||||
LaySwitch: typeof import('@layui/layui-vue')['LaySwitch']
|
||||
LayTab: typeof import('@layui/layui-vue')['LayTab']
|
||||
LayTabItem: typeof import('@layui/layui-vue')['LayTabItem']
|
||||
LayTable: typeof import('@layui/layui-vue')['LayTable']
|
||||
LayTextarea: typeof import('@layui/layui-vue')['LayTextarea']
|
||||
LayTimeline: typeof import('@layui/layui-vue')['LayTimeline']
|
||||
LayTimelineItem: typeof import('@layui/layui-vue')['LayTimelineItem']
|
||||
LayTooltip: typeof import('@layui/layui-vue')['LayTooltip']
|
||||
LayTransfer: typeof import('@layui/layui-vue')['LayTransfer']
|
||||
LayTransition: typeof import('@layui/layui-vue')['LayTransition']
|
||||
LayTree: typeof import('@layui/layui-vue')['LayTree']
|
||||
LayUpload: typeof import('@layui/layui-vue')['LayUpload']
|
||||
LayTab: typeof import("@layui/layui-vue")["LayTab"];
|
||||
LayTabItem: typeof import("@layui/layui-vue")["LayTabItem"];
|
||||
LayTable: typeof import("@layui/layui-vue")["LayTable"];
|
||||
LayTextarea: typeof import("@layui/layui-vue")["LayTextarea"];
|
||||
LayTimeline: typeof import("@layui/layui-vue")["LayTimeline"];
|
||||
LayTimelineItem: typeof import("@layui/layui-vue")["LayTimelineItem"];
|
||||
LayTooltip: typeof import("@layui/layui-vue")["LayTooltip"];
|
||||
LayTransfer: typeof import("@layui/layui-vue")["LayTransfer"];
|
||||
LayTransition: typeof import("@layui/layui-vue")["LayTransition"];
|
||||
LayTree: typeof import("@layui/layui-vue")["LayTree"];
|
||||
LayUpload: typeof import("@layui/layui-vue")["LayUpload"];
|
||||
Line: typeof import('./src/document/zh-CN/components/line.md')['default']
|
||||
Load: typeof import('./src/document/zh-CN/components/load.md')['default']
|
||||
Menu: typeof import('./src/document/zh-CN/components/menu.md')['default']
|
||||
|
Loading…
x
Reference in New Issue
Block a user