mirror of
https://github.com/lc-soft/LCUI.git
synced 2026-11-30 16:48:21 +01:00
23 lines
771 B
TypeScript
23 lines
771 B
TypeScript
import { widgetFields, FieldData } from "./widget";
|
|
|
|
export const radioGroupItemFields: FieldData[] = [
|
|
...widgetFields,
|
|
{
|
|
name: "value",
|
|
type: "string",
|
|
default: "",
|
|
description: {
|
|
en: "The value submitted when this item is selected. Must be unique within the same RadioGroup.",
|
|
"zh-CN": "选中本项时提交的值。同一 RadioGroup 内各 item 的 value 必须唯一。",
|
|
},
|
|
},
|
|
{
|
|
name: "checked",
|
|
type: "boolean",
|
|
default: "false",
|
|
description: {
|
|
en: "Whether this item is in the selected state. Driven by the parent RadioGroup's value; you usually don't set this directly.",
|
|
"zh-CN": "本项是否处于选中状态。由父 RadioGroup 的 value 推导,一般不直接设置。",
|
|
},
|
|
},
|
|
]; |