@visactor/taro-vchart 1.7.0-alpha.1 → 1.7.0

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 +4 -1
  2. package/package.json +4 -4
package/lib/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import VChart$1, { vglobal } from '@visactor/vchart/build/es5';
2
+ import VChart$1, { vglobal, registerLarkEnv, registerWXEnv } from '@visactor/vchart/build/es5';
3
3
  import { View, Canvas } from '@tarojs/components';
4
4
  import Taro from '@tarojs/taro';
5
5
 
@@ -300,12 +300,15 @@ function VChart(_a) {
300
300
  const env = (type !== null && type !== void 0 ? type : Taro.getEnv()).toLocaleLowerCase();
301
301
  const strategies = {
302
302
  lark: () => {
303
+ registerLarkEnv();
303
304
  return React.createElement(GeneralChart, Object.assign({}, args, { mode: "miniApp" }));
304
305
  },
305
306
  tt: () => {
307
+ registerLarkEnv();
306
308
  return React.createElement(GeneralChart, Object.assign({}, args, { mode: "miniApp" }));
307
309
  },
308
310
  weapp: () => {
311
+ registerWXEnv();
309
312
  return React.createElement(GeneralChart, Object.assign({}, args, { mode: "wx" }));
310
313
  },
311
314
  web: () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/taro-vchart",
3
- "version": "1.7.0-alpha.1",
3
+ "version": "1.7.0",
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.7.0-alpha.1"
34
+ "@visactor/vchart": "1.7.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@rushstack/eslint-patch": "~1.1.4",
@@ -71,8 +71,8 @@
71
71
  "rollup-plugin-import-css": "^3.0.2",
72
72
  "stylelint": "9.3.0",
73
73
  "tslib": "2.3.1",
74
- "@internal/eslint-config": "0.0.1",
75
- "@internal/ts-config": "0.0.1"
74
+ "@internal/ts-config": "0.0.1",
75
+ "@internal/eslint-config": "0.0.1"
76
76
  },
77
77
  "publishConfig": {
78
78
  "access": "public",