Files
WAI_Project_UNIX/uni_modules/cool-ui/components/cl-input/props.ts
2025-07-21 16:47:04 +08:00

33 lines
785 B
TypeScript

import type { ClInputType, PassThroughProps } from "../../types";
import type { ClIconProps } from "../cl-icon/props";
export type ClInputPassThrough = {
className?: string;
inner?: PassThroughProps;
prefixIcon?: ClIconProps;
suffixIcon?: ClIconProps;
};
export type ClInputProps = {
className?: string;
pt?: ClInputPassThrough;
modelValue?: string;
type?: ClInputType;
prefixIcon?: string;
suffixIcon?: string;
password?: boolean;
autofocus?: boolean;
disabled?: boolean;
readonly?: boolean;
placeholder?: string;
placeholderClass?: string;
border?: boolean;
clearable?: boolean;
cursorSpacing?: number;
confirmHold?: boolean;
confirmType?: "done" | "go" | "next" | "search" | "send";
adjustPosition?: boolean;
maxlength?: number;
holdKeyboard?: boolean;
};