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

@ -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;
} }