style(form): 优化feildset,grouplist样式

This commit is contained in:
roymondchen 2024-10-25 17:08:19 +08:00 committed by roymondchen
parent b24b3749c4
commit 9741c4f3df
2 changed files with 2 additions and 6 deletions

View File

@ -1,9 +1,5 @@
<template>
<fieldset
v-if="name ? model[name] : model"
class="m-fieldset"
:style="show ? 'padding: 15px 15px 0 5px;' : 'border: 0'"
>
<fieldset v-if="name ? model[name] : model" class="m-fieldset" :style="show ? 'padding: 15px' : 'border: 0'">
<component v-if="name && config.checkbox" :is="!show ? 'div' : 'legend'">
<TMagicCheckbox
v-model="model[name].value"

View File

@ -25,7 +25,7 @@
@addDiffCount="onAddDiffCount()"
></MFieldsGroupListItem>
<TMagicButton @click="addHandler" size="small" :disabled="disabled" v-if="addable">新增</TMagicButton>
<TMagicButton @click="addHandler" type="primary" :disabled="disabled" v-if="addable">新增</TMagicButton>
<TMagicButton :icon="Grid" size="small" @click="toggleMode" v-if="config.enableToggleMode">切换为表格</TMagicButton>
</div>