segmented.d.ts 2.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. import type { Option } from './types';
  2. import type { ExtractPropTypes } from 'vue';
  3. import type Segmented from './segmented.vue';
  4. export interface Props {
  5. label?: string;
  6. value?: string;
  7. disabled?: string;
  8. }
  9. export declare const defaultProps: Required<Props>;
  10. export declare const segmentedProps: {
  11. ariaLabel: StringConstructor;
  12. 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>;
  13. options: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Option[]) | (() => Option[]) | ((new (...args: any[]) => Option[]) | (() => Option[]))[], unknown, unknown, () => never[], boolean>;
  14. modelValue: import("element-plus/es/utils").EpPropFinalized<(NumberConstructor | StringConstructor | BooleanConstructor)[], unknown, unknown, undefined, boolean>;
  15. props: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => Props) | (() => Props) | ((new (...args: any[]) => Props) | (() => Props))[], unknown, unknown, () => Required<Props>, boolean>;
  16. block: BooleanConstructor;
  17. size: {
  18. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
  19. readonly required: false;
  20. readonly validator: ((val: unknown) => boolean) | undefined;
  21. __epPropKey: true;
  22. };
  23. disabled: BooleanConstructor;
  24. validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
  25. id: StringConstructor;
  26. name: StringConstructor;
  27. };
  28. export type SegmentedProps = ExtractPropTypes<typeof segmentedProps>;
  29. export declare const segmentedEmits: {
  30. "update:modelValue": (val: any) => val is string | number | boolean;
  31. change: (val: any) => val is string | number | boolean;
  32. };
  33. export type SegmentedEmits = typeof segmentedEmits;
  34. export type SegmentedInstance = InstanceType<typeof Segmented> & unknown;