eslink-ui-plus
Version:
vue3 component library, css framework
30 lines (28 loc) • 942 B
text/typescript
import { keyConfigType } from "../utils";
export interface operaterType {
key: string;
label: string;
type?: "select" | "button";
selected?: string;
// type为button时可配置否则无效
buttonType?: "success" | "error" | "warn" | "default" | "pure";
// type为button时可配置否则无效
buttonPlain?: boolean;
// type为button|select时可配置否则无效
buttonDisabled?: boolean;
// type为select时可配置否则无效
source?: any[];
// type为select时配置im-option是键值匹配
keyConfig?: keyConfigType;
// type为button|select时可配置否则无效
click?: (item?: operaterType) => any;
// type为select时可配置否则无效
select?: ($event: optionSelectedEventType, item: operaterType) => any;
}
export type operateSourceType = operaterType[];
export type optionSelectedEventType = {
item: {
[key: string]: string;
};
value: string;
};