common.d.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import type { CSSProperties } from 'vue';
  2. import type { Column, KeyType } from './types';
  3. export type AnyColumn = Column<any>;
  4. /**
  5. * @Note even though we can use `string[] | string` as the type but for
  6. * convenience here we only use `string` as the acceptable value here.
  7. */
  8. export declare const classType: StringConstructor;
  9. export declare const columns: {
  10. readonly type: import("vue").PropType<AnyColumn[]>;
  11. readonly required: true;
  12. };
  13. export declare const column: {
  14. readonly type: import("vue").PropType<AnyColumn>;
  15. };
  16. export declare const fixedDataType: {
  17. readonly type: import("vue").PropType<any[]>;
  18. };
  19. export declare const dataType: {
  20. readonly required: true;
  21. readonly type: import("vue").PropType<any[]>;
  22. };
  23. export declare const expandColumnKey: StringConstructor;
  24. export declare const expandKeys: {
  25. readonly type: import("vue").PropType<KeyType[]>;
  26. readonly default: () => never[];
  27. };
  28. export declare const requiredNumber: {
  29. readonly type: NumberConstructor;
  30. readonly required: true;
  31. };
  32. export declare const rowKey: {
  33. readonly type: import("vue").PropType<KeyType>;
  34. readonly default: "id";
  35. };
  36. /**
  37. * @note even though we can use `StyleValue` but that would be difficult for us to mapping them,
  38. * so we only use `CSSProperties` as the acceptable value here.
  39. */
  40. export declare const styleType: {
  41. type: import("vue").PropType<CSSProperties>;
  42. };