fix(form): row容器中如果配置没有type显示异常

This commit is contained in:
roymondchen 2026-03-23 15:23:41 +08:00
parent 728fbc035c
commit 711af79d72

View File

@ -1,5 +1,5 @@
<template>
<TMagicCol v-show="display && 'type' in config && config.type !== 'hidden'" :span="span">
<TMagicCol v-show="display && type !== 'hidden'" :span="span">
<Container
:model="model"
:lastValues="lastValues"
@ -52,4 +52,6 @@ const mForm = inject<FormState | undefined>('mForm');
const display = computed(() => displayFunction(mForm, props.config.display, props));
const changeHandler = (v: any, eventData: ContainerChangeEventData) => emit('change', v, eventData);
const onAddDiffCount = () => emit('addDiffCount');
const type = computed(() => (props.config as any).type);
</script>