@yoooloo42/joker 1.0.232 → 1.0.234

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/dist/index.cjs.js CHANGED
@@ -42891,7 +42891,7 @@ const hdl = {
42891
42891
  success (response, file, fileList) { // 上传
42892
42892
  // 重置文件列表, 注意:通过使用splice保持响应性
42893
42893
  // 只能上传一个图片
42894
- fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
42894
+ fileList_box.value = fileList;
42895
42895
  if (response.code === 0) {
42896
42896
  const arr = [];
42897
42897
  fileList_box.value.forEach(i=>{
@@ -42930,8 +42930,7 @@ return (_ctx, _cache) => {
42930
42930
  "before-upload": hdl.beforeUpload,
42931
42931
  "on-preview": hdl.preview,
42932
42932
  "on-remove": hdl.remove,
42933
- "on-success": hdl.success,
42934
- limit: 1
42933
+ "on-success": hdl.success
42935
42934
  }, {
42936
42935
  default: vue.withCtx(() => [
42937
42936
  (fileList_box.value.length>0 && fileList_box.value[0].response && fileList_box.value[0].response.data && fileList_box.value[0].response.data.src)