From abf4b76c3078578cf9237c265a561cb552f01c9b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com>
Date: Tue, 4 Jan 2022 22:32:48 +0800
Subject: [PATCH 1/7] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20menu=20=E5=AF=BC?=
=?UTF-8?q?=E8=88=AA=E6=A8=A1=E5=BC=8F=E4=B8=8B=E7=9A=84=20more=20?=
=?UTF-8?q?=E5=8A=A8=E7=94=BB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
example/docs/zh-CN/components/modal.md | 2 +-
example/docs/zh-CN/components/timeline.md | 46 ++++++++++++++++++++++-
src/module/menuItem/index.vue | 2 +-
src/module/timelineItem/index.vue | 9 ++++-
4 files changed, 54 insertions(+), 5 deletions(-)
diff --git a/example/docs/zh-CN/components/modal.md b/example/docs/zh-CN/components/modal.md
index bc93ea2b..49e73f39 100644
--- a/example/docs/zh-CN/components/modal.md
+++ b/example/docs/zh-CN/components/modal.md
@@ -319,7 +319,7 @@ export default {
::: table
| 备注 | 描述 | 默认值 |
-| --------------- | ------------- | -------------------------- |
+| --------------- | ------------- | --------------------------|
| title | 标题 | -- |
| move | 允许拖拽 | `false` |
| maxmin | 最小化 最大化 | `false` |
diff --git a/example/docs/zh-CN/components/timeline.md b/example/docs/zh-CN/components/timeline.md
index 9641fcb3..f52cb769 100644
--- a/example/docs/zh-CN/components/timeline.md
+++ b/example/docs/zh-CN/components/timeline.md
@@ -75,7 +75,40 @@ export default {
:::
-::: title timeline-item attributes
+
+::: title 节点插槽
+:::
+
+::: demo
+
+
+
rl^ff01=tvk#!JpeKf`=qcfz)jABaE2BS<*qO{VeBZvLbw5X&UXUXt-aRca7O6s;hpNYs?F}fxX7CbP ze+e~RLg0%U^mlTbG}Q0jg*6rmPCpzL5>@F?d@rp%*P0meVOe6M_pXLdf#duAik@T7 zQPM`^Xb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q-UeQ3Rh>KC4eQ|)H-`f!L4twAY6J{3^L*LL zSm^0_^DM%37HHg4$AUDM-UshgpWUxZjhTvI#{ni7rnRK%eIeQocWi9MSzkb~!LNw9 z)ByspLEyk ra-~!+s*z;C)A8~AKir)DArbuYdr}Oah?D$=CKslD_ zB+O-BlcK2Ixg=Jw68&1~P3b?U<^Z0h?YEZBzXLevgbX0|=Sf~I8Nsvdl}CVNO%F1F z6H5N`6Y%~`BM5#Clk{4QN|uv8;KSl7R6i>dtuZ+s)N{c>GG67xu+MIu0E4d{WQ@?| z4ls|eD#%IW1N4X$6As2nR;ruI2SIpPQV^i`l!q-~!U$MEs;QA78I#9~dc|VPTzRWI ztMFVJZgWn?DEP{+*QGVtuk0V6h1HCBzn!*xdon3EwkC{hUjxE85TE93{5a%y-V6c( z?y3<6)pnT6q3D24O``>YY&1;2wp6Qn^Q)j%*6uwltdHdElAV$-5quy}{13M_e=4sh z|7)S2-aTJDzv{nt-3QQ7AERJ21PFzILBpT=qz`#>cS_$80IBtK^>bP0l+XkKrp762 literal 0 HcmV?d00001 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 }} - - - + +
+ \ 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 }} + + - + +
+ From e13420dfb59411930e7914bccd41e4c4f853c950 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Wed, 5 Jan 2022 14:57:03 +0800 Subject: [PATCH 7/7] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/docs/zh-CN/guide/changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/docs/zh-CN/guide/changelog.md b/example/docs/zh-CN/guide/changelog.md index 79027ca2..b5c7e9a4 100644 --- a/example/docs/zh-CN/guide/changelog.md +++ b/example/docs/zh-CN/guide/changelog.md @@ -19,7 +19,7 @@+ {{ title }} + + + +
++ - [新增] setup 步骤条组件。
- [新增] slider 滑块组件 vertical 属性, 支持垂直布局。
- [新增] timeline-item 时间线组件 dot 插槽, 支持自定义节点内容。
-- [修复] sub-menu 目录组件, 与 menu-item 组合使用。
+- [新增] sub-menu 目录组件, 与 menu-item 组合使用。
- [修复] menu 组件 layui-nav-more 切换动画。