{
    "name": "gov-checkbox",
    "label": "复选框",
    "description": "复选框",
    "codeSnap": "<checkbox-item\n  value=\"{{true}}\"\n>\n    全选\n</checkbox-item>",
    "groups": "layout",
    "demoCode": {
        "s": "<view class=\"wrap\">\n    <view class=\"line\">复选框 checkbox</view>\n    <gov-checkbox\n        bindclick=\"clkHdl\"\n        value=\"{{checked}}\"\n    >\n        {{checked ? '选中' : '未选'}}\n    </gov-checkbox>\n     <gov-checkbox\n        value=\"{{checked}}\"\n        disabled\n    >\n        不可选\n    </gov-checkbox>\n</view>",
        "js": "Page({\n    data: {\n        checked: false,\n        checkedList: [1, 6]\n    },\n    clkHdl() {\n        this.setData({\n            checked: !this.data.checked\n        });\n    }\n});",
        "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}"
    },
    "fragement": "",
    "properties": {
        "attributes": [
            {
                "name": "value",
                "type": "Boolean",
                "description": "是否选中",
                "required": "否",
                "default": false
            },
            {
                "name": "disabled",
                "type": "Boolean",
                "description": "是否禁用",
                "required": "否",
                "default": false
            },
            {
                "name": "itemStyle",
                "type": "String",
                "description": "行内样式",
                "required": "否",
                "default": ""
            },
            {
                "name": "activeColor",
                "type": "String",
                "description": "复选项选中时的文字和icon颜色",
                "required": "否",
                "default": "#BD1A2D"
            },
            {
                "name": "activeBgColor",
                "type": "String",
                "description": "在inline 模式下选中时的背景颜色",
                "required": "否",
                "default": "#FBE5E8"
            }
        ],
        "events": [
            {
                "name": "click",
                "type": "Event",
                "description": "选中事件，返回当前复选框状态",
                "required": "否",
                "default": "-"
            },
            {
                "name": "change",
                "type": "Event",
                "description": "复选框选中值变更事件，返回当前复选框状态",
                "required": "否",
                "default": "-"
            }
        ],
        "externalClasses": [
            {
                "name": "gov-checkbox",
                "type": "",
                "description": "复选框的扩展样式类，可通过此class改变复选框的样式",
                "required": "否",
                "default": "-"
            }
        ]
    }
}
