@yoooloo42/joker 1.0.240 → 1.0.242

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
@@ -42838,16 +42838,6 @@ props.modelValue.forEach((item, index) => {
42838
42838
  });
42839
42839
  });
42840
42840
 
42841
- console.log('joker测试 000', props.modelValue);
42842
- console.log('joker测试 111', fileList_box.value);
42843
-
42844
- vue.watch(()=>props.modelValue, (newVal, oldVal) => {
42845
- console.log('joker测试 222', newVal);
42846
- });
42847
- vue.watch(()=>fileList_box.value, (newVal, oldVal) => {
42848
- console.log('joker测试 333', newVal);
42849
- });
42850
-
42851
42841
  const style = vue.reactive({
42852
42842
  avatarBox: {
42853
42843
  width: myProps_box.avatar.width,
@@ -42899,14 +42889,9 @@ const hdl = {
42899
42889
  emit("update:modelValue", []);
42900
42890
  },
42901
42891
  success (response, file, fileList) { // 上传
42902
-
42903
- console.log('joker测试 444', response);
42904
- console.log('joker测试 555', file);
42905
- console.log('joker测试 666', fileList);
42906
-
42907
42892
  // 重置文件列表, 注意:通过使用splice保持响应性
42908
42893
  // 只能上传一个图片
42909
- fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
42894
+ fileList_box.value.splice(0, fileList_box.value.length, file);
42910
42895
  if (response.code === 0) {
42911
42896
  const arr = [];
42912
42897
  fileList_box.value.forEach(i=>{