Skip to content

Commit

Permalink
feat(form): 添加tmagicFormItemProp
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen committed Aug 30, 2024
1 parent 996968f commit 59eeb7c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/editor/src/fields/DataSourceFieldSelect/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
:last-values="lastValues"
:init-values="initValues"
:values="values"
:prop="`${prop}${prop ? '.' : ''}${name}`"
:prop="prop"
@change="onChangeHandler"
></component>

Expand Down
2 changes: 2 additions & 0 deletions packages/form/src/containers/Container.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -64,6 +65,7 @@

<component
v-else
:data-tmagic-form-item-prop="itemProp"
:key="key(config)"
:size="size"
:is="tagName"
Expand Down
1 change: 1 addition & 0 deletions packages/form/src/fields/Text.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<TMagicInput
v-model="model[name]"
clearable
:data-tmagic-form-item-prop="prop"
:size="size"
:placeholder="config.placeholder"
:disabled="disabled"
Expand Down

0 comments on commit 59eeb7c

Please sign in to comment.