From 2d136757b6ae3323f0b04230734efe35c0b87182 Mon Sep 17 00:00:00 2001 From: hale Date: Tue, 1 Aug 2017 21:38:22 +0800 Subject: [PATCH] =?UTF-8?q?misc:1.=E5=A2=9E=E5=8A=A0iconClass=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=202.=20=E4=BC=98=E5=8C=96=E5=B1=95=E7=A4=BA=203.=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=80=E7=BA=A7=E8=8F=9C=E5=8D=95=E7=9A=84?= =?UTF-8?q?url=E5=B1=9E=E6=80=A7=204.=20=E4=BF=AE=E6=94=B9nek-ui=E7=9A=84?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=AD=97=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../navigation/KLMenu/KLMenuItem/index.mcss | 4 +++ .../navigation/KLMenu/KLSubMenu/index.html | 30 +++++++++++++++++-- .../navigation/KLMenu/KLSubMenu/index.js | 4 +++ .../navigation/KLMenu/KLSubMenu/index.mcss | 16 +++++++--- .../navigation/KLSidebar/index.html | 4 +-- src/mcss/base/var.mcss | 2 +- 6 files changed, 50 insertions(+), 10 deletions(-) diff --git a/src/js/components/navigation/KLMenu/KLMenuItem/index.mcss b/src/js/components/navigation/KLMenu/KLMenuItem/index.mcss index 53cc9442..9a70d81e 100644 --- a/src/js/components/navigation/KLMenu/KLMenuItem/index.mcss +++ b/src/js/components/navigation/KLMenu/KLMenuItem/index.mcss @@ -32,4 +32,8 @@ top: 0; } } + + &:last-child { + margin-bottom: 5px; + } } \ No newline at end of file diff --git a/src/js/components/navigation/KLMenu/KLSubMenu/index.html b/src/js/components/navigation/KLMenu/KLSubMenu/index.html index 4a7f7318..fc7efee7 100644 --- a/src/js/components/navigation/KLMenu/KLSubMenu/index.html +++ b/src/js/components/navigation/KLMenu/KLSubMenu/index.html @@ -1,6 +1,24 @@ +{#if url} + +
+ {#if iconClass} + + {/if} + + {#if title} + {title} + {#elseif titleTemplate} + {#inc titleTemplate} + {/if} + +
+
+{#else}
  • - + {#if iconClass} + + {/if} {#if title} {title} @@ -8,8 +26,14 @@ {#inc titleTemplate} {/if} + {#if this.$body} + + {/if}
    -