mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-03-27 15:50:45 +00:00
fix(form): row容器中如果配置没有type显示异常
This commit is contained in:
parent
728fbc035c
commit
711af79d72
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<TMagicCol v-show="display && 'type' in config && config.type !== 'hidden'" :span="span">
|
<TMagicCol v-show="display && type !== 'hidden'" :span="span">
|
||||||
<Container
|
<Container
|
||||||
:model="model"
|
:model="model"
|
||||||
:lastValues="lastValues"
|
:lastValues="lastValues"
|
||||||
@ -52,4 +52,6 @@ const mForm = inject<FormState | undefined>('mForm');
|
|||||||
const display = computed(() => displayFunction(mForm, props.config.display, props));
|
const display = computed(() => displayFunction(mForm, props.config.display, props));
|
||||||
const changeHandler = (v: any, eventData: ContainerChangeEventData) => emit('change', v, eventData);
|
const changeHandler = (v: any, eventData: ContainerChangeEventData) => emit('change', v, eventData);
|
||||||
const onAddDiffCount = () => emit('addDiffCount');
|
const onAddDiffCount = () => emit('addDiffCount');
|
||||||
|
|
||||||
|
const type = computed(() => (props.config as any).type);
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user