button.d.ts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import type { ExtractPropTypes } from 'vue';
  2. export declare const buttonTypes: readonly ["default", "primary", "success", "warning", "info", "danger", "text", ""];
  3. export declare const buttonNativeTypes: readonly ["button", "submit", "reset"];
  4. export declare const buttonProps: {
  5. readonly size: {
  6. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
  7. readonly required: false;
  8. readonly validator: ((val: unknown) => boolean) | undefined;
  9. __epPropKey: true;
  10. };
  11. readonly disabled: BooleanConstructor;
  12. readonly type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "default" | "primary" | "success" | "warning" | "info" | "danger" | "text", unknown, "", boolean>;
  13. readonly icon: {
  14. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
  15. readonly required: false;
  16. readonly validator: ((val: unknown) => boolean) | undefined;
  17. __epPropKey: true;
  18. };
  19. readonly nativeType: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "button" | "submit" | "reset", unknown, "button", boolean>;
  20. readonly loading: BooleanConstructor;
  21. readonly loadingIcon: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown, () => import("vue").DefineComponent<{}, {}, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{}>>, {}>, boolean>;
  22. readonly plain: BooleanConstructor;
  23. readonly text: BooleanConstructor;
  24. readonly link: BooleanConstructor;
  25. readonly bg: BooleanConstructor;
  26. readonly autofocus: BooleanConstructor;
  27. readonly round: BooleanConstructor;
  28. readonly circle: BooleanConstructor;
  29. readonly color: StringConstructor;
  30. readonly dark: BooleanConstructor;
  31. readonly autoInsertSpace: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
  32. };
  33. export declare const buttonEmits: {
  34. click: (evt: MouseEvent) => boolean;
  35. };
  36. export declare type ButtonProps = ExtractPropTypes<typeof buttonProps>;
  37. export declare type ButtonEmits = typeof buttonEmits;
  38. export declare type ButtonType = ButtonProps['type'];
  39. export declare type ButtonNativeType = ButtonProps['nativeType'];
  40. export interface ButtonConfigContext {
  41. autoInsertSpace?: boolean;
  42. }