pro-design-vue 1.2.27 → 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.27 */
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.27";
35
+ const version$1 = "1.2.28";
36
36
 
37
37
  const makeInstaller = (components = []) => {
38
38
  const install = (app) => {
@@ -16279,12 +16279,16 @@
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
  }
16289
16293
  }, {
16290
16294
  immediate: true
@@ -16500,12 +16504,16 @@
16500
16504
  });
16501
16505
  vue.watch(() => props.value, (newValue) => {
16502
16506
  var _a;
16503
- fileList.value = [...newValue == null ? void 0 : newValue.map((item) => ({
16504
- ...item,
16505
- name: item.name || item.url
16506
- }))];
16507
- if (!((_a = fileList.value) == null ? void 0 : _a.length)) {
16508
- 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 = [];
16509
16517
  }
16510
16518
  }, {
16511
16519
  immediate: true
@@ -17129,11 +17137,15 @@
17129
17137
  previewVisible.value = true;
17130
17138
  };
17131
17139
  vue.watch(() => props.value, (newValue) => {
17132
- if (!isEqual(newValue, fileList.value)) {
17133
- fileList.value = newValue.map((item) => ({
17134
- ...item,
17135
- crossOrigin: props.crossOrigin
17136
- }));
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 = [];
17137
17149
  }
17138
17150
  }, {
17139
17151
  immediate: true