pro-design-vue 1.2.12 → 1.2.14
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 +153 -75
- 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 +153 -75
- package/es/components/form/src/components/FormList.d.ts +28 -1
- package/es/components/form/src/components/FormListContainer.d.ts +28 -1
- package/es/components/form/src/components/FormListItem.d.ts +39 -1
- package/es/components/form/src/context/FormContext.d.ts +2 -0
- package/es/packages/components/form/src/base/BaseForm.mjs +8 -0
- package/es/packages/components/form/src/base/BaseForm.mjs.map +1 -1
- package/es/packages/components/form/src/components/FormItem.mjs +7 -3
- package/es/packages/components/form/src/components/FormItem.mjs.map +1 -1
- package/es/packages/components/form/src/components/FormItems.mjs +1 -1
- package/es/packages/components/form/src/components/FormItems.mjs.map +1 -1
- package/es/packages/components/form/src/components/FormList.mjs +15 -0
- package/es/packages/components/form/src/components/FormList.mjs.map +1 -1
- package/es/packages/components/form/src/components/FormListContainer.mjs +16 -0
- package/es/packages/components/form/src/components/FormListContainer.mjs.map +1 -1
- package/es/packages/components/form/src/components/FormListItem.mjs +24 -1
- package/es/packages/components/form/src/components/FormListItem.mjs.map +1 -1
- package/es/packages/components/form/src/context/FormContext.mjs.map +1 -1
- package/es/packages/components/table/src/components/Alert.vue.mjs +72 -66
- package/es/packages/components/table/src/components/Alert.vue.mjs.map +1 -1
- package/es/packages/components/table/src/components/Alert.vue2.mjs.map +1 -1
- package/es/packages/components/table/src/components/Table.mjs +9 -3
- package/es/packages/components/table/src/components/Table.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/FormList.d.ts +28 -1
- package/lib/components/form/src/components/FormListContainer.d.ts +28 -1
- package/lib/components/form/src/components/FormListItem.d.ts +39 -1
- package/lib/components/form/src/context/FormContext.d.ts +2 -0
- package/lib/packages/components/form/src/base/BaseForm.js +8 -0
- package/lib/packages/components/form/src/base/BaseForm.js.map +1 -1
- package/lib/packages/components/form/src/components/FormItem.js +7 -3
- package/lib/packages/components/form/src/components/FormItem.js.map +1 -1
- package/lib/packages/components/form/src/components/FormItems.js +1 -1
- package/lib/packages/components/form/src/components/FormItems.js.map +1 -1
- package/lib/packages/components/form/src/components/FormList.js +15 -0
- package/lib/packages/components/form/src/components/FormList.js.map +1 -1
- package/lib/packages/components/form/src/components/FormListContainer.js +16 -0
- package/lib/packages/components/form/src/components/FormListContainer.js.map +1 -1
- package/lib/packages/components/form/src/components/FormListItem.js +24 -1
- package/lib/packages/components/form/src/components/FormListItem.js.map +1 -1
- package/lib/packages/components/form/src/context/FormContext.js.map +1 -1
- package/lib/packages/components/table/src/components/Alert.vue.js +71 -65
- package/lib/packages/components/table/src/components/Alert.vue.js.map +1 -1
- package/lib/packages/components/table/src/components/Alert.vue2.js.map +1 -1
- package/lib/packages/components/table/src/components/Table.js +9 -3
- package/lib/packages/components/table/src/components/Table.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 +11 -0
package/dist/index.full.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Pro Design Vue v1.2.
|
|
1
|
+
/*! Pro Design Vue v1.2.14 */
|
|
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
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, createTextVNode, vModelText } from 'vue';
|
|
@@ -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.14";
|
|
34
34
|
|
|
35
35
|
const makeInstaller = (components = []) => {
|
|
36
36
|
const install = (app) => {
|
|
@@ -17420,7 +17420,7 @@ const FormGroup$2 = defineAsyncComponent(() => Promise.resolve().then(function (
|
|
|
17420
17420
|
const FormSet$2 = defineAsyncComponent(() => Promise.resolve().then(function () { return FormSet$1; }));
|
|
17421
17421
|
const FormList$2 = defineAsyncComponent(() => Promise.resolve().then(function () { return FormList$1; }));
|
|
17422
17422
|
const FormItem$2 = defineAsyncComponent(() => Promise.resolve().then(function () { return FormItem$1; }));
|
|
17423
|
-
const LIST_PROP_KEYS = ["min", "max", "isValidateList", "emptyListMessage", "creatorRecord", "creatorButtonProps", "alwaysShowItemLabel", "actionGuard", "copyIconProps", "deleteIconProps", "onAfterAdd", "onAfterRemove"];
|
|
17423
|
+
const LIST_PROP_KEYS = ["min", "max", "rowTitle", "rowTitleStyle", "alwaysShowRowTitle", "isValidateList", "emptyListMessage", "creatorRecord", "creatorButtonProps", "alwaysShowItemLabel", "actionGuard", "copyIconProps", "deleteIconProps", "onAfterAdd", "onAfterRemove"];
|
|
17424
17424
|
const LIST_SLOT_NAMES = ["action", "creator", "item"];
|
|
17425
17425
|
var FormItems = /* @__PURE__ */ defineComponent({
|
|
17426
17426
|
name: "FormItems",
|
|
@@ -17927,6 +17927,14 @@ var BaseForm = /* @__PURE__ */ defineComponent({
|
|
|
17927
17927
|
xs: 24
|
|
17928
17928
|
};
|
|
17929
17929
|
}),
|
|
17930
|
+
labelCol: computed(() => {
|
|
17931
|
+
var _a;
|
|
17932
|
+
return (_a = props.labelCol) != null ? _a : {};
|
|
17933
|
+
}),
|
|
17934
|
+
wrapperCol: computed(() => {
|
|
17935
|
+
var _a;
|
|
17936
|
+
return (_a = props.wrapperCol) != null ? _a : {};
|
|
17937
|
+
}),
|
|
17930
17938
|
formatItems,
|
|
17931
17939
|
onPressEnter: () => {
|
|
17932
17940
|
if (!props.isKeyPressSubmit) return;
|
|
@@ -35061,75 +35069,81 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
35061
35069
|
class: normalizeClass(`${_ctx.prefixCls}-alert`)
|
|
35062
35070
|
},
|
|
35063
35071
|
[
|
|
35064
|
-
|
|
35065
|
-
|
|
35066
|
-
|
|
35067
|
-
|
|
35068
|
-
|
|
35069
|
-
|
|
35070
|
-
|
|
35071
|
-
|
|
35072
|
-
{
|
|
35073
|
-
|
|
35074
|
-
|
|
35075
|
-
|
|
35076
|
-
|
|
35077
|
-
|
|
35078
|
-
|
|
35079
|
-
|
|
35080
|
-
|
|
35072
|
+
renderSlot(_ctx.$slots, "alert", {
|
|
35073
|
+
selectedRowKeys: _ctx.selectedRowKeys,
|
|
35074
|
+
selectedRows: _ctx.selectedRows,
|
|
35075
|
+
onCleanSelected: _ctx.onCleanSelected
|
|
35076
|
+
}, () => [
|
|
35077
|
+
createElementVNode(
|
|
35078
|
+
"div",
|
|
35079
|
+
{
|
|
35080
|
+
class: normalizeClass(`${_ctx.prefixCls}-alert-container`)
|
|
35081
|
+
},
|
|
35082
|
+
[
|
|
35083
|
+
createElementVNode(
|
|
35084
|
+
"div",
|
|
35085
|
+
{
|
|
35086
|
+
class: normalizeClass(`${_ctx.prefixCls}-alert-info`)
|
|
35087
|
+
},
|
|
35088
|
+
[
|
|
35089
|
+
renderSlot(_ctx.$slots, "info", {
|
|
35090
|
+
selectedRowKeys: _ctx.selectedRowKeys,
|
|
35091
|
+
selectedRows: _ctx.selectedRows,
|
|
35092
|
+
onCleanSelected: _ctx.onCleanSelected
|
|
35093
|
+
}, () => [
|
|
35094
|
+
createVNode(_component_Space, null, {
|
|
35095
|
+
default: withCtx(() => [
|
|
35096
|
+
createTextVNode(
|
|
35097
|
+
" \u5DF2\u9009\u62E9 " + toDisplayString(_ctx.selectedRowKeys.length) + " \u9879 ",
|
|
35098
|
+
1
|
|
35099
|
+
/* TEXT */
|
|
35100
|
+
),
|
|
35101
|
+
_ctx.slots.actions ? (openBlock(), createElementBlock("a", {
|
|
35102
|
+
class: "pro-link",
|
|
35103
|
+
onClick: _cache[0] || (_cache[0] = (...args) => _ctx.onCleanSelected && _ctx.onCleanSelected(...args)),
|
|
35104
|
+
key: "0"
|
|
35105
|
+
}, "\u53D6\u6D88\u9009\u62E9")) : createCommentVNode("v-if", true)
|
|
35106
|
+
]),
|
|
35107
|
+
_: 1
|
|
35108
|
+
/* STABLE */
|
|
35109
|
+
})
|
|
35110
|
+
])
|
|
35111
|
+
],
|
|
35112
|
+
2
|
|
35113
|
+
/* CLASS */
|
|
35114
|
+
),
|
|
35115
|
+
createElementVNode(
|
|
35116
|
+
"div",
|
|
35117
|
+
{
|
|
35118
|
+
class: normalizeClass(`${_ctx.prefixCls}-alert-actions`)
|
|
35119
|
+
},
|
|
35120
|
+
[
|
|
35081
35121
|
createVNode(_component_Space, null, {
|
|
35082
35122
|
default: withCtx(() => [
|
|
35083
|
-
|
|
35084
|
-
|
|
35085
|
-
|
|
35086
|
-
|
|
35087
|
-
)
|
|
35088
|
-
|
|
35089
|
-
|
|
35090
|
-
|
|
35091
|
-
|
|
35092
|
-
|
|
35123
|
+
renderSlot(_ctx.$slots, "actions", {
|
|
35124
|
+
selectedRowKeys: _ctx.selectedRowKeys,
|
|
35125
|
+
selectedRows: _ctx.selectedRows,
|
|
35126
|
+
onCleanSelected: _ctx.onCleanSelected
|
|
35127
|
+
}, () => [
|
|
35128
|
+
createElementVNode("a", {
|
|
35129
|
+
class: "pro-link",
|
|
35130
|
+
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onCleanSelected && _ctx.onCleanSelected(...args)),
|
|
35131
|
+
key: "0"
|
|
35132
|
+
}, "\u53D6\u6D88\u9009\u62E9")
|
|
35133
|
+
])
|
|
35093
35134
|
]),
|
|
35094
|
-
_:
|
|
35095
|
-
/*
|
|
35135
|
+
_: 3
|
|
35136
|
+
/* FORWARDED */
|
|
35096
35137
|
})
|
|
35097
|
-
]
|
|
35098
|
-
|
|
35099
|
-
|
|
35100
|
-
|
|
35101
|
-
|
|
35102
|
-
|
|
35103
|
-
|
|
35104
|
-
|
|
35105
|
-
|
|
35106
|
-
},
|
|
35107
|
-
[
|
|
35108
|
-
createVNode(_component_Space, null, {
|
|
35109
|
-
default: withCtx(() => [
|
|
35110
|
-
renderSlot(_ctx.$slots, "actions", {
|
|
35111
|
-
selectedRowKeys: _ctx.selectedRowKeys,
|
|
35112
|
-
selectedRows: _ctx.selectedRows,
|
|
35113
|
-
onCleanSelected: _ctx.onCleanSelected
|
|
35114
|
-
}, () => [
|
|
35115
|
-
createElementVNode("a", {
|
|
35116
|
-
class: "pro-link",
|
|
35117
|
-
onClick: _cache[1] || (_cache[1] = (...args) => _ctx.onCleanSelected && _ctx.onCleanSelected(...args)),
|
|
35118
|
-
key: "0"
|
|
35119
|
-
}, "\u53D6\u6D88\u9009\u62E9")
|
|
35120
|
-
])
|
|
35121
|
-
]),
|
|
35122
|
-
_: 3
|
|
35123
|
-
/* FORWARDED */
|
|
35124
|
-
})
|
|
35125
|
-
],
|
|
35126
|
-
2
|
|
35127
|
-
/* CLASS */
|
|
35128
|
-
)
|
|
35129
|
-
],
|
|
35130
|
-
2
|
|
35131
|
-
/* CLASS */
|
|
35132
|
-
)
|
|
35138
|
+
],
|
|
35139
|
+
2
|
|
35140
|
+
/* CLASS */
|
|
35141
|
+
)
|
|
35142
|
+
],
|
|
35143
|
+
2
|
|
35144
|
+
/* CLASS */
|
|
35145
|
+
)
|
|
35146
|
+
])
|
|
35133
35147
|
],
|
|
35134
35148
|
2
|
|
35135
35149
|
/* CLASS */
|
|
@@ -35475,8 +35489,9 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35475
35489
|
const dataRowKey = getRowKey.value(data, -1);
|
|
35476
35490
|
preserveRecordsRef.value.set(dataRowKey, data);
|
|
35477
35491
|
});
|
|
35492
|
+
} else {
|
|
35493
|
+
onCleanSelected();
|
|
35478
35494
|
}
|
|
35479
|
-
onCleanSelected();
|
|
35480
35495
|
});
|
|
35481
35496
|
const [selectedRowKeys, setSelectedRowKeys] = useMergedState(props.selectedRowKeys || (props.rowSelection ? ((_a = props.rowSelection) == null ? void 0 : _a.defaultSelectedRowKeys) || [] : void 0), {
|
|
35482
35497
|
value: computed(() => props.selectedRowKeys || (props.rowSelection ? props.rowSelection.selectedRowKeys : void 0))
|
|
@@ -35563,6 +35578,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35563
35578
|
clearDataSource: () => {
|
|
35564
35579
|
dataSource.value = [];
|
|
35565
35580
|
},
|
|
35581
|
+
cleanSelected: onCleanSelected,
|
|
35566
35582
|
appendCellToSelectedRange: (params) => {
|
|
35567
35583
|
var _a2;
|
|
35568
35584
|
return (_a2 = tableRef.value) == null ? void 0 : _a2.appendCellToSelectedRange(params);
|
|
@@ -35628,7 +35644,8 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35628
35644
|
"onCleanSelected": onCleanSelected
|
|
35629
35645
|
}, {
|
|
35630
35646
|
info: slots.alertInfo,
|
|
35631
|
-
actions: slots.alertActions
|
|
35647
|
+
actions: slots.alertActions,
|
|
35648
|
+
alert: slots.alert
|
|
35632
35649
|
}), createVNode(InteralTable, mergeProps({
|
|
35633
35650
|
"ref": tableRef
|
|
35634
35651
|
}, omit(props, ["onChange", "onUpdate:pagination", "onUpdate:selectedRowKeys", "onUpdate:columns"]), {
|
|
@@ -35662,7 +35679,10 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
|
35662
35679
|
return createVNode(ConfigProvider, {
|
|
35663
35680
|
"prefixCls": antPrefixCls == null ? void 0 : antPrefixCls.value,
|
|
35664
35681
|
"getPopupContainer": () => {
|
|
35665
|
-
|
|
35682
|
+
if (counter.hasFullScreen.value && counter.rootDomRef.value) {
|
|
35683
|
+
return counter.rootDomRef.value;
|
|
35684
|
+
}
|
|
35685
|
+
return document.body;
|
|
35666
35686
|
}
|
|
35667
35687
|
}, {
|
|
35668
35688
|
default: () => {
|
|
@@ -36952,6 +36972,10 @@ var FormListItem = /* @__PURE__ */ defineComponent({
|
|
|
36952
36972
|
type: Number,
|
|
36953
36973
|
default: 0
|
|
36954
36974
|
},
|
|
36975
|
+
title: {
|
|
36976
|
+
type: [String, Object, Function],
|
|
36977
|
+
default: void 0
|
|
36978
|
+
},
|
|
36955
36979
|
items: {
|
|
36956
36980
|
type: Array,
|
|
36957
36981
|
default: () => []
|
|
@@ -36976,6 +37000,18 @@ var FormListItem = /* @__PURE__ */ defineComponent({
|
|
|
36976
37000
|
type: Boolean,
|
|
36977
37001
|
default: void 0
|
|
36978
37002
|
},
|
|
37003
|
+
alwaysShowRowTitle: {
|
|
37004
|
+
type: Boolean,
|
|
37005
|
+
default: void 0
|
|
37006
|
+
},
|
|
37007
|
+
rowTitle: {
|
|
37008
|
+
type: String,
|
|
37009
|
+
default: void 0
|
|
37010
|
+
},
|
|
37011
|
+
rowTitleStyle: {
|
|
37012
|
+
type: Object,
|
|
37013
|
+
default: void 0
|
|
37014
|
+
},
|
|
36979
37015
|
count: {
|
|
36980
37016
|
type: Number,
|
|
36981
37017
|
default: 0
|
|
@@ -37069,6 +37105,7 @@ var FormListItem = /* @__PURE__ */ defineComponent({
|
|
|
37069
37105
|
const fields = (_b = runFunction((_a = props.items) != null ? _a : [], formData.value)) != null ? _b : [];
|
|
37070
37106
|
return (_c = formatItems == null ? void 0 : formatItems(genListItems(fields))) != null ? _c : [];
|
|
37071
37107
|
});
|
|
37108
|
+
const showRowTitle = computed(() => props.alwaysShowRowTitle && props.rowTitle);
|
|
37072
37109
|
const deleteIcon = computed(() => {
|
|
37073
37110
|
var _a;
|
|
37074
37111
|
if (props.readonly || props.deleteIconProps === false || props.min === props.count) return null;
|
|
@@ -37190,9 +37227,15 @@ var FormListItem = /* @__PURE__ */ defineComponent({
|
|
|
37190
37227
|
}, null);
|
|
37191
37228
|
}
|
|
37192
37229
|
return createVNode("div", {
|
|
37230
|
+
"class": `${prefixCls}-list-item-wrapper`
|
|
37231
|
+
}, [showRowTitle.value && createVNode("div", {
|
|
37232
|
+
"class": `${prefixCls}-list-item-title`
|
|
37233
|
+
}, [createVNode("div", {
|
|
37234
|
+
"style": props.rowTitleStyle
|
|
37235
|
+
}, [props.rowTitle, props.index + 1]), actionDom]), createVNode("div", {
|
|
37193
37236
|
"class": `${prefixCls}-list-item`,
|
|
37194
37237
|
"style": "display: flex; align-items: flex-end;"
|
|
37195
|
-
}, [itemDom, actionDom]);
|
|
37238
|
+
}, [itemDom, !showRowTitle.value && actionDom])]);
|
|
37196
37239
|
};
|
|
37197
37240
|
}
|
|
37198
37241
|
});
|
|
@@ -37256,6 +37299,18 @@ var FormListContainer = /* @__PURE__ */ defineComponent({
|
|
|
37256
37299
|
type: Boolean,
|
|
37257
37300
|
default: void 0
|
|
37258
37301
|
},
|
|
37302
|
+
alwaysShowRowTitle: {
|
|
37303
|
+
type: Boolean,
|
|
37304
|
+
default: void 0
|
|
37305
|
+
},
|
|
37306
|
+
rowTitle: {
|
|
37307
|
+
type: String,
|
|
37308
|
+
default: void 0
|
|
37309
|
+
},
|
|
37310
|
+
rowTitleStyle: {
|
|
37311
|
+
type: Object,
|
|
37312
|
+
default: void 0
|
|
37313
|
+
},
|
|
37259
37314
|
creatorRecord: {
|
|
37260
37315
|
type: [Object, Function],
|
|
37261
37316
|
default: void 0
|
|
@@ -37450,7 +37505,11 @@ var FormListContainer = /* @__PURE__ */ defineComponent({
|
|
|
37450
37505
|
"max": props.max,
|
|
37451
37506
|
"count": count.value,
|
|
37452
37507
|
"record": record,
|
|
37508
|
+
"title": props.title,
|
|
37509
|
+
"rowTitle": props.rowTitle,
|
|
37510
|
+
"rowTitleStyle": props.rowTitleStyle,
|
|
37453
37511
|
"alwaysShowItemLabel": props.alwaysShowItemLabel,
|
|
37512
|
+
"alwaysShowRowTitle": props.alwaysShowRowTitle,
|
|
37454
37513
|
"copyIconProps": props.copyIconProps,
|
|
37455
37514
|
"deleteIconProps": props.deleteIconProps,
|
|
37456
37515
|
"action": action,
|
|
@@ -37531,6 +37590,18 @@ var FormList = /* @__PURE__ */ defineComponent({
|
|
|
37531
37590
|
type: Boolean,
|
|
37532
37591
|
default: void 0
|
|
37533
37592
|
},
|
|
37593
|
+
alwaysShowRowTitle: {
|
|
37594
|
+
type: Boolean,
|
|
37595
|
+
default: true
|
|
37596
|
+
},
|
|
37597
|
+
rowTitle: {
|
|
37598
|
+
type: String,
|
|
37599
|
+
default: void 0
|
|
37600
|
+
},
|
|
37601
|
+
rowTitleStyle: {
|
|
37602
|
+
type: Object,
|
|
37603
|
+
default: void 0
|
|
37604
|
+
},
|
|
37534
37605
|
creatorRecord: {
|
|
37535
37606
|
type: [Object, Function],
|
|
37536
37607
|
default: void 0
|
|
@@ -37655,6 +37726,8 @@ var FormList = /* @__PURE__ */ defineComponent({
|
|
|
37655
37726
|
"name": props.name,
|
|
37656
37727
|
"originName": props.originName,
|
|
37657
37728
|
"title": props.title,
|
|
37729
|
+
"rowTitle": props.rowTitle,
|
|
37730
|
+
"rowTitleStyle": props.rowTitleStyle,
|
|
37658
37731
|
"tooltip": props.tooltip,
|
|
37659
37732
|
"rowProps": props.rowProps,
|
|
37660
37733
|
"initialValue": props.initialValue,
|
|
@@ -37665,6 +37738,7 @@ var FormList = /* @__PURE__ */ defineComponent({
|
|
|
37665
37738
|
"max": props.max,
|
|
37666
37739
|
"readonly": mergeReadonly.value,
|
|
37667
37740
|
"alwaysShowItemLabel": props.alwaysShowItemLabel,
|
|
37741
|
+
"alwaysShowRowTitle": props.alwaysShowRowTitle,
|
|
37668
37742
|
"creatorRecord": props.creatorRecord,
|
|
37669
37743
|
"creatorButtonProps": props.creatorButtonProps,
|
|
37670
37744
|
"copyIconProps": props.copyIconProps,
|
|
@@ -38336,6 +38410,8 @@ var FormItem = /* @__PURE__ */ defineComponent({
|
|
|
38336
38410
|
disabledKeys,
|
|
38337
38411
|
hiddenKeys,
|
|
38338
38412
|
allDisabledKeys,
|
|
38413
|
+
labelCol,
|
|
38414
|
+
wrapperCol,
|
|
38339
38415
|
onPressEnter,
|
|
38340
38416
|
updateHiddenKeys,
|
|
38341
38417
|
updateDisabledKeys
|
|
@@ -38381,12 +38457,14 @@ var FormItem = /* @__PURE__ */ defineComponent({
|
|
|
38381
38457
|
return (_a = runFunction(props.item.formItemProps, formData.value)) != null ? _a : {};
|
|
38382
38458
|
});
|
|
38383
38459
|
const restItemProps = computed(() => {
|
|
38384
|
-
var _a, _b, _c, _d;
|
|
38460
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
38385
38461
|
return omitUndefined({
|
|
38386
38462
|
...pickKeys(formItemProps.value, ALL_ANTD_PROP_KEYS),
|
|
38463
|
+
labelCol: (_b = (_a = formItemProps.value) == null ? void 0 : _a.labelCol) != null ? _b : labelCol == null ? void 0 : labelCol.value,
|
|
38464
|
+
wrapperCol: (_d = (_c = formItemProps.value) == null ? void 0 : _c.wrapperCol) != null ? _d : wrapperCol == null ? void 0 : wrapperCol.value,
|
|
38387
38465
|
name: mergeReadonly.value ? void 0 : props.item.name,
|
|
38388
|
-
htmlFor: mergeReadonly.value ? void 0 : (
|
|
38389
|
-
rules: mergeReadonly.value ? void 0 : runFunction((
|
|
38466
|
+
htmlFor: mergeReadonly.value ? void 0 : (_g = (_e = formItemProps.value) == null ? void 0 : _e.htmlFor) != null ? _g : `form-${(_f = formKey.value) != null ? _f : ""}-${props.item.key}`,
|
|
38467
|
+
rules: mergeReadonly.value ? void 0 : runFunction((_h = props.item.rules) != null ? _h : formItemProps.value.rules, formData.value, action)
|
|
38390
38468
|
});
|
|
38391
38469
|
});
|
|
38392
38470
|
const clearOnChange = (newValue) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropType, VNode } from 'vue';
|
|
1
|
+
import type { CSSProperties, PropType, VNode } from 'vue';
|
|
2
2
|
import type { Entity, ProFormItemType } from '../type';
|
|
3
3
|
import type { ButtonProps } from 'ant-design-vue';
|
|
4
4
|
export interface ListOperations {
|
|
@@ -66,6 +66,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
66
66
|
type: BooleanConstructor;
|
|
67
67
|
default: undefined;
|
|
68
68
|
};
|
|
69
|
+
alwaysShowRowTitle: {
|
|
70
|
+
type: BooleanConstructor;
|
|
71
|
+
default: boolean;
|
|
72
|
+
};
|
|
73
|
+
rowTitle: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: undefined;
|
|
76
|
+
};
|
|
77
|
+
rowTitleStyle: {
|
|
78
|
+
type: PropType<CSSProperties>;
|
|
79
|
+
default: undefined;
|
|
80
|
+
};
|
|
69
81
|
creatorRecord: {
|
|
70
82
|
type: PropType<Entity | (() => Entity)>;
|
|
71
83
|
default: undefined;
|
|
@@ -179,6 +191,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
179
191
|
type: BooleanConstructor;
|
|
180
192
|
default: undefined;
|
|
181
193
|
};
|
|
194
|
+
alwaysShowRowTitle: {
|
|
195
|
+
type: BooleanConstructor;
|
|
196
|
+
default: boolean;
|
|
197
|
+
};
|
|
198
|
+
rowTitle: {
|
|
199
|
+
type: StringConstructor;
|
|
200
|
+
default: undefined;
|
|
201
|
+
};
|
|
202
|
+
rowTitleStyle: {
|
|
203
|
+
type: PropType<CSSProperties>;
|
|
204
|
+
default: undefined;
|
|
205
|
+
};
|
|
182
206
|
creatorRecord: {
|
|
183
207
|
type: PropType<Entity | (() => Entity)>;
|
|
184
208
|
default: undefined;
|
|
@@ -345,6 +369,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
345
369
|
tooltipText?: string;
|
|
346
370
|
};
|
|
347
371
|
alwaysShowItemLabel: boolean;
|
|
372
|
+
alwaysShowRowTitle: boolean;
|
|
373
|
+
rowTitle: string;
|
|
374
|
+
rowTitleStyle: CSSProperties;
|
|
348
375
|
creatorRecord: Entity | (() => Entity);
|
|
349
376
|
creatorButtonProps: false | (Partial<import("vue").ExtractPropTypes<{
|
|
350
377
|
prefixCls: StringConstructor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ButtonProps } from 'ant-design-vue';
|
|
2
|
-
import type { PropType, VNode } from 'vue';
|
|
2
|
+
import type { CSSProperties, PropType, VNode } from 'vue';
|
|
3
3
|
import type { Entity, ProFormItemType } from '../type';
|
|
4
4
|
export interface ListOperations {
|
|
5
5
|
add: (defaultValue: Entity, index?: number) => Promise<boolean>;
|
|
@@ -58,6 +58,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
58
58
|
type: BooleanConstructor;
|
|
59
59
|
default: undefined;
|
|
60
60
|
};
|
|
61
|
+
alwaysShowRowTitle: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: undefined;
|
|
64
|
+
};
|
|
65
|
+
rowTitle: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
default: undefined;
|
|
68
|
+
};
|
|
69
|
+
rowTitleStyle: {
|
|
70
|
+
type: PropType<CSSProperties>;
|
|
71
|
+
default: undefined;
|
|
72
|
+
};
|
|
61
73
|
creatorRecord: {
|
|
62
74
|
type: PropType<Entity | (() => Entity)>;
|
|
63
75
|
default: undefined;
|
|
@@ -151,6 +163,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
151
163
|
type: BooleanConstructor;
|
|
152
164
|
default: undefined;
|
|
153
165
|
};
|
|
166
|
+
alwaysShowRowTitle: {
|
|
167
|
+
type: BooleanConstructor;
|
|
168
|
+
default: undefined;
|
|
169
|
+
};
|
|
170
|
+
rowTitle: {
|
|
171
|
+
type: StringConstructor;
|
|
172
|
+
default: undefined;
|
|
173
|
+
};
|
|
174
|
+
rowTitleStyle: {
|
|
175
|
+
type: PropType<CSSProperties>;
|
|
176
|
+
default: undefined;
|
|
177
|
+
};
|
|
154
178
|
creatorRecord: {
|
|
155
179
|
type: PropType<Entity | (() => Entity)>;
|
|
156
180
|
default: undefined;
|
|
@@ -267,6 +291,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
267
291
|
tooltipText?: string;
|
|
268
292
|
};
|
|
269
293
|
alwaysShowItemLabel: boolean;
|
|
294
|
+
alwaysShowRowTitle: boolean;
|
|
295
|
+
rowTitle: string;
|
|
296
|
+
rowTitleStyle: CSSProperties;
|
|
270
297
|
creatorRecord: Entity | (() => Entity);
|
|
271
298
|
creatorButtonProps: false | (Partial<import("vue").ExtractPropTypes<{
|
|
272
299
|
prefixCls: StringConstructor;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { PropType, VNode } from 'vue';
|
|
1
|
+
import type { CSSProperties, PropType, VNode } from 'vue';
|
|
2
2
|
import type { Entity, NamePath, ProFormItemType } from '../type';
|
|
3
3
|
import type { ListOperations } from './FormList';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -14,6 +14,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
14
14
|
type: NumberConstructor;
|
|
15
15
|
default: number;
|
|
16
16
|
};
|
|
17
|
+
title: {
|
|
18
|
+
type: PropType<ProFormItemType["title"]>;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
17
21
|
items: {
|
|
18
22
|
type: PropType<ProFormItemType[]>;
|
|
19
23
|
default: () => never[];
|
|
@@ -44,6 +48,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
44
48
|
type: BooleanConstructor;
|
|
45
49
|
default: undefined;
|
|
46
50
|
};
|
|
51
|
+
alwaysShowRowTitle: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: undefined;
|
|
54
|
+
};
|
|
55
|
+
rowTitle: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
default: undefined;
|
|
58
|
+
};
|
|
59
|
+
rowTitleStyle: {
|
|
60
|
+
type: PropType<CSSProperties>;
|
|
61
|
+
default: undefined;
|
|
62
|
+
};
|
|
47
63
|
count: {
|
|
48
64
|
type: NumberConstructor;
|
|
49
65
|
default: number;
|
|
@@ -85,6 +101,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
85
101
|
type: NumberConstructor;
|
|
86
102
|
default: number;
|
|
87
103
|
};
|
|
104
|
+
title: {
|
|
105
|
+
type: PropType<ProFormItemType["title"]>;
|
|
106
|
+
default: undefined;
|
|
107
|
+
};
|
|
88
108
|
items: {
|
|
89
109
|
type: PropType<ProFormItemType[]>;
|
|
90
110
|
default: () => never[];
|
|
@@ -115,6 +135,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
115
135
|
type: BooleanConstructor;
|
|
116
136
|
default: undefined;
|
|
117
137
|
};
|
|
138
|
+
alwaysShowRowTitle: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
default: undefined;
|
|
141
|
+
};
|
|
142
|
+
rowTitle: {
|
|
143
|
+
type: StringConstructor;
|
|
144
|
+
default: undefined;
|
|
145
|
+
};
|
|
146
|
+
rowTitleStyle: {
|
|
147
|
+
type: PropType<CSSProperties>;
|
|
148
|
+
default: undefined;
|
|
149
|
+
};
|
|
118
150
|
count: {
|
|
119
151
|
type: NumberConstructor;
|
|
120
152
|
default: number;
|
|
@@ -147,6 +179,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
147
179
|
onCopy?: ((...args: any[]) => any) | undefined;
|
|
148
180
|
onRemove?: ((...args: any[]) => any) | undefined;
|
|
149
181
|
}>, {
|
|
182
|
+
title: import("pro-design-vue").ProVNode | ((params: {
|
|
183
|
+
formData: Entity;
|
|
184
|
+
}) => import("pro-design-vue").ProVNode);
|
|
150
185
|
items: ProFormItemType[];
|
|
151
186
|
record: Entity;
|
|
152
187
|
rowProps: (Partial<import("vue").ExtractPropTypes<{
|
|
@@ -215,5 +250,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
215
250
|
tooltipText?: string;
|
|
216
251
|
};
|
|
217
252
|
alwaysShowItemLabel: boolean;
|
|
253
|
+
alwaysShowRowTitle: boolean;
|
|
254
|
+
rowTitle: string;
|
|
255
|
+
rowTitleStyle: CSSProperties;
|
|
218
256
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
219
257
|
export default _default;
|
|
@@ -17,6 +17,8 @@ export interface FormContextProps extends Linkage {
|
|
|
17
17
|
readonlyProps?: ComputedRef<ReadonlyProps | undefined>;
|
|
18
18
|
rowProps?: ComputedRef<RowProps>;
|
|
19
19
|
colProps?: ComputedRef<ColProps>;
|
|
20
|
+
labelCol?: ComputedRef<ColProps>;
|
|
21
|
+
wrapperCol?: ComputedRef<ColProps>;
|
|
20
22
|
gutter?: ComputedRef<number>;
|
|
21
23
|
disabled?: ComputedRef<boolean>;
|
|
22
24
|
onPressEnter?: KeyboardEventHandler;
|
|
@@ -227,6 +227,14 @@ var BaseForm = /* @__PURE__ */ defineComponent({
|
|
|
227
227
|
xs: 24
|
|
228
228
|
};
|
|
229
229
|
}),
|
|
230
|
+
labelCol: computed(() => {
|
|
231
|
+
var _a;
|
|
232
|
+
return (_a = props.labelCol) != null ? _a : {};
|
|
233
|
+
}),
|
|
234
|
+
wrapperCol: computed(() => {
|
|
235
|
+
var _a;
|
|
236
|
+
return (_a = props.wrapperCol) != null ? _a : {};
|
|
237
|
+
}),
|
|
230
238
|
formatItems,
|
|
231
239
|
onPressEnter: () => {
|
|
232
240
|
if (!props.isKeyPressSubmit) return;
|