pro-design-vue 1.2.31 → 1.2.33
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.full.js +15 -15
- package/dist/index.full.min.js +6 -6
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +6 -6
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +15 -15
- package/es/packages/components/form/src/fields/FieldUploadButton.mjs +4 -6
- package/es/packages/components/form/src/fields/FieldUploadButton.mjs.map +1 -1
- package/es/packages/components/form/src/fields/FieldUploadDragger.mjs +4 -6
- package/es/packages/components/form/src/fields/FieldUploadDragger.mjs.map +1 -1
- package/es/packages/components/form/src/fields/FieldUploadPictureList.mjs +5 -1
- package/es/packages/components/form/src/fields/FieldUploadPictureList.mjs.map +1 -1
- package/es/packages/components/form/src/layouts/ModalForm.mjs +1 -1
- package/es/packages/components/form/src/layouts/ModalForm.mjs.map +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/version.mjs.map +1 -1
- package/lib/packages/components/form/src/fields/FieldUploadButton.js +4 -6
- package/lib/packages/components/form/src/fields/FieldUploadButton.js.map +1 -1
- package/lib/packages/components/form/src/fields/FieldUploadDragger.js +4 -6
- package/lib/packages/components/form/src/fields/FieldUploadDragger.js.map +1 -1
- package/lib/packages/components/form/src/fields/FieldUploadPictureList.js +4 -0
- package/lib/packages/components/form/src/fields/FieldUploadPictureList.js.map +1 -1
- package/lib/packages/components/form/src/layouts/ModalForm.js +1 -1
- package/lib/packages/components/form/src/layouts/ModalForm.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/version.js.map +1 -1
- package/package.json +1 -1
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Pro Design Vue v1.2.
|
|
1
|
+
/*! Pro Design Vue v1.2.33 */
|
|
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.
|
|
35
|
+
const version$1 = "1.2.33";
|
|
36
36
|
|
|
37
37
|
const makeInstaller = (components = []) => {
|
|
38
38
|
const install = (app) => {
|
|
@@ -16258,7 +16258,7 @@
|
|
|
16258
16258
|
success,
|
|
16259
16259
|
error,
|
|
16260
16260
|
data
|
|
16261
|
-
} = (_a = await props.customRequest(formData2, onUploadProgress)) != null ? _a : {};
|
|
16261
|
+
} = (_a = await props.customRequest(formData2, onUploadProgress, option)) != null ? _a : {};
|
|
16262
16262
|
if (success) {
|
|
16263
16263
|
(_b = option.onSuccess) == null ? void 0 : _b.call(option, data);
|
|
16264
16264
|
formItemContext.onFieldChange();
|
|
@@ -16279,18 +16279,16 @@
|
|
|
16279
16279
|
return newProps;
|
|
16280
16280
|
});
|
|
16281
16281
|
vue.watch(() => props.value, (newValue) => {
|
|
16282
|
-
var _a;
|
|
16283
16282
|
if (newValue) {
|
|
16284
16283
|
fileList.value = [...newValue == null ? void 0 : newValue.map((item) => ({
|
|
16285
16284
|
...item,
|
|
16286
16285
|
name: item.name || item.url
|
|
16287
16286
|
}))];
|
|
16288
|
-
if (!((_a = fileList.value) == null ? void 0 : _a.length)) {
|
|
16289
|
-
formItemContext.onFieldChange();
|
|
16290
|
-
}
|
|
16291
16287
|
} else {
|
|
16292
16288
|
fileList.value = [];
|
|
16293
16289
|
}
|
|
16290
|
+
}, {
|
|
16291
|
+
immediate: true
|
|
16294
16292
|
});
|
|
16295
16293
|
const onUploadChange = (info) => {
|
|
16296
16294
|
var _a;
|
|
@@ -16302,13 +16300,13 @@
|
|
|
16302
16300
|
url: ((_c = item.response) == null ? void 0 : _c.url) || item.url
|
|
16303
16301
|
};
|
|
16304
16302
|
}), info.file);
|
|
16303
|
+
formItemContext.onFieldChange();
|
|
16305
16304
|
};
|
|
16306
16305
|
return () => vue.createVNode(antDesignVue.Upload, vue.mergeProps(uploadProps.value, {
|
|
16307
16306
|
"class": {
|
|
16308
16307
|
[`${baseClassName.value}-readonly`]: props.readonly
|
|
16309
16308
|
},
|
|
16310
16309
|
"fileList": fileList.value,
|
|
16311
|
-
"onUpdate:fileList": ($event) => fileList.value = $event,
|
|
16312
16310
|
"name": props.name,
|
|
16313
16311
|
"maxCount": props.maxCount,
|
|
16314
16312
|
"listType": props.listType,
|
|
@@ -16485,7 +16483,7 @@
|
|
|
16485
16483
|
success,
|
|
16486
16484
|
error,
|
|
16487
16485
|
data
|
|
16488
|
-
} = (_a = await props.customRequest(formData2, onUploadProgress)) != null ? _a : {};
|
|
16486
|
+
} = (_a = await props.customRequest(formData2, onUploadProgress, option)) != null ? _a : {};
|
|
16489
16487
|
if (success) {
|
|
16490
16488
|
(_b = option.onSuccess) == null ? void 0 : _b.call(option, data);
|
|
16491
16489
|
formItemContext.onFieldChange();
|
|
@@ -16506,18 +16504,16 @@
|
|
|
16506
16504
|
return newProps;
|
|
16507
16505
|
});
|
|
16508
16506
|
vue.watch(() => props.value, (newValue) => {
|
|
16509
|
-
var _a;
|
|
16510
16507
|
if (newValue) {
|
|
16511
16508
|
fileList.value = [...newValue == null ? void 0 : newValue.map((item) => ({
|
|
16512
16509
|
...item,
|
|
16513
16510
|
name: item.name || item.url
|
|
16514
16511
|
}))];
|
|
16515
|
-
if (!((_a = fileList.value) == null ? void 0 : _a.length)) {
|
|
16516
|
-
formItemContext.onFieldChange();
|
|
16517
|
-
}
|
|
16518
16512
|
} else {
|
|
16519
16513
|
fileList.value = [];
|
|
16520
16514
|
}
|
|
16515
|
+
}, {
|
|
16516
|
+
immediate: true
|
|
16521
16517
|
});
|
|
16522
16518
|
const onUploadChange = (info) => {
|
|
16523
16519
|
var _a;
|
|
@@ -16529,13 +16525,13 @@
|
|
|
16529
16525
|
url: ((_c = item.response) == null ? void 0 : _c.url) || item.url
|
|
16530
16526
|
};
|
|
16531
16527
|
}), info.file);
|
|
16528
|
+
formItemContext.onFieldChange();
|
|
16532
16529
|
};
|
|
16533
16530
|
return () => vue.createVNode(antDesignVue.Upload.Dragger, vue.mergeProps(uploadProps.value, {
|
|
16534
16531
|
"class": {
|
|
16535
16532
|
[`${baseClassName.value}-readonly`]: props.readonly
|
|
16536
16533
|
},
|
|
16537
16534
|
"fileList": fileList.value,
|
|
16538
|
-
"onUpdate:fileList": ($event) => fileList.value = $event,
|
|
16539
16535
|
"name": props.name,
|
|
16540
16536
|
"showUploadList": props.readonly || props.showUploadList,
|
|
16541
16537
|
"disabled": props.readonly || props.disabled,
|
|
@@ -17090,6 +17086,7 @@
|
|
|
17090
17086
|
prefixCls,
|
|
17091
17087
|
disabled
|
|
17092
17088
|
} = useInjectForm();
|
|
17089
|
+
const formItemContext = antDesignVue.Form.useInjectFormItemContext();
|
|
17093
17090
|
const mergeDisabled = vue.computed(() => props.readonly || (disabled == null ? void 0 : disabled.value));
|
|
17094
17091
|
const customRequest = async (option) => {
|
|
17095
17092
|
var _a, _b;
|
|
@@ -17148,10 +17145,13 @@
|
|
|
17148
17145
|
} else {
|
|
17149
17146
|
fileList.value = [];
|
|
17150
17147
|
}
|
|
17148
|
+
}, {
|
|
17149
|
+
immediate: true
|
|
17151
17150
|
});
|
|
17152
17151
|
vue.watch(fileList, () => {
|
|
17153
17152
|
var _a;
|
|
17154
17153
|
(_a = props.onChange) == null ? void 0 : _a.call(props, fileList.value);
|
|
17154
|
+
formItemContext.onFieldChange();
|
|
17155
17155
|
});
|
|
17156
17156
|
return () => vue.createVNode(vue.Fragment, null, [vue.createVNode(antDesignVue.Upload, vue.mergeProps(uploadProps.value, {
|
|
17157
17157
|
"fileList": fileList.value,
|
|
@@ -20673,7 +20673,7 @@
|
|
|
20673
20673
|
onOk() {
|
|
20674
20674
|
var _a2, _b2;
|
|
20675
20675
|
open.value = false;
|
|
20676
|
-
(_b2 = (_a2 = modalProps
|
|
20676
|
+
(_b2 = (_a2 = props.modalProps) == null ? void 0 : _a2.onCancel) == null ? void 0 : _b2.call(_a2, e);
|
|
20677
20677
|
},
|
|
20678
20678
|
onCancel() {
|
|
20679
20679
|
}
|