import { App } from 'vue'; import { Plugin as Plugin_2 } from 'vue'; import { VxeColumnSlotTypes } from 'vxe-table'; export declare type AmountDefineProps = RangeAmountProps | NotRangeAmountProps; export declare const amountFormat: (amount?: number, fiexd?: number) => string | undefined; declare interface AmountProps { allowClear?: boolean; disabled?: boolean; precision?: number; } declare type AmountValue = T extends true ? [number | undefined, number | undefined] : number | undefined; export declare const arrToTree: (arr: any[], fieldProps?: { id?: string; children?: string; parentId?: string; }) => any[]; export declare interface ButtonGroupDefineProps { list?: ButtonGroupItem[]; } export declare interface ButtonGroupItem { title: string; align?: 'left' | 'right'; hide?: boolean; type?: 'primary' | 'ghost' | 'dashed' | 'link' | 'text' | 'default'; danger?: boolean; disabled?: boolean; onClick?: (e?: MouseEvent) => void; } export declare interface ControlPanelDefineProps { title?: string; buttonTitle?: string; showButton?: boolean; width?: number | string; } export declare interface DatePickerDefineProps { isRange?: boolean; allowClear?: boolean; picker?: 'date' | 'week' | 'month' | 'quarter' | 'year'; showTime?: boolean; value?: string | [string, string]; disabled?: boolean; placeholder?: string | [string, string]; } declare const _default: { install(app: App): any; }; export default _default; export declare const defaultFields: (fields?: { title?: string; value?: string; id?: string; children?: string; parentId?: string; filter?: string; }) => { title: string; value: string; id: string; children: string; parentId: string; filter: string; } & { title?: string; value?: string; id?: string; children?: string; parentId?: string; filter?: string; }; declare type DefaultSlotParams = VxeColumnSlotTypes.DefaultSlotParams; export declare const filterTreeData: (str: string | undefined, tree: any[], fieldProps?: { children?: string; filter?: string; }) => any[]; export declare interface FormDefineProps { list: FormItem[]; layout?: 'horizontal' | 'vertical' | 'inline'; col?: number; titleWidth?: number; minWidth?: number; value?: any; autocomplete?: string; replaceValue?: any; } declare interface FormItem { field: string; type: string; title?: string; hide?: boolean; scale?: number; rules?: Record | any[]; request?: { adapter: any; url: string; method?: string; params?: Record | (() => Record); body?: Record | (() => Record); dataTreating?: (any: any) => null | { data: any; total: number; }; }; itemProps?: ItemProps; itemOn?: Record void>; } export declare const getDeepData: (data: Record, deepStr: string) => any; export declare interface IconBackgroundDefineProps { icons: any[]; speed?: number; color?: string; rotate?: number; } export declare interface InputDefineProps { type?: 'input' | 'textarea' | 'password'; disabled?: boolean; placeholder?: string; allowClear?: boolean; value?: string; } export declare interface InputNumberDefineProps { disabled?: boolean; placeholder?: string; allowClear?: boolean; value?: number; precision?: number; } declare type ItemProps = T extends 'input' | 'textarea' | 'password' ? Omit : T extends 'select' ? Omit : T extends 'treeSelect' ? Omit : T extends 'datePicker' ? Omit : T extends 'amount' ? Omit : T extends 'switch' ? Omit : T extends 'inputNumber' ? Omit : T extends 'tree' ? Omit : T extends 'order' ? Omit : Omit, 'value'>; export declare interface MenuFrameworkDefineProps { list?: any[]; value?: string; width?: number; } export declare interface ModalDefineProps { title?: string; buttonTitle?: string; showButton?: boolean; width?: number | string; footer?: any[]; isRender?: boolean; loading?: boolean; loadingTip?: string; } declare type NotRangeAmountProps = { isRange?: false; value?: AmountValue; placeholder?: string; } & AmountProps; export declare const OAmount: any; export declare const OButtonGroup: any; export declare const OConfig: any; export declare const OControlPanel: any; export declare const ODatePicker: any; export declare const OForm: any; export declare const OIconBackground: any; export declare const OInput: any; export declare const OInputNumber: any; export declare const OMenuFramework: any; export declare const OModal: any; export declare const OOrder: any; export declare const OQuery: any; export declare interface OrderDefineProps { value?: any[]; fieldProps?: { title?: string; value?: string; }; } export declare const OSelect: any; export declare const OSwitch: any; export declare const OTable: any; export declare const OTree: any; export declare const OTreeSelect: any; export declare interface QueryDefineProps extends FormDefineProps { } declare type RangeAmountProps = { isRange: true; value?: AmountValue; placeholder?: [string, string]; } & AmountProps; export declare interface SelectDefineProps { data?: any[]; fieldProps?: { title?: string; value?: string; filter?: string; }; allowClear?: boolean; multiple?: boolean; value?: string | number | Array; disabled?: boolean; placeholder?: string; } export declare type SFCWithInstall = T & Plugin_2; export declare interface SwitchDefineProps { value?: SwitchValue; disabled?: boolean; checkedChildren?: string; checkedValue?: SwitchValue; unCheckedChildren?: string; unCheckedValue?: SwitchValue; } declare type SwitchValue = string | number | boolean; export declare interface TableColumn { field: string; title?: string; fixed?: 'left' | 'right' | boolean; width?: number; 'min-width'?: number; hide?: boolean; visible?: boolean; align?: 'left' | 'center' | 'right'; 'header-align'?: 'left' | 'center' | 'right'; 'footer-align'?: 'left' | 'center' | 'right'; formatter?: ((props: { cellValue: string; row: any[]; column: DefaultSlotParams['column']; columnIndex: number; rowIndex: number; }) => string) | any[] | string; customRender?: (props: { text: string; record: any[]; index: number; column: DefaultSlotParams['column']; }) => string; render?: { component: any; props?: Record | ((props: { text: string; record: any[]; index: number; column: TableColumn; slotProps: DefaultSlotParams; }) => Record); emits?: Record void> | ((props: { text: string; record: any; index: number; column: TableColumn; slotProps: DefaultSlotParams; }) => Record void>); }; summary?: (props?: { column?: TableColumn; data?: any[]; }) => string[]; } export declare interface TableDefineProps { name?: string; rowKey?: string; index?: boolean; columns?: TableColumn[]; data?: any[]; selection?: boolean; selectType?: 'checkbox' | 'radio'; checkStrictly?: boolean; clickRowSelect?: boolean; childrenColumnName?: string; pagination?: boolean; treeNodeKey?: string; height?: string; loading?: boolean; pageNum?: number; pageSize?: number; total?: number; request?: { adapter: any; url: string; method?: string; params?: Record | ((tableInfo: TableInfo) => Record); body?: Record | ((tableInfo: TableInfo) => Record); dataTreating?: (props: any) => null | { data: any[]; total: number; }; }; } declare interface TableInfo { pageNum: number; pageSize: number; } export declare interface TreeDefineProps { data?: any[]; fieldProps?: { children: string; title?: string; value?: string; filter?: string; }; multiple?: boolean; isParent?: boolean; height?: string; value?: string | string[]; disabled?: boolean; showCheckedStrategy?: 'SHOW_ALL' | 'SHOW_PARENT' | 'SHOW_CHILD'; } export declare interface TreeSelectDefineProps { data?: any[]; fieldProps?: { children: string; title?: string; value?: string; filter?: string; }; allowClear?: boolean; multiple?: boolean; value?: string | number | Array; isParent?: boolean; disabled?: boolean; placeholder?: string; showCheckedStrategy?: 'SHOW_ALL' | 'SHOW_PARENT' | 'SHOW_CHILD'; showAll?: boolean; treeDefaultExpandAll?: boolean; } export declare function withInstall(comp: T): SFCWithInstall; export { }