Taro

113 阅读1分钟
  1. echarts-for-weixin 1.1 render之前

    config = { navigationBarTitleText: 'taro echarts', usingComponents: { "ec-canvas": '../../ec-canvas/ec-canvas' } }; 1.2 css .container { position: absolute; top: 0; bottom: 0; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; box-sizing: border-box; } ec-canvas { width: 100%; height: 100%; }