import { ButtonsCallBackParams, ActionBarButtonsRow } from './type'; import { RecordType } from 'firefly-plus-components/es/types'; import { TableColumnCtx } from 'element-plus'; import { ComputedRef, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue'; export interface ActionBarProps { /** * 操作栏名称 默认值为 `'操作栏'` * @version v0.1.0 类型新增ComputedRef */ label?: string | ComputedRef; /** * 操作栏固定 默认值为 `'right'` */ fixed?: string; /** * 显示出来的按钮个数 默认值为 `3` */ showNumber?: number; /** * 操作按钮的类型 默认值为 `'link'` */ type?: 'icon' | 'button' | 'link'; /** * 操作按钮集合 默认值为 `[]` */ buttons?: ActionBarButtonsRow[]; /** * 表格操作栏 el-table-column 的其width 默认值为 `200` */ width?: string | number; /** * 表格操作栏 el-table-column 的其他props 默认值为 `{}` */ actionBarTableColumnProps?: Partial>; } export interface PlusTableActionBarEmits { (e: 'clickAction', data: ButtonsCallBackParams): void; (e: 'clickActionConfirmCancel', data: ButtonsCallBackParams): void; } declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps, { label: string; fixed: string; type: string; buttons: () => never[]; width: number; showNumber: number; actionBarTableColumnProps: () => {}; }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { clickAction: (data: ButtonsCallBackParams) => void; clickActionConfirmCancel: (data: ButtonsCallBackParams) => void; }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps, { label: string; fixed: string; type: string; buttons: () => never[]; width: number; showNumber: number; actionBarTableColumnProps: () => {}; }>>> & { onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined; onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined; }, { width: string | number; type: "link" | "icon" | "button"; label: string | ComputedRef; fixed: string; showNumber: number; buttons: ActionBarButtonsRow[]; actionBarTableColumnProps: Partial>; }, {}>, { "action-bar-more-icon"?(_: {}): any; }>; export default _default; type __VLS_NonUndefinedable = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps = { [K in keyof T]-?: {} extends Pick ? { type: PropType<__VLS_NonUndefinedable>; } : { type: PropType; required: true; }; }; type __VLS_WithDefaults = { [K in keyof Pick]: K extends keyof D ? __VLS_Prettify : P[K]; }; type __VLS_Prettify = { [K in keyof T]: T[K]; } & {}; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; };