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'; export * from './typing';

View File

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