mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
fix(form,design): 支持行内表单
This commit is contained in:
parent
654961b349
commit
77f13fa898
@ -1,5 +1,11 @@
|
||||
<template>
|
||||
<component class="tmagic-design-form" ref="form" :is="uiComponent" v-bind="uiProps">
|
||||
<component
|
||||
class="tmagic-design-form"
|
||||
:class="{ 'tmagic-design-form-inline': inline }"
|
||||
ref="form"
|
||||
:is="uiComponent"
|
||||
v-bind="uiProps"
|
||||
>
|
||||
<slot></slot>
|
||||
</component>
|
||||
</template>
|
||||
|
5
packages/form/src/theme/container.scss
Normal file
5
packages/form/src/theme/container.scss
Normal file
@ -0,0 +1,5 @@
|
||||
.tmagic-design-form-inline {
|
||||
.m-form-container {
|
||||
display: inline-flex;
|
||||
}
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
@use "./container.scss";
|
||||
@use "./form-dialog.scss";
|
||||
@use "./form-drawer.scss";
|
||||
@use "./form.scss";
|
||||
|
Loading…
x
Reference in New Issue
Block a user