外观
Textarea 多行输入框
编辑多行备注、摘要和说明,使用 v-model 读取当前文本。
import { STextarea } from '@icecreamqaq/shadcn/textarea'使用示例
常用 API
| 成员 | 类型 | 用法 |
|---|---|---|
STextarea.v-model | string | number | 绑定当前值,输入时触发 update:modelValue。 |
STextarea.defaultValue | string | number | 提供初始内容。 |
STextarea.rows | number | 传递给原生 textarea,设置期望的文本行数。 |
STextarea.maxlength | number | 使用浏览器原生长度限制,可结合当前字符串长度显示计数。 |
完整 API
Textarea4 个成员
属性
| 名称 | 类型 |
|---|---|
class | ClassValue |
defaultValue | string | number |
modelValue | string | number |
事件
| 名称 | 类型 |
|---|---|
update:modelValue | ((payload: string | number) => any) |
分组导出
模板标签为 <s-textarea>。
组件 STextarea