{
  "widgetName": "Group",
  "viewClassName": "CheckboxGroup",
  "title": "多选框组",
  "desc": "多选框组。",
  "props": {
    "lugiaHidden": {
      "type": "boolean",
      "desc": "是否渲染当前组件",
      "defaultValue": false
    },
    "defaultValue": {
      "type": "string[]",
      "desc": "指定CheckboxGroup初始选中值"
    },
    "value": {
      "type": "string[]",
      "desc": "指定CheckboxGroup选中值"
    },
    "disabled": {
      "type": "boolean",
      "desc": "指定CheckboxGroup是否禁用"
    },
    "data": {
      "type": "Object[]",
      "desc": "指定 Checkbox 组件展示值",
      "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": "指定CheckboxGroup展示字段值"
    },
    "valueField": {
      "type": "string",
      "desc": "指定 Checkbox 组件 value 值"
    },
    "displayValue": {
      "type": "string[]",
      "desc": "指定CheckboxGroup选中值备用项，与value相对应，value中有不存在的值，将展示 displayValue 中对应值"
    },
    "defaultDisplayValue": {
      "type": "string[]",
      "desc": "指定CheckboxGroup选中值初始备用项，与value相对应，value中有不存在的值，将展示 displayValue 中对应值"
    },
    "styles": {
      "type": "CheckboxType",
      "desc": "指定CheckboxGroup中Checkbox展示方向，可选值为 vertical 或不设"
    },
    "childType": {
      "type": "CheckboxGroupChildType",
      "desc": "指定CheckboxGroup展示类型，可设置为 button 或不设"
    },
    "size": {
      "type": "CheckboxButtonSizeType",
      "desc": "指定CheckboxGroup大小，仅展示类型为button 时生效，可设置为 small、large、 或不设"
    },
    "cache": {
      "type": "boolean",
      "desc": "指定CheckboxGroup中实时更新data 数据源信息"
    },
    "needNewLine": {
      "desc": "是否需要换行",
      "type": "boolean",
      "designOnly": false,
      "injectProps": false,
      "defaultValue": false
    },
    "lines": {
      "desc": "换行数量",
      "type": "number",
      "designOnly": false,
      "injectProps": false
    }
  },
  "events": {
    "onChange": {
      "desc": "CheckboxGroup改变时回调",
      "args": [
        {
          "name": "newValue",
          "desc": "CheckboxGroup改变时 value、displayValue 和 item 对应的值",
          "type": "Object"
        }
      ]
    }
  },
  "type": {
    "CheckboxType": ["default", "vertical"],
    "CheckboxGroupChildType": ["default", "button"],
    "CheckboxButtonSizeType": ["default", "small", "large"],
    "CheckboxGroupStyle": {
      "width": {
        "type": "number",
        "desc": "Checkbox宽度"
      },
      "color": {
        "type": "string",
        "desc": "Checkbox颜色"
      }
    }
  },
  "category": ["数据录入"],
  "designInfo": {
    "CheckboxButtonGroup": {
      "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": {
                "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"]]
              }
            },
            "CheckButtonCancel": {
              "name": "取消状态样式",
              "desc": "取消状态样式",
              "normal": [
                ["opacity"],
                ["border"],
                ["borderRadius"],
                ["background"],
                ["width"],
                ["height"],
                ["color"],
                ["font"],
                ["padding"]
              ],
              "hover": [["opacity"], ["border"], ["borderRadius"], ["background"], ["color"]]
            }
          }
        }
      }
    }
  },
  "needExport": true,
  "theme": {
    "Container": {
      "name": "多选框组整体配置",
      "desc": "多选框组整体配置",
      "normal": [
        ["border"],
        ["borderRadius"],
        ["background"],
        ["width"],
        ["height"],
        ["margin"],
        ["padding"]
      ]
    },
    "Checkbox": {
      "name": "单个多选框配置",
      "theme": {
        "Container": {
          "name": "整体样式",
          "desc": "整体样式",
          "normal": [["margin"], ["padding"], ["width"], ["height"]]
        },
        "CheckboxText": {
          "name": "文字样式",
          "desc": "文字样式",
          "normal": [["color"], ["font"], ["padding"]],
          "hover": [["color"], ["font"]],
          "disabled": [["color"], ["font"]]
        },
        "CheckboxCancelText": {
          "name": "取消状态文字样式",
          "desc": "取消状态文字样式",
          "normal": [["color"], ["font"], ["padding"]],
          "hover": [["color"], ["font"]],
          "disabled": [["color"], ["font"]]
        },
        "CheckboxEdgeUnChecked": {
          "name": "未选中外框样式",
          "desc": "未选中外框样式",
          "normal": [
            ["background"],
            ["borderRadius"],
            ["border"],
            ["boxShadow"],
            ["width"],
            ["height"]
          ],
          "hover": [["background"], ["borderRadius"], ["border"], ["width"], ["height"]],
          "disabled": [["background"], ["borderRadius"], ["border"], ["width"], ["height"]]
        },
        "CheckboxEdgeChecked": {
          "name": "选中外框样式",
          "desc": "选中外框样式",
          "normal": [
            ["background"],
            ["borderRadius"],
            ["border"],
            ["boxShadow"],
            ["width"],
            ["height"]
          ],
          "hover": [["background"], ["borderRadius"], ["border"], ["width"], ["height"]],
          "disabled": [["background"], ["borderRadius"], ["border"], ["width"], ["height"]]
        },
        "CheckboxEdgeIndeterminate": {
          "name": "半选外框样式",
          "desc": "半选状态外框样式",
          "normal": [
            ["background"],
            ["borderRadius"],
            ["border"],
            ["boxShadow"],
            ["width"],
            ["height"]
          ],
          "hover": [["background"], ["borderRadius"], ["border"], ["width"], ["height"]],
          "disabled": [["background"], ["borderRadius"], ["border"], ["width"], ["height"]]
        },
        "CheckboxEdgeCancel": {
          "name": "取消状态外框样式",
          "desc": "取消状态外框样式",
          "normal": [
            ["background"],
            ["borderRadius"],
            ["border"],
            ["boxShadow"],
            ["width"],
            ["height"]
          ]
        },
        "CheckboxInnerChecked": {
          "name": "选中内框样式",
          "desc": "选中内框样式",
          "normal": [["background"], ["width"], ["height"]],
          "hover": [["background"], ["width"], ["height"]],
          "disabled": [["background"], ["width"], ["height"]]
        },
        "CheckboxInnerIndeterminate": {
          "name": "半选内框样式",
          "desc": "半选内框样式",
          "normal": [["background"], ["width"], ["height"]],
          "hover": [["background"], ["width"], ["height"]],
          "disabled": [["background"], ["width"], ["height"]]
        },
        "CheckboxInnerCancel": {
          "name": "取消状态内框样式",
          "desc": "取消状态内框样式",
          "normal": [["background"], ["width"], ["height"]]
        }
      }
    }
  }
}
