props.ts 806 B

123456789101112131415161718192021222324252627282930313233
  1. import type { ClInputType, PassThroughProps } from "../../types";
  2. import type { ClIconProps } from "../cl-icon/props";
  3. export type ClInputPassThrough = {
  4. className?: string;
  5. inner?: PassThroughProps;
  6. prefixIcon?: ClIconProps;
  7. suffixIcon?: ClIconProps;
  8. };
  9. export type ClInputProps = {
  10. className?: string;
  11. pt?: ClInputPassThrough;
  12. modelValue?: string;
  13. type?: ClInputType;
  14. prefixIcon?: string;
  15. suffixIcon?: string;
  16. password?: boolean;
  17. autofocus?: boolean;
  18. disabled?: boolean;
  19. readonly?: boolean;
  20. placeholder?: string;
  21. placeholderClass?: string;
  22. border?: boolean;
  23. clearable?: boolean;
  24. cursorSpacing?: number;
  25. confirmHold?: boolean;
  26. confirmType?: "done" | "go" | "next" | "search" | "send";
  27. adjustPosition?: boolean;
  28. maxlength?: number;
  29. holdKeyboard?: boolean;
  30. precision?: number;
  31. };