🐛(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, watch,
onMounted, onMounted,
} from "vue"; } from "vue";
import CarouselItem from "../carouselItem"; import CarouselItem from "../carouselItem/index.vue";
const slot = useSlots() as any; const slot = useSlots() as any;
const slots = slot.default && (slot.default() as any[]); const slots = slot.default && (slot.default() as any[]);

View File

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

View File

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

View File

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

View File

@ -1,3 +1,5 @@
@import "../dropdown/index.less";
:root { :root {
--icon-picker-border-radius: var(--global-border-radius); --icon-picker-border-radius: var(--global-border-radius);
--icon-picker-checked-color: var(--global-checked-color); --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; @border-color: #eee;
@hover-border-color: var(--global-primary-color); @hover-border-color: var(--global-primary-color);
@lg: 40px; @lg: 40px;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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