🐛(component): 按需加载部分组件样式未正确加载的问题
This commit is contained in:
parent
98524e876a
commit
216724f2e5
@ -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[]);
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
@import "../dropdown/index.less";
|
||||||
|
|
||||||
.layui-color-picker {
|
.layui-color-picker {
|
||||||
position: relative;
|
position: relative;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
@ -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>
|
||||||
|
@ -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");
|
||||||
|
@ -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);
|
||||||
|
@ -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;
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
@import "../header/index.less";
|
||||||
|
|
||||||
.layui-layout {
|
.layui-layout {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -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%;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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";
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
@import "../popper/index.less";
|
||||||
|
|
||||||
.layui-slider-v {
|
.layui-slider-v {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 18px;
|
height: 18px;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
@ -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();
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -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";
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
@import "../checkbox/index.less";
|
||||||
|
|
||||||
.layui-tree {
|
.layui-tree {
|
||||||
line-height: 22px;
|
line-height: 22px;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user