type.d.ts 802 B

1234567891011121314151617181920212223242526272829303132
  1. import { TreeOptionData, TreeKeysType } from '../common/common';
  2. export interface TdTreeSelectProps<DataOption extends TreeOptionData = TreeOptionData> {
  3. customValue?: {
  4. type: null;
  5. value?: TreeSelectValue;
  6. };
  7. height?: {
  8. type: null;
  9. value?: string | number;
  10. };
  11. keys?: {
  12. type: ObjectConstructor;
  13. value?: TreeKeysType;
  14. };
  15. multiple?: {
  16. type: BooleanConstructor;
  17. value?: boolean;
  18. };
  19. options?: {
  20. type: ArrayConstructor;
  21. value?: Array<DataOption>;
  22. };
  23. value?: {
  24. type: null;
  25. value?: TreeSelectValue;
  26. };
  27. defaultValue?: {
  28. type: null;
  29. value?: TreeSelectValue;
  30. };
  31. }
  32. export declare type TreeSelectValue = string | number | Array<TreeSelectValue>;