From ff5e6eafad73e1c3bacf9048a56eeddfcd650f06 Mon Sep 17 00:00:00 2001 From: violarong Date: Tue, 26 Apr 2022 17:45:06 +0800 Subject: [PATCH] :sparkles: narbarMulti add divider --- src/components/u-navbar-multi.vue/api.yaml | 17 ++++++++ .../u-navbar-multi.vue/docs/blocks.md | 42 ++++++++----------- .../u-navbar-multi.vue/docs/examples.md | 42 ++++++++----------- src/components/u-navbar-multi.vue/index.vue | 29 +++++++++---- src/styles/theme.css | 2 + 5 files changed, 77 insertions(+), 55 deletions(-) diff --git a/src/components/u-navbar-multi.vue/api.yaml b/src/components/u-navbar-multi.vue/api.yaml index 3489e0d8f..b728dcee8 100644 --- a/src/components/u-navbar-multi.vue/api.yaml +++ b/src/components/u-navbar-multi.vue/api.yaml @@ -32,6 +32,23 @@ type: boolean default: false description: 是否禁用 + slots: + - name: default + description: 链接区域 + title: 链接区域 + support: + - name: u-navbar-item-multi + title: 添加导航项 + snippet: 导航项 + - name: u-navbar-divider-multi + title: 添加分隔线 + snippet: + - name: left + title: 左部区域 + description: 左部区域,一般放置 logo 等 + - name: right + title: 右部区域 + description: 右部区域,一般放置用户个人信息等 - name: u-navbar-item-multi title: 导航栏项 attrs: diff --git a/src/components/u-navbar-multi.vue/docs/blocks.md b/src/components/u-navbar-multi.vue/docs/blocks.md index 75aab2ea6..26903bb30 100644 --- a/src/components/u-navbar-multi.vue/docs/blocks.md +++ b/src/components/u-navbar-multi.vue/docs/blocks.md @@ -3,32 +3,26 @@ ``` html - - - - + + ``` diff --git a/src/components/u-navbar-multi.vue/docs/examples.md b/src/components/u-navbar-multi.vue/docs/examples.md index 75aab2ea6..26903bb30 100644 --- a/src/components/u-navbar-multi.vue/docs/examples.md +++ b/src/components/u-navbar-multi.vue/docs/examples.md @@ -3,32 +3,26 @@ ``` html - - - - + + ``` diff --git a/src/components/u-navbar-multi.vue/index.vue b/src/components/u-navbar-multi.vue/index.vue index 6b6716798..2bb2c5a76 100644 --- a/src/components/u-navbar-multi.vue/index.vue +++ b/src/components/u-navbar-multi.vue/index.vue @@ -5,24 +5,33 @@ :readonly="readonly" :disabled="disabled" > - - - - + + + + + + + + + + + + + +