iter(g204): textarea 支持内容自适应高度

This commit is contained in:
HIsheR
2026-10-26 19:13:52 +08:00
parent 197d57b4f8
commit 5bc854b939
5 changed files with 34 additions and 3 deletions
+6 -1
View File
@@ -1,6 +1,6 @@
{
"$schema": "ui-arch-registry-index/0.1",
"generatedAt": "2026-10-26T09:56:49.160Z",
"generatedAt": "2026-10-26T11:13:22.375Z",
"repoRoot": ".",
"packages": [
{
@@ -535,6 +535,11 @@
"n": "maxCount",
"t": "number",
"d": "字数上限:同时设原生 maxlength,并在下方附加块显示实时计数;缺省不限"
},
{
"n": "autosize",
"t": "boolean | { minRows?, maxRows? }",
"d": "自适应内容高度:true 跟随内容涨落,对象态钳最小/最大行数,超出 maxRows 内部滚动;缺省固定行数"
}
],
"example": "const bio = signal(''); textarea({ value: bio, rows: 4, placeholder: '一句话介绍…' })",