style: 表头设置-修改恢复默认按钮的交互

--bug=1035606 --user=吕梦园
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001035606
This commit is contained in:
teukkk 2024-05-30 11:11:32 +08:00 committed by 刘瑞斌
parent 5f0135261c
commit 3eebbed5d1
3 changed files with 5 additions and 1 deletions

View File

@ -67,7 +67,9 @@
<a-divider class="!mt-[24px]" /> <a-divider class="!mt-[24px]" />
<div class="mb-[4px] flex items-center justify-between"> <div class="mb-[4px] flex items-center justify-between">
<div class="font-medium text-[var(--color-text-4)]">{{ t('msTable.columnSetting.header') }}</div> <div class="font-medium text-[var(--color-text-4)]">{{ t('msTable.columnSetting.header') }}</div>
<MsButton v-if="hasChange" @click="handleReset">{{ t('msTable.columnSetting.resetDefault') }}</MsButton> <a-tooltip :content="t('msTable.columnSetting.default')" :disabled="hasChange">
<MsButton :disabled="!hasChange" @click="handleReset">{{ t('msTable.columnSetting.resetDefault') }}</MsButton>
</a-tooltip>
</div> </div>
<div class="flex flex-col gap-[4px]"> <div class="flex flex-col gap-[4px]">
<div <div

View File

@ -18,6 +18,7 @@ export default {
clear: 'clear', clear: 'clear',
}, },
columnSetting: { columnSetting: {
default: 'Default',
display: 'Table Settings', display: 'Table Settings',
mode: 'Mode Settings', mode: 'Mode Settings',
drawer: 'Drawer', drawer: 'Drawer',

View File

@ -18,6 +18,7 @@ export default {
clear: '清空', clear: '清空',
}, },
columnSetting: { columnSetting: {
default: '已为默认',
display: '表格设置', display: '表格设置',
mode: '模式设置', mode: '模式设置',
drawer: '抽屉', drawer: '抽屉',