export default {
  base: {
    name: "标题",
    module_name: "text",
    category: "文字",
    version: "1.9.0",
    show: 1,
  },
  config: [
    {
      name: "chart",
      displayName: "组件",
      value: [
        {
          name: "dimension",
          displayName: "位置尺寸",
          value: [
            {
              name: "chartPosition",
              displayName: "图表位置",
              value: [
                {
                  type: "number",
                  name: "left",
                  displayName: "X轴坐标",
                  value: 100,
                },
                {
                  type: "number",
                  name: "top",
                  displayName: "Y轴坐标",
                  value: 100,
                },
              ],
            },
            {
              name: "chartDimension",
              displayName: "图表尺寸",
              value: [
                {
                  type: "number",
                  name: "width",
                  displayName: "宽度",
                  value: 400,
                },
                {
                  type: "number",
                  name: "height",
                  displayName: "高度",
                  value: 200,
                },
              ],
            },
          ],
        },
        {
          name: "number",
          displayName: "数值控件",
          tip: '数值类型的控件数值类型的控件数值类型的控件数值类型的控件数值类型的控件数值类型的控件数值类型的控件 <a href="https://easyv.dtstack.com">链接</a>',
          value: [
            {
              type: "number",
              name: "default",
              displayName: "默认样式",
              tip: "最简单的数值类型配置",
              value: 10,
            },
            {
              type: "number",
              name: "suffix",
              displayName: "带后缀",
              value: 20,
              config: {
                showStep: true,
                suffix: "px",
              },
            },
            {
              type: "number",
              name: "prefix",
              displayName: "带前缀",
              value: 30,
              config: {
                prefix: "#",
              },
            },
            {
              type: "number",
              name: "suffixOnly",
              displayName: "只带后缀",
              value: 40,
              config: {
                suffix: "%",
              },
            },
            {
              type: "number",
              name: "prefixOnly",
              displayName: "只带前缀",
              value: 50,
              config: {
                showStep: false,
                prefix: "#",
              },
            },
            {
              type: "number",
              name: "range",
              displayName: "区间值",
              value: 50,
              tip: "最小值为0， 最大值为100",
              config: {
                min: 0,
                max: 100,
              },
            },
            {
              type: "number",
              name: "disable",
              displayName: "禁用",
              value: 50,
              config: {
                disabled: true,
              },
            },
          ],
        },
        {
          name: "input",
          displayName: "文本输入",
          value: [
            {
              type: "input",
              name: "default",
              displayName: "文字",
              value: "",
            },
            {
              type: "input",
              name: "prefix",
              displayName: "前缀",
              value: "",
              config: {
                prefix: "http://",
              },
            },
            {
              type: "input",
              name: "suffix",
              displayName: "前缀",
              value: "",
              config: {
                suffix: ".com",
              },
            },
          ],
        },
        {
          name: "select",
          displayName: "下拉选择",
          value: [
            {
              type: "select",
              name: "default",
              displayName: "选择",
              value: "option1",
              config: {
                options: [
                  { name: "选项一", value: "option1" },
                  { name: "选项二", value: "option2" },
                  { name: "选项三", value: "option3" },
                  { name: "选项四", value: "bar" },
                  { name: "选项五", value: "option5" },
                  { name: "选项六", value: "option6" },
                  { name: "选项七", value: "option7" },
                  { name: "选项八", value: "option8" },
                ],
              },
            },
            {
              displayName: "组件列表",
              name: "list",
              type: "imgCard",
              value: "line-simple",
              dependencies: ["default"],
              config: {
                options: [],
                api: "https://easyv-test.oss-cn-hangzhou.aliyuncs.com/components/static-image/echartsComponent/json/imgCardOptions/:default.json",
                openCache: true,
              },
            },
            {
              type: "selectCard",
              name: "default1",
              displayName: "卡片选择",
              value: "option1",
              config: {
                allowInput: true,
                options: [
                  {
                    name: "选项一",
                    value: "option1",
                    cover: "template/LDi40s1O1_1600332995049_atIJZNmUWT.jpg",
                  },
                  { name: "选项二", value: "option2" },
                  { name: "选项三", value: "option3" },
                  { name: "选项四", value: "option4" },
                  { name: "选项五", value: "option5" },
                  { name: "选项六", value: "option6" },
                  { name: "选项七", value: "option7" },
                  { name: "选项八", value: "option8" },
                ],
              },
            },
            {
              type: "select",
              name: "combox",
              displayName: "联合选择",
              value: "round",
              config: {
                options: [
                  { name: "自动取整", value: "round" },
                  { name: "数据最大值", value: "max" },
                  { name: "自定义数值(直接输入)", value: "custom", disabled: true },
                ],
                allowInput: true,
              },
            },
          ],
        },
        {
          name: "radio",
          displayName: "单选",
          value: [
            {
              type: "radio",
              name: "default",
              displayName: "单选",
              value: "scroll",
              config: {
                options: [
                  { name: "默认动画", value: "default" },
                  { name: "上下滚动", value: "scroll" },
                ],
              },
            },
            {
              type: "radio",
              name: "text",
              displayName: "文字按钮",
              value: "parent",
              config: {
                options: [
                  { name: "父容器默认", value: "parent" },
                  { name: "自定义配置", value: "custom" },
                ],
                mode: "button",
              },
            },
            {
              type: "radio",
              name: "icon",
              displayName: "icon按钮",
              value: "left",
              config: {
                options: [
                  { name: "左对齐", value: "left", icon: "align-left" },
                  { name: "居中对齐", value: "center", icon: "align-center" },
                  { name: "右对齐", value: "right", icon: "align-right" },
                  { name: "两端对齐", value: "justify", icon: "align-justify" },
                ],
                mode: "icon",
              },
            },
          ],
        },
        {
          name: "boolean",
          displayName: "布尔类型",
          value: [
            {
              type: "boolean",
              name: "default",
              displayName: "勾选",
              value: false,
            },
            {
              type: "boolean",
              name: "switch",
              displayName: "切换",
              value: false,
              config: {
                mode: "switch",
              },
            },
            {
              type: "boolean",
              name: "icon",
              displayName: "icon",
              value: true,
              config: {
                mode: "icon",
                icon: "bold",
              },
            },
          ],
        },
        {
          name: "range",
          displayName: "区间值",
          value: [
            {
              type: "range",
              name: "default",
              displayName: "旋转",
              value: -145,
              config: {
                min: -180,
                max: 180,
                suffix: "°",
              },
            },
            {
              type: "range",
              name: "dbrange",
              displayName: "范围",
              value: [-80, 45],
              config: {
                min: -180,
                max: 180,
                suffix: "°",
              },
            },
          ],
        },
        {
          name: "color",
          displayName: "颜色",
          value: [
            {
              type: "color",
              name: "default",
              displayName: "颜色",
              value: "#fff",
            },
            {
              type: "color",
              name: "simple",
              displayName: "简单颜色",
              value: "#fff",
              config: {
                simple: true,
              },
            },
            {
              type: "multicolor",
              name: "colors",
              displayName: "简单颜色",
              value: {
                type: "linear",
                pure: "#fff",
                linear: {
                  stops: [
                    { offset: 0, color: "rgba(255,0,0,0)" },
                    { offset: 100, color: "#0080ff" },
                  ],
                  angle: 30,
                  opacity: 1,
                },
              },
            },
          ],
        },
        {
          name: "grid",
          displayName: "九宫格",
          value: [
            {
              type: "grid",
              name: "basic",
              displayName: "基础九宫格",
              value: "topCenter",
              config: {
                options: [
                  "topLeft",
                  "topCenter",
                  "topRight",
                  "centerLeft",
                  "centerCenter",
                  "centerRight",
                  "bottomLeft",
                  "bottomCenter",
                  "bottomRight",
                ],
              },
            },
            {
              type: "grid",
              name: "position",
              displayName: "图例位置",
              value: "topCenter",
              config: {
                options: [
                  "topLeft",
                  "topCenter",
                  "topRight",
                  "centerLeft",
                  null,
                  "centerRight",
                  "bottomLeft",
                  "bottomCenter",
                  "bottomRight",
                ],
              },
            },
            {
              type: "grid",
              name: "positionCounter",
              displayName: "翻牌器位置",
              value: "topCenter",
              config: {
                options: [
                  null,
                  "topCenter",
                  null,
                  "centerLeft",
                  null,
                  "centerRight",
                  null,
                  "bottomCenter",
                  null,
                ],
              },
            },
            {
              type: "position",
              name: "viewpoint",
              displayName: "视点位置",
              value: [0.3, 0],
            },
          ],
        },
        {
          name: "compose",
          displayName: "套件",
          value: [
            {
              type: "shadow",
              name: "shadow",
              displayName: "文本阴影",
              value: {
                color: "#fff",
                vShadow: 8,
                hShadow: -10,
                blur: 8,
              },
            },
            {
              type: "shadow",
              name: "shadow2",
              displayName: "形状阴影",
              value: {
                color: "#fff",
                vShadow: 8,
                hShadow: -10,
                blur: 8,
                spread: 8,
              },
            },
            {
              type: "textStyle",
              name: "textStyle",
              displayName: "文本样式",
              value: {
                fontFamily: "Mircosoft Yahei",
                fontSize: 24,
                color: "#fff",
                bold: true,
                italic: false,
                letterSpacing: 0,
              },
            },
          ],
        },
        {
          name: "component",
          displayName: "组件",
          value: [
            {
              type: "treeSelect",
              name: "component",
              displayName: "组件",
              config: {
                multiple: true,
                options: [
                  {
                    title: "1-1",
                    value: "l-1",
                  },
                  {
                    title: "1-2",
                    value: "l-2",
                  },
                ],
              },
            },
          ],
        },
        {
          name: "upload",
          displayName: "上传",
          value: [
            {
              type: "model",
              name: "model",
              displayName: "模型文件",
              value: "",
            },
            {
              type: "image",
              name: "image",
              displayName: "图片",
              value: "https://cdn.jsdelivr.net/gh/lidakai/oss@master/uPic/cXqLCr.png",
            },
            {
              type: "video",
              name: "video",
              displayName: "视频",
              value: "icon-video",
            },
          ],
        },
      ],
    },
  ],
};
