pro-design-vue 1.2.26 → 1.2.28

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.
@@ -1,4 +1,4 @@
1
- /*! Pro Design Vue v1.2.26 */
1
+ /*! Pro Design Vue v1.2.28 */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ant-design-vue'), require('vue'), require('ant-design-vue/es/locale/zh_CN.js')) :
@@ -32,7 +32,7 @@
32
32
  const DEFAULT_NAMESPACE = "pro";
33
33
  const DEFAULT_LOCALE = "zh-CN";
34
34
 
35
- const version$1 = "1.2.26";
35
+ const version$1 = "1.2.28";
36
36
 
37
37
  const makeInstaller = (components = []) => {
38
38
  const install = (app) => {
@@ -16279,13 +16279,19 @@
16279
16279
  });
16280
16280
  vue.watch(() => props.value, (newValue) => {
16281
16281
  var _a;
16282
- fileList.value = [...newValue == null ? void 0 : newValue.map((item) => ({
16283
- ...item,
16284
- name: item.name || item.url
16285
- }))];
16286
- if (!((_a = fileList.value) == null ? void 0 : _a.length)) {
16287
- formItemContext.onFieldChange();
16282
+ if (newValue) {
16283
+ fileList.value = [...newValue == null ? void 0 : newValue.map((item) => ({
16284
+ ...item,
16285
+ name: item.name || item.url
16286
+ }))];
16287
+ if (!((_a = fileList.value) == null ? void 0 : _a.length)) {
16288
+ formItemContext.onFieldChange();
16289
+ }
16290
+ } else {
16291
+ fileList.value = [];
16288
16292
  }
16293
+ }, {
16294
+ immediate: true
16289
16295
  });
16290
16296
  const onUploadChange = (info) => {
16291
16297
  var _a;
@@ -16498,13 +16504,19 @@
16498
16504
  });
16499
16505
  vue.watch(() => props.value, (newValue) => {
16500
16506
  var _a;
16501
- fileList.value = [...newValue == null ? void 0 : newValue.map((item) => ({
16502
- ...item,
16503
- name: item.name || item.url
16504
- }))];
16505
- if (!((_a = fileList.value) == null ? void 0 : _a.length)) {
16506
- formItemContext.onFieldChange();
16507
+ if (newValue) {
16508
+ fileList.value = [...newValue == null ? void 0 : newValue.map((item) => ({
16509
+ ...item,
16510
+ name: item.name || item.url
16511
+ }))];
16512
+ if (!((_a = fileList.value) == null ? void 0 : _a.length)) {
16513
+ formItemContext.onFieldChange();
16514
+ }
16515
+ } else {
16516
+ fileList.value = [];
16507
16517
  }
16518
+ }, {
16519
+ immediate: true
16508
16520
  });
16509
16521
  const onUploadChange = (info) => {
16510
16522
  var _a;
@@ -17125,12 +17137,18 @@
17125
17137
  previewVisible.value = true;
17126
17138
  };
17127
17139
  vue.watch(() => props.value, (newValue) => {
17128
- if (!isEqual(newValue, fileList.value)) {
17129
- fileList.value = newValue.map((item) => ({
17130
- ...item,
17131
- crossOrigin: props.crossOrigin
17132
- }));
17140
+ if (newValue) {
17141
+ if (!isEqual(newValue, fileList.value)) {
17142
+ fileList.value = newValue.map((item) => ({
17143
+ ...item,
17144
+ crossOrigin: props.crossOrigin
17145
+ }));
17146
+ }
17147
+ } else {
17148
+ fileList.value = [];
17133
17149
  }
17150
+ }, {
17151
+ immediate: true
17134
17152
  });
17135
17153
  vue.watch(fileList, () => {
17136
17154
  var _a;