pro-design-vue 1.2.25 → 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.
@@ -1,4 +1,4 @@
1
- /*! Pro Design Vue v1.2.25 */
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.25";
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
  });
@@ -38592,6 +38611,7 @@
38592
38611
  "onReject",
38593
38612
  "onRemove",
38594
38613
  "title",
38614
+ "description",
38595
38615
  "max",
38596
38616
  "buttonProps"
38597
38617
  ],