Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/number-keyboard/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/components/number-keyboard/index.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ tips: 仅移动端下删除按钮支持长按快删(通过 touchStart/touchEnd
| title | 键盘标题 | `string` | - |
| visible | 是否展示 | `boolean` | - |

此外还支持 [Popup](/zh/components/popup) 的以下属性: `stopPropagation`
此外还支持 [Popup](/zh/components/popup) 的以下属性: `stopPropagation`, `mask`, `maskStyle`

## FAQ

Expand Down
7 changes: 6 additions & 1 deletion src/components/number-keyboard/number-keyboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ export type NumberKeyboardProps = {
| 'destroyOnClose'
| 'forceRender'
| 'stopPropagation'
| 'mask'
| 'maskStyle'
> &
NativeProps<'--adm-safe-area-multiple'>

Expand All @@ -58,6 +60,8 @@ export const NumberKeyboard: FC<NumberKeyboardProps> = p => {
randomOrder,
showCloseButton,
onInput,
mask,
maskStyle
} = props

const { locale } = useConfig()
Expand Down Expand Up @@ -209,7 +213,8 @@ export const NumberKeyboard: FC<NumberKeyboardProps> = p => {
<Popup
visible={visible}
getContainer={getContainer}
mask={false}
mask={mask}
maskStyle={maskStyle}
afterClose={props.afterClose}
afterShow={props.afterShow}
className={`${classPrefix}-popup`}
Expand Down
Loading