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 { .layui-avatar-list .layui-avatar {
margin-left: -10px; margin-left: -10px;
display: inline-block; display: inline-block;
} }

View File

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

View File

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

View File

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

View File

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