@yoooloo42/joker 1.0.238 → 1.0.240
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 +15 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +15 -0
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -42838,6 +42838,16 @@ 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
|
+
|
|
42841
42851
|
const style = vue.reactive({
|
|
42842
42852
|
avatarBox: {
|
|
42843
42853
|
width: myProps_box.avatar.width,
|
|
@@ -42889,6 +42899,11 @@ const hdl = {
|
|
|
42889
42899
|
emit("update:modelValue", []);
|
|
42890
42900
|
},
|
|
42891
42901
|
success (response, file, fileList) { // 上传
|
|
42902
|
+
|
|
42903
|
+
console.log('joker测试 444', response);
|
|
42904
|
+
console.log('joker测试 555', file);
|
|
42905
|
+
console.log('joker测试 666', fileList);
|
|
42906
|
+
|
|
42892
42907
|
// 重置文件列表, 注意:通过使用splice保持响应性
|
|
42893
42908
|
// 只能上传一个图片
|
|
42894
42909
|
fileList_box.value.splice(0, fileList_box.value.length, ...JSON.parse(JSON.stringify(fileList)));
|