diff --git a/src/number-keyboard/README.md b/src/number-keyboard/README.md index b0f2eb911..67faf36b7 100644 --- a/src/number-keyboard/README.md +++ b/src/number-keyboard/README.md @@ -97,6 +97,22 @@ Use `title` prop to set keyboard title /> ``` +### Multiple ExtraKey + +```html + + Show Keyboard With Multiple ExtraKey + + +``` + ### Bind Value ```html @@ -138,7 +154,7 @@ export default { | maxlength `v2.0.2` | Value maxlength | _number \| string_ | - | | transition | Whether to show transition animation | _boolean_ | `true` | | z-index | Keyboard z-index | _number \| string_ | `100` | -| extra-key | Content of bottom left key | _string_ | `''` | +| extra-key `v2.8.2` | Content of bottom left key | _string \| string[]_ | `''` | | close-button-text | Close button text | _string_ | - | | delete-button-text | Delete button text | _string_ | Delete Icon | | close-button-loading `v2.7.0` | Whether to show loading close button in custom theme | _boolean_ | `false` | diff --git a/src/number-keyboard/README.zh-CN.md b/src/number-keyboard/README.zh-CN.md index 5520ad7a8..24bea797a 100644 --- a/src/number-keyboard/README.zh-CN.md +++ b/src/number-keyboard/README.zh-CN.md @@ -106,6 +106,24 @@ export default { /> ``` +### 配置多个按键 + +当 theme 为 `custom` 时,支持以数组的形式配置两个 `extra-key` + +```html + + 弹出配置多个按键的键盘 + + +``` + ### 双向绑定 可以通过 `v-model` 绑定键盘当前输入值 @@ -149,7 +167,7 @@ export default { | maxlength `v2.0.2` | 输入值最大长度 | _number \| string_ | - | | transition | 是否开启过场动画 | _boolean_ | `true` | | z-index | 键盘 z-index 层级 | _number \| string_ | `100` | -| extra-key | 左下角按键内容 | _string_ | `''` | +| extra-key `v2.8.2` | 底部额外按键的内容 | _string \| string[]_ | `''` | | close-button-text | 关闭按钮文字,空则不展示 | _string_ | - | | delete-button-text | 删除按钮文字,空则展示删除图标 | _string_ | - | | close-button-loading `v2.7.0` | 是否将关闭按钮设置为加载中状态,仅在 `theme="custom"` 时有效 | _boolean_ | `false` | diff --git a/src/number-keyboard/demo/index.vue b/src/number-keyboard/demo/index.vue index 31e09c3dc..9b33eae08 100644 --- a/src/number-keyboard/demo/index.vue +++ b/src/number-keyboard/demo/index.vue @@ -12,6 +12,9 @@ {{ t('button4') }} + + {{ t('button5') }} + + + +
+
+ 弹出配置多个按键的键盘 +
+ +
双向绑定
@@ -121,6 +127,30 @@ exports[`renders demo correctly 1`] = `
+