diff --git a/src/components/number-keyboard/index.en.md b/src/components/number-keyboard/index.en.md index aacb49ac49..30c68aa285 100644 --- a/src/components/number-keyboard/index.en.md +++ b/src/components/number-keyboard/index.en.md @@ -42,7 +42,7 @@ tips: It is recommended to open the demo on the mobile side for better preview e | title | The title of the keyboard | `string` | - | | visible | Whether to show or hide | `boolean` | - | -In addition, the following attributes of [Popup](/components/popup) are supported: `stopPropagation` +In addition, the following attributes of [Popup](/components/popup) are supported: `stopPropagation`, `mask`, `maskStyle` ## FAQ diff --git a/src/components/number-keyboard/index.zh.md b/src/components/number-keyboard/index.zh.md index 7d726ceda3..750088a238 100644 --- a/src/components/number-keyboard/index.zh.md +++ b/src/components/number-keyboard/index.zh.md @@ -42,7 +42,7 @@ tips: 仅移动端下删除按钮支持长按快删(通过 touchStart/touchEnd | title | 键盘标题 | `string` | - | | visible | 是否展示 | `boolean` | - | -此外还支持 [Popup](/zh/components/popup) 的以下属性: `stopPropagation` +此外还支持 [Popup](/zh/components/popup) 的以下属性: `stopPropagation`, `mask`, `maskStyle` ## FAQ diff --git a/src/components/number-keyboard/number-keyboard.tsx b/src/components/number-keyboard/number-keyboard.tsx index 7f90df6ef8..de7390d86f 100644 --- a/src/components/number-keyboard/number-keyboard.tsx +++ b/src/components/number-keyboard/number-keyboard.tsx @@ -33,6 +33,8 @@ export type NumberKeyboardProps = { | 'destroyOnClose' | 'forceRender' | 'stopPropagation' + | 'mask' + | 'maskStyle' > & NativeProps<'--adm-safe-area-multiple'> @@ -58,6 +60,8 @@ export const NumberKeyboard: FC = p => { randomOrder, showCloseButton, onInput, + mask, + maskStyle } = props const { locale } = useConfig() @@ -209,7 +213,8 @@ export const NumberKeyboard: FC = p => {