centaline-data-driven-v3 0.0.99 → 0.1.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "centaline-data-driven-v3",
3
- "version": "0.0.99",
3
+ "version": "0.1.0",
4
4
  "private": false,
5
5
  "description": "centaline-data-driven-v3",
6
6
  "main": "dist/centaline-data-driven-v3.umd.js",
@@ -205,13 +205,12 @@ function load(data) {
205
205
  watch(
206
206
  () => model.value, // 监听的源
207
207
  (newValue, oldValue) => {
208
- console.log('Model changed:', newValue);
209
- console.log('Old value:', oldValue);
210
- if (newValue?.file && newValue?.file != oldValue?.file) {
208
+ if (newValue?.file?.raw&& newValue?.file != oldValue?.file) {
211
209
  // 处理文件上传
212
210
  var options = {
213
211
  file: newValue.file.raw
214
212
  }
213
+ model.value.file = [];
215
214
  SliceUpload(options);
216
215
  }
217
216
  },