chore: 升级 layer 1.3.8 待解决内部 use 问题
This commit is contained in:
parent
c9699bb08b
commit
0b8bfbfc30
@ -16,6 +16,8 @@
|
||||
<script>
|
||||
import { ref, watch } from "vue";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { LayLayer } from "@layui/layer-vue";
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
const visible1 = ref(false)
|
||||
|
@ -37,7 +37,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@layui/icons-vue": "^1.0.7",
|
||||
"@layui/layer-vue": "^1.3.5",
|
||||
"@layui/layer-vue": "^1.3.8",
|
||||
"@vueuse/core": "^7.6.2",
|
||||
"async-validator": "^4.0.7",
|
||||
"evtd": "^0.2.3",
|
||||
|
@ -1,8 +0,0 @@
|
||||
import type { App } from "vue";
|
||||
import { LayLayer } from "@layui/layer-vue";
|
||||
|
||||
LayLayer.install = (app: App) => {
|
||||
app.component(LayLayer.name, LayLayer);
|
||||
};
|
||||
|
||||
export default LayLayer;
|
@ -3,10 +3,10 @@ import type { App, Component } from "vue";
|
||||
import "./theme/index.less";
|
||||
import "@layui/layer-vue/lib/index.css";
|
||||
import "@layui/icons-vue/lib/index.css";
|
||||
import { layer, useLayer } from "@layui/layer-vue";
|
||||
import { layer } from "@layui/layer-vue";
|
||||
import layerInstall from "@layui/layer-vue";
|
||||
import i18n from "./language";
|
||||
|
||||
import LayLayer from "./component/layer/index";
|
||||
import LayBacktop from "./component/backTop/index";
|
||||
import LayAvatar from "./component/avatar/index";
|
||||
import LayAvatarList from "./component/avatarList/index";
|
||||
@ -140,7 +140,6 @@ const components: Record<string, Component> = {
|
||||
LayCarousel,
|
||||
LayCarouselItem,
|
||||
LayColorPicker,
|
||||
LayLayer,
|
||||
LayTooltip,
|
||||
LayInputNumber,
|
||||
LaySkeleton,
|
||||
@ -161,6 +160,7 @@ const install = (app: App, options?: InstallOptions): void => {
|
||||
app.component(item.name || key, item);
|
||||
}
|
||||
app.use(i18n);
|
||||
app.use(layerInstall);
|
||||
};
|
||||
|
||||
export {
|
||||
@ -223,7 +223,6 @@ export {
|
||||
LayCarousel,
|
||||
LayCarouselItem,
|
||||
LayColorPicker,
|
||||
LayLayer,
|
||||
LayTooltip,
|
||||
LayInputNumber,
|
||||
LaySkeleton,
|
||||
@ -238,6 +237,6 @@ export {
|
||||
LayConfigProvider,
|
||||
};
|
||||
|
||||
export { layer, useLayer };
|
||||
export { layer };
|
||||
|
||||
export default { install };
|
||||
|
Loading…
Reference in New Issue
Block a user