Code Monkey home page Code Monkey logo

Comments (6)

mangoooooo avatar mangoooooo commented on August 16, 2024 1
<block wx:if="{{canvasId}}">
    <canvas class="{{canvasId}} ec-canvas" canvas-id="{{canvasId}}" bindtouchstart="touchStart" bindtouchmove="touchMove"
            bindtouchend="touchEnd">
    </canvas>
  </block>

外面套个if

from echarts-for-wechat-wepy.

zw-zhuangwei avatar zw-zhuangwei commented on August 16, 2024

@HiCody 多图表显示你解决了么??我也遇到这样的问题

from echarts-for-wechat-wepy.

zw-zhuangwei avatar zw-zhuangwei commented on August 16, 2024

@HiCody 估计要动态绑定canvasId 可以试一下

from echarts-for-wechat-wepy.

ZZZhangrong avatar ZZZhangrong commented on August 16, 2024

canvasId 好像不能动态赋值 我试过了不行 所以每个表都写了一边 赋值不同的canvasId

from echarts-for-wechat-wepy.

ouweican avatar ouweican commented on August 16, 2024

我搞了两个组件把子组件的canvas-id和data对象里的canvasId值设置成一样的,引入两个组件到父组件就OK了

from echarts-for-wechat-wepy.

HoseaGuo avatar HoseaGuo commented on August 16, 2024

@mangoooooo 这样真的可以啊,为什么吗?

from echarts-for-wechat-wepy.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.