type.d.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import { TreeOptionData, TreeKeysType } from '../common/common';
  2. export interface TdCascaderProps<CascaderOption extends TreeOptionData = TreeOptionData> {
  3. checkStrictly?: {
  4. type: BooleanConstructor;
  5. value?: boolean;
  6. };
  7. closeBtn?: {
  8. type: BooleanConstructor;
  9. value?: boolean;
  10. };
  11. keys?: {
  12. type: ObjectConstructor;
  13. value?: CascaderKeysType;
  14. };
  15. options?: {
  16. type: ArrayConstructor;
  17. value?: Array<CascaderOption>;
  18. };
  19. placeholder?: {
  20. type: StringConstructor;
  21. value?: string;
  22. };
  23. subTitles?: {
  24. type: ArrayConstructor;
  25. value?: Array<string>;
  26. };
  27. theme?: {
  28. type: StringConstructor;
  29. value?: 'step' | 'tab';
  30. };
  31. title?: {
  32. type: StringConstructor;
  33. value?: string;
  34. };
  35. value?: {
  36. type: null;
  37. value?: string | number;
  38. };
  39. defaultValue?: {
  40. type: null;
  41. value?: string | number;
  42. };
  43. visible?: {
  44. type: BooleanConstructor;
  45. value?: boolean;
  46. };
  47. }
  48. export declare type CascaderKeysType = TreeKeysType;