index.d.ts 10 KB

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