🐛修复(component): 按需加载部分被依赖组件未解析的问题

This commit is contained in:
sight 2022-04-26 01:49:18 +08:00
parent 57b52152bc
commit d51b0cd8cb
4 changed files with 6 additions and 6 deletions

View File

@ -13,8 +13,7 @@ import {
onMounted, onMounted,
onBeforeUnmount, onBeforeUnmount,
} from "vue"; } from "vue";
import { useThrottle } from "@vueuse/core"; import { LayIcon } from "@layui/icons-vue";
import LayIcon from "../icon/index";
import "./index.less"; import "./index.less";
export interface LayBacktopProps { export interface LayBacktopProps {

View File

@ -266,7 +266,7 @@ import { ref, watch, computed, defineProps, defineEmits, onMounted } from "vue";
import "./index.less"; import "./index.less";
import dayjs from "dayjs"; import dayjs from "dayjs";
import LayIcon from "../icon/index"; import { LayIcon } from "@layui/icons-vue";
import LayInput from "../input/index.vue"; import LayInput from "../input/index.vue";
import LayDropdown from "../dropdown/index.vue"; import LayDropdown from "../dropdown/index.vue";
import { getDayLength, getYears, getMonth, getYear } from "./day"; import { getDayLength, getYears, getMonth, getYear } from "./day";

View File

@ -6,6 +6,7 @@ export default {
<script setup lang="ts"> <script setup lang="ts">
import "./index.less"; import "./index.less";
import { LayIcon } from "@layui/icons-vue";
import { useSlots } from "vue"; import { useSlots } from "vue";
import { useI18n } from "vue-i18n"; import { useI18n } from "vue-i18n";

View File

@ -5,9 +5,9 @@ export default {
</script> </script>
<script setup lang="ts"> <script setup lang="ts">
import layButton from "../button/index"; import layButton from "../button/index.vue";
import layInput from "../input/index"; import layInput from "../input/index.vue";
import layIcon from "../icon/index"; import { LayIcon } from "@layui/icons-vue";
import "./index.less"; import "./index.less";
import { ref, watch, withDefaults, computed } from "vue"; import { ref, watch, withDefaults, computed } from "vue";