69e25d38ba1847e7c4fc4b284487762a69fcdc3799f439c5572069b30420198ab8ffb65fad9a85f999949c06a2ee38ea1f8f0720a9d7b28a2cc5ec98c58a40 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue';
  2. import type { Arrayable } from 'element-plus/es/utils';
  3. import type { FormItemRule } from './types';
  4. export declare const formItemValidateStates: readonly ["", "error", "validating", "success"];
  5. export type FormItemValidateState = typeof formItemValidateStates[number];
  6. export type FormItemProp = Arrayable<string>;
  7. export declare const formItemProps: {
  8. readonly label: StringConstructor;
  9. readonly labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
  10. readonly labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
  11. readonly prop: {
  12. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => FormItemProp))[], unknown, unknown>>;
  13. readonly required: false;
  14. readonly validator: ((val: unknown) => boolean) | undefined;
  15. __epPropKey: true;
  16. };
  17. readonly required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
  18. readonly rules: {
  19. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>) | ((new (...args: any[]) => FormItemRule | FormItemRule[]) | (() => Arrayable<FormItemRule>))[], unknown, unknown>>;
  20. readonly required: false;
  21. readonly validator: ((val: unknown) => boolean) | undefined;
  22. __epPropKey: true;
  23. };
  24. readonly error: StringConstructor;
  25. readonly validateStatus: {
  26. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
  27. readonly required: false;
  28. readonly validator: ((val: unknown) => boolean) | undefined;
  29. __epPropKey: true;
  30. };
  31. readonly for: StringConstructor;
  32. readonly inlineMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
  33. readonly showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  34. readonly size: {
  35. readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", unknown>>;
  36. readonly required: false;
  37. readonly validator: ((val: unknown) => boolean) | undefined;
  38. __epPropKey: true;
  39. };
  40. };
  41. export type FormItemProps = ExtractPropTypes<typeof formItemProps>;
  42. export type FormItemPropsPublic = __ExtractPublicPropTypes<typeof formItemProps>;