weixin_58412143 2022-03-23 10:50 采纳率: 91.6%
浏览 154
已结题

怎样动态修改echarts 数据视图dataView的背景色

可以动态修改吗?像vue换肤一样,不用主题动态切换

 toolbox: {
              feature: {
                dataView: {
                  show: true,
                  readOnly: true,
                  backgroundColor: "RGBA(8, 24, 54, 1)",
                  textareaBorderColor: "RGBA(9, 58, 114, 1)",
                  textColor: "rgba(170, 180, 183, 1)",
                  buttonColor: "rgba(97, 229, 250, 1)",
                  buttonTextColor: "rgba(3, 23, 31, 1)",
                  textareaColor: "RGBA(8, 23, 54, 1)"
                },
              },
            },
  • 写回答

1条回答 默认 最新

  • 崽崽的谷雨 2022-03-23 11:30
    关注

    那你 切换时 改变 echarts的 options 对应的 项就行 。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 4月20日
  • 已采纳回答 4月12日
  • 创建了问题 3月23日