index.d.ts 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. export declare const ElSegmented: import("element-plus/es/utils").SFCWithInstall<{
  2. new (...args: any[]): {
  3. $: import("vue").ComponentInternalInstance;
  4. $data: {};
  5. $props: Partial<{
  6. disabled: boolean;
  7. direction: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical") | ((new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical"))[], unknown, unknown>;
  8. block: boolean;
  9. modelValue: import("element-plus/es/utils").EpPropMergeType<(NumberConstructor | StringConstructor | BooleanConstructor)[], unknown, unknown>;
  10. options: import("./src/types.js").Option[];
  11. validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
  12. }> & Omit<Readonly<import("vue").ExtractPropTypes<{
  13. ariaLabel: StringConstructor;
  14. direction: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical") | ((new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical"))[], unknown, unknown, string, boolean>;
  15. options: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/types.js").Option[]) | (() => import("./src/types.js").Option[]) | ((new (...args: any[]) => import("./src/types.js").Option[]) | (() => import("./src/types.js").Option[]))[], unknown, unknown, () => never[], boolean>;
  16. modelValue: import("element-plus/es/utils").EpPropFinalized<(NumberConstructor | StringConstructor | BooleanConstructor)[], unknown, unknown, undefined, boolean>;
  17. block: BooleanConstructor;
  18. size: {
  19. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
  20. readonly required: false;
  21. readonly validator: ((val: unknown) => boolean) | undefined;
  22. __epPropKey: true;
  23. };
  24. disabled: BooleanConstructor;
  25. validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
  26. id: StringConstructor;
  27. name: StringConstructor;
  28. }>> & {
  29. "onUpdate:modelValue"?: ((val: any) => any) | undefined;
  30. onChange?: ((val: any) => any) | undefined;
  31. } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "disabled" | "direction" | "block" | "modelValue" | "options" | "validateEvent">;
  32. $attrs: {
  33. [x: string]: unknown;
  34. };
  35. $refs: {
  36. [x: string]: unknown;
  37. };
  38. $slots: import("vue").Slots;
  39. $root: import("vue").ComponentPublicInstance | null;
  40. $parent: import("vue").ComponentPublicInstance | null;
  41. $emit: ((event: "update:modelValue", val: any) => void) & ((event: "change", val: any) => void);
  42. $el: any;
  43. $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
  44. ariaLabel: StringConstructor;
  45. direction: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical") | ((new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical"))[], unknown, unknown, string, boolean>;
  46. options: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/types.js").Option[]) | (() => import("./src/types.js").Option[]) | ((new (...args: any[]) => import("./src/types.js").Option[]) | (() => import("./src/types.js").Option[]))[], unknown, unknown, () => never[], boolean>;
  47. modelValue: import("element-plus/es/utils").EpPropFinalized<(NumberConstructor | StringConstructor | BooleanConstructor)[], unknown, unknown, undefined, boolean>;
  48. block: BooleanConstructor;
  49. size: {
  50. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
  51. readonly required: false;
  52. readonly validator: ((val: unknown) => boolean) | undefined;
  53. __epPropKey: true;
  54. };
  55. disabled: BooleanConstructor;
  56. validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
  57. id: StringConstructor;
  58. name: StringConstructor;
  59. }>> & {
  60. "onUpdate:modelValue"?: ((val: any) => any) | undefined;
  61. onChange?: ((val: any) => any) | undefined;
  62. }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
  63. "update:modelValue": (val: any) => void;
  64. change: (val: any) => void;
  65. }, string, {
  66. disabled: boolean;
  67. direction: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical") | ((new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical"))[], unknown, unknown>;
  68. block: boolean;
  69. modelValue: import("element-plus/es/utils").EpPropMergeType<(NumberConstructor | StringConstructor | BooleanConstructor)[], unknown, unknown>;
  70. options: import("./src/types.js").Option[];
  71. validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
  72. }> & {
  73. beforeCreate?: (() => void) | (() => void)[];
  74. created?: (() => void) | (() => void)[];
  75. beforeMount?: (() => void) | (() => void)[];
  76. mounted?: (() => void) | (() => void)[];
  77. beforeUpdate?: (() => void) | (() => void)[];
  78. updated?: (() => void) | (() => void)[];
  79. activated?: (() => void) | (() => void)[];
  80. deactivated?: (() => void) | (() => void)[];
  81. beforeDestroy?: (() => void) | (() => void)[];
  82. beforeUnmount?: (() => void) | (() => void)[];
  83. destroyed?: (() => void) | (() => void)[];
  84. unmounted?: (() => void) | (() => void)[];
  85. renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
  86. renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
  87. errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance | null, info: string) => boolean | void)[];
  88. };
  89. $forceUpdate: () => void;
  90. $nextTick: typeof import("vue").nextTick;
  91. $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions): import("vue").WatchStopHandle;
  92. } & Readonly<import("vue").ExtractPropTypes<{
  93. ariaLabel: StringConstructor;
  94. direction: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical") | ((new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical"))[], unknown, unknown, string, boolean>;
  95. options: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/types.js").Option[]) | (() => import("./src/types.js").Option[]) | ((new (...args: any[]) => import("./src/types.js").Option[]) | (() => import("./src/types.js").Option[]))[], unknown, unknown, () => never[], boolean>;
  96. modelValue: import("element-plus/es/utils").EpPropFinalized<(NumberConstructor | StringConstructor | BooleanConstructor)[], unknown, unknown, undefined, boolean>;
  97. block: BooleanConstructor;
  98. size: {
  99. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
  100. readonly required: false;
  101. readonly validator: ((val: unknown) => boolean) | undefined;
  102. __epPropKey: true;
  103. };
  104. disabled: BooleanConstructor;
  105. validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
  106. id: StringConstructor;
  107. name: StringConstructor;
  108. }>> & {
  109. "onUpdate:modelValue"?: ((val: any) => any) | undefined;
  110. onChange?: ((val: any) => any) | undefined;
  111. } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
  112. __isFragment?: never;
  113. __isTeleport?: never;
  114. __isSuspense?: never;
  115. } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
  116. ariaLabel: StringConstructor;
  117. direction: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical") | ((new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical"))[], unknown, unknown, string, boolean>;
  118. options: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("./src/types.js").Option[]) | (() => import("./src/types.js").Option[]) | ((new (...args: any[]) => import("./src/types.js").Option[]) | (() => import("./src/types.js").Option[]))[], unknown, unknown, () => never[], boolean>;
  119. modelValue: import("element-plus/es/utils").EpPropFinalized<(NumberConstructor | StringConstructor | BooleanConstructor)[], unknown, unknown, undefined, boolean>;
  120. block: BooleanConstructor;
  121. size: {
  122. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
  123. readonly required: false;
  124. readonly validator: ((val: unknown) => boolean) | undefined;
  125. __epPropKey: true;
  126. };
  127. disabled: BooleanConstructor;
  128. validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
  129. id: StringConstructor;
  130. name: StringConstructor;
  131. }>> & {
  132. "onUpdate:modelValue"?: ((val: any) => any) | undefined;
  133. onChange?: ((val: any) => any) | undefined;
  134. }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
  135. "update:modelValue": (val: any) => void;
  136. change: (val: any) => void;
  137. }, string, {
  138. disabled: boolean;
  139. direction: import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical") | ((new (...args: any[]) => "horizontal" | "vertical") | (() => "horizontal" | "vertical"))[], unknown, unknown>;
  140. block: boolean;
  141. modelValue: import("element-plus/es/utils").EpPropMergeType<(NumberConstructor | StringConstructor | BooleanConstructor)[], unknown, unknown>;
  142. options: import("./src/types.js").Option[];
  143. validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
  144. }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
  145. $slots: {
  146. default?(_: {
  147. item: import("./src/types.js").Option;
  148. }): any;
  149. };
  150. })> & Record<string, any>;
  151. export default ElSegmented;
  152. export * from './src/segmented';