feat(form): 添加tmagicFormItemProp

This commit is contained in:
roymondchen 2024-08-21 16:35:35 +08:00 committed by roymondchen
parent feaa295606
commit 0979282504
2 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,7 @@
:last-values="lastValues"
:init-values="initValues"
:values="values"
:prop="`${prop}${prop ? '.' : ''}${name}`"
:prop="prop"
@change="onChangeHandler"
></component>

View File

@ -45,6 +45,7 @@
<template #label><span v-html="type === 'checkbox' ? '' : text" :title="config.labelTitle"></span></template>
<TMagicTooltip v-if="tooltip">
<component
:data-tmagic-form-item-prop="itemProp"
:key="key(config)"
:size="size"
:is="tagName"
@ -64,6 +65,7 @@
<component
v-else
:data-tmagic-form-item-prop="itemProp"
:key="key(config)"
:size="size"
:is="tagName"