增加前端请求超时配置
用户部门优化(用户所属部门改为列表,增加是否同步配置项) switch组件支持自定义值 基本表格可编辑字段组件增加onUpdate支持响应式
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
</script>
|
||||
<script lang="ts" setup>
|
||||
import { ref, watch } from 'vue';
|
||||
import { isBoolean } from '/@/utils/is';
|
||||
import {isBoolean, isNumber} from '/@/utils/is';
|
||||
import { useAppStore } from '/@/store/modules/app';
|
||||
|
||||
const props = defineProps({
|
||||
@ -37,7 +37,7 @@
|
||||
watch(
|
||||
() => props.checked,
|
||||
(val) => {
|
||||
value.value = isBoolean(val) ? val : Number(val)!;
|
||||
value.value = isBoolean(val) ? val : isNumber(val)? Number(val)! : val;
|
||||
},
|
||||
{
|
||||
immediate: true,
|
||||
|
||||
@ -89,7 +89,10 @@
|
||||
placeholder: createPlaceholderMessage(unref(getComponent)),
|
||||
...apiSelectProps,
|
||||
...omit(compProps, 'onChange'),
|
||||
[valueField]: value,
|
||||
[valueField]: currentValueRef,
|
||||
["onUpdate:"+valueField]:(newVal)=>{
|
||||
handleChange(newVal);
|
||||
}
|
||||
} as any;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user