index.d.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import type { DataIndex, ColumnType, CustomizeComponent, DefaultRecordType, AlignType, CellEllipsisType, TransformCellText, AdditionalProps } from '../interface';
  2. export interface CellProps<RecordType = DefaultRecordType> {
  3. prefixCls?: string;
  4. record?: RecordType;
  5. /** `column` index is the real show rowIndex */
  6. index?: number;
  7. /** the index of the record. For the render(value, record, renderIndex) */
  8. renderIndex?: number;
  9. dataIndex?: DataIndex;
  10. customRender?: ColumnType<RecordType>['customRender'];
  11. component?: CustomizeComponent;
  12. colSpan?: number;
  13. rowSpan?: number;
  14. ellipsis?: CellEllipsisType;
  15. align?: AlignType;
  16. fixLeft?: number | false;
  17. fixRight?: number | false;
  18. firstFixLeft?: boolean;
  19. lastFixLeft?: boolean;
  20. firstFixRight?: boolean;
  21. lastFixRight?: boolean;
  22. /** @private Used for `expandable` with nest tree */
  23. appendNode?: any;
  24. additionalProps?: AdditionalProps;
  25. rowType?: 'header' | 'body' | 'footer';
  26. isSticky?: boolean;
  27. column?: ColumnType<RecordType>;
  28. cellType?: 'header' | 'body';
  29. transformCellText?: TransformCellText<RecordType>;
  30. }
  31. declare const _default: import("vue").DefineComponent<CellProps<any>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<CellProps<any>>, {
  32. component?: any;
  33. record?: any;
  34. appendNode?: any;
  35. }>;
  36. export default _default;