优化
This commit is contained in:
@@ -52,6 +52,7 @@ const PopupPicker = ({
|
||||
const [defaultValue, setDefaultValue] = useState<(string | number)[]>([]);
|
||||
const [defaultOptions, setDefaultOptions] = useState<PickerOption[][]>([]);
|
||||
const [pickerCurrentValue, setPickerCurrentValue] = useState<(string | number)[]>(value);
|
||||
const [tested, setTested] = useState(false)
|
||||
|
||||
const changePicker = (options: any[], values: any, columnIndex: number) => {
|
||||
// 更新 Picker 的当前值
|
||||
@@ -126,6 +127,9 @@ const PopupPicker = ({
|
||||
}
|
||||
}
|
||||
}, [visible, value]);
|
||||
const callback = (tested: boolean) => {
|
||||
setTested(tested)
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<CommonPopup
|
||||
@@ -142,9 +146,9 @@ const PopupPicker = ({
|
||||
zIndex={1000}
|
||||
style={style}
|
||||
>
|
||||
{type === "ntrp" && (
|
||||
{type === "ntrp" && !tested && (
|
||||
<View className={styles.evaluateCardWrap}>
|
||||
<NTRPTestEntryCard type={EvaluateScene.userEdit} />
|
||||
<NTRPTestEntryCard callback={(flag) => callback(flag)} type={EvaluateScene.userEdit} />
|
||||
</View>
|
||||
// <View className={`${styles["examination-btn"]}}`}>
|
||||
// <View className={`${styles["text-container"]}}`}>
|
||||
|
||||
Reference in New Issue
Block a user