dropdown-item.d.ts 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. import { RelationsOptions, SuperComponent } from '../common/src/index';
  2. import type { TdDropdownItemProps } from './type';
  3. export interface DropdownItemProps extends TdDropdownItemProps {
  4. }
  5. export default class DropdownMenuItem extends SuperComponent {
  6. properties: {
  7. disabled?: {
  8. type: BooleanConstructor;
  9. value?: boolean;
  10. };
  11. keys?: {
  12. type: ObjectConstructor;
  13. value?: import("../common/common").KeysType;
  14. };
  15. label?: {
  16. type: StringConstructor;
  17. value?: string;
  18. };
  19. multiple?: {
  20. type: BooleanConstructor;
  21. value?: boolean;
  22. };
  23. options?: {
  24. type: ArrayConstructor;
  25. value?: import("./type").TdDropdownItemOption[];
  26. };
  27. optionsColumns?: {
  28. type: StringConstructor;
  29. optionalTypes: NumberConstructor[];
  30. value?: string | number;
  31. };
  32. optionsLayout?: {
  33. type: StringConstructor;
  34. value?: "columns" | "tree";
  35. };
  36. value?: {
  37. type: StringConstructor;
  38. optionalTypes: (ArrayConstructor | NumberConstructor)[];
  39. value?: import("./type").TdDropdownItemOptionValueType | import("./type").TdDropdownItemOptionValueType[];
  40. };
  41. defaultValue?: {
  42. type: StringConstructor;
  43. optionalTypes: (ArrayConstructor | NumberConstructor)[];
  44. value?: import("./type").TdDropdownItemOptionValueType | import("./type").TdDropdownItemOptionValueType[];
  45. };
  46. };
  47. data: {
  48. prefix: string;
  49. classPrefix: string;
  50. show: boolean;
  51. top: number;
  52. maskHeight: number;
  53. contentClasses: string;
  54. leafLevel: number;
  55. treeOptions: any[];
  56. initValue: any;
  57. hasChanged: boolean;
  58. duration: string | number;
  59. zIndex: number;
  60. overlay: boolean;
  61. labelAlias: string;
  62. valueAlias: string;
  63. };
  64. parent: any;
  65. relations: RelationsOptions;
  66. controlledProps: {
  67. key: string;
  68. event: string;
  69. }[];
  70. observers: {
  71. value(v: any): void;
  72. 'initValue, value'(v1: any, v2: any): void;
  73. label(): void;
  74. keys(obj: any): void;
  75. show(visible: any): void;
  76. };
  77. lifetimes: {
  78. attached(): void;
  79. };
  80. methods: {
  81. buildTreeOptions(): void;
  82. closeDropdown(): void;
  83. getParentBottom(parent: any, cb: any): void;
  84. handleTreeClick(e: any): void;
  85. handleRadioChange(e: any): void;
  86. handleMaskClick(): void;
  87. handleReset(): void;
  88. handleConfirm(): void;
  89. onLeaved(): void;
  90. };
  91. }