plus-pro-components
Version:
Page level components developed based on Element Plus.
72 lines (70 loc) • 2.61 kB
TypeScript
import { TableColumnCtx } from 'element-plus';
import { ButtonsCallBackParams, ActionBarButtonsRow, ActionBarProps } from './type';
import { RecordType } from 'plus-pro-components/es/types';
import { ComputedRef, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
export interface PlusTableActionBarEmits {
(e: 'clickAction', data: ButtonsCallBackParams): void;
(e: 'clickActionConfirmCancel', data: ButtonsCallBackParams): void;
}
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ActionBarProps>, {
label: string;
fixed: string;
type: string;
buttons: () => never[];
width: number;
showNumber: number;
actionBarTableColumnProps: () => {};
confirmType: string;
showLimitIncludeMore: boolean;
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
clickAction: (data: ButtonsCallBackParams) => void;
clickActionConfirmCancel: (data: ButtonsCallBackParams) => void;
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ActionBarProps>, {
label: string;
fixed: string;
type: string;
buttons: () => never[];
width: number;
showNumber: number;
actionBarTableColumnProps: () => {};
confirmType: string;
showLimitIncludeMore: boolean;
}>>> & {
onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
}, {
width: string | number;
type: "link" | "icon" | "button";
label: string | ComputedRef<string>;
fixed: string;
showNumber: number | ((row: RecordType, index: number) => number);
showLimitIncludeMore: boolean;
buttons: ActionBarButtonsRow[];
actionBarTableColumnProps: Partial< TableColumnCtx<RecordType>>;
confirmType: "messageBox" | "popconfirm";
}, {}>, {
"action-bar-more-icon"?(_: {}): any;
}>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: PropType<T[K]>;
required: true;
};
};
type __VLS_WithDefaults<P, D> = {
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
default: D[K];
}> : P[K];
};
type __VLS_Prettify<T> = {
[K in keyof T]: T[K];
} & {};
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};