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