pro-design-vue 1.2.20 → 1.2.22
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.css +1 -1
- package/dist/index.full.js +214 -52
- package/dist/index.full.min.js +6 -6
- 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 +215 -53
- package/es/components/form/src/components/FormGroup.d.ts +1 -0
- package/es/components/form/src/components/FormList.d.ts +1 -0
- package/es/components/form/src/components/FormListContainer.d.ts +1 -0
- package/es/components/form/src/components/FormListItem.d.ts +1 -0
- package/es/components/form/src/components/FormSet.d.ts +1 -0
- package/es/components/form/src/components/FormTitle.d.ts +10 -0
- package/es/components/form/src/fields/FieldUploadButton.d.ts +27 -4
- package/es/components/form/src/fields/FieldUploadDragger.d.ts +43 -19
- package/es/components/form/src/type.d.ts +1 -0
- package/es/index.d.ts +1 -0
- package/es/packages/components/drawer/src/drawer.vue2.mjs +12 -2
- package/es/packages/components/drawer/src/drawer.vue2.mjs.map +1 -1
- package/es/packages/components/form/src/components/FormItem.mjs +2 -1
- package/es/packages/components/form/src/components/FormItem.mjs.map +1 -1
- package/es/packages/components/form/src/components/FormTitle.mjs +8 -2
- package/es/packages/components/form/src/components/FormTitle.mjs.map +1 -1
- package/es/packages/components/form/src/fields/FieldUploadButton.mjs +104 -26
- package/es/packages/components/form/src/fields/FieldUploadButton.mjs.map +1 -1
- package/es/packages/components/form/src/fields/FieldUploadDragger.mjs +88 -25
- package/es/packages/components/form/src/fields/FieldUploadDragger.mjs.map +1 -1
- package/es/packages/components/form/src/utils/fieldPropsMap.mjs +4 -0
- package/es/packages/components/form/src/utils/fieldPropsMap.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/components/FormGroup.d.ts +1 -0
- package/lib/components/form/src/components/FormList.d.ts +1 -0
- package/lib/components/form/src/components/FormListContainer.d.ts +1 -0
- package/lib/components/form/src/components/FormListItem.d.ts +1 -0
- package/lib/components/form/src/components/FormSet.d.ts +1 -0
- package/lib/components/form/src/components/FormTitle.d.ts +10 -0
- package/lib/components/form/src/fields/FieldUploadButton.d.ts +27 -4
- package/lib/components/form/src/fields/FieldUploadDragger.d.ts +43 -19
- package/lib/components/form/src/type.d.ts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/packages/components/drawer/src/drawer.vue2.js +11 -1
- package/lib/packages/components/drawer/src/drawer.vue2.js.map +1 -1
- package/lib/packages/components/form/src/components/FormItem.js +2 -1
- package/lib/packages/components/form/src/components/FormItem.js.map +1 -1
- package/lib/packages/components/form/src/components/FormTitle.js +8 -2
- package/lib/packages/components/form/src/components/FormTitle.js.map +1 -1
- package/lib/packages/components/form/src/fields/FieldUploadButton.js +102 -24
- package/lib/packages/components/form/src/fields/FieldUploadButton.js.map +1 -1
- package/lib/packages/components/form/src/fields/FieldUploadDragger.js +86 -23
- package/lib/packages/components/form/src/fields/FieldUploadDragger.js.map +1 -1
- package/lib/packages/components/form/src/utils/fieldPropsMap.js +4 -0
- package/lib/packages/components/form/src/utils/fieldPropsMap.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/theme-chalk/index.css +1 -1
- package/theme-chalk/pro-drawer.css +1 -1
- package/theme-chalk/pro-form.css +1 -1
- package/theme-chalk/src/drawer.less +4 -0
- package/theme-chalk/src/form.less +12 -0
package/dist/index.full.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/*! Pro Design Vue v1.2.
|
|
1
|
+
/*! Pro Design Vue v1.2.22 */
|
|
2
2
|
|
|
3
3
|
import { Modal, theme as theme$1, ConfigProvider, App, Button as Button$1, Tooltip, Popconfirm, Dropdown, Menu, Slider, Drawer, Input, InputNumber, Form as Form$1, Space, Textarea, Select, TreeSelect, Checkbox as Checkbox$1, CheckboxGroup, RadioGroup, Radio as Radio$1, Cascader, Switch, Rate, DatePicker, RangePicker, TimePicker, TimeRangePicker, Upload, FormItemRest, Spin, message, Row as Row$1, Col, FormItem as FormItem$3, Steps, Popover, MenuItem, SubMenu, Empty, Badge, Tag, Pagination, InputSearch, Tree, Card, Tabs, TabPane } from 'ant-design-vue';
|
|
4
|
-
import { inject, ref, getCurrentInstance, nextTick, h, reactive, defineComponent, createVNode, isVNode, Fragment, cloneVNode, provide, watch, computed, renderSlot, createPropsRestProxy, createBlock, openBlock, unref, mergeProps, withCtx, normalizeProps, guardReactiveProps, shallowRef, shallowReadonly, toValue, getCurrentScope, onScopeDispose, onMounted, hasInjectionContext, isRef, toRefs as toRefs$1, customRef, toRef as toRef$1, readonly, watchEffect, toRaw, createElementBlock, createCommentVNode, resolveDynamicComponent, createElementVNode, normalizeStyle, toDisplayString, normalizeClass, createSlots, useAttrs, useTemplateRef, defineAsyncComponent, Teleport, onUnmounted, Comment as Comment$1, useSlots, useModel, withModifiers, mergeModels, renderList, camelize, isReactive, onActivated, onDeactivated, onBeforeUnmount, triggerRef, resolveDirective, withDirectives, vShow, render as render$1, resolveComponent,
|
|
4
|
+
import { inject, ref, getCurrentInstance, nextTick, h, reactive, defineComponent, createVNode, isVNode, Fragment, cloneVNode, provide, watch, computed, renderSlot, createPropsRestProxy, createBlock, openBlock, unref, mergeProps, withCtx, normalizeProps, guardReactiveProps, shallowRef, shallowReadonly, toValue, getCurrentScope, onScopeDispose, onMounted, hasInjectionContext, isRef, toRefs as toRefs$1, customRef, toRef as toRef$1, readonly, watchEffect, toRaw, createElementBlock, createCommentVNode, resolveDynamicComponent, createElementVNode, normalizeStyle, toDisplayString, normalizeClass, createSlots, createTextVNode, useAttrs, useTemplateRef, defineAsyncComponent, Teleport, onUnmounted, Comment as Comment$1, useSlots, useModel, withModifiers, mergeModels, renderList, camelize, isReactive, onActivated, onDeactivated, onBeforeUnmount, triggerRef, resolveDirective, withDirectives, vShow, render as render$1, resolveComponent, vModelText } from 'vue';
|
|
5
5
|
import antdDefaultLocale from 'ant-design-vue/es/locale/zh_CN.js';
|
|
6
6
|
|
|
7
7
|
function _mergeNamespaces(n, m) {
|
|
@@ -30,7 +30,7 @@ const SCROLL_FIXED_CLASS = `_scroll__fixed_`;
|
|
|
30
30
|
const DEFAULT_NAMESPACE = "pro";
|
|
31
31
|
const DEFAULT_LOCALE = "zh-CN";
|
|
32
32
|
|
|
33
|
-
const version$1 = "1.2.
|
|
33
|
+
const version$1 = "1.2.22";
|
|
34
34
|
|
|
35
35
|
const makeInstaller = (components = []) => {
|
|
36
36
|
const install = (app) => {
|
|
@@ -13442,7 +13442,17 @@ var _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
13442
13442
|
onClose: handleClose
|
|
13443
13443
|
}), createSlots({
|
|
13444
13444
|
default: withCtx(() => [
|
|
13445
|
-
|
|
13445
|
+
createElementVNode(
|
|
13446
|
+
"div",
|
|
13447
|
+
{
|
|
13448
|
+
class: normalizeClass(`${unref(prefixCls)}-body`)
|
|
13449
|
+
},
|
|
13450
|
+
[
|
|
13451
|
+
renderSlot(_ctx.$slots, "default")
|
|
13452
|
+
],
|
|
13453
|
+
2
|
|
13454
|
+
/* CLASS */
|
|
13455
|
+
)
|
|
13446
13456
|
]),
|
|
13447
13457
|
_: 2
|
|
13448
13458
|
/* DYNAMIC */
|
|
@@ -16124,7 +16134,7 @@ var FieldUploadButton = /* @__PURE__ */ defineComponent({
|
|
|
16124
16134
|
type: String,
|
|
16125
16135
|
default: "file"
|
|
16126
16136
|
},
|
|
16127
|
-
|
|
16137
|
+
maxCount: {
|
|
16128
16138
|
type: Number,
|
|
16129
16139
|
default: void 0
|
|
16130
16140
|
},
|
|
@@ -16142,25 +16152,31 @@ var FieldUploadButton = /* @__PURE__ */ defineComponent({
|
|
|
16142
16152
|
},
|
|
16143
16153
|
listType: {
|
|
16144
16154
|
type: String,
|
|
16145
|
-
default: "picture"
|
|
16146
|
-
}
|
|
16155
|
+
default: "picture-card"
|
|
16156
|
+
},
|
|
16157
|
+
listIgnore: {
|
|
16158
|
+
type: Boolean,
|
|
16159
|
+
default: true
|
|
16160
|
+
},
|
|
16161
|
+
showUploadList: {
|
|
16162
|
+
type: [Boolean, Object],
|
|
16163
|
+
default: true
|
|
16164
|
+
},
|
|
16165
|
+
customRequest: Function,
|
|
16166
|
+
beforeUpload: Function
|
|
16147
16167
|
},
|
|
16148
16168
|
setup(props, {
|
|
16149
16169
|
attrs
|
|
16150
16170
|
}) {
|
|
16151
16171
|
const intl = useIntl();
|
|
16152
16172
|
const {
|
|
16173
|
+
prefixCls,
|
|
16153
16174
|
formData
|
|
16154
16175
|
} = useInjectForm();
|
|
16155
16176
|
const formSlotsContext = useInjectSlots$1();
|
|
16156
|
-
const
|
|
16157
|
-
|
|
16158
|
-
|
|
16159
|
-
});
|
|
16160
|
-
const showUploadButton = computed(() => {
|
|
16161
|
-
var _a;
|
|
16162
|
-
return props.max === void 0 || !value.value || ((_a = value.value) == null ? void 0 : _a.length) < props.max;
|
|
16163
|
-
});
|
|
16177
|
+
const fileList = ref([]);
|
|
16178
|
+
const formItemContext = Form$1.useInjectFormItemContext();
|
|
16179
|
+
const baseClassName = computed(() => `${prefixCls}-upload`);
|
|
16164
16180
|
const isPictureCard = computed(() => props.listType === "picture-card");
|
|
16165
16181
|
const slotsGetter = computed(() => {
|
|
16166
16182
|
const temp = {};
|
|
@@ -16201,22 +16217,94 @@ var FieldUploadButton = /* @__PURE__ */ defineComponent({
|
|
|
16201
16217
|
}
|
|
16202
16218
|
return props.title || intl.getMessage("upload.button", "\u5355\u51FB\u4E0A\u4F20");
|
|
16203
16219
|
});
|
|
16204
|
-
const
|
|
16220
|
+
const beforeUpload = async (file, fileList2) => {
|
|
16205
16221
|
var _a;
|
|
16206
|
-
(_a = props.
|
|
16222
|
+
const result = await ((_a = props.beforeUpload) == null ? void 0 : _a.call(props, file, fileList2));
|
|
16223
|
+
if (!result && props.listIgnore) {
|
|
16224
|
+
return Upload.LIST_IGNORE;
|
|
16225
|
+
}
|
|
16226
|
+
return result;
|
|
16207
16227
|
};
|
|
16208
|
-
|
|
16209
|
-
|
|
16210
|
-
|
|
16211
|
-
|
|
16228
|
+
const customRequest = async (option) => {
|
|
16229
|
+
var _a, _b, _c;
|
|
16230
|
+
const formData2 = new FormData();
|
|
16231
|
+
formData2.append(props.name, option.file);
|
|
16232
|
+
const onUploadProgress = (e) => {
|
|
16233
|
+
var _a2;
|
|
16234
|
+
if (e.total > 0) {
|
|
16235
|
+
e.percent = e.loaded / e.total * 100;
|
|
16236
|
+
}
|
|
16237
|
+
(_a2 = option == null ? void 0 : option.onProgress) == null ? void 0 : _a2.call(option, e);
|
|
16238
|
+
};
|
|
16239
|
+
const {
|
|
16240
|
+
success,
|
|
16241
|
+
error,
|
|
16242
|
+
data
|
|
16243
|
+
} = (_a = await props.customRequest(formData2, onUploadProgress)) != null ? _a : {};
|
|
16244
|
+
if (success) {
|
|
16245
|
+
(_b = option.onSuccess) == null ? void 0 : _b.call(option, data);
|
|
16246
|
+
formItemContext.onFieldChange();
|
|
16247
|
+
} else {
|
|
16248
|
+
(_c = option.onError) == null ? void 0 : _c.call(option, error, data);
|
|
16249
|
+
}
|
|
16250
|
+
};
|
|
16251
|
+
const uploadProps = computed(() => {
|
|
16252
|
+
const newProps = {
|
|
16253
|
+
...attrs
|
|
16254
|
+
};
|
|
16255
|
+
if (props.customRequest) {
|
|
16256
|
+
newProps.customRequest = customRequest;
|
|
16257
|
+
}
|
|
16258
|
+
if (props.beforeUpload) {
|
|
16259
|
+
newProps.beforeUpload = beforeUpload;
|
|
16260
|
+
}
|
|
16261
|
+
return newProps;
|
|
16262
|
+
});
|
|
16263
|
+
watch(() => props.value, (newValue) => {
|
|
16264
|
+
var _a;
|
|
16265
|
+
fileList.value = [...newValue == null ? void 0 : newValue.map((item) => ({
|
|
16266
|
+
...item,
|
|
16267
|
+
name: item.name || item.url
|
|
16268
|
+
}))];
|
|
16269
|
+
if (!((_a = fileList.value) == null ? void 0 : _a.length)) {
|
|
16270
|
+
formItemContext.onFieldChange();
|
|
16271
|
+
}
|
|
16272
|
+
});
|
|
16273
|
+
const onUploadChange = (info) => {
|
|
16274
|
+
var _a;
|
|
16275
|
+
(_a = props.onChange) == null ? void 0 : _a.call(props, info.fileList.map((item) => {
|
|
16276
|
+
var _a2, _b, _c;
|
|
16277
|
+
return {
|
|
16278
|
+
...item,
|
|
16279
|
+
name: item.name || ((_a2 = item.response) == null ? void 0 : _a2.name) || item.url || ((_b = item.response) == null ? void 0 : _b.url),
|
|
16280
|
+
url: ((_c = item.response) == null ? void 0 : _c.url) || item.url
|
|
16281
|
+
};
|
|
16282
|
+
}), info.file);
|
|
16283
|
+
};
|
|
16284
|
+
return () => createVNode(Upload, mergeProps(uploadProps.value, {
|
|
16285
|
+
"class": {
|
|
16286
|
+
[`${baseClassName.value}-readonly`]: props.readonly
|
|
16287
|
+
},
|
|
16288
|
+
"fileList": fileList.value,
|
|
16289
|
+
"onUpdate:fileList": ($event) => fileList.value = $event,
|
|
16212
16290
|
"name": props.name,
|
|
16213
|
-
"
|
|
16291
|
+
"maxCount": props.maxCount,
|
|
16292
|
+
"listType": props.listType,
|
|
16293
|
+
"showUploadList": props.readonly || props.showUploadList,
|
|
16294
|
+
"disabled": props.readonly || props.disabled,
|
|
16295
|
+
"style": attrs == null ? void 0 : attrs.style,
|
|
16296
|
+
"onChange": onUploadChange
|
|
16214
16297
|
}), {
|
|
16215
|
-
default: () =>
|
|
16216
|
-
|
|
16217
|
-
|
|
16218
|
-
|
|
16219
|
-
|
|
16298
|
+
default: () => {
|
|
16299
|
+
var _a;
|
|
16300
|
+
return [isPictureCard.value ? props.maxCount !== void 0 && ((_a = fileList.value) == null ? void 0 : _a.length) < props.maxCount && createVNode("div", null, [icon.value, createVNode("div", {
|
|
16301
|
+
"style": "margin-top: 8px"
|
|
16302
|
+
}, [createTextVNode(" "), title.value])]) : createVNode(Button$1, mergeProps({
|
|
16303
|
+
"disabled": props.disabled
|
|
16304
|
+
}, props.buttonProps), {
|
|
16305
|
+
default: () => [icon.value, title.value]
|
|
16306
|
+
})];
|
|
16307
|
+
},
|
|
16220
16308
|
...slotsGetter.value
|
|
16221
16309
|
});
|
|
16222
16310
|
}
|
|
@@ -16272,29 +16360,30 @@ var FieldUploadDragger = /* @__PURE__ */ defineComponent({
|
|
|
16272
16360
|
fileList: {
|
|
16273
16361
|
type: Array,
|
|
16274
16362
|
default: void 0
|
|
16275
|
-
}
|
|
16363
|
+
},
|
|
16364
|
+
listIgnore: {
|
|
16365
|
+
type: Boolean,
|
|
16366
|
+
default: true
|
|
16367
|
+
},
|
|
16368
|
+
showUploadList: {
|
|
16369
|
+
type: [Boolean, Object],
|
|
16370
|
+
default: true
|
|
16371
|
+
},
|
|
16372
|
+
customRequest: Function,
|
|
16373
|
+
beforeUpload: Function
|
|
16276
16374
|
},
|
|
16277
16375
|
setup(props, {
|
|
16278
16376
|
attrs
|
|
16279
16377
|
}) {
|
|
16280
|
-
const {
|
|
16281
|
-
token
|
|
16282
|
-
} = theme$1.useToken();
|
|
16283
16378
|
const {
|
|
16284
16379
|
prefixCls,
|
|
16285
16380
|
formData
|
|
16286
16381
|
} = useInjectForm();
|
|
16287
16382
|
const intl = useIntl();
|
|
16288
16383
|
const formSlotsContext = useInjectSlots$1();
|
|
16289
|
-
const
|
|
16290
|
-
|
|
16291
|
-
return (_a = props.fileList) != null ? _a : props.value;
|
|
16292
|
-
});
|
|
16384
|
+
const fileList = ref([]);
|
|
16385
|
+
const formItemContext = Form$1.useInjectFormItemContext();
|
|
16293
16386
|
const baseClassName = computed(() => `${prefixCls}-upload`);
|
|
16294
|
-
const showUploadButton = computed(() => {
|
|
16295
|
-
var _a;
|
|
16296
|
-
return props.max === void 0 || !value.value || ((_a = value.value) == null ? void 0 : _a.length) < props.max;
|
|
16297
|
-
});
|
|
16298
16387
|
const slotsGetter = computed(() => {
|
|
16299
16388
|
const temp = {};
|
|
16300
16389
|
SLOT_NAMES$1.forEach((name) => {
|
|
@@ -16343,24 +16432,86 @@ var FieldUploadDragger = /* @__PURE__ */ defineComponent({
|
|
|
16343
16432
|
}
|
|
16344
16433
|
return props.description || intl.getMessage("upload.dragger.hint", "\u652F\u6301\u5355\u6B21\u6216\u6279\u91CF\u4E0A\u4F20");
|
|
16345
16434
|
});
|
|
16346
|
-
const
|
|
16435
|
+
const beforeUpload = async (file, fileList2) => {
|
|
16347
16436
|
var _a;
|
|
16348
|
-
(_a = props.
|
|
16437
|
+
const result = await ((_a = props.beforeUpload) == null ? void 0 : _a.call(props, file, fileList2));
|
|
16438
|
+
if (!result && props.listIgnore) {
|
|
16439
|
+
return Upload.LIST_IGNORE;
|
|
16440
|
+
}
|
|
16441
|
+
return result;
|
|
16349
16442
|
};
|
|
16350
|
-
|
|
16351
|
-
|
|
16352
|
-
|
|
16353
|
-
|
|
16354
|
-
|
|
16355
|
-
|
|
16356
|
-
|
|
16443
|
+
const customRequest = async (option) => {
|
|
16444
|
+
var _a, _b, _c;
|
|
16445
|
+
const formData2 = new FormData();
|
|
16446
|
+
formData2.append(props.name, option.file);
|
|
16447
|
+
const onUploadProgress = (e) => {
|
|
16448
|
+
var _a2;
|
|
16449
|
+
if (e.total > 0) {
|
|
16450
|
+
e.percent = e.loaded / e.total * 100;
|
|
16451
|
+
}
|
|
16452
|
+
(_a2 = option == null ? void 0 : option.onProgress) == null ? void 0 : _a2.call(option, e);
|
|
16453
|
+
};
|
|
16454
|
+
const {
|
|
16455
|
+
success,
|
|
16456
|
+
error,
|
|
16457
|
+
data
|
|
16458
|
+
} = (_a = await props.customRequest(formData2, onUploadProgress)) != null ? _a : {};
|
|
16459
|
+
if (success) {
|
|
16460
|
+
(_b = option.onSuccess) == null ? void 0 : _b.call(option, data);
|
|
16461
|
+
formItemContext.onFieldChange();
|
|
16462
|
+
} else {
|
|
16463
|
+
(_c = option.onError) == null ? void 0 : _c.call(option, error, data);
|
|
16464
|
+
}
|
|
16465
|
+
};
|
|
16466
|
+
const uploadProps = computed(() => {
|
|
16467
|
+
const newProps = {
|
|
16468
|
+
...attrs
|
|
16469
|
+
};
|
|
16470
|
+
if (props.customRequest) {
|
|
16471
|
+
newProps.customRequest = customRequest;
|
|
16472
|
+
}
|
|
16473
|
+
if (props.beforeUpload) {
|
|
16474
|
+
newProps.beforeUpload = beforeUpload;
|
|
16475
|
+
}
|
|
16476
|
+
return newProps;
|
|
16477
|
+
});
|
|
16478
|
+
watch(() => props.value, (newValue) => {
|
|
16479
|
+
var _a;
|
|
16480
|
+
fileList.value = [...newValue == null ? void 0 : newValue.map((item) => ({
|
|
16481
|
+
...item,
|
|
16482
|
+
name: item.name || item.url
|
|
16483
|
+
}))];
|
|
16484
|
+
if (!((_a = fileList.value) == null ? void 0 : _a.length)) {
|
|
16485
|
+
formItemContext.onFieldChange();
|
|
16486
|
+
}
|
|
16487
|
+
});
|
|
16488
|
+
const onUploadChange = (info) => {
|
|
16489
|
+
var _a;
|
|
16490
|
+
(_a = props.onChange) == null ? void 0 : _a.call(props, info.fileList.map((item) => {
|
|
16491
|
+
var _a2, _b, _c;
|
|
16492
|
+
return {
|
|
16493
|
+
...item,
|
|
16494
|
+
name: item.name || ((_a2 = item.response) == null ? void 0 : _a2.name) || item.url || ((_b = item.response) == null ? void 0 : _b.url),
|
|
16495
|
+
url: ((_c = item.response) == null ? void 0 : _c.url) || item.url
|
|
16496
|
+
};
|
|
16497
|
+
}), info.file);
|
|
16498
|
+
};
|
|
16499
|
+
return () => createVNode(Upload.Dragger, mergeProps(uploadProps.value, {
|
|
16500
|
+
"class": {
|
|
16501
|
+
[`${baseClassName.value}-readonly`]: props.readonly
|
|
16357
16502
|
},
|
|
16358
|
-
"
|
|
16503
|
+
"fileList": fileList.value,
|
|
16504
|
+
"onUpdate:fileList": ($event) => fileList.value = $event,
|
|
16505
|
+
"name": props.name,
|
|
16506
|
+
"showUploadList": props.readonly || props.showUploadList,
|
|
16507
|
+
"disabled": props.readonly || props.disabled,
|
|
16508
|
+
"style": attrs == null ? void 0 : attrs.style,
|
|
16509
|
+
"onChange": onUploadChange
|
|
16359
16510
|
}), {
|
|
16360
16511
|
default: () => [createVNode("p", {
|
|
16361
16512
|
"class": `${baseClassName.value}-drag-icon`,
|
|
16362
16513
|
"style": {
|
|
16363
|
-
color:
|
|
16514
|
+
color: "hsl(var(--pro-primary))"
|
|
16364
16515
|
}
|
|
16365
16516
|
}, [icon.value]), createVNode("p", {
|
|
16366
16517
|
"class": `${baseClassName.value}-text`
|
|
@@ -36785,6 +36936,10 @@ var FormTitle = /* @__PURE__ */ defineComponent({
|
|
|
36785
36936
|
tooltip: {
|
|
36786
36937
|
type: [String, Boolean],
|
|
36787
36938
|
default: ""
|
|
36939
|
+
},
|
|
36940
|
+
readonly: {
|
|
36941
|
+
type: Boolean,
|
|
36942
|
+
default: false
|
|
36788
36943
|
}
|
|
36789
36944
|
},
|
|
36790
36945
|
setup(props) {
|
|
@@ -36799,7 +36954,8 @@ var FormTitle = /* @__PURE__ */ defineComponent({
|
|
|
36799
36954
|
}, [createVNode(RenderVNode$1, {
|
|
36800
36955
|
"vnode": title.value,
|
|
36801
36956
|
"props": {
|
|
36802
|
-
formData: formData.value
|
|
36957
|
+
formData: formData.value,
|
|
36958
|
+
readonly: props.readonly
|
|
36803
36959
|
}
|
|
36804
36960
|
}, null)]), props.tooltip && createVNode(Tooltip, null, {
|
|
36805
36961
|
default: () => [createVNode(QuestionCircleOutlined, {
|
|
@@ -36809,7 +36965,8 @@ var FormTitle = /* @__PURE__ */ defineComponent({
|
|
|
36809
36965
|
title: () => props.tooltip === true ? createVNode(RenderVNode$1, {
|
|
36810
36966
|
"vnode": title.value,
|
|
36811
36967
|
"props": {
|
|
36812
|
-
formData: formData.value
|
|
36968
|
+
formData: formData.value,
|
|
36969
|
+
readonly: props.readonly
|
|
36813
36970
|
}
|
|
36814
36971
|
}, null) : props.tooltip
|
|
36815
36972
|
})]);
|
|
@@ -38401,6 +38558,7 @@ const fieldPropsMap = {
|
|
|
38401
38558
|
"data",
|
|
38402
38559
|
"directory",
|
|
38403
38560
|
"disabled",
|
|
38561
|
+
"listIgnore",
|
|
38404
38562
|
"downloadIcon",
|
|
38405
38563
|
"fileList",
|
|
38406
38564
|
"headers",
|
|
@@ -38434,6 +38592,7 @@ const fieldPropsMap = {
|
|
|
38434
38592
|
"id",
|
|
38435
38593
|
"accept",
|
|
38436
38594
|
"action",
|
|
38595
|
+
"listIgnore",
|
|
38437
38596
|
"beforeUpload",
|
|
38438
38597
|
"customRequest",
|
|
38439
38598
|
"data",
|
|
@@ -38475,6 +38634,7 @@ const fieldPropsMap = {
|
|
|
38475
38634
|
"accept",
|
|
38476
38635
|
"action",
|
|
38477
38636
|
"beforeUpload",
|
|
38637
|
+
"listIgnore",
|
|
38478
38638
|
"name",
|
|
38479
38639
|
"headers",
|
|
38480
38640
|
"isCropper",
|
|
@@ -38501,6 +38661,7 @@ const fieldPropsMap = {
|
|
|
38501
38661
|
"multiple",
|
|
38502
38662
|
"maxCount",
|
|
38503
38663
|
"beforeUpload",
|
|
38664
|
+
"listIgnore",
|
|
38504
38665
|
"name",
|
|
38505
38666
|
"previewFile",
|
|
38506
38667
|
"allowClear",
|
|
@@ -38722,7 +38883,8 @@ var FormItem = /* @__PURE__ */ defineComponent({
|
|
|
38722
38883
|
"style": formItemProps.value.titleStyles
|
|
38723
38884
|
}, [createVNode(FormTitle, {
|
|
38724
38885
|
"title": props.item.title,
|
|
38725
|
-
"tooltip": props.item.tooltip
|
|
38886
|
+
"tooltip": props.item.tooltip,
|
|
38887
|
+
"readonly": mergeReadonly.value
|
|
38726
38888
|
}, null)]), createVNode("div", {
|
|
38727
38889
|
"class": `${prefixCls}-item-title-extra`
|
|
38728
38890
|
}, [createVNode(RenderVNode$1, {
|
|
@@ -77,6 +77,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
77
77
|
}>> & Readonly<{}>, {
|
|
78
78
|
title: import("pro-design-vue").ProVNode | ((params: {
|
|
79
79
|
formData: import("pro-design-vue").Entity;
|
|
80
|
+
readonly?: boolean;
|
|
80
81
|
}) => import("pro-design-vue").ProVNode);
|
|
81
82
|
items: ProFormItemType<import("pro-design-vue").Entity, "text" | "select" | "textarea" | "time" | "checkbox" | "date" | "password" | "formSet" | "formList" | "group" | "divider" | "digit" | "digitRange" | "treeSelect" | "cascader" | "checkboxGroup" | "radioGroup" | "switch" | "slider" | "rate" | "dateRange" | "timeRange" | "uploadButton" | "uploadDragger" | "uploadPicture" | "uploadPictureList" | "editor">[] | ((formData: import("pro-design-vue").Entity) => ProFormItemType<import("pro-design-vue").Entity, "text" | "select" | "textarea" | "time" | "checkbox" | "date" | "password" | "formSet" | "formList" | "group" | "divider" | "digit" | "digitRange" | "treeSelect" | "cascader" | "checkboxGroup" | "radioGroup" | "switch" | "slider" | "rate" | "dateRange" | "timeRange" | "uploadButton" | "uploadDragger" | "uploadPicture" | "uploadPictureList" | "editor">[]) | undefined;
|
|
82
83
|
item: ProFormItemType;
|
|
@@ -261,6 +261,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
261
261
|
}>, {
|
|
262
262
|
title: import("pro-design-vue").ProVNode | ((params: {
|
|
263
263
|
formData: Entity;
|
|
264
|
+
readonly?: boolean;
|
|
264
265
|
}) => import("pro-design-vue").ProVNode);
|
|
265
266
|
name: import("pro-design-vue").NamePath | undefined;
|
|
266
267
|
items: ProFormItemType<Entity, "text" | "select" | "textarea" | "time" | "checkbox" | "date" | "password" | "formSet" | "formList" | "group" | "divider" | "digit" | "digitRange" | "treeSelect" | "cascader" | "checkboxGroup" | "radioGroup" | "switch" | "slider" | "rate" | "dateRange" | "timeRange" | "uploadButton" | "uploadDragger" | "uploadPicture" | "uploadPictureList" | "editor">[] | ((formData: Entity) => ProFormItemType<Entity, "text" | "select" | "textarea" | "time" | "checkbox" | "date" | "password" | "formSet" | "formList" | "group" | "divider" | "digit" | "digitRange" | "treeSelect" | "cascader" | "checkboxGroup" | "radioGroup" | "switch" | "slider" | "rate" | "dateRange" | "timeRange" | "uploadButton" | "uploadDragger" | "uploadPicture" | "uploadPictureList" | "editor">[]) | undefined;
|
|
@@ -221,6 +221,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
221
221
|
}>, {
|
|
222
222
|
title: import("pro-design-vue").ProVNode | ((params: {
|
|
223
223
|
formData: Entity;
|
|
224
|
+
readonly?: boolean;
|
|
224
225
|
}) => import("pro-design-vue").ProVNode);
|
|
225
226
|
name: import("pro-design-vue").NamePath | undefined;
|
|
226
227
|
items: ProFormItemType<Entity, "text" | "select" | "textarea" | "time" | "checkbox" | "date" | "password" | "formSet" | "formList" | "group" | "divider" | "digit" | "digitRange" | "treeSelect" | "cascader" | "checkboxGroup" | "radioGroup" | "switch" | "slider" | "rate" | "dateRange" | "timeRange" | "uploadButton" | "uploadDragger" | "uploadPicture" | "uploadPictureList" | "editor">[] | ((formData: Entity) => ProFormItemType<Entity, "text" | "select" | "textarea" | "time" | "checkbox" | "date" | "password" | "formSet" | "formList" | "group" | "divider" | "digit" | "digitRange" | "treeSelect" | "cascader" | "checkboxGroup" | "radioGroup" | "switch" | "slider" | "rate" | "dateRange" | "timeRange" | "uploadButton" | "uploadDragger" | "uploadPicture" | "uploadPictureList" | "editor">[]) | undefined;
|
|
@@ -181,6 +181,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
181
181
|
}>, {
|
|
182
182
|
title: import("pro-design-vue").ProVNode | ((params: {
|
|
183
183
|
formData: Entity;
|
|
184
|
+
readonly?: boolean;
|
|
184
185
|
}) => import("pro-design-vue").ProVNode);
|
|
185
186
|
items: ProFormItemType[];
|
|
186
187
|
record: Entity;
|
|
@@ -93,6 +93,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
93
93
|
}>> & Readonly<{}>, {
|
|
94
94
|
title: import("pro-design-vue").ProVNode | ((params: {
|
|
95
95
|
formData: import("pro-design-vue").Entity;
|
|
96
|
+
readonly?: boolean;
|
|
96
97
|
}) => import("pro-design-vue").ProVNode);
|
|
97
98
|
name: import("pro-design-vue").NamePath | undefined;
|
|
98
99
|
items: ProFormItemType<import("pro-design-vue").Entity, "text" | "select" | "textarea" | "time" | "checkbox" | "date" | "password" | "formSet" | "formList" | "group" | "divider" | "digit" | "digitRange" | "treeSelect" | "cascader" | "checkboxGroup" | "radioGroup" | "switch" | "slider" | "rate" | "dateRange" | "timeRange" | "uploadButton" | "uploadDragger" | "uploadPicture" | "uploadPictureList" | "editor">[] | ((formData: import("pro-design-vue").Entity) => ProFormItemType<import("pro-design-vue").Entity, "text" | "select" | "textarea" | "time" | "checkbox" | "date" | "password" | "formSet" | "formList" | "group" | "divider" | "digit" | "digitRange" | "treeSelect" | "cascader" | "checkboxGroup" | "radioGroup" | "switch" | "slider" | "rate" | "dateRange" | "timeRange" | "uploadButton" | "uploadDragger" | "uploadPicture" | "uploadPictureList" | "editor">[]) | undefined;
|
|
@@ -9,6 +9,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
9
9
|
type: (BooleanConstructor | StringConstructor)[];
|
|
10
10
|
default: string;
|
|
11
11
|
};
|
|
12
|
+
readonly: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
12
16
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
17
|
title: {
|
|
14
18
|
type: PropType<ProFormItemType["title"]>;
|
|
@@ -18,10 +22,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
18
22
|
type: (BooleanConstructor | StringConstructor)[];
|
|
19
23
|
default: string;
|
|
20
24
|
};
|
|
25
|
+
readonly: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
21
29
|
}>> & Readonly<{}>, {
|
|
22
30
|
title: import("pro-design-vue").ProVNode | ((params: {
|
|
23
31
|
formData: import("pro-design-vue").Entity;
|
|
32
|
+
readonly?: boolean;
|
|
24
33
|
}) => import("pro-design-vue").ProVNode);
|
|
34
|
+
readonly: boolean;
|
|
25
35
|
tooltip: string | boolean;
|
|
26
36
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
27
37
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
+
import { type UploadProps } from 'ant-design-vue';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
4
|
iconRender: {
|
|
4
5
|
type: StringConstructor;
|
|
@@ -27,7 +28,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
27
28
|
type: StringConstructor;
|
|
28
29
|
default: string;
|
|
29
30
|
};
|
|
30
|
-
|
|
31
|
+
maxCount: {
|
|
31
32
|
type: NumberConstructor;
|
|
32
33
|
default: undefined;
|
|
33
34
|
};
|
|
@@ -47,6 +48,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
47
48
|
type: PropType<"text" | "picture" | "picture-card">;
|
|
48
49
|
default: string;
|
|
49
50
|
};
|
|
51
|
+
listIgnore: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
showUploadList: {
|
|
56
|
+
type: PropType<UploadProps["showUploadList"]>;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
customRequest: FunctionConstructor;
|
|
60
|
+
beforeUpload: FunctionConstructor;
|
|
50
61
|
value: {
|
|
51
62
|
type: PropType<any>;
|
|
52
63
|
};
|
|
@@ -112,7 +123,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
112
123
|
type: StringConstructor;
|
|
113
124
|
default: string;
|
|
114
125
|
};
|
|
115
|
-
|
|
126
|
+
maxCount: {
|
|
116
127
|
type: NumberConstructor;
|
|
117
128
|
default: undefined;
|
|
118
129
|
};
|
|
@@ -132,6 +143,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
132
143
|
type: PropType<"text" | "picture" | "picture-card">;
|
|
133
144
|
default: string;
|
|
134
145
|
};
|
|
146
|
+
listIgnore: {
|
|
147
|
+
type: BooleanConstructor;
|
|
148
|
+
default: boolean;
|
|
149
|
+
};
|
|
150
|
+
showUploadList: {
|
|
151
|
+
type: PropType<UploadProps["showUploadList"]>;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
154
|
+
customRequest: FunctionConstructor;
|
|
155
|
+
beforeUpload: FunctionConstructor;
|
|
135
156
|
value: {
|
|
136
157
|
type: PropType<any>;
|
|
137
158
|
};
|
|
@@ -179,14 +200,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
179
200
|
options: (string | number | import("pro-design-vue").RequestOptionsType)[] | ((formData: import("pro-design-vue").Entity, rowData?: import("pro-design-vue").Entity) => (string | number | import("pro-design-vue").RequestOptionsType)[]) | undefined;
|
|
180
201
|
valueEnum: import("pro-design-vue").ProValueEnumObj | import("pro-design-vue").ProValueEnumMap | ((formData: import("pro-design-vue").Entity) => import("pro-design-vue").ProValueEnumObj | import("pro-design-vue").ProValueEnumMap) | undefined;
|
|
181
202
|
dependencies: import("pro-design-vue").NamePath[] | undefined;
|
|
182
|
-
max: number;
|
|
183
203
|
iconRender: string;
|
|
184
204
|
removeIcon: string;
|
|
185
205
|
downloadIcon: string;
|
|
186
206
|
itemRender: string;
|
|
187
207
|
previewIcon: string;
|
|
188
|
-
buttonProps: Record<string, any>;
|
|
189
208
|
fileList: unknown[];
|
|
209
|
+
showUploadList: boolean | import("ant-design-vue/es/upload/interface").ShowUploadListInterface | undefined;
|
|
190
210
|
listType: "text" | "picture" | "picture-card";
|
|
211
|
+
maxCount: number;
|
|
212
|
+
buttonProps: Record<string, any>;
|
|
213
|
+
listIgnore: boolean;
|
|
191
214
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
192
215
|
export default _default;
|