export default {
  "name": "Role",
  "comment": "角色选择",
  "cssFiles": "../org/style.{bgColorMode}.pc.css",
  "attrs": [
    {
      "name": "showIcon",
      "comment": "显示图标",
      "type": "Switch",
      "default": true
    },
    {
      "name": "multiCheck",
      "comment": "多选",
      "type": "Switch"
    },
    {
      "name": "valueType",
      "comment": "值类型",
      "type": "Select",
      "options": [
        {"value": "id", "text": "角色编号"},
        {"value": "obj", "text": "角色对象"}
      ],
      "default": "id",
      "notnull": true
    },
    {
      "name": "formula",
      "comment": "自动计算表达式",
      "type": "Formula"
    },
    {
      "name": "required",
      "comment": "必填",
      "type": "Switch"
    },
    {
      "name": "readonly",
      "comment": "只读",
      "type": "Switch"
    },
    {
      "name": "disabled",
      "comment": "禁用",
      "type": "Switch"
    }
  ],
  "styles": ["size", "position", "font", "background", "margin", "border", "other"],
  "defaultStyles": {
    "width": "120px"
  },
  "events": [{
    "name": "onChange",
    "comment": "值发生变化时"
  }]
}