mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-22 04:58:58 +08:00
refactor(components): 重命名 GhostButton 为 ActionButton 以更准确描述用途
This commit is contained in:
@@ -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 () =>
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user