js_ryl 1.0.29 → 1.0.30
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 +13 -1
- package/dist/0.build.js +2 -0
- package/dist/build.js +1 -1
- package/package.json +6 -3
- package/src/App.vue +28 -0
- package/src/downExcel/index.js +13 -0
- package/src/downExcel/vendor/Blob.js +179 -0
- package/src/downExcel/vendor/Export2Excel.js +156 -0
- package/src/downExcel/vendor/Export2Excel_old.js +220 -0
- package/src/downExcel/vendor/Export2Zip.js +24 -0
- package/src/index.js +4 -1
package/README.md
CHANGED
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
11.unicode转化emoji表情 -- emoji
|
|
22
22
|
12.根据输入内容,高亮匹配对应的字符串 -- highLight
|
|
23
23
|
13.商品飞入购物车效果 -- flyToCart
|
|
24
|
+
14.下载excel表格 -- downExcel
|
|
24
25
|
|
|
25
26
|
# 使用方法:
|
|
26
27
|
|
|
@@ -169,7 +170,7 @@
|
|
|
169
170
|
|
|
170
171
|
# 方法:
|
|
171
172
|
# 3个参数
|
|
172
|
-
# 第一个 需要匹配的值(静态或者动态的变量),第二个
|
|
173
|
+
# 第一个 需要匹配的值(静态或者动态的变量),第二个 被匹配的内容(字符串,一般是固定的),第三个 为匹配后的类名
|
|
173
174
|
<div v-html="setHighLight(name,highLightContent,'initHightLightClassName')"></div>
|
|
174
175
|
#引入 highLight.js
|
|
175
176
|
setHighLight:highLight,
|
|
@@ -181,6 +182,16 @@
|
|
|
181
182
|
# event 目标元素,image 缩略图,targets 购物车的位置,callback 回调(有需要才用)
|
|
182
183
|
# 如:flyToCart(event,'https://v2-saas-1259468876.cos.ap-shanghai.myqcloud.com//system//admin//7c7ec8b02b009d2385db1faae95b9ab0.png',document.querySelector('#shoppps'))
|
|
183
184
|
|
|
185
|
+
#14.下载excel表格
|
|
186
|
+
|
|
187
|
+
#方法:
|
|
188
|
+
downExcel()
|
|
189
|
+
|
|
190
|
+
# const head = ["订单编号","金额(元)"];
|
|
191
|
+
# const body = ["client_order_number","amount"];
|
|
192
|
+
# let list = [{client_order_number: '354615',amount: 23},{client_order_number: '9735',amount: 230}]
|
|
193
|
+
# downExcel(head,body,list);
|
|
194
|
+
|
|
184
195
|
|
|
185
196
|
# serve with hot reload at localhost:8080
|
|
186
197
|
# npm run dev
|
|
@@ -204,6 +215,7 @@
|
|
|
204
215
|
#1.0.25: 新增了emoji,highLight方法
|
|
205
216
|
#1.0.28: 商品飞入购物车效果
|
|
206
217
|
#1.0.29: 拷贝方法优化
|
|
218
|
+
#1.0.30: 新增下载excel方法
|
|
207
219
|
```
|
|
208
220
|
|
|
209
221
|
For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).
|