perf: 优化table action

pull/110/MERGE
xingyu4j 2025-05-19 16:18:48 +08:00
parent eeb3fc0898
commit 7174e18918
2 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
export { default as TableAction } from './table-action.vue';
export * from './icons';
export const ACTION_KEY = 'action_key_msg';
export { default as TableAction } from './table-action.vue';
export * from './typing';

View File

@ -181,10 +181,10 @@ function handleMenuClick(e: any) {
<Dropdown v-if="getDropdownList.length > 0" :trigger="['hover']">
<slot name="more">
<Button size="small" type="link">
<Button :type="getDropdownList[0].type">
<template #icon>
{{ $t('page.action.more') }}
<IconifyIcon class="icon-more" icon="ant-design:more-outlined" />
<IconifyIcon icon="lucide:ellipsis-vertical" />
</template>
</Button>
</slot>
@ -228,7 +228,7 @@ function handleMenuClick(e: any) {
</template>
<style lang="scss">
.table-actions {
.ant-btn {
.ant-btn-link {
padding: 4px;
margin-left: 0;
}