props.ts 834 B

12345678910111213141516171819202122232425262728293031323334
  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. placeholderStyle?: string;
  23. border?: boolean;
  24. clearable?: boolean;
  25. cursorSpacing?: number;
  26. confirmHold?: boolean;
  27. confirmType?: "done" | "go" | "next" | "search" | "send";
  28. adjustPosition?: boolean;
  29. maxlength?: number;
  30. holdKeyboard?: boolean;
  31. precision?: number;
  32. };