form-item.d.ts 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import type { ExtractPropTypes } 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<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", 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>;