修复bug

This commit is contained in:
李瑞
2025-10-12 23:49:02 +08:00
parent 35dfc7ffc8
commit 12600ebdfb
12 changed files with 45 additions and 33 deletions

View File

@@ -19,6 +19,7 @@ interface NutUICalendarProps {
showQuickActions?: boolean;
onHeaderClick?: (date: Date) => void;
showRangeStart?: boolean;
style?: React.CSSProperties;
}
export interface CalendarUIRef {
@@ -36,6 +37,7 @@ const NutUICalendar = React.forwardRef<CalendarUIRef, NutUICalendarProps>(
showRangeStart = true,
showQuickActions = true,
onHeaderClick,
style,
},
ref
) => {
@@ -281,6 +283,7 @@ const NutUICalendar = React.forwardRef<CalendarUIRef, NutUICalendarProps>(
value={[current.getFullYear(), current.getMonth() + 1]}
type="month"
onChange={(value) => handleMonthChange(value)}
style={style}
/>
)}
</View>

View File

@@ -25,6 +25,7 @@ interface PickerProps {
img?: string;
onConfirm?: (options: PickerOption[], values: (string | number)[]) => void;
onChange?: (value: (string | number)[]) => void;
style?: React.CSSProperties
}
const PopupPicker = ({
@@ -36,6 +37,7 @@ const PopupPicker = ({
onChange,
options = [],
type = null,
style,
}: PickerProps) => {
const [defaultValue, setDefaultValue] = useState<(string | number)[]>([]);
const [defaultOptions, setDefaultOptions] = useState<PickerOption[][]>([]);
@@ -106,6 +108,7 @@ const PopupPicker = ({
position="bottom"
round
zIndex={1000}
style={style}
>
{type === "ntrp" && (
<View className={styles.evaluateCardWrap}>