Files
WAI_Project_UNIX/uni_modules/cool-ui/components/cl-textarea/props.ts

38 lines
948 B
TypeScript
Raw Normal View History

2025-07-21 16:47:04 +08:00
import type { PassThroughProps } from "../../types";
export type ClTextareaPassThrough = {
className?: string;
inner?: PassThroughProps;
};
export type ClTextareaProps = {
className?: string;
pt?: ClTextareaPassThrough;
modelValue?: string;
border?: boolean;
disabled?: boolean;
readonly?: boolean;
showWordLimit?: boolean;
name?: string;
placeholder?: string;
placeholderClass?: string;
maxlength?: number;
autofocus?: boolean;
confirmType?: "done" | "go" | "next" | "search" | "send";
cursor?: number;
confirmHold?: boolean;
height?: any;
autoHeight?: boolean;
fixed?: boolean;
cursorSpacing?: number;
cursorColor?: string;
showConfirmBar?: boolean;
selectionStart?: number;
selectionEnd?: number;
adjustPosition?: boolean;
inputmode?: "none" | "text" | "decimal" | "numeric" | "tel" | "search" | "email" | "url";
holdKeyboard?: boolean;
disableDefaultPadding?: boolean;
adjustKeyboardTo?: "cursor" | "bottom";
};