pro-design-vue 1.2.20 → 1.2.21
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 +203 -51
- 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 +204 -52
- 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/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/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-form.css +1 -1
- 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.21 */
|
|
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.21";
|
|
34
34
|
|
|
35
35
|
const makeInstaller = (components = []) => {
|
|
36
36
|
const install = (app) => {
|
|
@@ -16124,7 +16124,7 @@ var FieldUploadButton = /* @__PURE__ */ defineComponent({
|
|
|
16124
16124
|
type: String,
|
|
16125
16125
|
default: "file"
|
|
16126
16126
|
},
|
|
16127
|
-
|
|
16127
|
+
maxCount: {
|
|
16128
16128
|
type: Number,
|
|
16129
16129
|
default: void 0
|
|
16130
16130
|
},
|
|
@@ -16142,25 +16142,31 @@ var FieldUploadButton = /* @__PURE__ */ defineComponent({
|
|
|
16142
16142
|
},
|
|
16143
16143
|
listType: {
|
|
16144
16144
|
type: String,
|
|
16145
|
-
default: "picture"
|
|
16146
|
-
}
|
|
16145
|
+
default: "picture-card"
|
|
16146
|
+
},
|
|
16147
|
+
listIgnore: {
|
|
16148
|
+
type: Boolean,
|
|
16149
|
+
default: true
|
|
16150
|
+
},
|
|
16151
|
+
showUploadList: {
|
|
16152
|
+
type: [Boolean, Object],
|
|
16153
|
+
default: true
|
|
16154
|
+
},
|
|
16155
|
+
customRequest: Function,
|
|
16156
|
+
beforeUpload: Function
|
|
16147
16157
|
},
|
|
16148
16158
|
setup(props, {
|
|
16149
16159
|
attrs
|
|
16150
16160
|
}) {
|
|
16151
16161
|
const intl = useIntl();
|
|
16152
16162
|
const {
|
|
16163
|
+
prefixCls,
|
|
16153
16164
|
formData
|
|
16154
16165
|
} = useInjectForm();
|
|
16155
16166
|
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
|
-
});
|
|
16167
|
+
const fileList = ref([]);
|
|
16168
|
+
const formItemContext = Form$1.useInjectFormItemContext();
|
|
16169
|
+
const baseClassName = computed(() => `${prefixCls}-upload`);
|
|
16164
16170
|
const isPictureCard = computed(() => props.listType === "picture-card");
|
|
16165
16171
|
const slotsGetter = computed(() => {
|
|
16166
16172
|
const temp = {};
|
|
@@ -16201,22 +16207,94 @@ var FieldUploadButton = /* @__PURE__ */ defineComponent({
|
|
|
16201
16207
|
}
|
|
16202
16208
|
return props.title || intl.getMessage("upload.button", "\u5355\u51FB\u4E0A\u4F20");
|
|
16203
16209
|
});
|
|
16204
|
-
const
|
|
16210
|
+
const beforeUpload = async (file, fileList2) => {
|
|
16205
16211
|
var _a;
|
|
16206
|
-
(_a = props.
|
|
16212
|
+
const result = await ((_a = props.beforeUpload) == null ? void 0 : _a.call(props, file, fileList2));
|
|
16213
|
+
if (!result && props.listIgnore) {
|
|
16214
|
+
return Upload.LIST_IGNORE;
|
|
16215
|
+
}
|
|
16216
|
+
return result;
|
|
16207
16217
|
};
|
|
16208
|
-
|
|
16209
|
-
|
|
16210
|
-
|
|
16211
|
-
|
|
16218
|
+
const customRequest = async (option) => {
|
|
16219
|
+
var _a, _b, _c;
|
|
16220
|
+
const formData2 = new FormData();
|
|
16221
|
+
formData2.append(props.name, option.file);
|
|
16222
|
+
const onUploadProgress = (e) => {
|
|
16223
|
+
var _a2;
|
|
16224
|
+
if (e.total > 0) {
|
|
16225
|
+
e.percent = e.loaded / e.total * 100;
|
|
16226
|
+
}
|
|
16227
|
+
(_a2 = option == null ? void 0 : option.onProgress) == null ? void 0 : _a2.call(option, e);
|
|
16228
|
+
};
|
|
16229
|
+
const {
|
|
16230
|
+
success,
|
|
16231
|
+
error,
|
|
16232
|
+
data
|
|
16233
|
+
} = (_a = await props.customRequest(formData2, onUploadProgress)) != null ? _a : {};
|
|
16234
|
+
if (success) {
|
|
16235
|
+
(_b = option.onSuccess) == null ? void 0 : _b.call(option, data);
|
|
16236
|
+
formItemContext.onFieldChange();
|
|
16237
|
+
} else {
|
|
16238
|
+
(_c = option.onError) == null ? void 0 : _c.call(option, error, data);
|
|
16239
|
+
}
|
|
16240
|
+
};
|
|
16241
|
+
const uploadProps = computed(() => {
|
|
16242
|
+
const newProps = {
|
|
16243
|
+
...attrs
|
|
16244
|
+
};
|
|
16245
|
+
if (props.customRequest) {
|
|
16246
|
+
newProps.customRequest = customRequest;
|
|
16247
|
+
}
|
|
16248
|
+
if (props.beforeUpload) {
|
|
16249
|
+
newProps.beforeUpload = beforeUpload;
|
|
16250
|
+
}
|
|
16251
|
+
return newProps;
|
|
16252
|
+
});
|
|
16253
|
+
watch(() => props.value, (newValue) => {
|
|
16254
|
+
var _a;
|
|
16255
|
+
fileList.value = [...newValue == null ? void 0 : newValue.map((item) => ({
|
|
16256
|
+
...item,
|
|
16257
|
+
name: item.name || item.url
|
|
16258
|
+
}))];
|
|
16259
|
+
if (!((_a = fileList.value) == null ? void 0 : _a.length)) {
|
|
16260
|
+
formItemContext.onFieldChange();
|
|
16261
|
+
}
|
|
16262
|
+
});
|
|
16263
|
+
const onUploadChange = (info) => {
|
|
16264
|
+
var _a;
|
|
16265
|
+
(_a = props.onChange) == null ? void 0 : _a.call(props, info.fileList.map((item) => {
|
|
16266
|
+
var _a2, _b, _c;
|
|
16267
|
+
return {
|
|
16268
|
+
...item,
|
|
16269
|
+
name: item.name || ((_a2 = item.response) == null ? void 0 : _a2.name) || item.url || ((_b = item.response) == null ? void 0 : _b.url),
|
|
16270
|
+
url: ((_c = item.response) == null ? void 0 : _c.url) || item.url
|
|
16271
|
+
};
|
|
16272
|
+
}), info.file);
|
|
16273
|
+
};
|
|
16274
|
+
return () => createVNode(Upload, mergeProps(uploadProps.value, {
|
|
16275
|
+
"class": {
|
|
16276
|
+
[`${baseClassName.value}-readonly`]: props.readonly
|
|
16277
|
+
},
|
|
16278
|
+
"fileList": fileList.value,
|
|
16279
|
+
"onUpdate:fileList": ($event) => fileList.value = $event,
|
|
16212
16280
|
"name": props.name,
|
|
16213
|
-
"
|
|
16281
|
+
"maxCount": props.maxCount,
|
|
16282
|
+
"listType": props.listType,
|
|
16283
|
+
"showUploadList": props.readonly || props.showUploadList,
|
|
16284
|
+
"disabled": props.readonly || props.disabled,
|
|
16285
|
+
"style": attrs == null ? void 0 : attrs.style,
|
|
16286
|
+
"onChange": onUploadChange
|
|
16214
16287
|
}), {
|
|
16215
|
-
default: () =>
|
|
16216
|
-
|
|
16217
|
-
|
|
16218
|
-
|
|
16219
|
-
|
|
16288
|
+
default: () => {
|
|
16289
|
+
var _a;
|
|
16290
|
+
return [isPictureCard.value ? props.maxCount !== void 0 && ((_a = fileList.value) == null ? void 0 : _a.length) < props.maxCount && createVNode("div", null, [icon.value, createVNode("div", {
|
|
16291
|
+
"style": "margin-top: 8px"
|
|
16292
|
+
}, [createTextVNode(" "), title.value])]) : createVNode(Button$1, mergeProps({
|
|
16293
|
+
"disabled": props.disabled
|
|
16294
|
+
}, props.buttonProps), {
|
|
16295
|
+
default: () => [icon.value, title.value]
|
|
16296
|
+
})];
|
|
16297
|
+
},
|
|
16220
16298
|
...slotsGetter.value
|
|
16221
16299
|
});
|
|
16222
16300
|
}
|
|
@@ -16272,29 +16350,30 @@ var FieldUploadDragger = /* @__PURE__ */ defineComponent({
|
|
|
16272
16350
|
fileList: {
|
|
16273
16351
|
type: Array,
|
|
16274
16352
|
default: void 0
|
|
16275
|
-
}
|
|
16353
|
+
},
|
|
16354
|
+
listIgnore: {
|
|
16355
|
+
type: Boolean,
|
|
16356
|
+
default: true
|
|
16357
|
+
},
|
|
16358
|
+
showUploadList: {
|
|
16359
|
+
type: [Boolean, Object],
|
|
16360
|
+
default: true
|
|
16361
|
+
},
|
|
16362
|
+
customRequest: Function,
|
|
16363
|
+
beforeUpload: Function
|
|
16276
16364
|
},
|
|
16277
16365
|
setup(props, {
|
|
16278
16366
|
attrs
|
|
16279
16367
|
}) {
|
|
16280
|
-
const {
|
|
16281
|
-
token
|
|
16282
|
-
} = theme$1.useToken();
|
|
16283
16368
|
const {
|
|
16284
16369
|
prefixCls,
|
|
16285
16370
|
formData
|
|
16286
16371
|
} = useInjectForm();
|
|
16287
16372
|
const intl = useIntl();
|
|
16288
16373
|
const formSlotsContext = useInjectSlots$1();
|
|
16289
|
-
const
|
|
16290
|
-
|
|
16291
|
-
return (_a = props.fileList) != null ? _a : props.value;
|
|
16292
|
-
});
|
|
16374
|
+
const fileList = ref([]);
|
|
16375
|
+
const formItemContext = Form$1.useInjectFormItemContext();
|
|
16293
16376
|
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
16377
|
const slotsGetter = computed(() => {
|
|
16299
16378
|
const temp = {};
|
|
16300
16379
|
SLOT_NAMES$1.forEach((name) => {
|
|
@@ -16343,24 +16422,86 @@ var FieldUploadDragger = /* @__PURE__ */ defineComponent({
|
|
|
16343
16422
|
}
|
|
16344
16423
|
return props.description || intl.getMessage("upload.dragger.hint", "\u652F\u6301\u5355\u6B21\u6216\u6279\u91CF\u4E0A\u4F20");
|
|
16345
16424
|
});
|
|
16346
|
-
const
|
|
16425
|
+
const beforeUpload = async (file, fileList2) => {
|
|
16347
16426
|
var _a;
|
|
16348
|
-
(_a = props.
|
|
16427
|
+
const result = await ((_a = props.beforeUpload) == null ? void 0 : _a.call(props, file, fileList2));
|
|
16428
|
+
if (!result && props.listIgnore) {
|
|
16429
|
+
return Upload.LIST_IGNORE;
|
|
16430
|
+
}
|
|
16431
|
+
return result;
|
|
16349
16432
|
};
|
|
16350
|
-
|
|
16351
|
-
|
|
16352
|
-
|
|
16353
|
-
|
|
16354
|
-
|
|
16355
|
-
|
|
16356
|
-
|
|
16433
|
+
const customRequest = async (option) => {
|
|
16434
|
+
var _a, _b, _c;
|
|
16435
|
+
const formData2 = new FormData();
|
|
16436
|
+
formData2.append(props.name, option.file);
|
|
16437
|
+
const onUploadProgress = (e) => {
|
|
16438
|
+
var _a2;
|
|
16439
|
+
if (e.total > 0) {
|
|
16440
|
+
e.percent = e.loaded / e.total * 100;
|
|
16441
|
+
}
|
|
16442
|
+
(_a2 = option == null ? void 0 : option.onProgress) == null ? void 0 : _a2.call(option, e);
|
|
16443
|
+
};
|
|
16444
|
+
const {
|
|
16445
|
+
success,
|
|
16446
|
+
error,
|
|
16447
|
+
data
|
|
16448
|
+
} = (_a = await props.customRequest(formData2, onUploadProgress)) != null ? _a : {};
|
|
16449
|
+
if (success) {
|
|
16450
|
+
(_b = option.onSuccess) == null ? void 0 : _b.call(option, data);
|
|
16451
|
+
formItemContext.onFieldChange();
|
|
16452
|
+
} else {
|
|
16453
|
+
(_c = option.onError) == null ? void 0 : _c.call(option, error, data);
|
|
16454
|
+
}
|
|
16455
|
+
};
|
|
16456
|
+
const uploadProps = computed(() => {
|
|
16457
|
+
const newProps = {
|
|
16458
|
+
...attrs
|
|
16459
|
+
};
|
|
16460
|
+
if (props.customRequest) {
|
|
16461
|
+
newProps.customRequest = customRequest;
|
|
16462
|
+
}
|
|
16463
|
+
if (props.beforeUpload) {
|
|
16464
|
+
newProps.beforeUpload = beforeUpload;
|
|
16465
|
+
}
|
|
16466
|
+
return newProps;
|
|
16467
|
+
});
|
|
16468
|
+
watch(() => props.value, (newValue) => {
|
|
16469
|
+
var _a;
|
|
16470
|
+
fileList.value = [...newValue == null ? void 0 : newValue.map((item) => ({
|
|
16471
|
+
...item,
|
|
16472
|
+
name: item.name || item.url
|
|
16473
|
+
}))];
|
|
16474
|
+
if (!((_a = fileList.value) == null ? void 0 : _a.length)) {
|
|
16475
|
+
formItemContext.onFieldChange();
|
|
16476
|
+
}
|
|
16477
|
+
});
|
|
16478
|
+
const onUploadChange = (info) => {
|
|
16479
|
+
var _a;
|
|
16480
|
+
(_a = props.onChange) == null ? void 0 : _a.call(props, info.fileList.map((item) => {
|
|
16481
|
+
var _a2, _b, _c;
|
|
16482
|
+
return {
|
|
16483
|
+
...item,
|
|
16484
|
+
name: item.name || ((_a2 = item.response) == null ? void 0 : _a2.name) || item.url || ((_b = item.response) == null ? void 0 : _b.url),
|
|
16485
|
+
url: ((_c = item.response) == null ? void 0 : _c.url) || item.url
|
|
16486
|
+
};
|
|
16487
|
+
}), info.file);
|
|
16488
|
+
};
|
|
16489
|
+
return () => createVNode(Upload.Dragger, mergeProps(uploadProps.value, {
|
|
16490
|
+
"class": {
|
|
16491
|
+
[`${baseClassName.value}-readonly`]: props.readonly
|
|
16357
16492
|
},
|
|
16358
|
-
"
|
|
16493
|
+
"fileList": fileList.value,
|
|
16494
|
+
"onUpdate:fileList": ($event) => fileList.value = $event,
|
|
16495
|
+
"name": props.name,
|
|
16496
|
+
"showUploadList": props.readonly || props.showUploadList,
|
|
16497
|
+
"disabled": props.readonly || props.disabled,
|
|
16498
|
+
"style": attrs == null ? void 0 : attrs.style,
|
|
16499
|
+
"onChange": onUploadChange
|
|
16359
16500
|
}), {
|
|
16360
16501
|
default: () => [createVNode("p", {
|
|
16361
16502
|
"class": `${baseClassName.value}-drag-icon`,
|
|
16362
16503
|
"style": {
|
|
16363
|
-
color:
|
|
16504
|
+
color: "hsl(var(--pro-primary))"
|
|
16364
16505
|
}
|
|
16365
16506
|
}, [icon.value]), createVNode("p", {
|
|
16366
16507
|
"class": `${baseClassName.value}-text`
|
|
@@ -36785,6 +36926,10 @@ var FormTitle = /* @__PURE__ */ defineComponent({
|
|
|
36785
36926
|
tooltip: {
|
|
36786
36927
|
type: [String, Boolean],
|
|
36787
36928
|
default: ""
|
|
36929
|
+
},
|
|
36930
|
+
readonly: {
|
|
36931
|
+
type: Boolean,
|
|
36932
|
+
default: false
|
|
36788
36933
|
}
|
|
36789
36934
|
},
|
|
36790
36935
|
setup(props) {
|
|
@@ -36799,7 +36944,8 @@ var FormTitle = /* @__PURE__ */ defineComponent({
|
|
|
36799
36944
|
}, [createVNode(RenderVNode$1, {
|
|
36800
36945
|
"vnode": title.value,
|
|
36801
36946
|
"props": {
|
|
36802
|
-
formData: formData.value
|
|
36947
|
+
formData: formData.value,
|
|
36948
|
+
readonly: props.readonly
|
|
36803
36949
|
}
|
|
36804
36950
|
}, null)]), props.tooltip && createVNode(Tooltip, null, {
|
|
36805
36951
|
default: () => [createVNode(QuestionCircleOutlined, {
|
|
@@ -36809,7 +36955,8 @@ var FormTitle = /* @__PURE__ */ defineComponent({
|
|
|
36809
36955
|
title: () => props.tooltip === true ? createVNode(RenderVNode$1, {
|
|
36810
36956
|
"vnode": title.value,
|
|
36811
36957
|
"props": {
|
|
36812
|
-
formData: formData.value
|
|
36958
|
+
formData: formData.value,
|
|
36959
|
+
readonly: props.readonly
|
|
36813
36960
|
}
|
|
36814
36961
|
}, null) : props.tooltip
|
|
36815
36962
|
})]);
|
|
@@ -38401,6 +38548,7 @@ const fieldPropsMap = {
|
|
|
38401
38548
|
"data",
|
|
38402
38549
|
"directory",
|
|
38403
38550
|
"disabled",
|
|
38551
|
+
"listIgnore",
|
|
38404
38552
|
"downloadIcon",
|
|
38405
38553
|
"fileList",
|
|
38406
38554
|
"headers",
|
|
@@ -38434,6 +38582,7 @@ const fieldPropsMap = {
|
|
|
38434
38582
|
"id",
|
|
38435
38583
|
"accept",
|
|
38436
38584
|
"action",
|
|
38585
|
+
"listIgnore",
|
|
38437
38586
|
"beforeUpload",
|
|
38438
38587
|
"customRequest",
|
|
38439
38588
|
"data",
|
|
@@ -38475,6 +38624,7 @@ const fieldPropsMap = {
|
|
|
38475
38624
|
"accept",
|
|
38476
38625
|
"action",
|
|
38477
38626
|
"beforeUpload",
|
|
38627
|
+
"listIgnore",
|
|
38478
38628
|
"name",
|
|
38479
38629
|
"headers",
|
|
38480
38630
|
"isCropper",
|
|
@@ -38501,6 +38651,7 @@ const fieldPropsMap = {
|
|
|
38501
38651
|
"multiple",
|
|
38502
38652
|
"maxCount",
|
|
38503
38653
|
"beforeUpload",
|
|
38654
|
+
"listIgnore",
|
|
38504
38655
|
"name",
|
|
38505
38656
|
"previewFile",
|
|
38506
38657
|
"allowClear",
|
|
@@ -38722,7 +38873,8 @@ var FormItem = /* @__PURE__ */ defineComponent({
|
|
|
38722
38873
|
"style": formItemProps.value.titleStyles
|
|
38723
38874
|
}, [createVNode(FormTitle, {
|
|
38724
38875
|
"title": props.item.title,
|
|
38725
|
-
"tooltip": props.item.tooltip
|
|
38876
|
+
"tooltip": props.item.tooltip,
|
|
38877
|
+
"readonly": mergeReadonly.value
|
|
38726
38878
|
}, null)]), createVNode("div", {
|
|
38727
38879
|
"class": `${prefixCls}-item-title-extra`
|
|
38728
38880
|
}, [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;
|