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: [
                {
                  name: "left",
                  displayName: "X轴坐标",
                  labelLayout: 24,
                  labelPosition: "bottom",
                  value: 549,
                },
                {
                  name: "top",
                  labelLayout: 24,
                  labelPosition: "bottom",
                  displayName: "Y轴坐标",
                  value: 144,
                },
              ],
              labelLayout: 8,
            },
            {
              name: "chartDimension",
              displayName: "图表尺寸",
              value: [
                {
                  name: "width",
                  displayName: "宽度",
                  labelLayout: 24,
                  labelPosition: "bottom",
                  value: 400,
                },
                {
                  name: "height",
                  displayName: "高度",
                  labelLayout: 24,
                  labelPosition: "bottom",
                  value: 240,
                },
              ],
              labelLayout: 8,
            },
          ],
        },
        {
          name: "fontFamily",
          displayName: "字体",
          value: "Microsoft Yahei",
          type: "font",
        },
        // 添加一个测试用
        // {
        //   name: 'rangeColor',
        //   displayName: '背景颜色',
        //   value: 'rgba(63, 20, 255, 0.1)',
        //   type: 'rangeColor'
        // },
        // 添加一个多选测试
        {
          type: "group",
          name: "rangeColor",
          displayName: "颜色隐射",
          value: [
            {
              name: "rangeColor",
              displayName: "最大值 -> 最小值",
              type: "rangeColor",
              value: [
                {
                  offset: 0,
                  color: "#fff",
                },
                {
                  offset: 50,
                  color: "#000",
                },
              ],
            },
          ],
        },
        {
          type: "group",
          name: "margin",
          displayName: "边距",
          value: [
            {
              name: "left",
              displayName: "左",
              value: 40,
              config: {
                min: 0,
                span: 6,
                showStep: false,
              },
              type: "number",
            },
            {
              name: "top",
              displayName: "上",
              value: 30,
              config: {
                min: 0,
                span: 6,
                showStep: false,
              },
              type: "number",
            },
            {
              name: "right",
              displayName: "右",
              value: 40,
              config: {
                min: 0,
                span: 6,
                showStep: false,
              },
              type: "number",
            },
            {
              name: "bottom",
              displayName: "下",
              value: 40,
              config: {
                min: 0,
                span: 6,
                showStep: false,
              },
              type: "number",
            },
          ],
        },
        {
          displayName: "轮播动画",
          name: "animation",
          value: [
            {
              displayName: "开启",
              name: "show",
              value: false,
              type: "boolean",
            },
            {
              rule: [["show", "$eq", true]],
              displayName: "动画时长",
              name: "duration",
              value: 500,
              config: {
                min: 0,
                suffix: "毫秒",
              },
              type: "number",
            },
            {
              rule: [["show", "$eq", true]],
              displayName: "动画间隔",
              name: "interval",
              value: 1000,
              type: "number",
              config: {
                min: 0,
                suffix: "毫秒",
              },
            },
          ],
          config: {
            defaultOpen: false,
          },
        },
      ],
    },

    {
      name: "globleConfig",
      displayName: "全局配置",
      config: {
        layout: "horizontal",
      },
      type: "menu",
      value: [
        {
          name: "countConfig",
          displayName: "翻牌器",
          value: [
            {
              name: "suffixConfig",
              displayName: "后缀",
              value: [
                {
                  name: "support",
                  displayName: "开启",
                  type: "boolean",
                  value: true,
                },
              ],
            },
            {
              name: "numberConfig",
              displayName: "数值",
              value: [
                {
                  name: "support",
                  displayName: "开启",
                  type: "boolean",
                  value: true,
                },
              ],
            },
            {
              name: "upload7",
              displayName: "文件夹_new",
              config: {
                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: "suffixConfig",
              displayName: "后缀",
              value: [
                {
                  name: "support",
                  displayName: "开启",
                  type: "boolean",
                  value: true,
                },
              ],
            },
          ],
        },
      ],
    },
  ],
};

export const ScreenConfig = [
  {
    _name: "dimension",
    _displayName: "",
    _value: [
      {
        _name: "recommend",
        _displayName: "屏幕大小",
        _labelLayout: 6,
        _value: "0",
        _type: "select",
        _options: [
          {
            name: "大屏推荐尺寸1920*1080",
            value: "0",
          },
          {
            name: "web最常见尺寸1366*768",
            value: "1",
          },
          {
            name: "web最小尺寸1024*768",
            value: "2",
          },
          {
            name: "自定义",
            value: "4",
          },
        ],
      },
      {
        _name: "width",
        _displayName: "宽度",
        _className: "width",
        _labelPosition: "bottom",
        _value: 1920,
        _type: "number",
        _labelLayout: 24,
      },
      {
        _name: "height",
        _displayName: "高度",
        _className: "height",
        _labelPosition: "bottom",
        _value: 1080,
        _type: "number",
        _labelLayout: 24,
      },
    ],
  },
  {
    _name: "style",
    _displayName: "",
    _value: [
      {
        _name: "backgroundColor",
        _displayName: "背景色",
        _className: "backgroundColor",
        _value: "#232630",
        _type: "color",
      },
      {
        _name: "useBackground",
        _displayName: "启用背景图",
        _value: false,
        _type: "boolean",
        _tip: "上传的背景图在场景管理器中可作为调整镜头的参照",
      },
      {
        _displayName: "默认隐藏提示",
        _name: "defaultHide",
        _tip: "启用时，组件默认隐藏将显示颜色填充作为提示，禁用时不显示",
        _type: "boolean",
        _value: true,
      },
      {
        _rule: [["useBackground", "$eq", true]],
        _className: "background",
        _labelLayout: 6,
        _name: "background",
        _displayName: "背景图",
        _value: "",
        _type: "uploadImage",
      },
    ],
  },
  {
    _name: "component",
    _displayName: "",
    _value: [
      {
        _name: "grid",
        _className: "grid",
        _displayName: "栅格间距",
        _value: 1,
        _type: "number",
      },
      {
        _name: "zoom",
        _displayName: "预览设置",
        _className: "zoom",
        _labelLayout: 6,
        _value: "3",
        _type: "radio",
        _direction: "vertical",
        _options: [
          {
            name: "按屏幕比例适配",
            value: "0",
          },
          {
            name: "按约束布局自适应",
            value: "5",
          },
          {
            name: "强制铺满",
            value: "1",
          },
          {
            name: "原比例展示溢出滚动",
            value: "2",
          },
          {
            name: "原比例宽度铺满",
            value: "3",
          },
          {
            name: "原比例高度铺满",
            value: "4",
          },
        ],
      },
      {
        _name: "zoomSupplement",
        _displayName: "显示策略",
        _className: "zoomSupplement",
        _value: "pixelAdapt",
        _type: "radio",
        _options: [
          {
            name: "屏幕自适应",
            value: "pixelAdapt",
          },
          {
            name: "溢出滚动",
            value: "overflowScroll",
          },
        ],
        _rule: [
          ["zoom", "$eq", "3"],
          ["zoom", "$eq", "4"],
        ],
        _ruleType: "$or",
        _direction: "horizontal",
      },
    ],
  },
];
export const tabRuleVisibleConfig = [
  {
    displayName: "全局",
    name: "chart",
    value: [
      {
        name: "dimension",
        displayName: "位置尺寸",
        value: [
          {
            name: "chartPosition",
            displayName: "图表位置",
            value: [
              {
                name: "left",
                displayName: "X轴坐标",
                value: 986,
              },
              {
                name: "top",
                displayName: "Y轴坐标",
                value: 491,
              },
            ],
          },
          {
            name: "chartDimension",
            displayName: "图表尺寸",
            value: [
              {
                name: "width",
                displayName: "宽度",
                value: 308,
              },
              {
                name: "height",
                displayName: "高度",
                value: 282,
              },
            ],
          },
        ],
      },
      {
        name: "TextDirection",
        displayName: "文字方向",
        type: "radio",
        value: "horizontal",
        config: {
          options: [
            {
              name: "横排",
              value: "horizontal",
            },
            {
              name: "竖排",
              value: "vertical",
            },
          ],
        },
      },
      {
        name: "SwitchMode",
        displayName: "开关模式",
        type: "radio",
        value: "click",
        config: {
          options: [
            {
              name: "点击",
              value: "click",
            },
            {
              name: "平滑",
              value: "smooth",
            },
          ],
        },
      },
      {
        name: "textAlign",
        displayName: "水平对齐",
        value: "center",
        type: "radio",
        config: {
          options: [
            {
              name: "左对齐",
              value: "left",
              icon: "align-left",
            },
            {
              name: "居中对齐",
              value: "center",
              icon: "align-center",
            },
            {
              name: "右对齐",
              value: "right",
              icon: "align-right",
            },
          ],
          mode: "icon",
        },
      },
      {
        name: "textVertical",
        displayName: "垂直对齐",
        value: "center",
        type: "radio",
        config: {
          mode: "icon",
          options: [
            {
              name: "上",
              value: "top",
              icon: "toward-top",
            },
            {
              name: "居中",
              icon: "toward-column-center",
              value: "center",
            },
            {
              name: "下",
              icon: "toward-bottom",
              value: "bottom",
            },
          ],
        },
      },
      {
        name: "onTrigger",
        displayName: "初始化时触发交互",
        type: "boolean",
        value: true,
      },
      {
        rule: [["SwitchMode", "$eq", "smooth"]],
        name: "animation",
        displayName: "动画",
        type: "object",
        value: [
          {
            name: "show",
            value: true,
            type: "boolean",
          },
          {
            type: "select",
            name: "animationType",
            displayName: "动画类型",
            value: "swings",
            config: {
              options: [
                {
                  name: "波动",
                  value: "swings",
                },
                {
                  name: "无",
                  value: "no",
                },
              ],
            },
          },
        ],
        config: {
          layout: "horizontal",
        },
      },
    ],
    config: {
      layout: "horizontal",
    },
  },
  {
    name: "clickstyle",
    displayName: "样式",
    type: "menu",
    value: [
      {
        displayName: "开启状态",
        name: "open",
        value: [
          {
            displayName: "圆角",
            name: "roundCorner",
            type: "number",
            value: 4,
            config: {
              min: 1,
            },
          },
          {
            displayName: "文字",
            name: "text",
            // rule: [["chart/SwitchMode", "$eq", "click"]],
            value: [
              {
                rule: [["chart/SwitchMode", "$eq", "click"]],
                // rule: [["shadowShow", "$eq", true]],
                type: "shadow",
                name: "textShadow",
                displayName: "文本阴影",
                value: {
                  color: "#fff",
                  vShadow: 8,
                  hShadow: -10,
                  blur: 8,
                },
              },
            ],
          },
          {
            rule: [["chart/SwitchMode", "$eq", "click"]],
            // rule: [["shadowShow", "$eq", true]],
            type: "shadow",
            name: "textShadow",
            displayName: "文本阴影-2",
            value: {
              color: "#fff",
              vShadow: 8,
              hShadow: -10,
              blur: 8,
            },
          },
        ],
        rule: [],
      },
      {
        displayName: "关闭状态",
        name: "off",
        value: [
          {
            displayName: "圆角",
            name: "roundCorner",
            type: "number",
            value: 4,
            config: {
              min: 0,
            },
          },
          {
            displayName: "文字",
            name: "text",
            value: [
              {
                displayName: "文本样式",
                name: "textStyle",
                type: "textStyle",
                value: {
                  fontFamily: "微软雅黑",
                  fontSize: 16,
                  color: "rgb(101, 106, 122)",
                  bold: false,
                  italic: false,
                },
              },
              {
                name: "translate",
                displayName: "偏移",
                value: [
                  {
                    name: "x",
                    displayName: "X",
                    value: 0,
                    type: "number",
                    config: {
                      suffix: "px",
                      span: 12,
                    },
                  },
                  {
                    name: "y",
                    displayName: "Y",
                    value: 0,
                    type: "number",
                    config: {
                      suffix: "px",
                      span: 12,
                    },
                  },
                ],
                type: "group",
              },
              {
                name: "shadowShow",
                displayName: "阴影",
                type: "boolean",
                value: false,
              },
              {
                type: "shadow",
                name: "textShadow",
                displayName: "文本阴影",
                value: {
                  color: "#fff",
                  vShadow: 8,
                  hShadow: -10,
                  blur: 8,
                },
              },
            ],
          },
          {
            displayName: "背景",
            name: "background",
            value: [
              {
                type: "select",
                name: "backgroundType",
                displayName: "填充方式",
                value: "color",
                config: {
                  options: [
                    {
                      name: "颜色",
                      value: "color",
                    },
                    {
                      name: "图片",
                      value: "img",
                    },
                  ],
                },
              },
              {
                rule: [["backgroundType", "$eq", "color"]],
                name: "backgroundColor",
                displayName: "颜色",
                value: "rgba(0, 41, 66)",
                type: "color",
              },
              {
                rule: [["backgroundType", "$eq", "img"]],
                name: "img",
                displayName: "图片",
                type: "image",
                value: "components/static-image/shiba/lyy02.jpg",
              },
            ],
          },
          {
            displayName: "描边",
            name: "stroke",
            value: [
              {
                name: "show",
                value: true,
                type: "boolean",
              },
              {
                type: "select",
                name: "strokeType",
                displayName: "线条类型",
                value: "solid",
                config: {
                  options: [
                    {
                      name: "实线",
                      value: "solid",
                    },
                    {
                      name: "虚线",
                      value: "dashed",
                    },
                  ],
                },
              },
              {
                displayName: "粗细",
                name: "strokeThickness",
                type: "number",
                value: 1,
                config: {
                  min: 1,
                },
              },
              {
                displayName: "颜色",
                name: "strokeColor",
                type: "color",
                value: "rgba(50, 100, 147,1)",
              },
            ],
          },
          {
            displayName: "阴影",
            name: "shadow",
            value: [
              {
                name: "show",
                value: true,
                type: "boolean",
              },
              {
                type: "shadow",
                name: "inShadow",
                displayName: "内阴影",
                value: {
                  color: "#fff",
                  vShadow: 0,
                  hShadow: 0,
                  blur: 0,
                },
              },
              {
                type: "shadow",
                name: "outShadow",
                displayName: "外阴影",
                value: {
                  color: "#fff",
                  vShadow: 0,
                  hShadow: 0,
                  blur: 0,
                },
              },
            ],
          },
          {
            displayName: "图标",
            name: "icon",
            value: [
              {
                name: "show",
                value: true,
                type: "boolean",
              },
              {
                displayName: "图片",
                name: "iconImage",
                type: "image",
                value: "components/static-image/end.png",
              },
              {
                displayName: "尺寸",
                name: "iconSize",
                type: "group",
                value: [
                  {
                    displayName: "宽度",
                    name: "iconWidth",
                    type: "number",
                    value: 24,
                    config: {
                      span: 12,
                      showStep: false,
                      suffix: "px",
                    },
                  },
                  {
                    displayName: "高度",
                    name: "iconHeight",
                    type: "number",
                    value: 24,
                    config: {
                      span: 12,
                      showStep: false,
                      suffix: "px",
                    },
                  },
                ],
              },
              {
                displayName: "位置",
                name: "iconPosition",
                type: "group",
                value: [
                  {
                    displayName: "X",
                    name: "iconPositionX",
                    type: "number",
                    value: 10,
                    config: {
                      span: 12,
                      showStep: false,
                      suffix: "px",
                    },
                  },
                  {
                    displayName: "Y",
                    name: "iconPositionY",
                    type: "number",
                    value: 0,
                    config: {
                      span: 12,
                      showStep: false,
                      suffix: "px",
                    },
                  },
                ],
              },
            ],
          },
          {
            displayName: "图件设计",
            name: "drawDesign",
            value: [
              {
                name: "show",
                value: true,
                type: "boolean",
              },
              {
                displayName: "圆角",
                name: "roundCorner",
                type: "number",
                value: 20,
                config: {
                  min: 1,
                },
              },
              {
                name: "fillColor",
                displayName: "填充颜色",
                value: "rgba(0, 41, 66,1)",
                type: "color",
              },
              {
                name: "dotColor",
                displayName: "圆点颜色",
                value: "rgb(101, 106, 122)",
                type: "color",
              },
              {
                displayName: "描边",
                name: "stroke",
                value: [
                  {
                    name: "show",
                    value: true,
                    type: "boolean",
                  },
                  {
                    type: "select",
                    name: "strokeType",
                    displayName: "线条类型",
                    value: "solid",
                    config: {
                      options: [
                        {
                          name: "实线",
                          value: "solid",
                        },
                        {
                          name: "虚线",
                          value: "dashed",
                        },
                      ],
                    },
                  },
                  {
                    displayName: "粗细",
                    name: "strokeThickness",
                    type: "number",
                    value: 2,
                    config: {
                      min: 1,
                    },
                  },
                  {
                    displayName: "颜色",
                    name: "strokeColor",
                    type: "color",
                    value: "rgb(101, 106, 122)",
                  },
                ],
              },
              {
                displayName: "阴影",
                name: "shadow",
                value: [
                  {
                    name: "show",
                    value: true,
                    type: "boolean",
                  },
                  {
                    type: "shadow",
                    name: "inShadow",
                    displayName: "内阴影",
                    value: {
                      color: "#fff",
                      vShadow: 0,
                      hShadow: 0,
                      blur: 0,
                    },
                  },
                  {
                    type: "shadow",
                    name: "outShadow",
                    displayName: "外阴影",
                    value: {
                      color: "#fff",
                      vShadow: 0,
                      hShadow: 0,
                      blur: 0,
                    },
                  },
                ],
              },
            ],
          },
        ],
        rule: [],
      },
    ],
  },
];

export const chartOnlyDimensionConfig = [
  {
    name: "chart",
    displayName: "组件",
    value: [
      {
        name: "dimension",
        displayName: "位置尺寸",
        value: [
          {
            name: "chartPosition",
            displayName: "图表位置",
            value: [
              {
                name: "left",
                displayName: "X轴坐标",
                value: 1745,
              },
              {
                name: "top",
                displayName: "Y轴坐标",
                value: 576,
              },
            ],
          },
          {
            name: "chartDimension",
            displayName: "图表尺寸",
            value: [
              {
                name: "width",
                displayName: "宽度",
                value: 64,
              },
              {
                name: "height",
                displayName: "高度",
                value: 54,
              },
            ],
          },
        ],
      },
    ],
  },
  {
    name: "globleConfig",
    displayName: "全局配置",
    config: {
      layout: "horizontal",
    },
    value: [
      {
        type: "select",
        name: "titlePostion",
        displayName: "排列方式",
        value: "标题在左",
        config: {
          options: [
            {
              name: "标题在上",
              value: "标题在上",
            },
            {
              name: "标题在下",
              value: "标题在下",
            },
            {
              name: "标题在左",
              value: "标题在左",
            },
            {
              name: "标题在右",
              value: "标题在右",
            },
          ],
        },
      },
      {
        name: "alignment",
        displayName: "对齐方式",
        value: "左对齐",
        type: "radio",
        config: {
          options: [
            {
              name: "左对齐",
              value: "左对齐",
              icon: "toward-left",
            },
            {
              name: "居中",
              value: "居中",
              icon: "toward-center",
            },
            {
              name: "右对齐",
              value: "右对齐",
              icon: "toward-right",
            },
            {
              name: "两边对齐",
              value: "两边对齐",
              icon: "toward-justify",
            },
          ],
          mode: "icon",
        },
      },
      {
        name: "titleConfig",
        displayName: "标题",
        config: {
          defaultOpen: true,
        },
        value: [
          {
            name: "show",
            displayName: "开启",
            type: "boolean",
            value: false,
          },
          {
            type: "input",
            name: "content",
            displayName: "内容",
            tip: "组件优先使用数据面板中配置的数据，未配置数据面板中的数据时使用此处数据",
            value: "教师总数",
          },
          {
            name: "shadow",
            displayName: "阴影",
            type: "shadow",
            value: {
              vShadow: 0,
              hShadow: 0,
              blur: 4,
              color: "rgba(128,128,128,0)",
            },
          },
          {
            type: "group",
            name: "textStyle",
            displayName: "文本样式",
            value: [
              {
                type: "font",
                name: "fontFamily",
                displayName: "",
                value: "思源黑体 CN-Regular",
                config: {
                  span: 16,
                },
              },
              {
                type: "number",
                name: "fontSize",
                displayName: "",
                value: 16,
                config: {
                  span: 8,
                  layout: 4,
                },
              },
              {
                name: "color",
                displayName: "",
                type: "multicolor",
                value: {
                  type: "pure",
                  pure: "#1A1A1A",
                  linear: {
                    stops: [
                      {
                        offset: 0,
                        color: "#fff",
                      },
                      {
                        offset: 100,
                        color: "#f0f",
                      },
                    ],
                    angle: 0,
                    opacity: 1,
                  },
                },
              },
              {
                type: "boolean",
                name: "bold",
                displayName: "",
                value: false,
                config: {
                  mode: "icon",
                  icon: "bold",
                  span: 4,
                },
              },
              {
                type: "boolean",
                name: "italic",
                displayName: "",
                value: false,
                config: {
                  mode: "icon",
                  icon: "italic",
                  span: 4,
                },
              },
              {
                type: "number",
                name: "letterSpacing",
                displayName: "字距",
                value: 2,
                config: {
                  suffix: "px",
                  placeholder: "",
                  span: 8,
                },
              },
              {
                type: "number",
                name: "lineHeight",
                displayName: "行高",
                value: 1.5,
                config: {
                  suffix: "px",
                  placeholder: "",
                  span: 8,
                  disabled: true,
                },
              },
            ],
          },
          {
            name: "textOverflow",
            displayName: "文本溢出",
            type: "select",
            value: "break-word",
            config: {
              options: [
                {
                  name: "换行",
                  value: "break-word",
                },
                {
                  name: "省略号",
                  value: "ellipsis",
                },
                {
                  name: "跑马灯",
                  value: "marquee",
                },
              ],
            },
          },
          {
            rule: [["textOverflow", "$eq", "marquee"]],
            name: "speed",
            displayName: "速度",
            type: "number",
            value: 5,
            config: {
              min: 0,
            },
          },
          {
            type: "group",
            name: "offsetConfig",
            displayName: "偏移",
            value: [
              {
                name: "x",
                displayName: "X",
                value: 0,
                type: "number",
                config: {
                  span: 12,
                  suffix: "px",
                },
              },
              {
                name: "y",
                displayName: "Y",
                value: 0,
                type: "number",
                config: {
                  span: 12,
                  suffix: "px",
                },
              },
            ],
          },
        ],
      },
    ],
  },
  {
    name: "countConfig",
    displayName: "翻牌器",
    type: "menu",
    value: [
      {
        name: "prefixConfig",
        displayName: "前缀",
        value: [
          {
            name: "support",
            displayName: "开启",
            type: "boolean",
            value: false,
          },
          {
            rule: [["support", "$eq", true]],
            type: "input",
            name: "content",
            displayName: "内容",
            value: "¥",
            tip: "优先取数据中的prefix",
          },
          {
            rule: [["support", "$eq", true]],
            type: "boolean",
            name: "numberStyle",
            displayName: "样式跟随数字",
            value: false,
          },
          {
            rule: [
              ["numberStyle", "$eq", false],
              ["support", "$eq", true],
            ],
            type: "textStyle",
            name: "textStyle",
            displayName: "文本样式",
            value: {
              fontFamily: "Mircosoft Yahei",
              fontSize: 24,
              color: "#fff",
              bold: true,
              italic: false,
              letterSpacing: 0,
            },
          },
          {
            rule: [["support", "$eq", true]],
            type: "group",
            name: "offsetConfig",
            displayName: "偏移",
            value: [
              {
                name: "x",
                displayName: "X",
                value: 0,
                type: "number",
                config: {
                  span: 12,
                  suffix: "px",
                },
              },
              {
                name: "y",
                displayName: "Y",
                value: 0,
                type: "number",
                config: {
                  span: 12,
                  suffix: "px",
                },
              },
            ],
          },
        ],
      },
      {
        name: "numberConfig",
        displayName: "数值",
        value: [
          {
            type: "array",
            name: "dataRangConfig",
            displayName: "数值区间",
            value: [
              {
                name: "series",
                displayName: "系列",
                config: {
                  defaultOpen: true,
                },
                value: [
                  {
                    type: "group",
                    name: "valueRange",
                    displayName: "数值范围",
                    value: [
                      {
                        name: "min",
                        displayName: "最小值",
                        value: null,
                        type: "number",
                        config: {
                          allowInput: true,
                          span: 12,
                          showStep: false,
                        },
                      },
                      {
                        name: "max",
                        displayName: "最大值",
                        value: null,
                        type: "number",
                        config: {
                          allowInput: true,
                          span: 12,
                          showStep: false,
                        },
                      },
                    ],
                  },
                  {
                    type: "group",
                    name: "textStyle",
                    displayName: "文本样式",
                    value: [
                      {
                        type: "font",
                        name: "fontFamily",
                        displayName: "",
                        value: "思源黑体 CN-Regular",
                        config: {
                          span: 16,
                        },
                      },
                      {
                        type: "number",
                        name: "fontSize",
                        displayName: "",
                        value: 26,
                        config: {
                          span: 8,
                          layout: 4,
                        },
                      },
                      {
                        name: "color",
                        displayName: "",
                        type: "color",
                        value: "#e45f4b",
                      },
                      {
                        type: "boolean",
                        name: "bold",
                        displayName: "",
                        value: false,
                        config: {
                          mode: "icon",
                          icon: "bold",
                          span: 4,
                        },
                      },
                      {
                        type: "boolean",
                        name: "italic",
                        displayName: "",
                        value: false,
                        config: {
                          mode: "icon",
                          icon: "italic",
                          span: 4,
                        },
                      },
                      {
                        type: "number",
                        name: "lineHeight",
                        displayName: "行高",
                        value: 20,
                        config: {
                          suffix: "px",
                          placeholder: "",
                          span: 16,
                        },
                      },
                    ],
                  },
                  {
                    name: "shadowConfig",
                    displayName: "阴影",
                    value: [
                      {
                        name: "show",
                        displayName: "开启",
                        type: "boolean",
                        value: false,
                      },
                      {
                        type: "shadow",
                        name: "textShadow",
                        displayName: "文字阴影",
                        value: {
                          color: "#1380ff",
                          vShadow: 0,
                          hShadow: 0,
                          blur: 10,
                        },
                      },
                    ],
                  },
                ],
              },
            ],
            config: {
              defaultOpen: true,
              template: {
                name: "series",
                displayName: "系列",
                config: {
                  defaultOpen: true,
                },
                value: [
                  {
                    type: "group",
                    name: "valueRange",
                    displayName: "数值范围",
                    value: [
                      {
                        name: "min",
                        displayName: "最小值",
                        value: null,
                        type: "number",
                        config: {
                          allowInput: true,
                          span: 12,
                          showStep: false,
                        },
                      },
                      {
                        name: "max",
                        displayName: "最大值",
                        value: null,
                        type: "number",
                        config: {
                          allowInput: true,
                          span: 12,
                          showStep: false,
                        },
                      },
                    ],
                  },
                  {
                    type: "group",
                    name: "textStyle",
                    displayName: "文本样式",
                    value: [
                      {
                        type: "font",
                        name: "fontFamily",
                        displayName: "",
                        value: "manrope-bold",
                        config: {
                          span: 16,
                        },
                      },
                      {
                        type: "number",
                        name: "fontSize",
                        displayName: "",
                        value: 42,
                        config: {
                          span: 8,
                          layout: 4,
                        },
                      },
                      {
                        name: "color",
                        displayName: "",
                        type: "color",
                        value: "#fff",
                      },
                      {
                        type: "boolean",
                        name: "bold",
                        displayName: "",
                        value: true,
                        config: {
                          mode: "icon",
                          icon: "bold",
                          span: 4,
                        },
                      },
                      {
                        type: "boolean",
                        name: "italic",
                        displayName: "",
                        value: false,
                        config: {
                          mode: "icon",
                          icon: "italic",
                          span: 4,
                        },
                      },
                      {
                        type: "number",
                        name: "lineHeight",
                        displayName: "行高",
                        value: 42,
                        config: {
                          suffix: "px",
                          placeholder: "",
                          span: 16,
                        },
                      },
                    ],
                  },
                  {
                    name: "shadowConfig",
                    displayName: "阴影",
                    value: [
                      {
                        name: "show",
                        displayName: "开启",
                        type: "boolean",
                        value: true,
                      },
                      {
                        type: "shadow",
                        name: "textShadow",
                        displayName: "文字阴影",
                        value: {
                          color: "#fff",
                          vShadow: 0,
                          hShadow: 0,
                          blur: 5,
                        },
                      },
                    ],
                  },
                ],
              },
            },
          },
          {
            name: "layoutConfig",
            displayName: "布局",
            value: [
              {
                type: "group",
                name: "sizeConfig",
                displayName: "尺寸",
                value: [
                  {
                    name: "width",
                    displayName: "宽度",
                    value: 5,
                    type: "number",
                    config: {
                      span: 12,
                      suffix: "px",
                    },
                  },
                  {
                    name: "height",
                    displayName: "高度",
                    value: 14,
                    type: "number",
                    config: {
                      span: 12,
                      suffix: "px",
                    },
                  },
                ],
              },
              {
                type: "group",
                name: "spacingConfig",
                displayName: "间距",
                value: [
                  {
                    name: "left",
                    displayName: "左",
                    value: 4,
                    type: "number",
                    config: {
                      span: 12,
                      suffix: "px",
                    },
                  },
                  {
                    name: "right",
                    displayName: "右",
                    value: 4,
                    type: "number",
                    config: {
                      span: 12,
                      suffix: "px",
                    },
                  },
                ],
              },
              {
                type: "boolean",
                name: "fixWidthSwitch",
                displayName: "固定宽度",
                value: false,
              },
              {
                rule: [["fixWidthSwitch", "$eq", true]],
                type: "number",
                name: "fixWidth",
                displayName: "宽度",
                value: 300,
                config: {
                  suffix: "px",
                },
              },
            ],
          },
          {
            name: "formateConfig",
            displayName: "格式化",
            value: [
              {
                type: "input",
                name: "errorStr",
                displayName: "异常数据占位",
                value: "#",
              },
              {
                type: "number",
                name: "zeroize",
                displayName: "补零位数",
                value: 0,
                config: {
                  min: 0,
                  max: 20,
                },
              },
              {
                name: "decimalConfig",
                displayName: "小数",
                value: [
                  {
                    type: "number",
                    name: "count",
                    displayName: "位数",
                    value: 0,
                    config: {
                      min: 0,
                      max: 10,
                    },
                  },
                  {
                    name: "noZero",
                    displayName: "尾零省略",
                    type: "boolean",
                    value: false,
                  },
                  {
                    type: "radio",
                    name: "style",
                    displayName: "样式",
                    value: "default",
                    config: {
                      options: [
                        {
                          name: "默认",
                          value: "default",
                        },
                        {
                          name: "自定义",
                          value: "custom",
                        },
                      ],
                      mode: "normal",
                    },
                  },
                  {
                    rule: [["style", "$eq", "custom"]],
                    type: "number",
                    name: "fontSize",
                    displayName: "字号",
                    value: 12,
                  },
                  {
                    rule: [["style", "$eq", "custom"]],
                    type: "group",
                    name: "numberSpacingConfig",
                    displayName: "数字间距",
                    value: [
                      {
                        name: "left",
                        displayName: "左",
                        value: 0,
                        type: "number",
                        config: {
                          span: 12,
                          suffix: "px",
                        },
                      },
                      {
                        name: "right",
                        displayName: "右",
                        value: 0,
                        type: "number",
                        config: {
                          span: 12,
                          suffix: "px",
                        },
                      },
                    ],
                  },
                  {
                    rule: [["style", "$eq", "custom"]],
                    type: "group",
                    name: "offsetConfig",
                    displayName: "偏移",
                    value: [
                      {
                        name: "x",
                        displayName: "X",
                        value: 0,
                        type: "number",
                        config: {
                          span: 12,
                          suffix: "px",
                        },
                      },
                      {
                        name: "y",
                        displayName: "Y",
                        value: 0,
                        type: "number",
                        config: {
                          span: 12,
                          suffix: "px",
                        },
                      },
                    ],
                  },
                  {
                    type: "group",
                    name: "pointSpacingConfig",
                    displayName: "点间距",
                    value: [
                      {
                        name: "left",
                        displayName: "左",
                        value: 0,
                        type: "number",
                        config: {
                          span: 12,
                          suffix: "px",
                        },
                      },
                      {
                        name: "right",
                        displayName: "右",
                        value: 0,
                        type: "number",
                        config: {
                          span: 12,
                          suffix: "px",
                        },
                      },
                    ],
                  },
                ],
              },
              {
                name: "splitConfig",
                displayName: "分割",
                value: [
                  {
                    name: "show",
                    displayName: "开启",
                    type: "boolean",
                    value: false,
                  },
                  {
                    rule: [["show", "$eq", true]],
                    type: "number",
                    name: "splitCount",
                    displayName: "分割位数",
                    value: 3,
                  },
                  {
                    rule: [["show", "$eq", true]],
                    type: "radio",
                    name: "style",
                    displayName: "样式",
                    value: "default",
                    config: {
                      options: [
                        {
                          name: "默认",
                          value: "default",
                        },
                        {
                          name: "自定义",
                          value: "custom",
                        },
                      ],
                      mode: "normal",
                    },
                  },
                  {
                    rule: [
                      ["show", "$eq", true],
                      ["style", "$eq", "custom"],
                    ],
                    type: "input",
                    name: "separator",
                    displayName: "分隔符",
                    value: ",",
                  },
                  {
                    rule: [
                      ["show", "$eq", true],
                      ["style", "$eq", "custom"],
                    ],
                    type: "font",
                    name: "fontFamily",
                    displayName: "分隔符字体",
                    value: "Microsoft Yahei",
                  },
                  {
                    rule: [["show", "$eq", true]],
                    type: "group",
                    name: "spacingConfig",
                    displayName: "分隔符间距",
                    value: [
                      {
                        name: "left",
                        displayName: "左",
                        value: 0,
                        type: "number",
                        config: {
                          span: 12,
                          suffix: "px",
                        },
                      },
                      {
                        name: "right",
                        displayName: "右",
                        value: 0,
                        type: "number",
                        config: {
                          span: 12,
                          suffix: "px",
                        },
                      },
                    ],
                  },
                ],
              },
            ],
          },
          {
            name: "backgroundConfig",
            displayName: "背景",
            value: [
              {
                name: "show",
                displayName: "开启",
                type: "boolean",
                value: false,
              },
              {
                rule: [["show", "$eq", true]],
                type: "image",
                name: "url",
                displayName: "图片",
                value: "components/static-image/counterV2/background.png",
              },
            ],
          },
          {
            name: "formateSymbol",
            displayName: "自定义符号",
            value: [
              {
                name: "show",
                displayName: "开启",
                type: "boolean",
                value: false,
              },
              {
                rule: [["show", "$eq", true]],
                name: "symbolPosition",
                displayName: "位置",
                value: "beforeValue",
                type: "radio",
                config: {
                  options: [
                    {
                      name: "数值前",
                      value: "beforeValue",
                    },
                    {
                      name: "数值后",
                      value: "afterValue",
                    },
                  ],
                  mode: "normal",
                },
              },
              {
                rule: [["show", "$eq", true]],
                name: "symbolType",
                displayName: "符号",
                value: "positive",
                type: "radio",
                config: {
                  options: [
                    {
                      name: "增长",
                      value: "positive",
                    },
                    {
                      name: "持平",
                      value: "equal",
                    },
                    {
                      name: "减少",
                      value: "negative",
                    },
                  ],
                  mode: "button",
                },
              },
              {
                rule: [
                  ["show", "$eq", true],
                  ["symbolType", "$eq", "positive"],
                ],
                type: "image",
                name: "positiveImage",
                displayName: "图片",
                value: "components/static-image/counterV2/positive.png",
              },
              {
                rule: [
                  ["show", "$eq", true],
                  ["symbolType", "$eq", "positive"],
                ],
                type: "group",
                name: "positiveSizeConfig",
                displayName: "尺寸",
                value: [
                  {
                    name: "width",
                    displayName: "宽度",
                    value: 40,
                    type: "number",
                    config: {
                      span: 12,
                      suffix: "px",
                    },
                  },
                  {
                    name: "height",
                    displayName: "高度",
                    value: 40,
                    type: "number",
                    config: {
                      span: 12,
                      suffix: "px",
                    },
                  },
                ],
              },
              {
                rule: [
                  ["show", "$eq", true],
                  ["symbolType", "$eq", "positive"],
                ],
                type: "group",
                name: "positiveOffsetConfig",
                displayName: "偏移",
                value: [
                  {
                    name: "x",
                    displayName: "X",
                    value: 0,
                    type: "number",
                    config: {
                      span: 12,
                      suffix: "px",
                    },
                  },
                  {
                    name: "y",
                    displayName: "Y",
                    value: 0,
                    type: "number",
                    config: {
                      span: 12,
                      suffix: "px",
                    },
                  },
                ],
              },
              {
                rule: [
                  ["show", "$eq", true],
                  ["symbolType", "$eq", "equal"],
                ],
                type: "image",
                name: "equalImage",
                displayName: "图片",
                value: "",
              },
              {
                rule: [
                  ["show", "$eq", true],
                  ["symbolType", "$eq", "equal"],
                ],
                type: "group",
                name: "equalSizeConfig",
                displayName: "尺寸",
                value: [
                  {
                    name: "width",
                    displayName: "宽度",
                    value: 40,
                    type: "number",
                    config: {
                      span: 12,
                      suffix: "px",
                    },
                  },
                  {
                    name: "height",
                    displayName: "高度",
                    value: 40,
                    type: "number",
                    config: {
                      span: 12,
                      suffix: "px",
                    },
                  },
                ],
              },
              {
                rule: [
                  ["show", "$eq", true],
                  ["symbolType", "$eq", "equal"],
                ],
                type: "group",
                name: "equalOffsetConfig",
                displayName: "偏移",
                value: [
                  {
                    name: "x",
                    displayName: "X",
                    value: 0,
                    type: "number",
                    config: {
                      span: 12,
                      suffix: "px",
                    },
                  },
                  {
                    name: "y",
                    displayName: "Y",
                    value: 0,
                    type: "number",
                    config: {
                      span: 12,
                      suffix: "px",
                    },
                  },
                ],
              },
              {
                rule: [
                  ["show", "$eq", true],
                  ["symbolType", "$eq", "negative"],
                ],
                type: "image",
                name: "negativeImage",
                displayName: "图片",
                value: "components/static-image/counterV2/negative.png",
              },
              {
                rule: [
                  ["show", "$eq", true],
                  ["symbolType", "$eq", "negative"],
                ],
                type: "group",
                name: "negativeSizeConfig",
                displayName: "尺寸",
                value: [
                  {
                    name: "width",
                    displayName: "宽度",
                    value: 40,
                    type: "number",
                    config: {
                      span: 12,
                      suffix: "px",
                    },
                  },
                  {
                    name: "height",
                    displayName: "高度",
                    value: 40,
                    type: "number",
                    config: {
                      span: 12,
                      suffix: "px",
                    },
                  },
                ],
              },
              {
                rule: [
                  ["show", "$eq", true],
                  ["symbolType", "$eq", "negative"],
                ],
                type: "group",
                name: "negativeOffsetConfig",
                displayName: "偏移",
                value: [
                  {
                    name: "x",
                    displayName: "X",
                    value: 0,
                    type: "number",
                    config: {
                      span: 12,
                      suffix: "px",
                    },
                  },
                  {
                    name: "y",
                    displayName: "Y",
                    value: 0,
                    type: "number",
                    config: {
                      span: 12,
                      suffix: "px",
                    },
                  },
                ],
              },
            ],
          },
          {
            name: "animationConfig",
            displayName: "动画",
            value: [
              {
                type: "radio",
                name: "animationType",
                displayName: "动画类型",
                tip: "当尺寸当宽度、高度同时大于0时才能够开启滚动动画",
                value: "bounce",
                config: {
                  options: [
                    {
                      name: "无动画",
                      value: "none",
                    },
                    {
                      name: "跳动",
                      value: "bounce",
                    },
                    {
                      name: "滚动",
                      value: "scroll",
                    },
                  ],
                  mode: "normal",
                },
              },
              {
                rule: [["animationType", "$neq", "none"]],
                type: "number",
                name: "time",
                displayName: "动画时间",
                value: 1,
                config: {
                  span: 12,
                  min: 0.1,
                  step: 0.1,
                  suffix: "s",
                },
              },
              {
                rule: [["animationType", "$eq", "bounce"]],
                type: "range",
                name: "startPercent",
                displayName: "起跳占比",
                value: 0.5,
                config: {
                  span: 12,
                  min: 0,
                  max: 1,
                  step: 0.000001,
                },
              },
              {
                rule: [
                  ["simulateGetData", "$eq", false],
                  ["animationType", "$eq", "bounce"],
                ],
                type: "number",
                name: "animationInterval",
                displayName: "动画间隔",
                tip: "每隔多少时间重复一次动画效果",
                value: 0,
                config: {
                  min: 0,
                  suffix: "s",
                },
              },
              {
                rule: [["animationType", "$neq", "none"]],
                type: "boolean",
                name: "simulateGetData",
                displayName: "模拟数据请求",
                value: false,
              },
              {
                rule: [["simulateGetData", "$eq", true]],
                type: "number",
                name: "simulateGetDataInterval",
                displayName: "跳动时长",
                value: 10,
                config: {
                  min: 0.01,
                  suffix: "s",
                },
              },
              {
                rule: [["simulateGetData", "$eq", true]],
                type: "number",
                name: "simulateGetDataTimes",
                displayName: "次数",
                value: 5,
                config: {
                  min: 1,
                },
              },
            ],
          },
        ],
      },
      {
        name: "suffixConfig",
        displayName: "后缀",
        value: [
          {
            name: "support",
            displayName: "开启",
            type: "boolean",
            value: true,
          },
          {
            rule: [["support", "$eq", true]],
            type: "input",
            name: "content",
            displayName: "内容",
            value: "人",
            tip: "优先取数据中的suffix",
          },
          {
            rule: [["support", "$eq", true]],
            type: "boolean",
            name: "numberStyle",
            displayName: "样式跟随数字",
            value: false,
          },
          {
            rule: [
              ["numberStyle", "$eq", false],
              ["support", "$eq", true],
            ],
            type: "textStyle",
            name: "textStyle",
            displayName: "文本样式",
            value: {
              fontFamily: "思源黑体 CN-Regular",
              fontSize: 16,
              color: "#4d5966",
              bold: false,
              italic: false,
              letterSpacing: 0,
              lineHeight: 20,
            },
          },
          {
            rule: [
              ["numberStyle", "$eq", false],
              ["support", "$eq", true],
            ],
            name: "shadowConfig",
            displayName: "阴影",
            value: [
              {
                name: "show",
                displayName: "开启",
                type: "boolean",
                value: false,
              },
              {
                type: "shadow",
                name: "textShadow",
                displayName: "文字阴影",
                value: {
                  color: "#1380ff",
                  vShadow: 0,
                  hShadow: 0,
                  blur: 10,
                },
              },
            ],
          },
          {
            rule: [["support", "$eq", true]],
            type: "group",
            name: "offsetConfig",
            displayName: "偏移",
            value: [
              {
                name: "x",
                displayName: "X",
                value: 5,
                type: "number",
                config: {
                  span: 12,
                  suffix: "px",
                },
              },
              {
                name: "y",
                displayName: "Y",
                value: 3,
                type: "number",
                config: {
                  span: 12,
                  suffix: "px",
                },
              },
            ],
          },
        ],
      },
    ],
  },
  {
    name: "interaction",
    displayName: "交互",
    value: [
      {
        name: "callback",
        displayName: "回调参数",
        type: "array",
        value: [],
        config: {
          template: {
            name: "callback",
            displayName: "回调",
            value: [
              {
                type: "select",
                name: "actionName",
                displayName: "匹配动作",
                value: "click",
                config: {
                  options: [
                    {
                      name: "鼠标点击",
                      value: "click",
                    },
                    {
                      name: "鼠标移入",
                      value: "enter",
                    },
                    {
                      name: "鼠标移出",
                      value: "leave",
                    },
                  ],
                },
              },
              {
                type: "input",
                name: "value",
                displayName: "字段值",
                value: "",
              },
              {
                type: "input",
                name: "target",
                displayName: "变量名",
                value: "",
                config: {
                  callback: true,
                },
              },
            ],
          },
        },
      },
    ],
  },
];
