diff --git a/example/docs/zh-CN/components/menu.md b/example/docs/zh-CN/components/menu.md
index 91525a7d..7ffac7fa 100644
--- a/example/docs/zh-CN/components/menu.md
+++ b/example/docs/zh-CN/components/menu.md
@@ -11,15 +11,15 @@
-
+
-
+
-
-
+
+
@@ -48,20 +48,68 @@ export default {
-
-
- 无感
-
-
+
-
+
-
+
+
+
+
+
+
+
+
+:::
+
+
+::: title 菜单插槽
+:::
+
+::: demo
+
+
+
+
+
+ 首页
+
+
+
+
+ 目录
+
+
+
+ 菜单一
+
+
+
+
+ 菜单二
+
diff --git a/example/docs/zh-CN/guide/changelog.md b/example/docs/zh-CN/guide/changelog.md
index ae4577dc..79027ca2 100644
--- a/example/docs/zh-CN/guide/changelog.md
+++ b/example/docs/zh-CN/guide/changelog.md
@@ -14,10 +14,12 @@
-
-
0.3.3 2022-01-03
+ 0.3.3 2022-01-05
- [新增] setup 步骤条组件。
+ - [新增] slider 滑块组件 vertical 属性, 支持垂直布局。
- [新增] timeline-item 时间线组件 dot 插槽, 支持自定义节点内容。
+ - [修复] sub-menu 目录组件, 与 menu-item 组合使用。
- [修复] menu 组件 layui-nav-more 切换动画。
diff --git a/example/docs/zh-CN/guide/introduce.md b/example/docs/zh-CN/guide/introduce.md
index ba93d954..4366c63a 100644
--- a/example/docs/zh-CN/guide/introduce.md
+++ b/example/docs/zh-CN/guide/introduce.md
@@ -3,7 +3,7 @@
-
+
diff --git a/example/src/assets/logo-new.png b/example/src/assets/logo-new.png
new file mode 100644
index 00000000..b5da8dbc
Binary files /dev/null and b/example/src/assets/logo-new.png differ
diff --git a/example/src/view/component.vue b/example/src/view/component.vue
index 7fdcb70d..29793844 100644
--- a/example/src/view/component.vue
+++ b/example/src/view/component.vue
@@ -104,12 +104,6 @@ export default {
id: 1,
title: "布局",
children: [
- {
- id: 111,
- title: "骨架屏",
- subTitle: "skeleton",
- path: "/zh-CN/components/skeleton",
- },
{
id: 4,
title: "布局",
@@ -140,6 +134,12 @@ export default {
subTitle: "card",
path: "/zh-CN/components/card",
},
+ {
+ id: 10,
+ title: "骨架",
+ subTitle: "skeleton",
+ path: "/zh-CN/components/skeleton",
+ },
],
},
{
diff --git a/src/css/layui.css b/src/css/layui.css
index 8600b0dd..0259ac49 100644
--- a/src/css/layui.css
+++ b/src/css/layui.css
@@ -2885,12 +2885,10 @@ body .layui-table-tips .layui-layer-content {
line-height: 60px;
}
-.layui-nav .layui-nav-item a {
+.layui-nav .layui-nav-item > a {
display: block;
padding: 0 30px;
- color: #fff;
color: rgba(255, 255, 255, 0.7);
- -webkit-transition: all 0.3s;
}
.layui-nav .layui-this:after,
@@ -3010,18 +3008,18 @@ body .layui-table-tips .layui-layer-content {
line-height: 42px;
}
-.layui-nav-tree .layui-nav-item a {
+.layui-nav-tree .layui-nav-item > a {
position: relative;
height: 42px;
line-height: 42px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
+ padding: 5px 30px 5px 30px;
}
-.layui-nav-tree .layui-nav-item > a {
- padding-top: 5px;
- padding-bottom: 5px;
+.layui-nav-tree .layui-nav-item * {
+ color: rgba(255, 255, 255, 0.7);
}
.layui-nav-tree .layui-nav-more {
diff --git a/src/index.ts b/src/index.ts
index 9244f1a9..145c9f2d 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -70,6 +70,7 @@ import LaySkeleton from "./module/skeleton/index";
import LaySkeletonItem from "./module/skeletonItem/index";
import LayStep from "./module/step/index";
import LayStepItem from "./module/stepItem/index";
+import LaySubMenu from "./module/subMenu/index"
const components: Record = {
LayRadio,
@@ -136,6 +137,7 @@ const components: Record = {
LayCountUp,
LayStep,
LayStepItem,
+ LaySubMenu
};
const install = (app: App, options?: InstallOptions): void => {
@@ -148,13 +150,9 @@ const install = (app: App, options?: InstallOptions): void => {
};
export {
- LayStep,
- LayStepItem,
- LaySkeleton,
- LaySkeletonItem,
LayRadio,
- LayIcon,
LayButton,
+ LayIcon,
LayBacktop,
LayLayout,
LaySide,
@@ -208,7 +206,15 @@ export {
LayCarousel,
LayCarouselItem,
LayColorPicker,
- LayLayer
+ LayLayer,
+ LayTooltip,
+ LayInputNumber,
+ LaySkeleton,
+ LaySkeletonItem,
+ LayCountUp,
+ LayStep,
+ LayStepItem,
+ LaySubMenu
};
export { layer };
diff --git a/src/module/menuItem/index.vue b/src/module/menuItem/index.vue
index 3965432e..f3e6fbbf 100644
--- a/src/module/menuItem/index.vue
+++ b/src/module/menuItem/index.vue
@@ -1,39 +1,12 @@
-
- -
-
- {{ title }}
-
-
-
-
-
-
+
- -
-
-
- {{ title }}
-
-
-
+
+
+
+ -
+
+
+ {{ title }}
+
+
+
\ No newline at end of file
diff --git a/src/module/subMenu/index.ts b/src/module/subMenu/index.ts
new file mode 100644
index 00000000..7686ad4c
--- /dev/null
+++ b/src/module/subMenu/index.ts
@@ -0,0 +1,9 @@
+import type { App } from "vue";
+import Component from "./index.vue";
+import type { IDefineComponent } from "../type/index";
+
+Component.install = (app: App) => {
+ app.component(Component.name || "laySubMenu", Component);
+};
+
+export default Component as IDefineComponent;
diff --git a/src/module/subMenu/index.vue b/src/module/subMenu/index.vue
new file mode 100644
index 00000000..663895c4
--- /dev/null
+++ b/src/module/subMenu/index.vue
@@ -0,0 +1,57 @@
+
+
+
+
+
+ -
+
+
+ {{ title }}
+
+
+
+
+
+
+