🐛(component): 按需加载部分组件样式未正确加载的问题

This commit is contained in:
sight 2022-04-27 18:28:05 +08:00
parent 98524e876a
commit 216724f2e5
18 changed files with 37 additions and 10 deletions

View File

@ -18,7 +18,7 @@ import {
watch,
onMounted,
} from "vue";
import CarouselItem from "../carouselItem";
import CarouselItem from "../carouselItem/index.vue";
const slot = useSlots() as any;
const slots = slot.default && (slot.default() as any[]);

View File

@ -1,3 +1,5 @@
@import "../dropdown/index.less";
.layui-color-picker {
position: relative;
user-select: none;

View File

@ -101,7 +101,6 @@ defineExpose({
<template>
<slot name="prefix"></slot>
<!-- <span style="font-family: sans-serif" /> -->
<span>{{ displayValue }}</span>
<slot name="suffix"></slot>
</template>

View File

@ -1,3 +1,6 @@
@import "../dropdown/index.less";
@import "../input/index.less";
@font-face {
font-family: "laydate-icon";
src: url("./font/iconfont.eot");

View File

@ -1,3 +1,5 @@
@import "../dropdown/index.less";
:root {
--icon-picker-border-radius: var(--global-border-radius);
--icon-picker-checked-color: var(--global-checked-color);

View File

@ -1,3 +1,6 @@
@import "../button/index.less";
@import "../input/index.less";
@border-color: #eee;
@hover-border-color: var(--global-primary-color);
@lg: 40px;

View File

@ -1,3 +1,5 @@
@import "../header/index.less";
.layui-layout {
flex: 1;
display: flex;

View File

@ -172,6 +172,8 @@ onMounted(() => {
</script>
<style>
@import "../carousel/index.less";
.layui-notice-bar {
padding: 0 15px;
width: 100%;

View File

@ -1,3 +1,6 @@
@import "../badge/index.less";
@import "../checkbox/index.less";
dl.layui-anim-upbit > dd input[type="checkbox"] {
display: none;
}

View File

@ -5,7 +5,7 @@ export default {
</script>
<script setup lang="ts">
import LayCheckbox from "../checkbox";
import LayCheckbox from "../checkbox/index.vue";
import { SelectItem, SelectItemHandle, SelectItemPush } from "../../types";
import { computed, inject, onMounted, Ref, ref } from "vue";

View File

@ -1,3 +1,5 @@
@import "../popper/index.less";
.layui-slider-v {
width: 100%;
height: 18px;

View File

@ -15,7 +15,7 @@ import {
watch,
} from "vue";
import { onClickOutside } from "@vueuse/core";
import LayTransition from "../transition";
import LayTransition from "../transition/index.vue";
export interface LaySubMenuProps {
id: string;

View File

@ -1,3 +1,6 @@
@import "../checkbox/index.less";
@import "../dropdown/index.less";
@import "../page/index.less";
.layui-table-col-special {
width: 34px;
}

View File

@ -8,10 +8,10 @@ export default {
import { ref, watch, useSlots, withDefaults, onMounted } from "vue";
import { v4 as uuidv4 } from "../../utils/guidUtil";
import { Recordable } from "../../types";
import LayCheckbox from "../checkbox";
import LayDropdown from "../dropdown";
import LayPage from "../page";
import LayIcon from "../icon";
import LayCheckbox from "../checkbox/index.vue";
import LayDropdown from "../dropdown/index.vue";
import LayPage from "../page/index.vue";
import LayIcon from "@layui/icons-vue";
import "./index.less";
const tableId = uuidv4();

View File

@ -1,3 +1,6 @@
@import "../button/index.less";
@import "../checkbox/index.less";
:root {
--transfer-box-border-radius: var(--global-border-radius);
}

View File

@ -6,8 +6,8 @@ export default {
<script setup lang="ts">
import { StringOrNumber } from "./tree.type";
import LayIcon from "../icon";
import LayCheckbox from "../checkbox";
import LayIcon from "@layui/icons-vue";
import LayCheckbox from "../checkbox/index.vue";
import { Ref, useSlots } from "vue";
import { Tree } from "./tree";
import { Nullable } from "../../types";

View File

@ -1,3 +1,5 @@
@import "../checkbox/index.less";
.layui-tree {
line-height: 22px;
}

View File

@ -1,4 +1,5 @@
@import "./cropper.min.css";
@import "../button/index.less";
.layui-upload-file {
opacity: 0.01;