增加前端请求超时配置

用户部门优化(用户所属部门改为列表,增加是否同步配置项)
switch组件支持自定义值
基本表格可编辑字段组件增加onUpdate支持响应式
This commit is contained in:
yaoyn
2024-11-28 15:47:59 +08:00
parent 4231f1dd6d
commit 020a0a20ee
12 changed files with 172 additions and 18 deletions

View File

@ -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,

View File

@ -89,7 +89,10 @@
placeholder: createPlaceholderMessage(unref(getComponent)),
...apiSelectProps,
...omit(compProps, 'onChange'),
[valueField]: value,
[valueField]: currentValueRef,
["onUpdate:"+valueField]:(newVal)=>{
handleChange(newVal);
}
} as any;
});