pro-design-vue 1.2.24 → 1.2.26
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 +26 -6
- package/dist/index.full.min.js +8 -8
- package/dist/index.full.min.js.map +1 -1
- package/dist/index.full.min.mjs +8 -8
- package/dist/index.full.min.mjs.map +1 -1
- package/dist/index.full.mjs +26 -6
- package/es/components/form/src/fields/FieldUploadButton.d.ts +6 -0
- package/es/packages/components/form/src/fields/FieldUploadButton.mjs +23 -4
- package/es/packages/components/form/src/fields/FieldUploadButton.mjs.map +1 -1
- package/es/packages/components/form/src/utils/fieldPropsMap.mjs +1 -0
- package/es/packages/components/form/src/utils/fieldPropsMap.mjs.map +1 -1
- package/es/packages/components/table/src/hooks/useFetchData.mjs +1 -1
- package/es/packages/components/table/src/hooks/useFetchData.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/components/form/src/fields/FieldUploadButton.d.ts +6 -0
- package/lib/packages/components/form/src/fields/FieldUploadButton.js +22 -3
- package/lib/packages/components/form/src/fields/FieldUploadButton.js.map +1 -1
- package/lib/packages/components/form/src/utils/fieldPropsMap.js +1 -0
- package/lib/packages/components/form/src/utils/fieldPropsMap.js.map +1 -1
- package/lib/packages/components/table/src/hooks/useFetchData.js +1 -1
- package/lib/packages/components/table/src/hooks/useFetchData.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.26 */
|
|
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.26";
|
|
36
36
|
|
|
37
37
|
const makeInstaller = (components = []) => {
|
|
38
38
|
const install = (app) => {
|
|
@@ -16104,7 +16104,7 @@
|
|
|
16104
16104
|
}
|
|
16105
16105
|
});
|
|
16106
16106
|
|
|
16107
|
-
const SLOT_NAMES$2 = ["downloadIcon", "itemRender", "previewIcon", "removeIcon"];
|
|
16107
|
+
const SLOT_NAMES$2 = ["downloadIcon", "itemRender", "previewIcon", "removeIcon", "description", "title"];
|
|
16108
16108
|
var FieldUploadButton = /* @__PURE__ */ vue.defineComponent({
|
|
16109
16109
|
name: "FieldUploadButton",
|
|
16110
16110
|
props: {
|
|
@@ -16132,6 +16132,9 @@
|
|
|
16132
16132
|
title: {
|
|
16133
16133
|
type: String
|
|
16134
16134
|
},
|
|
16135
|
+
description: {
|
|
16136
|
+
type: String
|
|
16137
|
+
},
|
|
16135
16138
|
name: {
|
|
16136
16139
|
type: String,
|
|
16137
16140
|
default: "file"
|
|
@@ -16219,6 +16222,18 @@
|
|
|
16219
16222
|
}
|
|
16220
16223
|
return props.title || intl.getMessage("upload.button", "\u5355\u51FB\u4E0A\u4F20");
|
|
16221
16224
|
});
|
|
16225
|
+
const description = vue.computed(() => {
|
|
16226
|
+
const render = getSlot(props.description, formSlotsContext);
|
|
16227
|
+
if (isFunction$2(render)) {
|
|
16228
|
+
return vue.createVNode(RenderVNode$1, {
|
|
16229
|
+
"vnode": render,
|
|
16230
|
+
"props": {
|
|
16231
|
+
formData: formData.value
|
|
16232
|
+
}
|
|
16233
|
+
}, null);
|
|
16234
|
+
}
|
|
16235
|
+
return props.description;
|
|
16236
|
+
});
|
|
16222
16237
|
const beforeUpload = async (file, fileList2) => {
|
|
16223
16238
|
var _a;
|
|
16224
16239
|
const result = await ((_a = props.beforeUpload) == null ? void 0 : _a.call(props, file, fileList2));
|
|
@@ -16301,11 +16316,15 @@
|
|
|
16301
16316
|
var _a;
|
|
16302
16317
|
return [isPictureCard.value ? props.maxCount !== void 0 && ((_a = fileList.value) == null ? void 0 : _a.length) < props.maxCount && vue.createVNode("div", null, [icon.value, vue.createVNode("div", {
|
|
16303
16318
|
"style": "margin-top: 8px"
|
|
16304
|
-
}, [vue.createTextVNode(" "), title.value])]) : vue.createVNode(antDesignVue.Button, vue.mergeProps({
|
|
16319
|
+
}, [vue.createTextVNode(" "), title.value])]) : vue.createVNode(vue.Fragment, null, [vue.createVNode(antDesignVue.Button, vue.mergeProps({
|
|
16305
16320
|
"disabled": props.disabled
|
|
16306
16321
|
}, props.buttonProps), {
|
|
16307
16322
|
default: () => [icon.value, title.value]
|
|
16308
|
-
})
|
|
16323
|
+
}), description.value && vue.createVNode("span", {
|
|
16324
|
+
"style": {
|
|
16325
|
+
marginInlineStart: "10px"
|
|
16326
|
+
}
|
|
16327
|
+
}, [description.value])])];
|
|
16309
16328
|
},
|
|
16310
16329
|
...slotsGetter.value
|
|
16311
16330
|
});
|
|
@@ -22107,7 +22126,7 @@
|
|
|
22107
22126
|
return false;
|
|
22108
22127
|
}
|
|
22109
22128
|
if (props.pagination && contextPagination.value) {
|
|
22110
|
-
return merge(contextPagination.value, props.pagination);
|
|
22129
|
+
return merge({}, contextPagination.value, props.pagination);
|
|
22111
22130
|
} else {
|
|
22112
22131
|
return (_a2 = props.pagination) != null ? _a2 : contextPagination.value;
|
|
22113
22132
|
}
|
|
@@ -38592,6 +38611,7 @@
|
|
|
38592
38611
|
"onReject",
|
|
38593
38612
|
"onRemove",
|
|
38594
38613
|
"title",
|
|
38614
|
+
"description",
|
|
38595
38615
|
"max",
|
|
38596
38616
|
"buttonProps"
|
|
38597
38617
|
],
|