export default {
  base: {
    name: "标题",
    module_name: "text",
    category: "文字",
    version: "1.9.0",
    show: 1,
  },
  config: [
    {
      _name: "chart",
      _displayName: "组件",
      _layout: "horizontal",
      _type: "menu",
      _value: [
        {
          _name: "dimension",
          _displayName: "位置尺寸",
          _value: [
            {
              _name: "chartPosition",
              _displayName: "图表位置",
              _value: [
                {
                  _name: "left",
                  _displayName: "X轴坐标",
                  _labelLayout: 24,
                  _labelPosition: "bottom",
                  _value: 100,
                },
                {
                  _name: "top",
                  _labelLayout: 24,
                  _labelPosition: "bottom",
                  _displayName: "Y轴坐标",
                  _value: 100,
                },
              ],
              _labelLayout: 8,
            },
            {
              _name: "chartDimension",
              _displayName: "图表尺寸",
              _value: [
                {
                  _name: "width",
                  _displayName: "宽度",
                  _labelLayout: 24,
                  _labelPosition: "bottom",
                  _value: 200,
                },
                {
                  _name: "height",
                  _displayName: "高度",
                  _labelLayout: 24,
                  _labelPosition: "bottom",
                  _value: 50,
                },
              ],
              _labelLayout: 8,
            },
          ],
        },
        {
          _name: "form",
          _displayName: "表单",
          _value: [
            {
              _name: "input",
              _displayName: "文本",
              _value: [
                {
                  _name: "input1",
                  _displayName: "文本1",
                  _value: "内容",
                  _type: "input",
                },
                {
                  _name: "input2",
                  _displayName: "文本2",
                  _value: "",
                  _type: "input",
                  _placeholder: "请输入文本",
                },
                {
                  _name: "input3",
                  _displayName: "文本3",
                  _value: "",
                  _type: "input",
                  _prefix: "#",
                },
                {
                  _name: "input4",
                  _displayName: "文本4",
                  _value: "",
                  _type: "input",
                  _suffix: "%",
                },
                {
                  _name: "input5",
                  _displayName: "文本5",
                  _value: "内容",
                  _type: "input",
                  _suffix: "%",
                  _prefix: "#",
                },
                {
                  _name: "input6",
                  _displayName: "文本6",
                  _value: "不可输入",
                  _type: "input",
                  _disabled: true,
                },
              ],
            },
            {
              _name: "number",
              _displayName: "数值",
              _value: [
                {
                  _name: "number1",
                  _displayName: "数值1",
                  _value: "",
                  _type: "number",
                  _placeholder: "自动",
                },
                {
                  _name: "number2",
                  _displayName: "数值2",
                  _value: 100,
                  _type: "number",
                  _min: 1,
                  _max: 100,
                  _step: 1,
                },
                {
                  _name: "number3",
                  _displayName: "数值3",
                  _value: 100,
                  _type: "number",
                  _showStep: false,
                },
                {
                  _name: "number4",
                  _displayName: "数值4",
                  _value: 100,
                  _type: "number",
                  _prefix: "#",
                },
                {
                  _name: "number5",
                  _displayName: "数值5",
                  _value: 100,
                  _type: "number",
                  _suffix: "%",
                },
                {
                  _name: "number6",
                  _displayName: "数值6",
                  _value: 100,
                  _type: "number",
                  _disabled: true,
                },
              ],
            },
            {
              _name: "boolean",
              _displayName: "布尔",
              _value: [
                {
                  _name: "boolean1",
                  _displayName: "布尔1",
                  _value: true,
                  _type: "boolean",
                },
                {
                  _name: "boolean2",
                  _displayName: "布尔2",
                  _value: true,
                  _type: "boolean",
                  _mode: "switch",
                },
                {
                  _name: "boolean3",
                  _displayName: "布尔3",
                  _value: true,
                  _type: "boolean",
                  _mode: "icon",
                  _icon: "bold",
                },
              ],
            },
            {
              _name: "select",
              _displayName: "下拉选择",
              _value: [
                {
                  _name: "select1",
                  _displayName: "选择1",
                  _value: "up",
                  _type: "select",
                  _options: [
                    {
                      name: "上",
                      value: "up",
                    },
                    {
                      name: "中",
                      value: "center",
                    },
                    {
                      name: "下",
                      value: "down",
                    },
                  ].concat(
                    Array(100)
                      .fill(1)
                      .map((d, i) => {
                        return {
                          name: i + "下",
                          value: i + "down",
                        };
                      }),
                  ),
                },
                {
                  _name: "select2",
                  _displayName: "选择2",
                  _value: "up",
                  _type: "select",
                  _options: [
                    {
                      name: "上",
                      value: "up",
                    },
                    {
                      name: "中",
                      value: "center",
                    },
                    {
                      name: "下",
                      value: "down",
                    },
                  ],
                  _allowInput: true,
                },
              ],
            },
            {
              _name: "font",
              _displayName: "字体",
              _value: [
                {
                  _name: "font",
                  _displayName: "字体",
                  _value: "Microsoft Yahei",
                  _type: "font",
                },
              ],
            },
            {
              _name: "area",
              _displayName: "地图范围",
              _value: [
                {
                  _name: "area",
                  _displayName: "地图范围",
                  _value: "100000",
                  _type: "area",
                },
              ],
            },
            {
              _name: "pages",
              _displayName: "页面选择",
              _value: [
                {
                  _name: "pages",
                  _displayName: "页面选择",
                  _value: "",
                  _type: "pageOptions",
                },
              ],
            },
            {
              _name: "components",
              _displayName: "组件选择",
              _value: [
                {
                  _name: "components",
                  _displayName: "组件",
                  _value: "",
                  _type: "componentOptions",
                },
                {
                  _name: "panels",
                  _displayName: "",
                  _value: {},
                  _type: "panelOptions",
                },
              ],
            },
            {
              _name: "radio",
              _displayName: "单选",
              _value: [
                {
                  _name: "radio1",
                  _displayName: "单选1",
                  _value: "center",
                  _type: "radio",
                  _options: [
                    { name: "左", value: "left" },
                    { name: "中", value: "center" },
                    { name: "右", value: "right" },
                  ],
                },
                {
                  _name: "radio2",
                  _displayName: "单选2",
                  _value: "center",
                  _type: "radio",
                  _mode: "button",
                  _options: [
                    { name: "左", value: "left" },
                    { name: "中", value: "center" },
                    { name: "右", value: "right" },
                  ],
                },
                {
                  _name: "radio3",
                  _displayName: "单选3",
                  _value: "center",
                  _type: "radio",
                  _mode: "icon",
                  _options: [
                    { name: "左", value: "left", icon: "zuoduiqi" },
                    { name: "中", value: "center", icon: "icon--" },
                    { name: "右", value: "right", icon: "youduiqi" },
                  ],
                },
                {
                  _name: "radio4",
                  _displayName: "单选4",
                  _value: "",
                  _type: "radio",
                  _mode: "icon",
                  _options: [
                    {
                      name: "左",
                      value: "left",
                      icon: "https://easyv-test.oss-cn-hangzhou.aliyuncs.com/data/img/1/1167/view.svg",
                    },
                  ],
                },
              ],
            },
            {
              _name: "checkbox",
              _displayName: "多选",
              _value: [
                {
                  _name: "checkbox1",
                  _displayName: "多选1",
                  _value: [],
                  _type: "checkbox",
                  _options: [
                    { name: "左", value: "left" },
                    { name: "中", value: "center" },
                    { name: "右", value: "right" },
                  ],
                },
              ],
            },
            {
              _name: "color",
              _displayName: "颜色",
              _value: [
                {
                  _name: "color1",
                  _displayName: "颜色1",
                  _value: "#fff",
                  _type: "color",
                },
                {
                  _name: "color2",
                  _displayName: "颜色2",
                  _value: "#fff",
                  _type: "color",
                  _simple: true,
                },
                {
                  _name: "color3",
                  _displayName: "渐变1",
                  _value: {
                    type: "linearGradient",
                    color: "#fff",
                    linear: {
                      stops: [
                        {
                          color: "#fff",
                          offset: 0,
                        },
                        {
                          color: "#f00",
                          offset: 100,
                        },
                      ],
                      angle: 0,
                      opacity: 1,
                    },
                  },
                  _type: "multicolor",
                },
                {
                  _name: "color4",
                  _displayName: "渐变2",
                  _value: {
                    type: "linearGradient",
                    color: "#fff",
                    linear: {
                      stops: [
                        {
                          color: "#fff",
                          offset: 0,
                        },
                        {
                          color: "#f00",
                          offset: 100,
                        },
                      ],
                      angle: 0,
                      opacity: 1,
                    },
                  },
                  _type: "multicolor",
                  _simple: true,
                },
                {
                  _name: "color5",
                  _displayName: "渐变3",
                  _value: [
                    {
                      _name: "start",
                      _displayName: "",
                      _value: "#fff",
                      _type: "color",
                    },
                    {
                      _name: "end",
                      _displayName: "",
                      _value: "#f00",
                      _type: "color",
                    },
                    {
                      _name: "start",
                      _displayName: "方向",
                      _value: 0,
                      _type: "number",
                    },
                  ],
                  _type: "colors",
                },
              ],
            },
            {
              _name: "range",
              _displayName: "区间",
              _value: [
                {
                  _name: "range1",
                  _displayName: "区间1",
                  _value: 10,
                  _type: "range",
                  _min: 0,
                  _max: 100,
                },
                {
                  _name: "range2",
                  _displayName: "区间2",
                  _value: [10, 60],
                  _type: "range",
                  _min: 0,
                  _max: 100,
                  _range: true,
                },
              ],
            },
            {
              _name: "upload",
              _displayName: "上传",
              _value: [
                {
                  _name: "upload1",
                  _displayName: "图片",
                  _value: "/screen/22626/9AJXMJMsM_1588045198560_rRf_sXw2Kr.jpg",
                  _type: "uploadImage",
                },
                {
                  _name: "upload2",
                  _displayName: "声音",
                  _value: "/screen/22626/9AJXMJMsM_1588045198560_rRf_sXw2Kr.jpg",
                  _type: "audio",
                },
                {
                  _name: "upload3",
                  _displayName: "视频",
                  _value: "/screen/22626/9AJXMJMsM_1588045198560_rRf_sXw2Kr.jpg",
                  _type: "video",
                },
                {
                  _name: "upload4",
                  _displayName: "模型",
                  _value: "/screen/22626/9AJXMJMsM_1588045198560_rRf_sXw2Kr.jpg",
                  _type: "model",
                },
                {
                  _name: "upload5",
                  _displayName: "文件夹",
                  _selectableDisabled: true,
                  _defaultEntry: "/main.json",
                  _accept: ".easytwin",
                  _value: {
                    entry: "components/static-image/borderMapNew/hebei/130000.json",
                    options: [
                      "components/static-image/borderMapNew/hebei/130000.json",
                      "components/static-image/borderMapNew/hebei/130100.json",
                      "components/static-image/borderMapNew/hebei/130200.json",
                      "components/static-image/borderMapNew/hebei/130300.json",
                      "components/static-image/borderMapNew/hebei/130400.json",
                      "components/static-image/borderMapNew/hebei/130500.json",
                      "components/static-image/borderMapNew/hebei/130600.json",
                      "components/static-image/borderMapNew/hebei/130700.json",
                      "components/static-image/borderMapNew/hebei/130800.json",
                      "components/static-image/borderMapNew/hebei/130900.json",
                      "components/static-image/borderMapNew/hebei/130900.json",
                      "components/static-image/borderMapNew/hebei/131000.json",
                      "components/static-image/borderMapNew/hebei/131100.json",
                    ],
                  },
                  _type: "folder",
                },
              ],
            },
          ],
        },
        {
          _name: "layout",
          _displayName: "布局",
          _value: [
            {
              _name: "group",
              _displayName: "成组",
              _type: "group",
              _tip: "test",
              _value: [
                {
                  _name: "input",
                  _displayName: "文本",
                  _value: "test",
                  _type: "input",
                  _span: 12,
                },
                {
                  _name: "number",
                  _displayName: "文本",
                  _value: 12,
                  _type: "number",
                  _span: 12,
                },
                {
                  _name: "input2",
                  _displayName: "文本",
                  _value: "test",
                  _type: "input",
                  _span: 8,
                },
                {
                  _name: "number2",
                  _displayName: "文本",
                  _value: 12,
                  _type: "number",
                  _span: 8,
                },
                {
                  _name: "input3",
                  _displayName: "文本",
                  _value: "test",
                  _type: "input",
                  _span: 8,
                },
                {
                  _name: "number3",
                  _displayName: "文本",
                  _value: 12,
                  _type: "number",
                  _span: 8,
                },
              ],
            },
          ],
        },
        {
          _name: "grid",
          _displayName: "九宫格",
          _value: [
            {
              _name: "grid1",
              _displayName: "视点位置",
              _value: [0, 0],
              _type: "position",
            },
            {
              _name: "grid2",
              _displayName: "视点位置",
              _value: "top",
              _options: ["", "top", "", "left", "", "right", "", "bottom", ""],
              _type: "grid",
            },
            {
              _name: "grid3",
              _displayName: "视点位置",
              _value: "centerTop",
              _options: [
                "leftTop",
                "centerTop",
                "rightTop",
                "leftCenter",
                "",
                "rightCenter",
                "leftBottom",
                "centerBottom",
                "rightBottom",
              ],
              _type: "grid",
            },
          ],
        },
      ],
    },
    {
      _name: "hh",
      _displayName: "组合",
      _value: [
        {
          _name: "compose",
          _displayName: "组合",
          _value: [
            {
              _name: "textShadow",
              _displayName: "文本阴影",
              _value: {
                color: "#fff",
                hShadow: 8,
                vShadow: -10,
                blur: 9,
              },
              _type: "shadow",
            },
            {
              _name: "boxShadow",
              _displayName: "文本阴影",
              _value: {
                color: "#fff",
                hShadow: 8,
                vShadow: -10,
                blur: 9,
                spread: 10,
              },
              _type: "shadow",
            },
            {
              _name: "textStyle",
              _displayName: "文本样式",
              _value: {
                fontFamily: "Microsoft Yahei",
                fontSize: 24,
                color: "#fff",
                bold: true,
                italic: false,
                letterSpacing: 0,
              },
              _type: "textStyle",
            },
          ],
        },
      ],
    },
    {
      _name: "interaction",
      _displayName: "交互",
      _value: [
        {
          _name: "callback",
          _displayName: "回调参数",
          _type: "array",
          _value: [],
          _template: [
            {
              _name: "callback",
              _displayName: "回调",
              _type: "object",
              _value: [
                {
                  _name: "origin",
                  _displayName: "字段值",
                  _type: "input",
                  _value: "",
                },
                {
                  _name: "target",
                  _displayName: "变量名",
                  _type: "input",
                  _value: "",
                },
              ],
            },
          ],
        },
        {
          _name: "events",
          _displayName: "交互事件",
          _type: "array",
          _value: [],
          _template: [
            {
              _name: "event",
              _displayName: "事件",
              _type: "object",
              _value: [
                {
                  _name: "type",
                  _displayName: "事件类型",
                  _type: "select",
                  _value: "click",
                  _options: [
                    {
                      name: "鼠标单击",
                      value: "click",
                    },
                  ],
                },
                {
                  _name: "action",
                  _displayName: "动作",
                  _type: "select",
                  _value: "show",
                  _options: [
                    {
                      name: "页面跳转",
                      value: "redirect",
                    },
                    {
                      name: "显示",
                      value: "show",
                    },
                    {
                      name: "隐藏",
                      value: "hide",
                    },
                    {
                      name: "显隐切换",
                      value: "show/hide",
                    },
                    {
                      name: "组件状态切换",
                      value: "switchState",
                    },
                  ],
                },
                {
                  _rule: [["action", "$eq", "redirect"]],
                  _name: "page",
                  _displayName: "页面",
                  _type: "pageOptions",
                  _value: "",
                  _options: [],
                },
                {
                  _rule: [
                    ["action", "$neq", "redirect"],
                    ["action", "$neq", "switchState"],
                  ],
                  _name: "component",
                  _displayName: "组件",
                  _type: "componentOptions",
                  _value: "",
                  _options: [],
                },
                {
                  _rule: [["action", "$eq", "switchState"]],
                  _name: "panel",
                  _displayName: "动态面板",
                  _type: "panelOptions",
                  _value: "{}",
                  _options: [],
                },
                {
                  _name: "animationName",
                  _displayName: "动画类型",
                  _type: "select",
                  _value: "fade",
                  _options: [
                    {
                      name: "渐隐渐显",
                      value: "fade",
                    },
                    {
                      name: "缩放",
                      value: "zoom",
                    },
                    {
                      name: "向右滑动",
                      value: "slide_from_left",
                    },
                  ],
                },
                {
                  _name: "duration",
                  _displayName: "动画时长(ms)",
                  _value: 600,
                  _type: "number",
                },
              ],
            },
          ],
        },
        {
          _name: "remoteControl",
          _displayName: "远程控制",
          _type: "array",
          _value: [],
          _template: [
            {
              _name: "controls",
              _displayName: "控制",
              _type: "object",
              _value: [
                {
                  _name: "control",
                  _displayName: "控制",
                  _type: "remoteOptions",
                  _value: "{}",
                },
              ],
            },
          ],
        },
      ],
    },
  ],
};
