diff --git a/packages/form/src/containers/Container.vue b/packages/form/src/containers/Container.vue index c000a3b8..95af3e83 100644 --- a/packages/form/src/containers/Container.vue +++ b/packages/form/src/containers/Container.vue @@ -40,6 +40,7 @@ :class="{ 'tmagic-form-hidden': `${itemLabelWidth}` === '0' || !text }" :prop="itemProp" :label-width="itemLabelWidth" + :label-position="config.labelPosition" :rules="rule" > @@ -96,6 +97,7 @@ :class="{ 'tmagic-form-hidden': `${itemLabelWidth}` === '0' || !text }" :prop="itemProp" :label-width="itemLabelWidth" + :label-position="config.labelPosition" :rules="rule" style="background: #f7dadd" > @@ -145,6 +147,7 @@ :class="{ 'tmagic-form-hidden': `${itemLabelWidth}` === '0' || !text }" :prop="itemProp" :label-width="itemLabelWidth" + :label-position="config.labelPosition" :rules="rule" style="background: #def7da" > diff --git a/packages/form/src/index.ts b/packages/form/src/index.ts index e4a708c9..7e395be2 100644 --- a/packages/form/src/index.ts +++ b/packages/form/src/index.ts @@ -116,6 +116,7 @@ export default { app.component('m-form-table', Table); app.component('m-form-tab', Tabs); app.component('m-fields-text', Text); + app.component('m-fields-img-upload', Text); app.component('m-fields-number', Number); app.component('m-fields-number-range', NumberRange); app.component('m-fields-textarea', Textarea);