chore: 完成 breadcrumb 的按需

This commit is contained in:
就眠儀式 2022-04-12 22:48:54 +08:00
parent d220471e36
commit 4b307bed1e
5 changed files with 10 additions and 7 deletions

View File

@ -46,4 +46,4 @@
.layui-avatar-list .layui-avatar {
margin-left: -10px;
display: inline-block;
}
}

View File

@ -35,4 +35,4 @@
width: @width - 20px;
height: @height - 20px;
font-size: 20px;
}
}

View File

@ -20,7 +20,7 @@ provide("separator", props.separator);
</script>
<template>
<span class="layui-breadcrumb" style="visibility: visible">
<span class="layui-breadcrumb">
<slot></slot>
</span>
</template>

View File

@ -75,11 +75,15 @@ const matchComponents = [
pattern: /^LayCol$/,
styleDir: "row",
},
// ....
{
pattern: /^(LayBreadcrumb|LayBreadcrumbItem)$/,
styleDir: "",
pattern: /^LayBreadcrumb$/,
styleDir: "breadcrumb",
},
{
pattern: /^LayBreadcrumbItem$/,
styleDir: "breadcrumb",
},
// ....
{
pattern: /^(LayCarousel|LayCarouselItem)$/,
styleDir: "",

View File

@ -1120,7 +1120,6 @@ a cite {
height: auto;
}
.layui-breadcrumb,
.layui-tree-btnGroup {
visibility: hidden;
}