props.ts 603 B

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