@visactor/taro-vchart 0.2.0-alpha.2 → 1.1.0-beta.2

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/README.md +4 -1
  2. package/package.json +15 -15
package/README.md CHANGED
@@ -85,7 +85,7 @@ import VChart from '@visactor/taro-vchart';
85
85
  | canvasId | String | 图表 id, 必确唯一 |
86
86
  | spec | Object | 图表配置项, 请参考[VChart 配置项](todo) |
87
87
  | style | Object | 图表容器样式 |
88
- | events | Object[] | 事件绑定配置,具体配置为定义[如下](#) |
88
+ | events | Object[] | 事件绑定配置,具体配置为定义[如下](#事件配置) |
89
89
  | options | Object | 初始化 VChart 实例传入的额外配置项,同 [VChart 实例化配置项](todo) |
90
90
  | onChartInit | Function | 图表初始化完后触发的回调 |
91
91
  | onChartReady | Function | 图表渲染完毕后触发的回调 |
@@ -103,6 +103,9 @@ interface IEvent {
103
103
  * 事件 API 中的事件筛选配置
104
104
  */
105
105
  query?: EventQuery;
106
+ /**
107
+ * 事件监听函数
108
+ */
106
109
  handler: EventCallback<EventParams>;
107
110
  }
108
111
  ```
package/package.json CHANGED
@@ -1,21 +1,12 @@
1
1
  {
2
2
  "name": "@visactor/taro-vchart",
3
- "version": "0.2.0-alpha.2",
3
+ "version": "1.1.0-beta.2",
4
4
  "description": "Taro VChart 图表组件",
5
5
  "sideEffects": false,
6
6
  "main": "lib/src/index.js",
7
7
  "files": [
8
8
  "lib"
9
9
  ],
10
- "scripts": {
11
- "build": "rm -rf lib && rollup -c --bundleConfigAsCjs",
12
- "build:tt": "taro build --type tt",
13
- "build:lark": "taro build --type lark",
14
- "build:h5": "taro build --type h5",
15
- "dev:tt": "npm run build:tt -- --watch",
16
- "dev:lark": "npm run build:lark -- --watch",
17
- "dev:h5": "npm run build:h5 -- --watch"
18
- },
19
10
  "keywords": [
20
11
  "taro",
21
12
  "charts",
@@ -40,12 +31,10 @@
40
31
  },
41
32
  "license": "MIT",
42
33
  "dependencies": {
43
- "@visactor/vchart": "workspace:1.1.0-beta.1"
34
+ "@visactor/vchart": "1.1.0-beta.2"
44
35
  },
45
36
  "devDependencies": {
46
- "@internal/eslint-config": "workspace:*",
47
37
  "@rushstack/eslint-patch": "~1.1.4",
48
- "@internal/ts-config": "workspace:*",
49
38
  "@vitejs/plugin-react": "3.1.0",
50
39
  "eslint": "~8.18.0",
51
40
  "vite": "3.2.6",
@@ -81,10 +70,21 @@
81
70
  "rollup": "3.20.5",
82
71
  "rollup-plugin-import-css": "^3.0.2",
83
72
  "stylelint": "9.3.0",
84
- "tslib": "2.3.1"
73
+ "tslib": "2.3.1",
74
+ "@internal/eslint-config": "0.0.1",
75
+ "@internal/ts-config": "0.0.1"
85
76
  },
86
77
  "publishConfig": {
87
78
  "access": "public",
88
79
  "registry": "https://registry.npmjs.org/"
80
+ },
81
+ "scripts": {
82
+ "build": "rm -rf lib && rollup -c --bundleConfigAsCjs",
83
+ "build:tt": "taro build --type tt",
84
+ "build:lark": "taro build --type lark",
85
+ "build:h5": "taro build --type h5",
86
+ "dev:tt": "npm run build:tt -- --watch",
87
+ "dev:lark": "npm run build:lark -- --watch",
88
+ "dev:h5": "npm run build:h5 -- --watch"
89
89
  }
90
- }
90
+ }