print-center-vue2 1.1.3 → 1.2.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.
package/README.md CHANGED
@@ -3,8 +3,10 @@
3
3
  ### 快速开始
4
4
 
5
5
  1. 安装
6
+
6
7
  vue3版本 npm install --save print-center
7
8
  vue2版本 npm install --save print-center-vue2
9
+
8
10
  2. 使用
9
11
 
10
12
  ```js
@@ -42,7 +44,8 @@ export default defineConfig({
42
44
  ```
43
45
 
44
46
  4. 使用案例
45
- src\components\Print\index.vue
47
+
48
+ src\components\Print\index.vue
46
49
 
47
50
  ```vue
48
51
  <!-- 浏览器打印--预览界面(组件化) -->
@@ -105,10 +108,35 @@ export default {
105
108
  </script>
106
109
  ```
107
110
 
111
+ ### 图表组件使用
112
+
113
+ 1. 安装(推荐使用版本:^5.6.0)
114
+
115
+ ```js
116
+ npm install --save echarts
117
+ ```
118
+
119
+ 2. main.js中使用
120
+
121
+ **vue3**
122
+
123
+ ```js
124
+ import * as echarts from 'echarts'
125
+ app.config.globalProperties.echarts = echarts
126
+ ```
127
+
128
+ **vue2**
129
+
130
+ ```js
131
+ import * as echarts from 'echarts'
132
+ Vue.prototype.echarts = echarts
133
+ ```
134
+
108
135
  ### 预览界面导出图片、pdf功能使用
109
136
 
110
137
  1. main.js中引入导出插件
111
- **vue3+vite**
138
+
139
+ **vue3**
112
140
 
113
141
  ```js
114
142
  // 打印中心导出pdf、图片
@@ -118,7 +146,7 @@ import jspdf from 'print-center/js/jspdf/jspdf.umd.min.js'
118
146
  app.config.globalProperties.jspdf = jspdf
119
147
  ```
120
148
 
121
- **vue2+webpack**
149
+ **vue2**
122
150
 
123
151
  ```js
124
152
  // 打印中心导出pdf、图片
@@ -159,3 +187,13 @@ Vue.prototype.jspdf = jspdf
159
187
 
160
188
  1. 自定义组件bug修复。
161
189
  2. vue2版本兼容处理。
190
+
191
+ ### v1.2.0 (vue3,vue2)
192
+
193
+ 1. 添加数据配置-接口获取功能。
194
+ 2. 配置界面功能改版。
195
+
196
+ ### v1.2.1 (vue3)\v1.2.2(vue2)
197
+
198
+ 1. 添加折、柱图形组件。
199
+ 2. 添加饼图、环图组件。
package/favicon.ico ADDED
Binary file