-
+
-
```
@@ -413,34 +329,34 @@ app.use(Range);
### Props
-| 参数 | 说明 | 类型 | 默认值 |
-| -------------- | ------------------ | ------------------ | ------------------------ |
-| v-model | 当前进度百分比 | number \| number[] | `0` |
-| range | 是否开启双滑块模式 | boolean | `false` |
-| max | 最大值 | number \| string | `100` |
-| min | 最小值 | number \| string | `0` |
-| step | 步长 | number \| string | `1` |
-| disabled | 是否禁用滑块 | boolean | `false` |
-| vertical | 是否竖向展示 | boolean | `false` |
-| hidden-range | 是否隐藏范围值 | boolean | `false` |
-| hidden-tag | 是否隐藏标签 | boolean | `false` |
-| active-color | 进度条激活态颜色 | string | `rgba(250, 44, 25, 1)` |
-| inactive-color | 进度条非激活态颜色 | string | `rgba(255, 163, 154, 1)` |
-| button-color | 按钮颜色 | string | `rgba(250, 44, 25, 1)` |
-| marks | 刻度标示 | object{key:number} | `{}` |
+| 参数 | 说明 | 类型 | 默认值 |
+| --- | --- | --- | --- |
+| v-model | 当前进度百分比 | number \| number[] | `0` |
+| range | 是否开启双滑块模式 | boolean | `false` |
+| max | 最大值 | number \| string | `100` |
+| min | 最小值 | number \| string | `0` |
+| step | 步长 | number \| string | `1` |
+| disabled | 是否禁用滑块 | boolean | `false` |
+| vertical | 是否竖向展示 | boolean | `false` |
+| hidden-range | 是否隐藏范围值 | boolean | `false` |
+| hidden-tag | 是否隐藏标签 | boolean | `false` |
+| active-color | 进度条激活态颜色 | string | `rgba(250, 44, 25, 1)` |
+| inactive-color | 进度条非激活态颜色 | string | `rgba(255, 163, 154, 1)` |
+| button-color | 按钮颜色 | string | `rgba(250, 44, 25, 1)` |
+| marks | 刻度标示 | object{key:number} | `{}` |
### Events
-| 事件名 | 说明 | 回调参数 |
-| ---------- | ------------------------ | --------------------------- |
-| change | 进度变化且结束拖动后触发 | `value: number \| number[]` |
-| drag-start | 开始拖动时触发 | - |
-| drag-end | 结束拖动时触发 | - |
+| 事件名 | 说明 | 回调参数 |
+| --- | --- | --- |
+| change | 进度变化且结束拖动后触发 | `value: number \| number[]` |
+| drag-start | 开始拖动时触发 | - |
+| drag-end | 结束拖动时触发 | - |
### Slots
-| 名称 | 说明 |
-| ------ | -------------- |
+| 名称 | 说明 |
+| --- | --- |
| button | 自定义滑动按钮 |
## 主题定制
@@ -449,13 +365,13 @@ app.use(Range);
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/component/configprovider)。
-| 名称 | 默认值 |
-| ---------------------------- | ----------------------------------------------------------------------------------------- |
-| --nut-range-tip-font-color | _#333333_ |
-| --nut-range-bg-color | _var(--nut-primary-color)_ |
-| --nut-range-bg-color-tick | _#fa958c_ |
-| --nut-range-bar-bg-color | _linear-gradient(135deg, var(--nut-primary-color) 0%, var(--nut-primary-color-end) 100%)_ |
-| --nut-range-bar-btn-bg-color | _var(--nut-white)_ |
-| --nut-range-bar-btn-width | _24px_ |
-| --nut-range-bar-btn-height | _24px_ |
-| --nut-range-bar-btn-border | _1px solid var(--nut-primary-color)_ |
+| 名称 | 默认值 |
+| --- | --- |
+| --nut-range-tip-font-color | _#333333_ |
+| --nut-range-bg-color | _var(--nut-primary-color)_ |
+| --nut-range-bg-color-tick | _#fa958c_ |
+| --nut-range-bar-bg-color | _linear-gradient(135deg, var(--nut-primary-color) 0%, var(--nut-primary-color-end) 100%)_ |
+| --nut-range-bar-btn-bg-color | _var(--nut-white)_ |
+| --nut-range-bar-btn-width | _24px_ |
+| --nut-range-bar-btn-height | _24px_ |
+| --nut-range-bar-btn-border | _1px solid var(--nut-primary-color)_ |
diff --git a/src/packages/__VUE/rate/demo.vue b/src/packages/__VUE/rate/demo.vue
index 35d4ebd009..c0da8e8fca 100644
--- a/src/packages/__VUE/rate/demo.vue
+++ b/src/packages/__VUE/rate/demo.vue
@@ -31,8 +31,8 @@
-
diff --git a/src/packages/__VUE/searchbar/demo.vue b/src/packages/__VUE/searchbar/demo.vue
index 86df47b3a0..ac37198fb3 100644
--- a/src/packages/__VUE/searchbar/demo.vue
+++ b/src/packages/__VUE/searchbar/demo.vue
@@ -1,44 +1,44 @@
{{ translate('basic1') }}
-
+
{{ translate('shape') }}
{{ translate('basic2') }}
-
+
{{ translate('basic3') }}
-
+
{{ translate('basic4') }}
-
+
{{ translate('word2') }}
{{ translate('basic5') }}
{{ translate('basic7') }}
-
+
{{ translate('basic6') }}
-
+
@@ -55,8 +55,8 @@
-
diff --git a/src/packages/__VUE/searchbar/doc.en-US.md b/src/packages/__VUE/searchbar/doc.en-US.md
index c7a3a7a579..4707de0160 100644
--- a/src/packages/__VUE/searchbar/doc.en-US.md
+++ b/src/packages/__VUE/searchbar/doc.en-US.md
@@ -6,7 +6,7 @@ Search bar
### Install
-```javascript
+```js
import { createApp } from 'vue';
import { Searchbar } from '@nutui/nutui';
@@ -18,23 +18,13 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
-
```
@@ -44,7 +34,7 @@ app.use(Searchbar);
:::demo
-```html
+```vue
@@ -56,30 +46,18 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
-
```
@@ -89,29 +67,18 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
-
```
@@ -121,25 +88,15 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
Search
-
```
@@ -149,24 +106,14 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
-
```
@@ -176,30 +123,19 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
-
```
@@ -209,9 +145,9 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
@@ -226,21 +162,10 @@ app.use(Searchbar);
-
```
@@ -250,45 +175,45 @@ app.use(Searchbar);
### Props
-| Parameter | Description | Type | Default |
-| ------------------------------ | ------------------------------------------------------------------------------------- | ---------------- | -------------- | ---- |
-| v-model | current input value | number / | string | `''` |
-| label | left text of search box | string | `''` |
-| shape | search box shape, optional value is `square` `round` | string | `round` |
-| max-length | maximum input length | number \| string | `9999` |
-| input-type | input box type | string | `text` |
-| placeholder | The default dark pattern of the input box | string | `Please enter` |
-| clearable | whether to show clear button | boolean | `true` |
-| clear-icon | custom clear button icon (default use `@nutui/nutui-icons`) | Object | `CircleClose` |
-| background | external background of the input box | string | `#fff` |
-| input-background | background of input box | string | `#f7f7f7` |
-| autofocus | Whether to automatically focus | boolean | `false` |
-| focus-style | search box style when focused | Object | `-` |
-| disabled | Whether to disable the input box | boolean | `false` |
-| readonly | input field is read only | boolean | `false` |
-| input-align | alignment, optional `left` `center` `right` | string | `left` |
-| safe-area-inset-bottom`v4.1.6` | Whether to enable the security zone at the bottom of the full screen of iphone series | boolean | `false` |
+| Parameter | Description | Type | Default |
+| --- | --- | --- | --- |
+| v-model | current input value | number / | string | `''` |
+| label | left text of search box | string | `''` |
+| shape | search box shape, optional value is `square` `round` | string | `round` |
+| max-length | maximum input length | number \| string | `9999` |
+| input-type | input box type | string | `text` |
+| placeholder | The default dark pattern of the input box | string | `Please enter` |
+| clearable | whether to show clear button | boolean | `true` |
+| clear-icon | custom clear button icon (default use `@nutui/nutui-icons`) | Object | `CircleClose` |
+| background | external background of the input box | string | `#fff` |
+| input-background | background of input box | string | `#f7f7f7` |
+| autofocus | Whether to automatically focus | boolean | `false` |
+| focus-style | search box style when focused | Object | `-` |
+| disabled | Whether to disable the input box | boolean | `false` |
+| readonly | input field is read only | boolean | `false` |
+| input-align | alignment, optional `left` `center` `right` | string | `left` |
+| safe-area-inset-bottom`v4.1.6` | Whether to enable the security zone at the bottom of the full screen of iphone series | boolean | `false` |
### Events
-| Event Name | Description | Callback Parameters |
-| ---------------- | ------------------------------------- | ------------------- |
-| change | fires when something is entered | `val, event` |
-| focus | fires on focus | `val, event` |
-| blur | Triggered when out of focus | `val, event` |
-| clear | Triggered when click clear | `val` |
-| search | fires when the ENTER key is pressed | `val, event` |
-| click-input | Fired when the input field is clicked | `event` |
-| click-left-icon | Fires when the left icon is clicked | `val, event` |
-| click-right-icon | Fires when the right icon is clicked | `val, event` |
+| Event Name | Description | Callback Parameters |
+| --- | --- | --- |
+| change | fires when something is entered | `val, event` |
+| focus | fires on focus | `val, event` |
+| blur | Triggered when out of focus | `val, event` |
+| clear | Triggered when click clear | `val` |
+| search | fires when the ENTER key is pressed | `val, event` |
+| click-input | Fired when the input field is clicked | `event` |
+| click-left-icon | Fires when the left icon is clicked | `val, event` |
+| click-right-icon | Fires when the right icon is clicked | `val, event` |
### Slots
-| Name | Description |
-| -------- | -------------------------------- |
-| leftin | left icon in the input box |
-| leftout | left Icon outside the input box |
-| rightin | right icon in the input box |
+| Name | Description |
+| --- | --- |
+| leftin | left icon in the input box |
+| leftout | left Icon outside the input box |
+| rightin | right icon in the input box |
| rightout | right icon outside the input box |
## Theming
@@ -298,17 +223,17 @@ app.use(Searchbar);
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-searchbar-background | _var(--nut-white)_ |
-| --nut-searchbar-right-out-color | _var(--nut-black)_ |
-| --nut-searchbar-padding | _9px 16px_ |
-| --nut-searchbar-width | _100%_ |
-| --nut-searchbar-input-background | _#f7f7f7_ |
-| --nut-searchbar-input-padding | _0 0 0 13px_ |
-| --nut-searchbar-input-height | _32px_ |
-| --nut-searchbar-input-width | _100%_ |
-| --nut-searchbar-input-border-radius | _16px_ |
-| --nut-searchbar-input-box-shadow | _0 0 8px 0 rgba(0, 0, 0, 0.04)_ |
-| --nut-searchbar-input-bar-color | _inherit_ |
-| --nut-searchbar-input-bar-placeholder-color | _inherit_ |
+| Name | Default Value |
+| --- | --- |
+| --nut-searchbar-background | _var(--nut-white)_ |
+| --nut-searchbar-right-out-color | _var(--nut-black)_ |
+| --nut-searchbar-padding | _9px 16px_ |
+| --nut-searchbar-width | _100%_ |
+| --nut-searchbar-input-background | _#f7f7f7_ |
+| --nut-searchbar-input-padding | _0 0 0 13px_ |
+| --nut-searchbar-input-height | _32px_ |
+| --nut-searchbar-input-width | _100%_ |
+| --nut-searchbar-input-border-radius | _16px_ |
+| --nut-searchbar-input-box-shadow | _0 0 8px 0 rgba(0, 0, 0, 0.04)_ |
+| --nut-searchbar-input-bar-color | _inherit_ |
+| --nut-searchbar-input-bar-placeholder-color | _inherit_ |
diff --git a/src/packages/__VUE/searchbar/doc.md b/src/packages/__VUE/searchbar/doc.md
index 7fa284015f..38e37d4f34 100644
--- a/src/packages/__VUE/searchbar/doc.md
+++ b/src/packages/__VUE/searchbar/doc.md
@@ -6,7 +6,7 @@
### 安装
-```javascript
+```js
import { createApp } from 'vue';
import { Searchbar } from '@nutui/nutui';
@@ -18,23 +18,13 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
-
```
@@ -44,7 +34,7 @@ app.use(Searchbar);
:::demo
-```html
+```vue
@@ -56,30 +46,18 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
-
```
@@ -89,29 +67,18 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
-
```
@@ -121,25 +88,15 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
搜索
-
```
@@ -149,24 +106,14 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
-
```
@@ -176,30 +123,19 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
-
```
@@ -209,9 +145,9 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
@@ -226,21 +162,10 @@ app.use(Searchbar);
-
```
@@ -250,45 +175,45 @@ app.use(Searchbar);
### Props
-| 参数 | 说明 | 类型 | 默认值 |
-| ------------------------------ | --------------------------------------------------- | ---------------- | ------------- |
-| v-model | 当前输入的值 | number \| string | `''` |
-| label | 搜索框左侧文本 | string | `''` |
-| shape | 搜索框形状,可选值为 `square` `round` | string | `round` |
-| max-length | 最大输入长度 | number \| string | `9999` |
-| input-type | 输入框类型 | string | `text` |
-| placeholder | 输入框默认暗纹 | string | `请输入` |
-| clearable | 是否展示清除按钮 | boolean | `true` |
-| clear-icon | 自定义清除按钮图标(默认使用 `@nutui/nutui-icons`) | Object | `CircleClose` |
-| background | 输入框外部背景 | string | `#fff` |
-| input-background | 输入框内部背景 | string | `#f7f7f7` |
-| autofocus | 是否自动聚焦 | boolean | `false` |
-| focus-style | 聚焦时搜索框样式 | Object | `-` |
-| disabled | 是否禁用输入框 | boolean | `false` |
-| readonly | 输入框只读 | boolean | `false` |
-| input-align | 对齐方式,可选`left` `center` `right` | string | `left` |
-| safe-area-inset-bottom`v4.1.6` | 是否开启 iphone 系列全面屏底部安全区适配 | boolean | `false` |
+| 参数 | 说明 | 类型 | 默认值 |
+| --- | --- | --- | --- |
+| v-model | 当前输入的值 | number \| string | `''` |
+| label | 搜索框左侧文本 | string | `''` |
+| shape | 搜索框形状,可选值为 `square` `round` | string | `round` |
+| max-length | 最大输入长度 | number \| string | `9999` |
+| input-type | 输入框类型 | string | `text` |
+| placeholder | 输入框默认暗纹 | string | `请输入` |
+| clearable | 是否展示清除按钮 | boolean | `true` |
+| clear-icon | 自定义清除按钮图标(默认使用 `@nutui/nutui-icons`) | Object | `CircleClose` |
+| background | 输入框外部背景 | string | `#fff` |
+| input-background | 输入框内部背景 | string | `#f7f7f7` |
+| autofocus | 是否自动聚焦 | boolean | `false` |
+| focus-style | 聚焦时搜索框样式 | Object | `-` |
+| disabled | 是否禁用输入框 | boolean | `false` |
+| readonly | 输入框只读 | boolean | `false` |
+| input-align | 对齐方式,可选`left` `center` `right` | string | `left` |
+| safe-area-inset-bottom`v4.1.6` | 是否开启 iphone 系列全面屏底部安全区适配 | boolean | `false` |
### Events
-| 事件名 | 说明 | 回调参数 |
-| ---------------- | ------------------- | ------------ |
-| change | 输入内容时触发 | `val, event` |
-| focus | 聚焦时触发 | `val, event` |
-| blur | 失焦时触发 | `val, event` |
-| clear | 点击清空时触发 | `val` |
-| search | 按下 ENTER 键时触发 | `val, event` |
-| click-input | 点击输入区域时触发 | `event` |
-| click-left-icon | 点击左侧图标时触发 | `val, event` |
-| click-right-icon | 点击右侧图标时触发 | `val, event` |
+| 事件名 | 说明 | 回调参数 |
+| --- | --- | --- |
+| change | 输入内容时触发 | `val, event` |
+| focus | 聚焦时触发 | `val, event` |
+| blur | 失焦时触发 | `val, event` |
+| clear | 点击清空时触发 | `val` |
+| search | 按下 ENTER 键时触发 | `val, event` |
+| click-input | 点击输入区域时触发 | `event` |
+| click-left-icon | 点击左侧图标时触发 | `val, event` |
+| click-right-icon | 点击右侧图标时触发 | `val, event` |
### Slots
-| 名称 | 说明 |
-| -------- | ---------------- |
-| leftin | 输入框内 左 icon |
-| leftout | 输入框外 左 icon |
-| rightin | 输入框内 右 icon |
+| 名称 | 说明 |
+| --- | --- |
+| leftin | 输入框内 左 icon |
+| leftout | 输入框外 左 icon |
+| rightin | 输入框内 右 icon |
| rightout | 输入框外 右 icon |
## 主题定制
@@ -297,17 +222,17 @@ app.use(Searchbar);
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/component/configprovider)。
-| 名称 | 默认值 |
-| ------------------------------------------- | ------------------------------- |
-| --nut-searchbar-background | _var(--nut-white)_ |
-| --nut-searchbar-right-out-color | _var(--nut-black)_ |
-| --nut-searchbar-padding | _9px 16px_ |
-| --nut-searchbar-width | _100%_ |
-| --nut-searchbar-input-background | _#f7f7f7_ |
-| --nut-searchbar-input-padding | _0 0 0 13px_ |
-| --nut-searchbar-input-height | _32px_ |
-| --nut-searchbar-input-width | _100%_ |
-| --nut-searchbar-input-border-radius | _16px_ |
-| --nut-searchbar-input-box-shadow | _0 0 8px 0 rgba(0, 0, 0, 0.04)_ |
-| --nut-searchbar-input-bar-color | _inherit_ |
-| --nut-searchbar-input-bar-placeholder-color | _inherit_ |
+| 名称 | 默认值 |
+| --- | --- |
+| --nut-searchbar-background | _var(--nut-white)_ |
+| --nut-searchbar-right-out-color | _var(--nut-black)_ |
+| --nut-searchbar-padding | _9px 16px_ |
+| --nut-searchbar-width | _100%_ |
+| --nut-searchbar-input-background | _#f7f7f7_ |
+| --nut-searchbar-input-padding | _0 0 0 13px_ |
+| --nut-searchbar-input-height | _32px_ |
+| --nut-searchbar-input-width | _100%_ |
+| --nut-searchbar-input-border-radius | _16px_ |
+| --nut-searchbar-input-box-shadow | _0 0 8px 0 rgba(0, 0, 0, 0.04)_ |
+| --nut-searchbar-input-bar-color | _inherit_ |
+| --nut-searchbar-input-bar-placeholder-color | _inherit_ |
diff --git a/src/packages/__VUE/searchbar/doc.taro.md b/src/packages/__VUE/searchbar/doc.taro.md
index 09d44d9856..b07d9ba318 100644
--- a/src/packages/__VUE/searchbar/doc.taro.md
+++ b/src/packages/__VUE/searchbar/doc.taro.md
@@ -6,7 +6,7 @@
### 安装
-```javascript
+```js
import { createApp } from 'vue';
import { Searchbar } from '@nutui/nutui-taro';
@@ -18,23 +18,13 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
-
```
@@ -44,7 +34,7 @@ app.use(Searchbar);
:::demo
-```html
+```vue
@@ -56,28 +46,18 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
-
```
@@ -87,29 +67,18 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
-
```
@@ -119,25 +88,15 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
搜索
-
```
@@ -147,24 +106,14 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
-
```
@@ -174,29 +123,19 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
-
```
@@ -206,9 +145,9 @@ app.use(Searchbar);
:::demo
-```html
+```vue
-
+
@@ -223,21 +162,10 @@ app.use(Searchbar);
-
```
@@ -247,47 +175,47 @@ app.use(Searchbar);
### Props
-| 参数 | 说明 | 类型 | 默认值 |
-| ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- | ---------------- | ------------- |
-| v-model | 当前输入的值 | number \| string | `''` |
-| label | 搜索框左侧文本 | string | `''` |
-| shape | 搜索框形状,可选值为 `square` `round` | string | `round` |
-| max-length | 最大输入长度 | number \| string | `9999` |
-| input-type | 输入框类型 | string | `text` |
-| placeholder | 输入框默认暗纹 | string | `请输入` |
-| clearable | 是否展示清除按钮 | boolean | `true` |
-| clear-icon | 自定义清除按钮图标(默认使用 `@nutui/nutui-icons`) | Object | `CircleClose` |
-| background | 输入框外部背景 | string | `#fff` |
-| input-background | 输入框内部背景 | string | `#f7f7f7` |
-| confirm-type | 键盘右下角按钮的文字,仅在`type='text'`时生效,可选值 `send`:发送、`search`:搜索、`next`:下一个、`go`:前往、`done`:完成 | string | `done` |
-| autofocus | 是否自动聚焦 | boolean | `false` |
-| focus-style | 聚焦时搜索框样式 | Object | `-` |
-| disabled | 是否禁用输入框 | boolean | `false` |
-| readonly | 输入框只读 | boolean | `false` |
-| input-align | 对齐方式,可选 `left` `center` `right` | string | `left` |
-| safe-area-inset-bottom`v4.1.6` | 是否开启 iphone 系列全面屏底部安全区适配 | boolean | `false` |
-| cursor-spacing`v4.1.7` | 指定光标与键盘的距离,取 input 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离 | number | 0 |
+| 参数 | 说明 | 类型 | 默认值 |
+| --- | --- | --- | --- |
+| v-model | 当前输入的值 | number \| string | `''` |
+| label | 搜索框左侧文本 | string | `''` |
+| shape | 搜索框形状,可选值为 `square` `round` | string | `round` |
+| max-length | 最大输入长度 | number \| string | `9999` |
+| input-type | 输入框类型 | string | `text` |
+| placeholder | 输入框默认暗纹 | string | `请输入` |
+| clearable | 是否展示清除按钮 | boolean | `true` |
+| clear-icon | 自定义清除按钮图标(默认使用 `@nutui/nutui-icons`) | Object | `CircleClose` |
+| background | 输入框外部背景 | string | `#fff` |
+| input-background | 输入框内部背景 | string | `#f7f7f7` |
+| confirm-type | 键盘右下角按钮的文字,仅在`type='text'`时生效,可选值 `send`:发送、`search`:搜索、`next`:下一个、`go`:前往、`done`:完成 | string | `done` |
+| autofocus | 是否自动聚焦 | boolean | `false` |
+| focus-style | 聚焦时搜索框样式 | Object | `-` |
+| disabled | 是否禁用输入框 | boolean | `false` |
+| readonly | 输入框只读 | boolean | `false` |
+| input-align | 对齐方式,可选 `left` `center` `right` | string | `left` |
+| safe-area-inset-bottom`v4.1.6` | 是否开启 iphone 系列全面屏底部安全区适配 | boolean | `false` |
+| cursor-spacing`v4.1.7` | 指定光标与键盘的距离,取 input 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离 | number | 0 |
### Events
-| 事件名 | 说明 | 回调参数 |
-| ---------------- | ------------------- | ------------ |
-| change | 输入内容时触发 | `val, event` |
-| focus | 聚焦时触发 | `val, event` |
-| blur | 失焦时触发 | `val, event` |
-| clear | 点击清空时触发 | `val` |
-| search | 按下 ENTER 键时触发 | `val, event` |
-| click-input | 点击输入区域时触发 | `event` |
-| click-left-icon | 点击左侧图标时触发 | `val, event` |
-| click-right-icon | 点击右侧图标时触发 | `val, event` |
+| 事件名 | 说明 | 回调参数 |
+| --- | --- | --- |
+| change | 输入内容时触发 | `val, event` |
+| focus | 聚焦时触发 | `val, event` |
+| blur | 失焦时触发 | `val, event` |
+| clear | 点击清空时触发 | `val` |
+| search | 按下 ENTER 键时触发 | `val, event` |
+| click-input | 点击输入区域时触发 | `event` |
+| click-left-icon | 点击左侧图标时触发 | `val, event` |
+| click-right-icon | 点击右侧图标时触发 | `val, event` |
### Slots
-| 名称 | 说明 |
-| -------- | ---------------- |
-| leftin | 输入框内 左 icon |
-| leftout | 输入框外 左 icon |
-| rightin | 输入框内 右 icon |
+| 名称 | 说明 |
+| --- | --- |
+| leftin | 输入框内 左 icon |
+| leftout | 输入框外 左 icon |
+| rightin | 输入框内 右 icon |
| rightout | 输入框外 右 icon |
## 主题定制
@@ -296,17 +224,17 @@ app.use(Searchbar);
组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/component/configprovider)。
-| 名称 | 默认值 |
-| ------------------------------------------- | ------------------------------- |
-| --nut-searchbar-background | _var(--nut-white)_ |
-| --nut-searchbar-right-out-color | _var(--nut-black)_ |
-| --nut-searchbar-padding | _9px 16px_ |
-| --nut-searchbar-width | _100%_ |
-| --nut-searchbar-input-background | _#f7f7f7_ |
-| --nut-searchbar-input-padding | _0 0 0 13px_ |
-| --nut-searchbar-input-height | _32px_ |
-| --nut-searchbar-input-width | _100%_ |
-| --nut-searchbar-input-border-radius | _16px_ |
-| --nut-searchbar-input-box-shadow | _0 0 8px 0 rgba(0, 0, 0, 0.04)_ |
-| --nut-searchbar-input-bar-color | _inherit_ |
-| --nut-searchbar-input-bar-placeholder-color | _inherit_ |
+| 名称 | 默认值 |
+| --- | --- |
+| --nut-searchbar-background | _var(--nut-white)_ |
+| --nut-searchbar-right-out-color | _var(--nut-black)_ |
+| --nut-searchbar-padding | _9px 16px_ |
+| --nut-searchbar-width | _100%_ |
+| --nut-searchbar-input-background | _#f7f7f7_ |
+| --nut-searchbar-input-padding | _0 0 0 13px_ |
+| --nut-searchbar-input-height | _32px_ |
+| --nut-searchbar-input-width | _100%_ |
+| --nut-searchbar-input-border-radius | _16px_ |
+| --nut-searchbar-input-box-shadow | _0 0 8px 0 rgba(0, 0, 0, 0.04)_ |
+| --nut-searchbar-input-bar-color | _inherit_ |
+| --nut-searchbar-input-bar-placeholder-color | _inherit_ |
diff --git a/src/packages/__VUE/shortpassword/demo.vue b/src/packages/__VUE/shortpassword/demo.vue
index 83ede6a8da..33129a06ee 100644
--- a/src/packages/__VUE/shortpassword/demo.vue
+++ b/src/packages/__VUE/shortpassword/demo.vue
@@ -77,8 +77,8 @@