js_ryl 1.0.33 → 1.0.34

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
@@ -19,6 +19,7 @@
19
19
  9.table中的数据补全方法 -- filterTable
20
20
  10.获取当前年份中,指定月份的天数 -- getMonthDays
21
21
  11.unicode转化emoji表情 -- emoji
22
+ 11-1.将字符串中的emoji表情转为unicode -- emojiToUnicode
22
23
  12.根据输入内容,高亮匹配对应的字符串 -- highLight
23
24
  13.商品飞入购物车效果 -- flyToCart
24
25
  14.下载excel表格 -- downExcel
@@ -168,6 +169,11 @@
168
169
  # 方法:
169
170
  emoji(str)
170
171
 
172
+ #11-1.将字符串中的emoji表情转为unicode
173
+
174
+ # 方法:
175
+ emojiToUnicode(str)
176
+
171
177
  #12.根据输入内容,高亮匹配对应的字符串
172
178
 
173
179
  # 方法:
@@ -197,15 +203,19 @@
197
203
 
198
204
  #15 这个方法是把内容中的base64的图片,替换成 接口返回 的图片链接
199
205
 
200
- # content (需要检查的文案) apiUrl (上传的接口地址) token (需要的token) data (额外参数,可不传)
201
- # base64Img(content, apiUrl, token , data)
206
+ # content (需要检查的文案) apiUrl (上传的接口地址) token (需要的token) data (额外参数,可不传) callback (回调函数,有需要才用,上传报错时调用)
207
+ # base64Img(content, apiUrl, token , data, callback 回�调(有需要才用))
202
208
 
203
209
  # 使用方法
204
210
 
205
211
  # let content = await this.base64Img(
206
212
  # content,
207
213
  # process.env.VUE_APP_BASE_URL_SAAS + "/user/common/uploadBase64",
208
- # this.$cookieGet("TOKEN")
214
+ # this.$cookieGet("TOKEN"),
215
+ # {},
216
+ # (original, msg) => {
217
+ # console.log(original, msg);
218
+ # }
209
219
  # );
210
220
 
211
221
  # 16 获取链接或字符串中指定的参数
@@ -246,6 +256,7 @@
246
256
  #1.0.31: 新增下载excel方法
247
257
  #1.0.32: 新增base64Img
248
258
  #1.0.33: 新增字符串获取相关方法
259
+ #1.0.34: 新增base64Img 上传报错时调用回调函数
249
260
  ```
250
261
 
251
262
  For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).