diff --git a/components/number-keyboard/README.en-US.md b/components/number-keyboard/README.en-US.md index 32e3fac17..511389443 100644 --- a/components/number-keyboard/README.en-US.md +++ b/components/number-keyboard/README.en-US.md @@ -25,9 +25,19 @@ Vue.component(NumberKeyboard.name, NumberKeyboard) |is-view|inline display in page, otherwise it shows as `Popup`|Boolean|`false`|-| |type|keyboard type|String|`professional`|`professional` with confirmation key and decimal point is often used for price or amount input, `simple` is generally used for password or verification code input| |disorder|if numeric keys of keyboard are out of order|Boolean|`false`| -| +|is-hide-confirm|automatically hide the keyboard when confirming|Boolean|`true`| -| |text-render|customize value of specified key|Function(value: string): string|-|replaceable key `0,1,...9,.`| |ok-text|text of confirmation key|String|`confirm`|-| +#### NumberKeyboard Slots + +#### default + +```html + +  安全支付 + +``` #### NumberKeyboard Methods ##### show() diff --git a/components/number-keyboard/README.md b/components/number-keyboard/README.md index 4eb1da9f5..26aeb95e6 100644 --- a/components/number-keyboard/README.md +++ b/components/number-keyboard/README.md @@ -25,9 +25,20 @@ Vue.component(NumberKeyboard.name, NumberKeyboard) |is-view|是否内嵌在页面内展示,否则以弹层形式|Boolean|`false`|-| |type|键盘类型|String|`professional`|`professional`有确认键和小数点常用于价格或金额输入,`simple`一般用于密码或验证码输入| |disorder|键盘数字键是否乱序|Boolean|`false`| -| +|is-hide-confirm|确认时自动隐藏键盘|Boolean|`true`| -| |text-render|自定义指定按键的值|Function(value: string): string|-|可替换键`0,1,...9,.`| |ok-text|键盘确认键文案|String|`确认`|-| +#### NumberKeyboard Slots + +#### default + +```html + +  安全支付 + +``` + #### NumberKeyboard Methods ##### show() diff --git a/components/number-keyboard/board.vue b/components/number-keyboard/board.vue index e52547489..9122dd120 100644 --- a/components/number-keyboard/board.vue +++ b/components/number-keyboard/board.vue @@ -195,6 +195,8 @@ export default { width 66.6% &:active, &.active background-color number-keyboard-key-bg-tap + &:before, &:after + pointer-events none .keyboard-operate flex 1 .keyboard-operate-list diff --git a/components/number-keyboard/demo/cases/demo0.vue b/components/number-keyboard/demo/cases/demo0.vue index 6129c3ba2..d2b421f8c 100644 --- a/components/number-keyboard/demo/cases/demo0.vue +++ b/components/number-keyboard/demo/cases/demo0.vue @@ -76,6 +76,6 @@ export default { left 50% z-index 9999 transform translate(-50%, -50%) - font-size font-heading-large * 2 - text-shadow 0 4px 20px color-text-minor + font-size 120px + text-shadow 0 4px 20px #666 diff --git a/components/number-keyboard/demo/cases/demo1.vue b/components/number-keyboard/demo/cases/demo1.vue index 72c89637e..532d89935 100644 --- a/components/number-keyboard/demo/cases/demo1.vue +++ b/components/number-keyboard/demo/cases/demo1.vue @@ -52,6 +52,6 @@ export default { left 50% z-index 9999 transform translate(-50%, -50%) - font-size font-heading-large * 2 - text-shadow 0 4px 20px color-text-minor + font-size 120px + text-shadow 0 4px 20px #666 diff --git a/components/number-keyboard/demo/cases/demo2.vue b/components/number-keyboard/demo/cases/demo2.vue index 94b7c3788..aaf726baa 100644 --- a/components/number-keyboard/demo/cases/demo2.vue +++ b/components/number-keyboard/demo/cases/demo2.vue @@ -1,5 +1,5 @@