diff --git a/packages/nutui-taro-demo/src/nav/pages/navbar/basic.vue b/packages/nutui-taro-demo/src/nav/pages/navbar/basic.vue
new file mode 100644
index 0000000000..b19d8defd6
--- /dev/null
+++ b/packages/nutui-taro-demo/src/nav/pages/navbar/basic.vue
@@ -0,0 +1,8 @@
+
+
+
+
diff --git a/packages/nutui-taro-demo/src/nav/pages/navbar/index.vue b/packages/nutui-taro-demo/src/nav/pages/navbar/index.vue
index a4f25b4d83..9af454aa96 100644
--- a/packages/nutui-taro-demo/src/nav/pages/navbar/index.vue
+++ b/packages/nutui-taro-demo/src/nav/pages/navbar/index.vue
@@ -1,102 +1,42 @@
- 基础用法
+ {{ t('basic') }}
+
-
-
- 返回
-
-
-
-
-
+ {{ t('left') }}
+
-
+ {{ t('right') }}
+
-
-
-
-
-
-
-
-
-
- 自定义导航栏中间内容
-
-
-
-
-
-
-
-
-
-
-
-
-
- 多tab切换导航
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+ {{ t('title') }}
+
-
-
diff --git a/packages/nutui-taro-demo/src/nav/pages/navbar/left.vue b/packages/nutui-taro-demo/src/nav/pages/navbar/left.vue
new file mode 100644
index 0000000000..7868c483b7
--- /dev/null
+++ b/packages/nutui-taro-demo/src/nav/pages/navbar/left.vue
@@ -0,0 +1,13 @@
+
+
+
+
+ Back
+
+
+
+
diff --git a/packages/nutui-taro-demo/src/nav/pages/navbar/right.vue b/packages/nutui-taro-demo/src/nav/pages/navbar/right.vue
new file mode 100644
index 0000000000..a8fefe35f7
--- /dev/null
+++ b/packages/nutui-taro-demo/src/nav/pages/navbar/right.vue
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
diff --git a/packages/nutui-taro-demo/src/nav/pages/navbar/title.vue b/packages/nutui-taro-demo/src/nav/pages/navbar/title.vue
new file mode 100644
index 0000000000..7ec48fd48b
--- /dev/null
+++ b/packages/nutui-taro-demo/src/nav/pages/navbar/title.vue
@@ -0,0 +1,13 @@
+
+
+ Content
+
+
+
+
+
+
+
+
diff --git a/src/packages/__VUE/navbar/demo.vue b/src/packages/__VUE/navbar/demo.vue
deleted file mode 100644
index 127c03cd5b..0000000000
--- a/src/packages/__VUE/navbar/demo.vue
+++ /dev/null
@@ -1,130 +0,0 @@
-
-
-
{{ translate('title1') }}
-
-
- {{ translate('back') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ translate('title2') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ translate('title3') }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/packages/__VUE/navbar/demo/basic.vue b/src/packages/__VUE/navbar/demo/basic.vue
new file mode 100644
index 0000000000..b19d8defd6
--- /dev/null
+++ b/src/packages/__VUE/navbar/demo/basic.vue
@@ -0,0 +1,8 @@
+
+
+
+
diff --git a/src/packages/__VUE/navbar/demo/index.vue b/src/packages/__VUE/navbar/demo/index.vue
new file mode 100644
index 0000000000..79a65aa547
--- /dev/null
+++ b/src/packages/__VUE/navbar/demo/index.vue
@@ -0,0 +1,42 @@
+
+
+ {{ t('basic') }}
+
+
+ {{ t('left') }}
+
+
+ {{ t('right') }}
+
+
+ {{ t('title') }}
+
+
+
+
+
+
diff --git a/src/packages/__VUE/navbar/demo/left.vue b/src/packages/__VUE/navbar/demo/left.vue
new file mode 100644
index 0000000000..7868c483b7
--- /dev/null
+++ b/src/packages/__VUE/navbar/demo/left.vue
@@ -0,0 +1,13 @@
+
+
+
+
+ Back
+
+
+
+
diff --git a/src/packages/__VUE/navbar/demo/right.vue b/src/packages/__VUE/navbar/demo/right.vue
new file mode 100644
index 0000000000..d9caf41a00
--- /dev/null
+++ b/src/packages/__VUE/navbar/demo/right.vue
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/packages/__VUE/navbar/demo/title.vue b/src/packages/__VUE/navbar/demo/title.vue
new file mode 100644
index 0000000000..5a18b0991e
--- /dev/null
+++ b/src/packages/__VUE/navbar/demo/title.vue
@@ -0,0 +1,13 @@
+
+
+ Content
+
+
+
+
+
+
+
+
diff --git a/src/packages/__VUE/navbar/doc.en-US.md b/src/packages/__VUE/navbar/doc.en-US.md
index 191e78b0a8..16681ee48a 100644
--- a/src/packages/__VUE/navbar/doc.en-US.md
+++ b/src/packages/__VUE/navbar/doc.en-US.md
@@ -16,181 +16,59 @@ app.use(Navbar);
### Basic Usage
-:::demo
-
-```vue
-
-
-
- Back
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-```
+> demo: navbar basic
-:::
-
-### Customize the middle content of the navigation bar
-
-:::demo
-
-```vue
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-```
+### Custom Left Slot
-:::
-
-### Multi-tab switching navigation
-
-:::demo
-
-```vue
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-```
+> demo: navbar left
+
+### Custom Right Slot
+
+> demo: navbar right
+
+### Custom Title Content
-:::
+> demo: navbar title
## API
### Props
-| Attribute | Description | Type | Default |
-| ------------------- | ---------------------------------------------------- | ---------------- | ------- |
-| title | Title | string | - |
-| left-text | Left Text | string | - |
-| desc | Desc | string | - |
-| left-show | Whether to show the left arrow | boolean | `false` |
-| title-icon | Whether to show icon in title | boolean | `false` |
-| border | Whether to show bottom border | boolean | `false` |
-| fixed | Is it pinned to the top | boolean | `false` |
-| placeholder | Whether to generate a placeholder element when fixed | boolean | `false` |
-| safe-area-inset-top | Whether to enable top safety zone adaptation | boolean | `false` |
-| z-index | Z-index | number | string | - |
+| Attribute | Description | Type | Default |
+| --- | --- | --- | --- |
+| title | Title | string | - |
+| left-text | Left Text | string | - |
+| desc | Desc | string | - |
+| left-show | Whether to show the left arrow | boolean | `false` |
+| title-icon | Whether to show icon in title | boolean | `false` |
+| border | Whether to show bottom border | boolean | `false` |
+| fixed | Is it pinned to the top | boolean | `false` |
+| placeholder | Whether to generate a placeholder element when fixed | boolean | `false` |
+| safe-area-inset-top | Whether to enable top safety zone adaptation | boolean | `false` |
+| z-index | Z-index | number | string | - |
### Events
-| Event | Description | Arguments |
-| ------------------ | ------------------------------- | ----------- |
-| click-title`4.1.5` | Click page title event | event:Event |
-| click-icon`4.1.5` | Click the page title icon event | event:Event |
-| click-right`4.1.5` | Click right button event | event:Event |
-| click-back`4.1.5` | Click left Icon event | event:Event |
-| on-click-title | Click page title event | event:Event |
-| on-click-icon | Click the page title icon event | event:Event |
-| on-click-right | Click right button event | event:Event |
-| on-click-back | Click left Icon event | event:Event |
+| Event | Description | Arguments |
+| --- | --- | --- |
+| click-title`4.1.5` | Click page title event | event:Event |
+| click-icon`4.1.5` | Click the page title icon event | event:Event |
+| click-right`4.1.5` | Click right button event | event:Event |
+| click-back`4.1.5` | Click left Icon event | event:Event |
+| on-click-title | Click page title event | event:Event |
+| on-click-icon | Click the page title icon event | event:Event |
+| on-click-right | Click right button event | event:Event |
+| on-click-back | Click left Icon event | event:Event |
### Slots
-| Name | Description |
-| ---------- | -------------------------------------------------- |
-| left | Customize left content |
-| right | Customize the content on the right |
-| content | Customize the middle content of the navigation bar |
-| left-show | Custom icon of left arrow |
-| title-icon | Custom icon in header |
+| Name | Description |
+| --- | --- |
+| left | Customize left content |
+| right | Customize the content on the right |
+| content | Customize the middle content of the navigation bar |
+| left-show | Custom icon of left arrow |
+| title-icon | Custom icon in header |
## Theming
@@ -198,17 +76,17 @@ const changeTabList = (tab) => {
The component provides the following CSS variables, which can be used to customize styles. Please refer to [ConfigProvider component](#/en-US/component/configprovider).
-| Name | Default Value |
-| ------------------------------ | ---------------------------------------- |
-| --nut-navbar-height | _44px_ |
-| --nut-navbar-margin-bottom | _20px_ |
-| --nut-navbar-padding | _0 16px_ |
-| --nut-navbar-background | _var(--nut-white)_ |
-| --nut-navbar-box-shadow | _0px 1px 7px 0px rgba(237, 238, 241, 1)_ |
-| --nut-navbar-color | _var(--nut-title-color2)_ |
-| --nut-navbar-title-base-font | _var(--nut-font-size-2)_ |
-| --nut-navbar-title-font | _var(--nut-font-size-2)_ |
-| --nut-navbar-title-font-weight | _0_ |
-| --nut-navbar-title-font-color | _var(--nut-navbar-color)_ |
-| --nut-navbar-title-width | _100px_ |
-| --nut-navbar-title-icon-margin | _0 0 0 13px_ |
+| Name | Default Value |
+| --- | --- |
+| --nut-navbar-height | _44px_ |
+| --nut-navbar-margin-bottom | _20px_ |
+| --nut-navbar-padding | _0 16px_ |
+| --nut-navbar-background | _var(--nut-white)_ |
+| --nut-navbar-box-shadow | _0px 1px 7px 0px rgba(237, 238, 241, 1)_ |
+| --nut-navbar-color | _var(--nut-title-color2)_ |
+| --nut-navbar-title-base-font | _var(--nut-font-size-2)_ |
+| --nut-navbar-title-font | _var(--nut-font-size-2)_ |
+| --nut-navbar-title-font-weight | _0_ |
+| --nut-navbar-title-font-color | _var(--nut-navbar-color)_ |
+| --nut-navbar-title-width | _100px_ |
+| --nut-navbar-title-icon-margin | _0 0 0 13px_ |
diff --git a/src/packages/__VUE/navbar/doc.md b/src/packages/__VUE/navbar/doc.md
index 2664842878..8322906df5 100644
--- a/src/packages/__VUE/navbar/doc.md
+++ b/src/packages/__VUE/navbar/doc.md
@@ -16,181 +16,59 @@ app.use(Navbar);
### 基础用法
-:::demo
-
-```vue
-
-
-
- 返回
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-```
+> demo: navbar basic
-:::
-
-### 自定义导航栏中间内容
-
-:::demo
-
-```vue
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-```
+### 自定义左侧插槽
-:::
-
-### 多 tab 切换导航
-
-:::demo
-
-```vue
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-```
+> demo: navbar left
+
+### 自定义右侧插槽
+
+> demo: navbar right
+
+### 自定义标题内容
-:::
+> demo: navbar title
## API
### Props
-| 参数 | 说明 | 类型 | 默认值 |
-| ------------------- | -------------------------------------------------- | ---------------- | ------- |
-| title | 标题名称 | string | - |
-| left-text | 左侧文案 | string | - |
-| desc | 右侧描述 | string | - |
-| left-show | 是否展示左侧箭头 | boolean | `false` |
-| title-icon | 标题中是否展示 `icon` | boolean | `false` |
-| border | 是否显示下边框 | boolean | `false` |
-| fixed | 是否固定到顶部 | boolean | `false` |
-| placeholder | 固定在顶部时,是否在标签位置生成一个等高的占位元素 | boolean | `false` |
-| safe-area-inset-top | 是否开启顶部安全区适配 | boolean | `false` |
-| z-index | 导航栏 `z-index` | number | string | - |
+| 参数 | 说明 | 类型 | 默认值 |
+| --- | --- | --- | --- |
+| title | 标题名称 | string | - |
+| left-text | 左侧文案 | string | - |
+| desc | 右侧描述 | string | - |
+| left-show | 是否展示左侧箭头 | boolean | `false` |
+| title-icon | 标题中是否展示 `icon` | boolean | `false` |
+| border | 是否显示下边框 | boolean | `false` |
+| fixed | 是否固定到顶部 | boolean | `false` |
+| placeholder | 固定在顶部时,是否在标签位置生成一个等高的占位元素 | boolean | `false` |
+| safe-area-inset-top | 是否开启顶部安全区适配 | boolean | `false` |
+| z-index | 导航栏 `z-index` | number | string | - |
### Events
-| 事件名 | 说明 | 回调参数 |
-| ------------------ | ------------------------ | ----------- |
-| click-title`4.1.5` | 点击页面标题事件 | event:Event |
-| click-icon`4.1.5` | 点击页面标题 `icon` 事件 | event:Event |
-| click-right`4.1.5` | 点击右侧按钮事件 | event:Event |
-| click-back`4.1.5` | 点击左侧图标事件 | event:Event |
-| on-click-title | 点击页面标题事件 | event:Event |
-| on-click-icon | 点击页面标题 `icon` 事件 | event:Event |
-| on-click-right | 点击右侧按钮事件 | event:Event |
-| on-click-back | 点击左侧图标事件 | event:Event |
+| 事件名 | 说明 | 回调参数 |
+| --- | --- | --- |
+| click-title`4.1.5` | 点击页面标题事件 | event:Event |
+| click-icon`4.1.5` | 点击页面标题 `icon` 事件 | event:Event |
+| click-right`4.1.5` | 点击右侧按钮事件 | event:Event |
+| click-back`4.1.5` | 点击左侧图标事件 | event:Event |
+| on-click-title | 点击页面标题事件 | event:Event |
+| on-click-icon | 点击页面标题 `icon` 事件 | event:Event |
+| on-click-right | 点击右侧按钮事件 | event:Event |
+| on-click-back | 点击左侧图标事件 | event:Event |
### Slots
-| 名称 | 说明 |
-| ---------- | -------------------- |
-| left | 自定义左侧内容 |
-| right | 自定义右侧内容 |
-| content | 自定义导航栏中间内容 |
-| left-show | 左侧箭头自定义图标 |
-| title-icon | 标题中自定义图标 |
+| 名称 | 说明 |
+| --- | --- |
+| left | 自定义左侧内容 |
+| right | 自定义右侧内容 |
+| content | 自定义导航栏中间内容 |
+| left-show | 左侧箭头自定义图标 |
+| title-icon | 标题中自定义图标 |
## 主题定制
@@ -198,17 +76,17 @@ const changeTabList = (tab) => {
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/component/configprovider)。
-| 名称 | 默认值 |
-| ------------------------------ | ---------------------------------------- |
-| --nut-navbar-height | _44px_ |
-| --nut-navbar-margin-bottom | _20px_ |
-| --nut-navbar-padding | _0 16px_ |
-| --nut-navbar-background | _var(--nut-white)_ |
-| --nut-navbar-box-shadow | _0px 1px 7px 0px rgba(237, 238, 241, 1)_ |
-| --nut-navbar-color | _var(--nut-title-color2)_ |
-| --nut-navbar-title-base-font | _var(--nut-font-size-2)_ |
-| --nut-navbar-title-font | _var(--nut-font-size-2)_ |
-| --nut-navbar-title-font-weight | _0_ |
-| --nut-navbar-title-font-color | _var(--nut-navbar-color)_ |
-| --nut-navbar-title-width | _100px_ |
-| --nut-navbar-title-icon-margin | _0 0 0 13px_ |
+| 名称 | 默认值 |
+| --- | --- |
+| --nut-navbar-height | _44px_ |
+| --nut-navbar-margin-bottom | _20px_ |
+| --nut-navbar-padding | _0 16px_ |
+| --nut-navbar-background | _var(--nut-white)_ |
+| --nut-navbar-box-shadow | _0px 1px 7px 0px rgba(237, 238, 241, 1)_ |
+| --nut-navbar-color | _var(--nut-title-color2)_ |
+| --nut-navbar-title-base-font | _var(--nut-font-size-2)_ |
+| --nut-navbar-title-font | _var(--nut-font-size-2)_ |
+| --nut-navbar-title-font-weight | _0_ |
+| --nut-navbar-title-font-color | _var(--nut-navbar-color)_ |
+| --nut-navbar-title-width | _100px_ |
+| --nut-navbar-title-icon-margin | _0 0 0 13px_ |
diff --git a/src/packages/__VUE/navbar/doc.taro.md b/src/packages/__VUE/navbar/doc.taro.md
index 60fc3f1fd9..8c3011db77 100644
--- a/src/packages/__VUE/navbar/doc.taro.md
+++ b/src/packages/__VUE/navbar/doc.taro.md
@@ -16,181 +16,59 @@ app.use(Navbar);
### 基础用法
-:::demo
-
-```vue
-
-
-
- 返回
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-```
+> demo: navbar basic nav
-:::
-
-### 自定义导航栏中间内容
-
-:::demo
-
-```vue
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-```
+### 自定义左侧插槽
-:::
-
-### 多 tab 切换导航
-
-:::demo
-
-```vue
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-```
+> demo: navbar left nav
+
+### 自定义右侧插槽
+
+> demo: navbar right nav
+
+### 自定义标题内容
-:::
+> demo: navbar title nav
## API
### Props
-| 参数 | 说明 | 类型 | 默认值 |
-| ------------------- | -------------------------------------------------- | ---------------- | ------- |
-| title | 标题名称 | string | - |
-| left-text | 左侧文案 | string | - |
-| desc | 右侧描述 | string | - |
-| left-show | 是否展示左侧箭头 | boolean | `false` |
-| title-icon | 标题中是否展示 `icon` | boolean | `false` |
-| border | 是否显示下边框 | boolean | `false` |
-| fixed | 是否固定到顶部 | boolean | `false` |
-| placeholder | 固定在顶部时,是否在标签位置生成一个等高的占位元素 | boolean | `false` |
-| safe-area-inset-top | 是否开启顶部安全区适配 | boolean | `false` |
-| z-index | 导航栏 `z-index` | number | string | - |
+| 参数 | 说明 | 类型 | 默认值 |
+| --- | --- | --- | --- |
+| title | 标题名称 | string | - |
+| left-text | 左侧文案 | string | - |
+| desc | 右侧描述 | string | - |
+| left-show | 是否展示左侧箭头 | boolean | `false` |
+| title-icon | 标题中是否展示 `icon` | boolean | `false` |
+| border | 是否显示下边框 | boolean | `false` |
+| fixed | 是否固定到顶部 | boolean | `false` |
+| placeholder | 固定在顶部时,是否在标签位置生成一个等高的占位元素 | boolean | `false` |
+| safe-area-inset-top | 是否开启顶部安全区适配 | boolean | `false` |
+| z-index | 导航栏 `z-index` | number | string | - |
### Events
-| 事件名 | 说明 | 回调参数 |
-| ------------------ | ------------------------ | ----------- |
-| click-title`4.1.5` | 点击页面标题事件 | event:Event |
-| click-icon`4.1.5` | 点击页面标题 `icon` 事件 | event:Event |
-| click-right`4.1.5` | 点击右侧按钮事件 | event:Event |
-| click-back`4.1.5` | 点击左侧图标事件 | event:Event |
-| on-click-title | 点击页面标题事件 | event:Event |
-| on-click-icon | 点击页面标题 `icon` 事件 | event:Event |
-| on-click-right | 点击右侧按钮事件 | event:Event |
-| on-click-back | 点击左侧图标事件 | event:Event |
+| 事件名 | 说明 | 回调参数 |
+| --- | --- | --- |
+| click-title`4.1.5` | 点击页面标题事件 | event:Event |
+| click-icon`4.1.5` | 点击页面标题 `icon` 事件 | event:Event |
+| click-right`4.1.5` | 点击右侧按钮事件 | event:Event |
+| click-back`4.1.5` | 点击左侧图标事件 | event:Event |
+| on-click-title | 点击页面标题事件 | event:Event |
+| on-click-icon | 点击页面标题 `icon` 事件 | event:Event |
+| on-click-right | 点击右侧按钮事件 | event:Event |
+| on-click-back | 点击左侧图标事件 | event:Event |
### Slots
-| 名称 | 说明 |
-| ---------- | -------------------- |
-| left | 自定义左侧内容 |
-| right | 自定义右侧内容 |
-| content | 自定义导航栏中间内容 |
-| left-show | 左侧箭头自定义图标 |
-| title-icon | 标题中自定义图标 |
+| 名称 | 说明 |
+| --- | --- |
+| left | 自定义左侧内容 |
+| right | 自定义右侧内容 |
+| content | 自定义导航栏中间内容 |
+| left-show | 左侧箭头自定义图标 |
+| title-icon | 标题中自定义图标 |
## 主题定制
@@ -198,17 +76,17 @@ const changeTabList = (tab) => {
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/component/configprovider)。
-| 名称 | 默认值 |
-| ------------------------------ | ---------------------------------------- |
-| --nut-navbar-height | _44px_ |
-| --nut-navbar-margin-bottom | _20px_ |
-| --nut-navbar-padding | _0 16px_ |
-| --nut-navbar-background | _var(--nut-white)_ |
-| --nut-navbar-box-shadow | _0px 1px 7px 0px rgba(237, 238, 241, 1)_ |
-| --nut-navbar-color | _var(--nut-title-color2)_ |
-| --nut-navbar-title-base-font | _var(--nut-font-size-2)_ |
-| --nut-navbar-title-font | _var(--nut-font-size-2)_ |
-| --nut-navbar-title-font-weight | _0_ |
-| --nut-navbar-title-font-color | _var(--nut-navbar-color)_ |
-| --nut-navbar-title-width | _100px_ |
-| --nut-navbar-title-icon-margin | _0 0 0 13px_ |
+| 名称 | 默认值 |
+| --- | --- |
+| --nut-navbar-height | _44px_ |
+| --nut-navbar-margin-bottom | _20px_ |
+| --nut-navbar-padding | _0 16px_ |
+| --nut-navbar-background | _var(--nut-white)_ |
+| --nut-navbar-box-shadow | _0px 1px 7px 0px rgba(237, 238, 241, 1)_ |
+| --nut-navbar-color | _var(--nut-title-color2)_ |
+| --nut-navbar-title-base-font | _var(--nut-font-size-2)_ |
+| --nut-navbar-title-font | _var(--nut-font-size-2)_ |
+| --nut-navbar-title-font-weight | _0_ |
+| --nut-navbar-title-font-color | _var(--nut-navbar-color)_ |
+| --nut-navbar-title-width | _100px_ |
+| --nut-navbar-title-icon-margin | _0 0 0 13px_ |