{
  "widgetName": "Group",
  "viewClassName": "RadioGroup",
  "title": "单选框组",
  "desc": "单选框组。",
  "props": {
    "lugiaHidden": {
      "type": "boolean",
      "desc": "是否渲染当前组件",
      "defaultValue": false
    },
    "defaultValue": {
      "type": "string",
      "desc": "单选框初始选中值"
    },
    "value": {
      "type": "string",
      "desc": "单选框选中值"
    },
    "disabled": {
      "type": "boolean",
      "desc": "指定RadioGroup是否禁用"
    },
    "data": {
      "type": "Object[]",
      "desc": "单选框信息",
      "propsDefaultValue": [],
      "meta": [
        { "key": "text", "title": "展示文字", "type": "string" },
        { "key": "value", "title": "对应字段", "type": "string" }
      ],
      "defaultValue": [
        { "text": "选项1", "value": "1" },
        { "text": "选项2", "value": "2" },
        { "text": "选项3", "value": "3" }
      ]
    },
    "displayField": {
      "type": "string",
      "desc": "单选框的显示字段值",
      "defaultValue": "text"
    },
    "valueField": {
      "type": "string",
      "desc": "单选框的 value 值",
      "defaultValue": "value"
    },
    "displayValue": {
      "type": "string",
      "desc": "单选框的 value 备用值，value 找不到时展示"
    },
    "styles": {
      "type": "RadioStylesType",
      "desc": "单选框的展示方向，可选值为 vertical 或不设"
    },
    "childType": {
      "type": "RadioChildType",
      "desc": "指定Radio展示类型，可设置为 button 或不设"
    },
    "size": {
      "type": "RadioButtonSizeType",
      "desc": "指定 Radio 大小，仅展示类型为button 时生效，可设置为 small、large 或不设"
    }
  },
  "events": {
    "onChange": {
      "desc": "Radio 改变时回调",
      "args": [
        {
          "name": "newValue",
          "desc": "Radio改变时 value、displayValue 和 item 对应的值",
          "type": "Object"
        }
      ]
    }
  },
  "type": {
    "RadioStylesType": [
      { "value": "default", "text": "正常" },
      { "value": "vertical", "text": "竖直" }
    ],
    "RadioChildType": [
      { "value": "default", "text": "正常" },
      { "value": "button", "text": "按钮" }
    ],
    "RadioButtonSizeType": [
      { "value": "default", "text": "正常" },
      { "value": "small", "text": "小" },
      { "value": "large", "text": "大" }
    ]
  },
  "category": ["数据录入"],
  "designInfo": {
    "RadioButtonGroup": {
      "sequence": 1,
      "title": "按钮状单选框组",
      "desc": "按钮形状的单选框组",
      "props": {
        "childType": "button"
      },
      "theme": {
        "Container": {
          "name": "单选框组整体样式",
          "desc": "单选框组整体样式",
          "normal": [
            ["opacity"],
            ["border"],
            ["borderRadius"],
            ["background"],
            ["width"],
            ["height"],
            ["margin"],
            ["padding"]
          ]
        },
        "CheckButton": {
          "name": "按钮单选框样式",
          "desc": "按钮单选框样式",
          "theme": {
            "CheckButtonUnChecked": {
              "name": "未选中样式",
              "desc": "未选中样式",
              "normal": {
                "selectNames": [
                  ["opacity"],
                  ["border"],
                  ["borderRadius"],
                  ["background"],
                  ["width"],
                  ["height"],
                  ["color"],
                  ["font"],
                  ["padding"]
                ],
                "nth": [
                  ["opacity"],
                  ["border"],
                  ["borderRadius"],
                  ["background"],
                  ["width"],
                  ["height"],
                  ["color"],
                  ["font"],
                  ["padding"]
                ]
              },
              "hover": {
                "selectNames": [
                  ["opacity"],
                  ["border"],
                  ["borderRadius"],
                  ["background"],
                  ["color"]
                ],
                "nth": [["opacity"], ["border"], ["borderRadius"], ["background"], ["color"]]
              },
              "disabled": {
                "selectNames": [
                  ["opacity"],
                  ["border"],
                  ["borderRadius"],
                  ["background"],
                  ["color"]
                ],
                "nth": [["opacity"], ["border"], ["borderRadius"], ["background"], ["color"]]
              }
            },
            "CheckButtonChecked": {
              "name": "选中样式",
              "desc": "选中样式",
              "normal": [
                ["opacity"],
                ["border"],
                ["borderRadius"],
                ["background"],
                ["width"],
                ["height"],
                ["color"],
                ["font"],
                ["padding"]
              ],
              "disabled": [["opacity"], ["border"], ["borderRadius"], ["background"], ["color"]]
            },
            "CheckButtonCancel": {
              "name": "取消状态样式",
              "desc": "取消状态样式",
              "normal": [
                ["opacity"],
                ["border"],
                ["borderRadius"],
                ["background"],
                ["width"],
                ["height"],
                ["color"],
                ["font"],
                ["padding"]
              ]
            }
          }
        }
      }
    }
  },
  "needExport": true,
  "theme": {
    "Container": {
      "name": "单选框组整体配置",
      "desc": "单选框组整体配置",
      "normal": [
        ["border"],
        ["borderRadius"],
        ["background"],
        ["width"],
        ["height"],
        ["margin"],
        ["padding"]
      ]
    },
    "Radio": {
      "name": "配置单选框样式",
      "desc": "配置单选框样式",
      "theme": {
        "Container": {
          "name": "整体样式",
          "desc": "整体样式",
          "normal": [["margin"], ["padding"], ["width"], ["height"]]
        },
        "RadioText": {
          "name": "文字样式",
          "desc": "文字样式",
          "normal": [["color"], ["font"], ["padding"]],
          "hover": [["color"], ["font"]],
          "disabled": [["color"], ["font"]]
        },
        "RadioTextCancel": {
          "name": "取消状态文字样式",
          "desc": "取消状态文字样式",
          "normal": [["color"], ["font"], ["padding"]],
          "disabled": [["color"], ["font"]]
        },
        "RadioEdgeUnChecked": {
          "name": "未选中外框样式",
          "desc": "未选中外框样式",
          "normal": [
            ["background"],
            ["border"],
            ["borderRadius"],
            ["boxShadow"],
            ["width"],
            ["height"]
          ],
          "hover": [["background"], ["borderRadius"], ["border"]],
          "disabled": [["background"], ["borderRadius"], ["border"]]
        },
        "RadioEdgeChecked": {
          "name": "选中外框样式",
          "desc": "选中外框样式",
          "normal": [
            ["background"],
            ["border"],
            ["borderRadius"],
            ["boxShadow"],
            ["width"],
            ["height"]
          ],
          "disabled": [
            ["background"],
            ["border"],
            ["borderRadius"],
            ["boxShadow"],
            ["width"],
            ["height"]
          ]
        },
        "RadioInnerChecked": {
          "name": "选中内框样式",
          "desc": "选中内框样式",
          "normal": [["background"], ["width"], ["height"], ["borderRadius"]]
        },
        "RadioEdgeCancel": {
          "name": "取消状态外框样式",
          "desc": "取消状态外框样式",
          "normal": [
            ["background"],
            ["border"],
            ["borderRadius"],
            ["boxShadow"],
            ["width"],
            ["height"]
          ]
        },
        "RadioInnerCancel": {
          "name": "取消状态内框样式",
          "desc": "取消状态内框样式",
          "normal": [["background"], ["width"], ["height"], ["borderRadius"]]
        }
      }
    }
  }
}
