1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| import type {
| ButtonProps,
| ButtonType,
| } from 'ant-design-vue/es/button/buttonTypes';
| import type { TooltipProps } from 'ant-design-vue/es/tooltip/Tooltip';
|
| export interface PopConfirm {
| title: string;
| okText?: string;
| cancelText?: string;
| confirm: () => void;
| cancel?: () => void;
| icon?: string;
| disabled?: boolean;
| }
|
| export interface ActionItem extends ButtonProps {
| onClick?: () => void;
| type?: ButtonType;
| label?: string;
| color?: 'error' | 'success' | 'warning';
| icon?: string;
| popConfirm?: PopConfirm;
| disabled?: boolean;
| divider?: boolean;
| // 权限编码控制是否显示
| auth?: string[];
| // 业务控制是否显示
| ifShow?: ((action: ActionItem) => boolean) | boolean;
| tooltip?: string | TooltipProps;
| }
|
|