perf: 优化table action
parent
eeb3fc0898
commit
7174e18918
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue