表单 switch 开启值 关闭值
This commit is contained in:
@ -1174,9 +1174,9 @@ const onDefaultValueInput = (str) => {
|
||||
};
|
||||
const onSwitchValueInput = (val, name) => {
|
||||
if (["true", "false"].indexOf(val) > -1) {
|
||||
activeData.value.name = JSON.parse(val);
|
||||
activeData.value[name] = JSON.parse(val);
|
||||
} else {
|
||||
activeData.value.name = isNumberStr(val) ? +val : val;
|
||||
activeData.value[name] = isNumberStr(val) ? +val : val;
|
||||
}
|
||||
};
|
||||
const setTimeValue = (val, type) => {
|
||||
|
Reference in New Issue
Block a user