mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-03-24 22:42:25 +00:00
fix(form): row容器中如果配置没有type显示异常
This commit is contained in:
parent
728fbc035c
commit
711af79d72
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user