props.ts 418 B

12345678910111213141516
  1. import type { ClFormItemPassThrough } from "./props";
  2. import type { ClFormRule } from "../cl-form/props";
  3. export type ClFormItemProps = {
  4. className?: string;
  5. pt?: ClFormItemPassThrough;
  6. label?: string;
  7. prop?: string;
  8. required?: boolean;
  9. labelPosition?: "left" | "top" | "right";
  10. labelWidth?: string;
  11. rules?: ClFormRule | ClFormRule[];
  12. showRequiredAsterisk?: boolean;
  13. error?: string;
  14. disabled?: boolean;
  15. };