Descriptions class 改为 classes.root,Image error slot 改为 fallback,Tree 标题 slot 改为 titleRender,FormItem labelCol.style 改为 flex。 Transfer 事件和 footer slot 对齐 TransferKey/TransferDirection,并修复 Button color、ActionItem color、重复 attachments 等类型问题。 web-antdv-next 清缓存 typecheck 0 error。
28 lines
687 B
TypeScript
28 lines
687 B
TypeScript
import type { ButtonProps, ButtonType, TooltipProps } from 'antdv-next';
|
|
|
|
export interface PopConfirm {
|
|
title: string;
|
|
okText?: string;
|
|
cancelText?: string;
|
|
confirm: () => void;
|
|
cancel?: () => void;
|
|
icon?: string;
|
|
disabled?: boolean;
|
|
}
|
|
|
|
export interface ActionItem extends Omit<ButtonProps, 'color'> {
|
|
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;
|
|
}
|