dropdown-item.d.ts 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. externalClasses: string[];
  7. properties: {
  8. customStyle?: {
  9. type: StringConstructor;
  10. value?: string;
  11. };
  12. disabled?: {
  13. type: BooleanConstructor;
  14. value?: boolean;
  15. };
  16. externalClasses?: {
  17. type: ArrayConstructor;
  18. value?: ["t-class", "t-class-content", "t-class-column", "t-class-column-item", "t-class-column-item-label", "t-class-footer"];
  19. };
  20. keys?: {
  21. type: ObjectConstructor;
  22. value?: import("../common/common").KeysType;
  23. };
  24. label?: {
  25. type: StringConstructor;
  26. value?: string;
  27. };
  28. multiple?: {
  29. type: BooleanConstructor;
  30. value?: boolean;
  31. };
  32. options?: {
  33. type: ArrayConstructor;
  34. value?: import("./type").DropdownOption[];
  35. };
  36. optionsColumns?: {
  37. type: null;
  38. value?: string | number;
  39. };
  40. optionsLayout?: {
  41. type: StringConstructor;
  42. value?: string;
  43. };
  44. value?: {
  45. type: null;
  46. value?: import("./type").DropdownValue;
  47. };
  48. defaultValue?: {
  49. type: null;
  50. value?: import("./type").DropdownValue;
  51. };
  52. };
  53. data: {
  54. prefix: string;
  55. classPrefix: string;
  56. show: boolean;
  57. top: number;
  58. maskHeight: number;
  59. initValue: any;
  60. hasChanged: boolean;
  61. duration: string | number;
  62. zIndex: number;
  63. overlay: boolean;
  64. labelAlias: string;
  65. valueAlias: string;
  66. };
  67. parent: any;
  68. relations: RelationsOptions;
  69. controlledProps: {
  70. key: string;
  71. event: string;
  72. }[];
  73. observers: {
  74. keys(obj: any): void;
  75. value(v: any): void;
  76. label(): void;
  77. show(visible: any): void;
  78. };
  79. methods: {
  80. closeDropdown(): void;
  81. getParentBottom(parent: any, cb: any): void;
  82. handleTreeClick(e: any): void;
  83. handleRadioChange(e: any): void;
  84. handleMaskClick(): void;
  85. handleReset(): void;
  86. handleConfirm(): void;
  87. onLeaved(): void;
  88. };
  89. }