Skip to content

Commit

Permalink
style(form): 优化feildset,grouplist样式
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen committed Oct 25, 2024
1 parent f265abc commit 135b613
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions packages/form/src/containers/Fieldset.vue
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion packages/form/src/containers/GroupList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 135b613

Please sign in to comment.