refactor(components): 重命名 GhostButton 为 ActionButton 以更准确描述用途

This commit is contained in:
dap
2026-01-20 12:00:59 +08:00
parent c1b886e77f
commit f0253f6971
26 changed files with 100 additions and 100 deletions

View File

@@ -6,8 +6,8 @@ import { omit } from 'lodash-es';
/**
* 表格操作列按钮专用
*/
export const GhostButton = defineComponent({
name: 'GhostButton',
export const ActionButton = defineComponent({
name: 'ActionButton',
props: omit({}, ['type', 'ghost', 'size']),
setup(props, { attrs, slots }) {
return () =>

View File

@@ -2,7 +2,7 @@ import type { App } from 'vue';
import { Button as AButton } from 'antdv-next';
import { GhostButton } from './button';
import { ActionButton } from './button';
/**
* 全局组件注册
@@ -10,7 +10,7 @@ import { GhostButton } from './button';
export function setupGlobalComponent(app: App) {
app.component('AButton', AButton);
// 表格操作列专用按钮
app.component('GhostButton', GhostButton);
app.component('ActionButton', ActionButton);
}
export { default as ApiSwitch } from './api-switch.vue';