@visactor/taro-vchart 1.2.0 → 1.2.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/src/index.js +2 -3
  2. package/package.json +2 -2
package/lib/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import VChart$1 from '@visactor/vchart/build';
2
+ import VChart$1 from '@visactor/vchart/build/es5';
3
3
  import { View, Canvas } from '@tarojs/components';
4
4
  import Taro from '@tarojs/taro';
5
5
 
@@ -269,8 +269,7 @@ class GeneralChart extends React.Component {
269
269
  }
270
270
  render() {
271
271
  const handleEvent = (event) => {
272
- const id = event.target.id.split('_')[0];
273
- if (id === this.props.canvasId && this.ttCanvas.chartInstance) {
272
+ if (this.ttCanvas.chartInstance) {
274
273
  const chartInstance = this.ttCanvas.chartInstance;
275
274
  Object.defineProperty(event, 'target', {
276
275
  writable: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/taro-vchart",
3
- "version": "1.2.0",
3
+ "version": "1.2.1-alpha.1",
4
4
  "description": "Taro VChart 图表组件",
5
5
  "sideEffects": false,
6
6
  "main": "lib/src/index.js",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
- "@visactor/vchart": "1.2.0"
34
+ "@visactor/vchart": "1.2.1-alpha.1"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@rushstack/eslint-patch": "~1.1.4",