This commit is contained in:
2025-10-16 21:16:57 +08:00
parent 363630cdb5
commit 9e2fa335aa
13 changed files with 172 additions and 57 deletions

View File

@@ -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