You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

127 lines
8.8 KiB

8 months ago
  1. import type { Option, OptionType } from './select.types';
  2. import type { Props } from './useProps';
  3. import type { EmitFn } from 'element-plus/es/utils/vue/typescript';
  4. import type { ExtractPropTypes } from 'vue';
  5. import type { Options, Placement, PopperEffect } from 'element-plus/es/components/popper';
  6. export declare const SelectProps: {
  7. readonly ariaLabel: StringConstructor;
  8. readonly emptyValues: ArrayConstructor;
  9. readonly valueOnClear: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor, BooleanConstructor, FunctionConstructor], unknown, unknown, undefined, boolean>;
  10. readonly allowCreate: BooleanConstructor;
  11. readonly autocomplete: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "none" | "both" | "inline" | "list") | (() => "none" | "both" | "inline" | "list") | ((new (...args: any[]) => "none" | "both" | "inline" | "list") | (() => "none" | "both" | "inline" | "list"))[], unknown, unknown, "none", boolean>;
  12. readonly automaticDropdown: BooleanConstructor;
  13. readonly clearable: BooleanConstructor;
  14. readonly clearIcon: {
  15. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
  16. readonly required: false;
  17. readonly validator: ((val: unknown) => boolean) | undefined;
  18. __epPropKey: true;
  19. };
  20. readonly effect: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string) | (() => PopperEffect) | ((new (...args: any[]) => string) | (() => PopperEffect))[], unknown, unknown, "light", boolean>;
  21. readonly collapseTags: BooleanConstructor;
  22. readonly collapseTagsTooltip: BooleanConstructor;
  23. readonly maxCollapseTags: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 1, boolean>;
  24. readonly defaultFirstOption: BooleanConstructor;
  25. readonly disabled: BooleanConstructor;
  26. readonly estimatedOptionHeight: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, undefined, boolean>;
  27. readonly filterable: BooleanConstructor;
  28. readonly filterMethod: FunctionConstructor;
  29. readonly height: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 274, boolean>;
  30. readonly itemHeight: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 34, boolean>;
  31. readonly id: StringConstructor;
  32. readonly loading: BooleanConstructor;
  33. readonly loadingText: StringConstructor;
  34. readonly modelValue: {
  35. readonly type: import("vue").PropType<any>;
  36. readonly required: false;
  37. readonly validator: ((val: unknown) => boolean) | undefined;
  38. __epPropKey: true;
  39. };
  40. readonly multiple: BooleanConstructor;
  41. readonly multipleLimit: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
  42. readonly name: StringConstructor;
  43. readonly noDataText: StringConstructor;
  44. readonly noMatchText: StringConstructor;
  45. readonly remoteMethod: FunctionConstructor;
  46. readonly reserveKeyword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  47. readonly options: {
  48. readonly type: import("vue").PropType<OptionType[]>;
  49. readonly required: true;
  50. readonly validator: ((val: unknown) => boolean) | undefined;
  51. __epPropKey: true;
  52. };
  53. readonly placeholder: {
  54. readonly type: import("vue").PropType<string>;
  55. readonly required: false;
  56. readonly validator: ((val: unknown) => boolean) | undefined;
  57. __epPropKey: true;
  58. };
  59. readonly teleported: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  60. readonly persistent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  61. readonly popperClass: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
  62. readonly popperOptions: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Partial<Options>) | (() => Partial<Options>) | ((new (...args: any[]) => Partial<Options>) | (() => Partial<Options>))[], unknown, unknown, () => Partial<Options>, boolean>;
  63. readonly remote: BooleanConstructor;
  64. readonly size: {
  65. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
  66. readonly required: false;
  67. readonly validator: ((val: unknown) => boolean) | undefined;
  68. __epPropKey: true;
  69. };
  70. readonly props: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Props) | (() => Props) | ((new (...args: any[]) => Props) | (() => Props))[], unknown, unknown, () => Required<Props>, boolean>;
  71. readonly valueKey: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "value", boolean>;
  72. readonly scrollbarAlwaysOn: BooleanConstructor;
  73. readonly validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  74. readonly offset: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 12, boolean>;
  75. readonly showArrow: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  76. readonly placement: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement) | ((new (...args: any[]) => "top" | "bottom" | "left" | "right" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end") | (() => Placement))[], Placement, unknown, "bottom-start", boolean>;
  77. readonly fallbackPlacements: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Placement[]) | (() => Placement[]) | ((new (...args: any[]) => Placement[]) | (() => Placement[]))[], unknown, unknown, readonly ["bottom-start", "top-start", "right", "left"], boolean>;
  78. readonly tagType: {
  79. readonly default: "info";
  80. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown>>;
  81. readonly required: false;
  82. readonly validator: ((val: unknown) => boolean) | undefined;
  83. readonly __epPropKey: true;
  84. };
  85. readonly tagEffect: {
  86. readonly default: "light";
  87. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "dark" | "light" | "plain", unknown>>;
  88. readonly required: false;
  89. readonly validator: ((val: unknown) => boolean) | undefined;
  90. readonly __epPropKey: true;
  91. };
  92. readonly tabindex: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
  93. readonly appendTo: StringConstructor;
  94. readonly fitInputWidth: import("element-plus/es/utils").EpPropFinalized<readonly [BooleanConstructor, NumberConstructor], unknown, number | boolean, true, boolean>;
  95. };
  96. export declare const OptionProps: {
  97. readonly data: ArrayConstructor;
  98. readonly disabled: BooleanConstructor;
  99. readonly hovering: BooleanConstructor;
  100. readonly item: {
  101. readonly type: import("vue").PropType<Option>;
  102. readonly required: true;
  103. readonly validator: ((val: unknown) => boolean) | undefined;
  104. __epPropKey: true;
  105. };
  106. readonly index: NumberConstructor;
  107. readonly style: ObjectConstructor;
  108. readonly selected: BooleanConstructor;
  109. readonly created: BooleanConstructor;
  110. };
  111. export declare const selectEmits: {
  112. "update:modelValue": (val: ISelectV2Props["modelValue"]) => boolean;
  113. change: (val: ISelectV2Props["modelValue"]) => boolean;
  114. 'remove-tag': (val: unknown) => boolean;
  115. 'visible-change': (visible: boolean) => boolean;
  116. focus: (evt: FocusEvent) => boolean;
  117. blur: (evt: FocusEvent) => boolean;
  118. clear: () => boolean;
  119. };
  120. export declare const optionEmits: {
  121. hover: (index?: number) => index is number;
  122. select: (val: Option, index?: number) => boolean;
  123. };
  124. export type ISelectV2Props = ExtractPropTypes<typeof SelectProps>;
  125. export type IOptionV2Props = ExtractPropTypes<typeof OptionProps>;
  126. export type SelectEmitFn = EmitFn<typeof selectEmits>;
  127. export type OptionEmitFn = EmitFn<typeof optionEmits>;