UI优化
This commit is contained in:
@@ -17,6 +17,9 @@ interface PickerOption {
|
||||
}
|
||||
|
||||
interface PickerProps {
|
||||
title?: string;
|
||||
showHeader?: boolean;
|
||||
confirmText?: string;
|
||||
visible: boolean;
|
||||
setvisible: (visible: boolean) => void;
|
||||
options?: PickerOption[][] | PickerOption[];
|
||||
@@ -29,6 +32,9 @@ interface PickerProps {
|
||||
}
|
||||
|
||||
const PopupPicker = ({
|
||||
confirmText,
|
||||
title,
|
||||
showHeader,
|
||||
visible,
|
||||
setvisible,
|
||||
value = [],
|
||||
@@ -99,11 +105,11 @@ const PopupPicker = ({
|
||||
<CommonPopup
|
||||
visible={visible}
|
||||
onClose={dialogClose}
|
||||
showHeader={false}
|
||||
title={null}
|
||||
showHeader={showHeader || false}
|
||||
title={title || null}
|
||||
hideFooter={false}
|
||||
cancelText="取消"
|
||||
confirmText="完成"
|
||||
confirmText={confirmText || "完成"}
|
||||
onConfirm={handleConfirm}
|
||||
position="bottom"
|
||||
round
|
||||
|
||||
Reference in New Issue
Block a user