未验证 提交 c3222497 编写于 作者: D Drjingfubo 提交者: GitHub

fix(numberkeyboard): add new props overlay (#661)

上级 7418518b
......@@ -17,6 +17,7 @@ export interface NumberKeyboardProps {
confirmText: string
title: string
visible: boolean
overlay: boolean
type: string
customKey: Array<string>
randomKeys: boolean
......@@ -31,6 +32,7 @@ const defaultProps = {
confirmText: '',
title: '',
visible: false,
overlay: false,
type: 'default',
customKey: [],
className: '',
......@@ -47,6 +49,7 @@ export const NumberKeyboard: FunctionComponent<
title,
confirmText,
visible,
overlay,
type,
customKey,
randomKeys,
......@@ -173,6 +176,7 @@ export const NumberKeyboard: FunctionComponent<
<div>
<Popup
visible={show}
overlay={overlay}
position="bottom"
popClass={popClass}
onClickOverlay={onClose}
......
......@@ -17,6 +17,7 @@ export interface NumberKeyboardProps {
confirmText: string
title: string
visible: boolean
overlay: boolean
type: string
customKey: Array<string>
randomKeys: boolean
......@@ -31,6 +32,7 @@ const defaultProps = {
confirmText: '',
title: '',
visible: false,
overlay: true,
type: 'default',
customKey: [],
className: '',
......@@ -47,6 +49,7 @@ export const NumberKeyboard: FunctionComponent<
title,
confirmText,
visible,
overlay,
type,
customKey,
randomKeys,
......@@ -176,6 +179,7 @@ export const NumberKeyboard: FunctionComponent<
position="bottom"
popClass={popClass}
onClickOverlay={onClose}
overlay={overlay}
onClickCloseIcon={onClose}
overlayStyle={{ backgroundColor: 'rgba(0, 0, 0, 0)' }}
>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册