ny
22 小时以前 282fbc6488f4e8ceb5fda759f963ee88fbf7b999
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import type { ButtonProps } from 'ant-design-vue/es/button/buttonTypes';
import type { TooltipProps } from 'ant-design-vue/es/tooltip/Tooltip';
 
export interface PopConfirm {
  cancel?: Fn;
  cancelText?: string;
  confirm: Fn;
  icon?: string;
  okText?: string;
  placement?:
    | 'bottom'
    | 'bottomLeft'
    | 'bottomRight'
    | 'left'
    | 'leftBottom'
    | 'leftTop'
    | 'right'
    | 'rightBottom'
    | 'rightTop'
    | 'top'
    | 'topLeft'
    | 'topRight';
  title: string;
}
export interface modelConfirm {
  cancelText?: string;
  content?: string;
  okText?: string;
  okType?: string;
  onCancel?: Fn;
  onOk?: Fn;
  title?: string;
}
 
export interface ActionItem extends ButtonProps {
  // 权限编码控制是否显示
  auth?: string;
  color?: 'error' | 'success' | 'warning';
  disabled?: boolean;
  divider?: boolean;
  icon?: string;
  // 业务控制是否显示
  ifShow?: ((action: ActionItem) => boolean) | boolean;
  label?: string;
  modelConfirm?: modelConfirm;
  onClick?: Fn;
  popConfirm?: PopConfirm;
  tooltip?: string | TooltipProps;
}