修复bug
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user