props.ts 549 B

12345678910111213141516171819202122
  1. import type { ClFormLabelPosition, ClFormRule, PassThroughProps } from "../../types";
  2. export type ClFormItemPassThrough = {
  3. className?: string;
  4. inner?: PassThroughProps;
  5. label?: PassThroughProps;
  6. content?: PassThroughProps;
  7. error?: PassThroughProps;
  8. };
  9. export type ClFormItemProps = {
  10. className?: string;
  11. pt?: ClFormItemPassThrough;
  12. label?: string;
  13. prop?: string;
  14. rules?: ClFormRule[];
  15. labelPosition?: ClFormLabelPosition;
  16. labelWidth?: string | any;
  17. showAsterisk?: boolean | any;
  18. showMessage?: boolean | any;
  19. required?: boolean;
  20. };