mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2026-09-14 07:59:46 +00:00
feat(design): 优化 FormItem 和 colorPicker 样式
This commit is contained in:
parent
1f389ff9fd
commit
2e031cc134
@ -47,8 +47,8 @@ const uiComponent = ui?.component || 'el-form-item';
|
|||||||
|
|
||||||
const adapterType = getDesignConfig('adapterType');
|
const adapterType = getDesignConfig('adapterType');
|
||||||
|
|
||||||
const formInline = inject<boolean>('formInline');
|
const formInline = inject<boolean>('formInline', false);
|
||||||
const formInRow = inject<boolean>('isInRow');
|
const formInRow = inject<boolean>('isInRow', false);
|
||||||
const uiProps = computed<FormItemProps>(() => {
|
const uiProps = computed<FormItemProps>(() => {
|
||||||
const { extra, extraTips, ...rest } = ui?.props(props) || props;
|
const { extra, extraTips, ...rest } = ui?.props(props) || props;
|
||||||
if (isGlobalFlat.value && rest.labelPosition === undefined) {
|
if (isGlobalFlat.value && rest.labelPosition === undefined) {
|
||||||
|
|||||||
@ -2,3 +2,7 @@
|
|||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
width: calc(var(--el-input-width, 100%) - 40px);
|
width: calc(var(--el-input-width, 100%) - 40px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tmagic-design-color-picker {
|
||||||
|
flex: 0 0 auto;
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user