iter(g205): textField 支持密码显隐切换

This commit is contained in:
HIsheR
2026-10-26 19:15:30 +08:00
parent 5e14fc0dde
commit 6ee86ac732
5 changed files with 37 additions and 5 deletions
+6 -1
View File
@@ -1,6 +1,6 @@
{
"$schema": "ui-arch-registry-index/0.1",
"generatedAt": "2026-10-26T11:13:22.375Z",
"generatedAt": "2026-10-26T11:15:10.295Z",
"repoRoot": ".",
"packages": [
{
@@ -410,6 +410,11 @@
"n": "size",
"t": "'sm' | 'md' | 'lg'",
"d": "高度档位:sm 紧凑 / md 默认 / lg 大触控目标,走 --ua-control-h-* 三档;缺省 md"
},
{
"n": "password",
"t": "boolean",
"d": "密码框:原生打点渲染,内置「显示/隐藏」切换按钮(aria-label 同步);缺省普通文本"
}
],
"example": "const name = signal(''); const el = textField({ value: name, placeholder: '输入名字…', onInput: (v) => console.log(v) })",