UNPKG

@aplus-frontend/ui

Version:

67 lines (66 loc) 1.62 kB
import { ApColumnState, ApTableSettingType, ValueEnum } from '../interface'; export type ApTablePaginationProps = { /** dataSource的总数量 */ total?: number; /** 当前页码 */ current?: number; 'onUpdate:current'?: (current: number) => void; /** 当前pagesize */ pageSize?: number; 'onUpdate:pageSize'?: (pageSize: number) => void; }; export type ApTableIndexProps = { /** * 是否显示有边框的样式 */ bordered?: boolean; /** * 当前的索引(内部使用,请不要传入) */ value?: any; }; export type ApTableStatusProps = { /** * 配置的值到配置的枚举值 */ valueEnum: ValueEnum; /** * 当前的值 */ value?: any; }; export type ApTableSettingModalProps = { /** * 表格列配置 */ config?: ApTableSettingType; }; export type Key = string | number; export type ApTableSettingTreeSelectProps = { /** * 表格状态 */ value: ApColumnState[]; }; export type ApTableSettingSelectGroupProps = { /** * 二级选中状态(v-model) */ value: ApColumnState; }; export type ApTableSettingSorterProps = ApTableSettingTreeSelectProps & { onReset: () => void; }; export type SortableItemProps = { value: ApColumnState; 'onUpdate:value'?: (nextVal: ApColumnState) => void; }; export type SortableItemMetaProps = { value: ApColumnState; 'onUpdate:value'?: (nextVal: ApColumnState) => void; level?: 1 | 2; open?: boolean; }; export interface ApTableDynamicCompProps { customRender: (params: any) => any; }