kd-lane-container 0.0.1 → 0.0.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 +15 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -25,13 +25,24 @@ KdLaneChartContainer 是一个基于 Vue 开发的泳道图容器组件,用于
25
25
 
26
26
  ## 3. 组件引入
27
27
 
28
+ ### 3.1 安装与注册
28
29
  ```javascript
29
- import KdLaneChartContainer from "./components/kd-lane/chart-container.vue";
30
+ // 安装依赖
31
+ // npm install kd-lane-container --save
32
+
33
+ // 引入组件
34
+ import KdLaneChartContainer from "kd-lane-container";
35
+ import Vue from "vue";
36
+
37
+ // 注册组件
38
+ Vue.use(KdLaneChartContainer);
39
+ ```
30
40
 
41
+ ### 3.2 在组件中使用
42
+ ```javascript
31
43
  export default {
32
- components: {
33
- KdLaneChartContainer,
34
- },
44
+ // 组件已全局注册,无需再局部注册
45
+ // components: {},
35
46
  // ...
36
47
  };
37
48
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kd-lane-container",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "kd-lane-chart-container",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",