index.d.ts 13 KB

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