fix: 略微调整代码顺序,解决某些时候只读组件渲染错误的问题

This commit is contained in:
gaoyunqi
2024-04-03 10:19:28 +08:00
parent 734c1db302
commit a8fc30a07f

View File

@ -11,8 +11,8 @@
model: Object model: Object
}); });
const fieldValue = ref(genFieldValue(props.value));
const textComponents = ['Input', 'AutoCodeRule', 'DatePicker', 'TimePicker', 'Info', 'Text', 'InputTextArea', 'InputNumber']; const textComponents = ['Input', 'AutoCodeRule', 'DatePicker', 'TimePicker', 'Info', 'Text', 'InputTextArea', 'InputNumber'];
const fieldValue = ref(genFieldValue(props.value));
function parseRangeVal(val, component) { function parseRangeVal(val, component) {
if (component !== 'RangePicker' || !val) { if (component !== 'RangePicker' || !val) {