iter(g181): 控件高度统一三档

This commit is contained in:
HIsheR
2026-10-26 17:30:00 +08:00
parent 1289b54af3
commit 85f009dff8
11 changed files with 123 additions and 14 deletions
+21 -1
View File
@@ -1,6 +1,6 @@
{
"$schema": "ui-arch-registry-index/0.1",
"generatedAt": "2026-10-26T09:17:08.488Z",
"generatedAt": "2026-10-26T09:29:34.397Z",
"repoRoot": ".",
"packages": [
{
@@ -343,6 +343,11 @@
"t": "() => void",
"k": 1,
"d": "点击回调"
},
{
"n": "size",
"t": "'sm' | 'md' | 'lg'",
"d": "高度档位:sm 紧凑 / md 默认 / lg 大触控目标,走 --ua-control-h-* 三档;缺省 md"
}
],
"example": "button({ label: '提交', variant: 'primary', onClick: () => console.log('clicked') })",
@@ -399,6 +404,11 @@
"n": "maxCount",
"t": "number",
"d": "字数上限:同时设原生 maxlength,并在输入框内侧显示实时计数;缺省不限"
},
{
"n": "size",
"t": "'sm' | 'md' | 'lg'",
"d": "高度档位:sm 紧凑 / md 默认 / lg 大触控目标,走 --ua-control-h-* 三档;缺省 md"
}
],
"example": "const name = signal(''); const el = textField({ value: name, placeholder: '输入名字…', onInput: (v) => console.log(v) })",
@@ -462,6 +472,11 @@
"n": "suffix",
"t": "string | HTMLElement",
"d": "后置附加块(textField/inputNumber 在输入框内侧后、textarea 在下方);缺省不渲染"
},
{
"n": "size",
"t": "'sm' | 'md' | 'lg'",
"d": "高度档位:sm 紧凑 / md 默认 / lg 大触控目标,走 --ua-control-h-* 三档;缺省 md"
}
],
"example": "const qty = signal(1); const el = inputNumber({ value: qty, min: 1, max: 99, onChange: (v) => console.log(v) })",
@@ -736,6 +751,11 @@
"t": "(value: string) => void",
"k": 1,
"d": "选中回调"
},
{
"n": "size",
"t": "'sm' | 'md' | 'lg'",
"d": "高度档位:sm 紧凑 / md 默认 / lg 大触控目标,走 --ua-control-h-* 三档;缺省 md"
}
],
"example": "const city = signal(''); select({ options: [{ value: 'bj', label: '北京' }], value: city, placeholder: '选择城市…' })",