{
    "name": "gov-radio-group",
    "label": "单选组",
    "description": "单选组",
    "codeSnap": "<gov-radio-group value=\"{{[{name: '两字', value: 1}, {name: '五个字左右', value: 2}]}}\"></gov-radio-group>",
    "demoCode": {
        "s": "<view class=\"wrap\">\n    <view class=\"line\">单选组 radio-group</view>\n    <view class=\"line\">行内单选 [inline=true]</view>\n    <gov-radio-group\n        options=\"{{group}}\"\n    >\n    </gov-radio-group>\n    <view class=\"line\">禁用 [disable=true]</view>\n    <gov-radio-group\n        options=\"{{group2}}\"\n    >\n    </gov-radio-group>\n</view>",
        "css": ".wrap {\n    padding: 0 30.797rpx;\n}\n\n.line {\n    margin-top: 18.116rpx;\n    font-size: 32.61rpx;\n    color: #000;\n    padding-bottom: 12.077rpx;\n    border-bottom: 1px solid #f5f5f5;\n}",
        "js": "Page({\n    data: {\n        group: [{\n            name: '两字',\n            value: 1\n        }, {\n            name: '五个字左右',\n            value: 2\n        }],\n        group2: [\n            {\n                name: '四四四四',\n                value: 3,\n                desc: '禁用不可点',\n                disabled: true\n            }, {\n                name: '双行文字双行文字',\n                value: 4\n            }\n        ]\n    }\n});"
    },
    "groups": "layout",
    "fragement": "",
    "properties": {
        "attributes": [
            {
                "name": "options",
                "type": "Array",
                "description": "单选组",
                "required": "否",
                "default": []
            },
            {
                "name": "column",
                "type": "Number",
                "description": "列数",
                "required": "否",
                "default": 2
            },
            {
                "name": "inline",
                "type": "Boolean",
                "description": "是否为行内样式",
                "required": "否",
                "default": true
            },
            {
                "name": "optionKey",
                "type": "String",
                "description": "options 展示的key 值",
                "required": "否",
                "default": ""
            },
            {
                "name": "border",
                "type": "Boolean",
                "description": "是否带有下边线",
                "required": "否",
                "default": "true"
            },
            {
                "name": "noLastBorder",
                "type": "Boolean",
                "description": "删除最后的下边线",
                "required": "否",
                "default": "true"
            },
            {
                "name": "currentValue",
                "type": "Arry",
                "description": "当前 options 选中状态值",
                "required": "否",
                "default": []
            },
            {
                "name": "groupStyle",
                "type": "String",
                "description": "单选组wrap行内样式",
                "required": "否",
                "default": ""
            },
            {
                "name": "itemStyle",
                "type": "String",
                "description": "单选框样式",
                "required": "否",
                "default": ""
            },
            {
                "name": "rowStyle",
                "type": "String",
                "description": "单选组item行内样式",
                "required": "否",
                "default": ""
            },
            {
                "name": "activeColor",
                "type": "String",
                "description": "单选项选中时的icon颜色",
                "required": "否",
                "default": "#BD1A2D"
            },
            {
                "name": "activeInlineBgColor",
                "type": "String",
                "description": "在inline-filter模式下选中时的背景颜色",
                "required": "否",
                "default": "#FBE5E8"
            }
        ],
        "events": [
            {
                "name": "click",
                "type": "Event",
                "description": "选中事件，返回当前单选框点击状态",
                "required": "否",
                "default": "-"
            },
            {
                "name": "change",
                "type": "Event",
                "description": "改变事件，返回当前单选组状态",
                "required": "否",
                "default": "-"
            }
        ],
        "externalClasses": [
            {
                "name": "gov-radio-group",
                "type": "",
                "description": "单选组的扩展样式类，可通过此class改变单选组的样式",
                "required": "否",
                "default": "-"
            }
        ]
    }
}
