type.d.ts 1009 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { KeysType } from '../common/common';
  2. export interface TdDropdownItemProps {
  3. disabled?: {
  4. type: BooleanConstructor;
  5. value?: boolean;
  6. };
  7. keys?: {
  8. type: ObjectConstructor;
  9. value?: KeysType;
  10. };
  11. label?: {
  12. type: StringConstructor;
  13. value?: string;
  14. };
  15. multiple?: {
  16. type: BooleanConstructor;
  17. value?: boolean;
  18. };
  19. options?: {
  20. type: ArrayConstructor;
  21. value?: Array<DropdownOption>;
  22. };
  23. optionsColumns?: {
  24. type: null;
  25. value?: string | number;
  26. };
  27. placement?: {
  28. type: StringConstructor;
  29. value?: 'left' | 'right';
  30. };
  31. value?: {
  32. type: null;
  33. value?: DropdownValue;
  34. };
  35. defaultValue?: {
  36. type: null;
  37. value?: DropdownValue;
  38. };
  39. }
  40. export interface DropdownOption {
  41. label: string;
  42. disabled: boolean;
  43. value: DropdownValue;
  44. }
  45. export declare type DropdownValue = string | number | Array<DropdownValue>;