js_ryl 1.0.29 → 1.0.31

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
@@ -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,12 @@
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
+ # 第二、三个参数 选填
189
+ downExcel(data,'这是excel名称','这是里面的分区名称');
190
+
184
191
 
185
192
  # serve with hot reload at localhost:8080
186
193
  # npm run dev
@@ -204,6 +211,7 @@
204
211
  #1.0.25: 新增了emoji,highLight方法
205
212
  #1.0.28: 商品飞入购物车效果
206
213
  #1.0.29: 拷贝方法优化
214
+ #1.0.31: 新增下载excel方法
207
215
  ```
208
216
 
209
217
  For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).