pro-design-vue 1.0.0-rc.12 → 1.0.0-rc.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 +211 -132
- 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 +211 -132
- package/es/components/form/src/Form.d.ts +1 -1
- package/es/components/form/src/base/BaseForm.d.ts +1 -1
- package/es/components/form/src/base/BaseForm.mjs +4 -3
- package/es/components/form/src/base/BaseForm.mjs.map +1 -1
- package/es/components/form/src/base/StepForm.d.ts +1 -1
- package/es/components/form/src/components/FormGroup.d.ts +3 -1
- package/es/components/form/src/components/FormItem.mjs +20 -22
- package/es/components/form/src/components/FormItem.mjs.map +1 -1
- package/es/components/form/src/components/FormList.d.ts +3 -1
- package/es/components/form/src/components/FormListContainer.d.ts +3 -1
- package/es/components/form/src/components/FormSet.d.ts +3 -1
- package/es/components/form/src/components/FormSubmitter.d.ts +2 -2
- package/es/components/form/src/components/FormSubmitter.mjs +25 -7
- package/es/components/form/src/components/FormSubmitter.mjs.map +1 -1
- package/es/components/form/src/components/FormTitle.d.ts +3 -1
- package/es/components/form/src/layouts/DrawerForm.d.ts +1 -1
- package/es/components/form/src/layouts/ModalForm.d.ts +1 -1
- package/es/components/form/src/layouts/QueryFilter.d.ts +1 -1
- package/es/components/form/src/layouts/QueryFilter.mjs +1 -2
- package/es/components/form/src/layouts/QueryFilter.mjs.map +1 -1
- package/es/components/form/src/layouts/StepsForm.d.ts +1 -1
- package/es/components/form/src/layouts/StepsForm.mjs +3 -7
- package/es/components/form/src/layouts/StepsForm.mjs.map +1 -1
- package/es/components/form/src/type.d.ts +17 -8
- package/es/components/table/src/components/Body/Body.vue.mjs.map +1 -1
- package/es/components/table/src/components/Body/Body.vue2.mjs +1 -2
- package/es/components/table/src/components/Body/Body.vue2.mjs.map +1 -1
- package/es/components/table/src/components/Body/BodyCell.mjs +1 -1
- package/es/components/table/src/components/Body/BodyCell.mjs.map +1 -1
- package/es/components/table/src/components/Body/BodyRow.vue.mjs.map +1 -1
- package/es/components/table/src/components/Body/BodyRow.vue2.mjs +3 -3
- package/es/components/table/src/components/Body/BodyRow.vue2.mjs.map +1 -1
- package/es/components/table/src/components/Drag/RowHandler.vue.mjs.map +1 -1
- package/es/components/table/src/components/Drag/RowHandler.vue2.mjs +17 -16
- package/es/components/table/src/components/Drag/RowHandler.vue2.mjs.map +1 -1
- package/es/components/table/src/components/Header/HeaderCellTitle.vue.mjs +18 -6
- package/es/components/table/src/components/Header/HeaderCellTitle.vue.mjs.map +1 -1
- package/es/components/table/src/components/Header/HeaderCellTitle.vue2.mjs +1 -0
- package/es/components/table/src/components/Header/HeaderCellTitle.vue2.mjs.map +1 -1
- package/es/components/table/src/components/Header/HeaderExtraCell.vue.mjs.map +1 -1
- package/es/components/table/src/components/Header/HeaderExtraCell.vue2.mjs +1 -0
- package/es/components/table/src/components/Header/HeaderExtraCell.vue2.mjs.map +1 -1
- package/es/components/table/src/components/InteralTable.vue.d.ts +18 -0
- package/es/components/table/src/components/InteralTable.vue.mjs.map +1 -1
- package/es/components/table/src/components/InteralTable.vue2.mjs +11 -5
- package/es/components/table/src/components/InteralTable.vue2.mjs.map +1 -1
- package/es/components/table/src/components/Table.d.ts +22 -4
- package/es/components/table/src/components/Table.mjs +47 -13
- package/es/components/table/src/components/Table.mjs.map +1 -1
- package/es/components/table/src/components/interface.d.ts +30 -3
- package/es/components/table/src/components/interface.mjs +9 -1
- package/es/components/table/src/components/interface.mjs.map +1 -1
- package/es/components/table/src/hooks/useCellProps.mjs +3 -1
- package/es/components/table/src/hooks/useCellProps.mjs.map +1 -1
- package/es/components/table/src/hooks/useContainer.mjs +1 -1
- package/es/components/table/src/hooks/useContainer.mjs.map +1 -1
- package/es/components/table/src/hooks/useFetchData.mjs +2 -1
- package/es/components/table/src/hooks/useFetchData.mjs.map +1 -1
- package/es/components/table/src/hooks/useHover.d.ts +3 -0
- package/es/components/table/src/hooks/useHover.mjs +3 -1
- package/es/components/table/src/hooks/useHover.mjs.map +1 -1
- package/es/components/table/src/hooks/usePagination.d.ts +1 -0
- package/es/components/table/src/hooks/usePagination.mjs +7 -2
- package/es/components/table/src/hooks/usePagination.mjs.map +1 -1
- package/es/components/table/src/utils/genProColumnToColumn.mjs +6 -4
- package/es/components/table/src/utils/genProColumnToColumn.mjs.map +1 -1
- package/es/components/table/src/utils/util.d.ts +1 -1
- package/es/components/table/src/utils/util.mjs +1 -1
- package/es/components/table/src/utils/util.mjs.map +1 -1
- package/es/index.d.ts +54 -16
- package/es/utils/validate.d.ts +1 -1
- package/es/utils/validate.mjs +1 -1
- package/es/utils/validate.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/Form.d.ts +1 -1
- package/lib/components/form/src/base/BaseForm.d.ts +1 -1
- package/lib/components/form/src/base/BaseForm.js +4 -3
- package/lib/components/form/src/base/BaseForm.js.map +1 -1
- package/lib/components/form/src/base/StepForm.d.ts +1 -1
- package/lib/components/form/src/components/FormGroup.d.ts +3 -1
- package/lib/components/form/src/components/FormItem.js +20 -22
- package/lib/components/form/src/components/FormItem.js.map +1 -1
- package/lib/components/form/src/components/FormList.d.ts +3 -1
- package/lib/components/form/src/components/FormListContainer.d.ts +3 -1
- package/lib/components/form/src/components/FormSet.d.ts +3 -1
- package/lib/components/form/src/components/FormSubmitter.d.ts +2 -2
- package/lib/components/form/src/components/FormSubmitter.js +25 -7
- package/lib/components/form/src/components/FormSubmitter.js.map +1 -1
- package/lib/components/form/src/components/FormTitle.d.ts +3 -1
- package/lib/components/form/src/layouts/DrawerForm.d.ts +1 -1
- package/lib/components/form/src/layouts/ModalForm.d.ts +1 -1
- package/lib/components/form/src/layouts/QueryFilter.d.ts +1 -1
- package/lib/components/form/src/layouts/QueryFilter.js +1 -2
- package/lib/components/form/src/layouts/QueryFilter.js.map +1 -1
- package/lib/components/form/src/layouts/StepsForm.d.ts +1 -1
- package/lib/components/form/src/layouts/StepsForm.js +3 -7
- package/lib/components/form/src/layouts/StepsForm.js.map +1 -1
- package/lib/components/form/src/type.d.ts +17 -8
- package/lib/components/table/src/components/Body/Body.vue.js.map +1 -1
- package/lib/components/table/src/components/Body/Body.vue2.js +1 -2
- package/lib/components/table/src/components/Body/Body.vue2.js.map +1 -1
- package/lib/components/table/src/components/Body/BodyCell.js +1 -1
- package/lib/components/table/src/components/Body/BodyCell.js.map +1 -1
- package/lib/components/table/src/components/Body/BodyRow.vue.js.map +1 -1
- package/lib/components/table/src/components/Body/BodyRow.vue2.js +3 -3
- package/lib/components/table/src/components/Body/BodyRow.vue2.js.map +1 -1
- package/lib/components/table/src/components/Drag/RowHandler.vue.js.map +1 -1
- package/lib/components/table/src/components/Drag/RowHandler.vue2.js +17 -16
- package/lib/components/table/src/components/Drag/RowHandler.vue2.js.map +1 -1
- package/lib/components/table/src/components/Header/HeaderCellTitle.vue.js +17 -5
- package/lib/components/table/src/components/Header/HeaderCellTitle.vue.js.map +1 -1
- package/lib/components/table/src/components/Header/HeaderCellTitle.vue2.js +1 -0
- package/lib/components/table/src/components/Header/HeaderCellTitle.vue2.js.map +1 -1
- package/lib/components/table/src/components/Header/HeaderExtraCell.vue.js.map +1 -1
- package/lib/components/table/src/components/Header/HeaderExtraCell.vue2.js +1 -0
- package/lib/components/table/src/components/Header/HeaderExtraCell.vue2.js.map +1 -1
- package/lib/components/table/src/components/InteralTable.vue.d.ts +18 -0
- package/lib/components/table/src/components/InteralTable.vue.js.map +1 -1
- package/lib/components/table/src/components/InteralTable.vue2.js +12 -6
- package/lib/components/table/src/components/InteralTable.vue2.js.map +1 -1
- package/lib/components/table/src/components/Table.d.ts +22 -4
- package/lib/components/table/src/components/Table.js +46 -12
- package/lib/components/table/src/components/Table.js.map +1 -1
- package/lib/components/table/src/components/interface.d.ts +30 -3
- package/lib/components/table/src/components/interface.js +9 -1
- package/lib/components/table/src/components/interface.js.map +1 -1
- package/lib/components/table/src/hooks/useCellProps.js +3 -1
- package/lib/components/table/src/hooks/useCellProps.js.map +1 -1
- package/lib/components/table/src/hooks/useContainer.js +1 -1
- package/lib/components/table/src/hooks/useContainer.js.map +1 -1
- package/lib/components/table/src/hooks/useFetchData.js +2 -1
- package/lib/components/table/src/hooks/useFetchData.js.map +1 -1
- package/lib/components/table/src/hooks/useHover.d.ts +3 -0
- package/lib/components/table/src/hooks/useHover.js +2 -0
- package/lib/components/table/src/hooks/useHover.js.map +1 -1
- package/lib/components/table/src/hooks/usePagination.d.ts +1 -0
- package/lib/components/table/src/hooks/usePagination.js +7 -1
- package/lib/components/table/src/hooks/usePagination.js.map +1 -1
- package/lib/components/table/src/utils/genProColumnToColumn.js +6 -4
- package/lib/components/table/src/utils/genProColumnToColumn.js.map +1 -1
- package/lib/components/table/src/utils/util.d.ts +1 -1
- package/lib/components/table/src/utils/util.js +1 -1
- package/lib/components/table/src/utils/util.js.map +1 -1
- package/lib/index.d.ts +54 -16
- package/lib/utils/validate.d.ts +1 -1
- package/lib/utils/validate.js +1 -1
- package/lib/utils/validate.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 +5 -0
- package/theme-chalk/src/table/table.less +1 -1
package/dist/index.full.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! Pro Design Vue v1.0.0-rc.
|
1
|
+
/*! Pro Design Vue v1.0.0-rc.14 */
|
2
2
|
|
3
3
|
(function (global, factory) {
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ant-design-vue'), require('vue')) :
|
@@ -16,7 +16,7 @@
|
|
16
16
|
const SCROLL_FIXED_CLASS = `_scroll__fixed_`;
|
17
17
|
const DEFAULT_NAMESPACE = "pro";
|
18
18
|
|
19
|
-
const version$1 = "1.0.0-rc.
|
19
|
+
const version$1 = "1.0.0-rc.14";
|
20
20
|
|
21
21
|
const makeInstaller = (components = []) => {
|
22
22
|
const install = (app) => {
|
@@ -2206,13 +2206,13 @@
|
|
2206
2206
|
function isNumber$2(val) {
|
2207
2207
|
return is$1(val, "Number");
|
2208
2208
|
}
|
2209
|
-
function isPromise
|
2210
|
-
return is$1(val, "Promise") &&
|
2209
|
+
function isPromise(val) {
|
2210
|
+
return is$1(val, "Promise") && isFunction$2(val.then) && isFunction$2(val.catch);
|
2211
2211
|
}
|
2212
2212
|
function isString$1(val) {
|
2213
2213
|
return is$1(val, "String");
|
2214
2214
|
}
|
2215
|
-
function isFunction$
|
2215
|
+
function isFunction$2(val) {
|
2216
2216
|
return typeof val === "function";
|
2217
2217
|
}
|
2218
2218
|
function isArray$2(val) {
|
@@ -2256,7 +2256,7 @@
|
|
2256
2256
|
...okButtonProps
|
2257
2257
|
},
|
2258
2258
|
async onOk(...args) {
|
2259
|
-
if (isPromise
|
2259
|
+
if (isPromise(onOk)) {
|
2260
2260
|
return await new Promise(() => {
|
2261
2261
|
onOk == null ? void 0 : onOk(args);
|
2262
2262
|
});
|
@@ -2507,7 +2507,7 @@
|
|
2507
2507
|
var funcTag$2 = "[object Function]";
|
2508
2508
|
var genTag$1 = "[object GeneratorFunction]";
|
2509
2509
|
var proxyTag = "[object Proxy]";
|
2510
|
-
function isFunction$
|
2510
|
+
function isFunction$1(value) {
|
2511
2511
|
if (!isObject$3(value)) {
|
2512
2512
|
return false;
|
2513
2513
|
}
|
@@ -2554,7 +2554,7 @@
|
|
2554
2554
|
if (!isObject$3(value) || isMasked(value)) {
|
2555
2555
|
return false;
|
2556
2556
|
}
|
2557
|
-
var pattern = isFunction$
|
2557
|
+
var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
|
2558
2558
|
return pattern.test(toSource(value));
|
2559
2559
|
}
|
2560
2560
|
|
@@ -2756,7 +2756,7 @@
|
|
2756
2756
|
}
|
2757
2757
|
|
2758
2758
|
function isArrayLike(value) {
|
2759
|
-
return value != null && isLength(value.length) && !isFunction$
|
2759
|
+
return value != null && isLength(value.length) && !isFunction$1(value);
|
2760
2760
|
}
|
2761
2761
|
|
2762
2762
|
function isIterateeCall(value, index, object) {
|
@@ -4429,7 +4429,7 @@
|
|
4429
4429
|
newValue = objValue;
|
4430
4430
|
if (isArguments(objValue)) {
|
4431
4431
|
newValue = toPlainObject(objValue);
|
4432
|
-
} else if (!isObject$3(objValue) || isFunction$
|
4432
|
+
} else if (!isObject$3(objValue) || isFunction$1(objValue)) {
|
4433
4433
|
newValue = initCloneObject(srcValue);
|
4434
4434
|
}
|
4435
4435
|
} else {
|
@@ -8480,7 +8480,7 @@
|
|
8480
8480
|
});
|
8481
8481
|
const isComponent = vue.computed(() => {
|
8482
8482
|
const { icon } = props;
|
8483
|
-
return !isString$1(icon) && (isObject$4(icon) || isFunction$
|
8483
|
+
return !isString$1(icon) && (isObject$4(icon) || isFunction$2(icon));
|
8484
8484
|
});
|
8485
8485
|
return (_ctx, _cache) => {
|
8486
8486
|
return isComponent.value ? (vue.openBlock(), vue.createBlock(
|
@@ -9144,7 +9144,7 @@
|
|
9144
9144
|
return false;
|
9145
9145
|
}
|
9146
9146
|
}
|
9147
|
-
function isFunction
|
9147
|
+
function isFunction(value) {
|
9148
9148
|
return typeof value === "function";
|
9149
9149
|
}
|
9150
9150
|
var slice = Array.prototype.slice;
|
@@ -9152,7 +9152,7 @@
|
|
9152
9152
|
return Array.from ? Array.from(value) : slice.call(value);
|
9153
9153
|
}
|
9154
9154
|
function forEach(data, callback) {
|
9155
|
-
if (data && isFunction
|
9155
|
+
if (data && isFunction(callback)) {
|
9156
9156
|
if (Array.isArray(data) || isNumber(data.length)) {
|
9157
9157
|
toArray$1(data).forEach(function(value, key) {
|
9158
9158
|
callback.call(data, value, key, data);
|
@@ -9366,7 +9366,7 @@
|
|
9366
9366
|
}
|
9367
9367
|
function dispatchEvent(element, type, data) {
|
9368
9368
|
var event;
|
9369
|
-
if (isFunction
|
9369
|
+
if (isFunction(Event) && isFunction(CustomEvent)) {
|
9370
9370
|
event = new CustomEvent(type, {
|
9371
9371
|
detail: data,
|
9372
9372
|
bubbles: true,
|
@@ -10105,19 +10105,19 @@
|
|
10105
10105
|
var events$1 = {
|
10106
10106
|
bind: function bind() {
|
10107
10107
|
var element = this.element, options = this.options, cropper = this.cropper;
|
10108
|
-
if (isFunction
|
10108
|
+
if (isFunction(options.cropstart)) {
|
10109
10109
|
addListener(element, EVENT_CROP_START, options.cropstart);
|
10110
10110
|
}
|
10111
|
-
if (isFunction
|
10111
|
+
if (isFunction(options.cropmove)) {
|
10112
10112
|
addListener(element, EVENT_CROP_MOVE, options.cropmove);
|
10113
10113
|
}
|
10114
|
-
if (isFunction
|
10114
|
+
if (isFunction(options.cropend)) {
|
10115
10115
|
addListener(element, EVENT_CROP_END, options.cropend);
|
10116
10116
|
}
|
10117
|
-
if (isFunction
|
10117
|
+
if (isFunction(options.crop)) {
|
10118
10118
|
addListener(element, EVENT_CROP, options.crop);
|
10119
10119
|
}
|
10120
|
-
if (isFunction
|
10120
|
+
if (isFunction(options.zoom)) {
|
10121
10121
|
addListener(element, EVENT_ZOOM, options.zoom);
|
10122
10122
|
}
|
10123
10123
|
addListener(cropper, EVENT_POINTER_DOWN, this.onCropStart = this.cropStart.bind(this));
|
@@ -10138,19 +10138,19 @@
|
|
10138
10138
|
},
|
10139
10139
|
unbind: function unbind() {
|
10140
10140
|
var element = this.element, options = this.options, cropper = this.cropper;
|
10141
|
-
if (isFunction
|
10141
|
+
if (isFunction(options.cropstart)) {
|
10142
10142
|
removeListener(element, EVENT_CROP_START, options.cropstart);
|
10143
10143
|
}
|
10144
|
-
if (isFunction
|
10144
|
+
if (isFunction(options.cropmove)) {
|
10145
10145
|
removeListener(element, EVENT_CROP_MOVE, options.cropmove);
|
10146
10146
|
}
|
10147
|
-
if (isFunction
|
10147
|
+
if (isFunction(options.cropend)) {
|
10148
10148
|
removeListener(element, EVENT_CROP_END, options.cropend);
|
10149
10149
|
}
|
10150
|
-
if (isFunction
|
10150
|
+
if (isFunction(options.crop)) {
|
10151
10151
|
removeListener(element, EVENT_CROP, options.crop);
|
10152
10152
|
}
|
10153
|
-
if (isFunction
|
10153
|
+
if (isFunction(options.zoom)) {
|
10154
10154
|
removeListener(element, EVENT_ZOOM, options.zoom);
|
10155
10155
|
}
|
10156
10156
|
removeListener(cropper, EVENT_POINTER_DOWN, this.onCropStart);
|
@@ -11555,7 +11555,7 @@
|
|
11555
11555
|
this.crop();
|
11556
11556
|
}
|
11557
11557
|
this.setData(options.data);
|
11558
|
-
if (isFunction
|
11558
|
+
if (isFunction(options.ready)) {
|
11559
11559
|
addListener(element, EVENT_READY, options.ready, {
|
11560
11560
|
once: true
|
11561
11561
|
});
|
@@ -14766,7 +14766,7 @@
|
|
14766
14766
|
});
|
14767
14767
|
const icon = vue.computed(() => {
|
14768
14768
|
const render = getSlot(props.iconRender, formSlotsContext);
|
14769
|
-
if (isFunction$
|
14769
|
+
if (isFunction$2(render)) {
|
14770
14770
|
return vue.createVNode(RenderVNode$1, {
|
14771
14771
|
"vnode": render
|
14772
14772
|
}, null);
|
@@ -14775,7 +14775,7 @@
|
|
14775
14775
|
});
|
14776
14776
|
const title = vue.computed(() => {
|
14777
14777
|
const render = getSlot(props.title, formSlotsContext);
|
14778
|
-
if (isFunction$
|
14778
|
+
if (isFunction$2(render)) {
|
14779
14779
|
return vue.createVNode(RenderVNode$1, {
|
14780
14780
|
"vnode": render
|
14781
14781
|
}, null);
|
@@ -14889,7 +14889,7 @@
|
|
14889
14889
|
});
|
14890
14890
|
const icon = vue.computed(() => {
|
14891
14891
|
const render = getSlot(props.iconRender, formSlotsContext);
|
14892
|
-
if (isFunction$
|
14892
|
+
if (isFunction$2(render)) {
|
14893
14893
|
return vue.createVNode(RenderVNode$1, {
|
14894
14894
|
"vnode": render
|
14895
14895
|
}, null);
|
@@ -14898,7 +14898,7 @@
|
|
14898
14898
|
});
|
14899
14899
|
const title = vue.computed(() => {
|
14900
14900
|
const render = getSlot(props.title, formSlotsContext);
|
14901
|
-
if (isFunction$
|
14901
|
+
if (isFunction$2(render)) {
|
14902
14902
|
return vue.createVNode(RenderVNode$1, {
|
14903
14903
|
"vnode": render
|
14904
14904
|
}, null);
|
@@ -14907,7 +14907,7 @@
|
|
14907
14907
|
});
|
14908
14908
|
const description = vue.computed(() => {
|
14909
14909
|
const render = getSlot(props.description, formSlotsContext);
|
14910
|
-
if (isFunction$
|
14910
|
+
if (isFunction$2(render)) {
|
14911
14911
|
return vue.createVNode(RenderVNode$1, {
|
14912
14912
|
"vnode": render
|
14913
14913
|
}, null);
|
@@ -16234,15 +16234,33 @@
|
|
16234
16234
|
action
|
16235
16235
|
} = useInjectForm();
|
16236
16236
|
const formSlotsContext = useInjectSlots$1();
|
16237
|
-
const submit = () => {
|
16237
|
+
const submit = async () => {
|
16238
16238
|
var _a;
|
16239
|
-
|
16240
|
-
|
16239
|
+
if (!props.onSubmit) {
|
16240
|
+
action.submit();
|
16241
|
+
return;
|
16242
|
+
}
|
16243
|
+
const values = action.getFieldsValue();
|
16244
|
+
const response = (_a = props.onSubmit) == null ? void 0 : _a.call(props, values, action);
|
16245
|
+
const result = await response;
|
16246
|
+
if (result) {
|
16247
|
+
action.submit();
|
16248
|
+
}
|
16249
|
+
return result;
|
16241
16250
|
};
|
16242
|
-
const reset = () => {
|
16243
|
-
var _a
|
16244
|
-
(
|
16245
|
-
|
16251
|
+
const reset = async () => {
|
16252
|
+
var _a;
|
16253
|
+
if (!props.onReset) {
|
16254
|
+
action.reset();
|
16255
|
+
return;
|
16256
|
+
}
|
16257
|
+
const values = action.getFieldsValue();
|
16258
|
+
const response = (_a = props.onReset) == null ? void 0 : _a.call(props, values, action);
|
16259
|
+
const result = await response;
|
16260
|
+
if (result) {
|
16261
|
+
action.reset();
|
16262
|
+
}
|
16263
|
+
return result;
|
16246
16264
|
};
|
16247
16265
|
const resetButton = vue.computed(() => {
|
16248
16266
|
const {
|
@@ -16369,7 +16387,7 @@
|
|
16369
16387
|
var _a;
|
16370
16388
|
return (_a = props.formKey) != null ? _a : requestFormCacheId.toString();
|
16371
16389
|
});
|
16372
|
-
const [loading,
|
16390
|
+
const [loading, setLoading] = useMergedState$1(false, {
|
16373
16391
|
value: vue.computed(() => props.loading),
|
16374
16392
|
onChange: (val) => {
|
16375
16393
|
var _a;
|
@@ -16445,7 +16463,7 @@
|
|
16445
16463
|
if (!props.onFinish) return;
|
16446
16464
|
if (props.submitOnLoading) {
|
16447
16465
|
if (loading.value) return;
|
16448
|
-
|
16466
|
+
setLoading(true);
|
16449
16467
|
}
|
16450
16468
|
try {
|
16451
16469
|
const finalValues = transformKeySubmitValue(cloneDeep(formData.value), transformerMap.value, props.omitNil);
|
@@ -16454,7 +16472,7 @@
|
|
16454
16472
|
console.log("\u{1F680} ~ onFinish ~ error:", error);
|
16455
16473
|
} finally {
|
16456
16474
|
if (props.submitOnLoading) {
|
16457
|
-
|
16475
|
+
setLoading(false);
|
16458
16476
|
}
|
16459
16477
|
}
|
16460
16478
|
};
|
@@ -16509,6 +16527,7 @@
|
|
16509
16527
|
}), null);
|
16510
16528
|
if (submitterProps.value.teleport) {
|
16511
16529
|
return vue.createVNode(vue.Teleport, {
|
16530
|
+
"defer": true,
|
16512
16531
|
"to": submitterProps.value.teleport
|
16513
16532
|
}, _isSlot$5(dom) ? dom : {
|
16514
16533
|
default: () => [dom]
|
@@ -17084,7 +17103,6 @@
|
|
17084
17103
|
}
|
17085
17104
|
if (props.defaultColsNumber !== void 0) {
|
17086
17105
|
const oneRowControlsNumber = 24 / spanSize.value.span - 1;
|
17087
|
-
console.log("\u{1F680} ~ showLength ~ oneRowControlsNumber:", oneRowControlsNumber);
|
17088
17106
|
return props.defaultColsNumber > oneRowControlsNumber ? oneRowControlsNumber : props.defaultColsNumber;
|
17089
17107
|
}
|
17090
17108
|
return Math.max(1, 24 / spanSize.value.span - 1);
|
@@ -17121,7 +17139,7 @@
|
|
17121
17139
|
}
|
17122
17140
|
return void 0;
|
17123
17141
|
});
|
17124
|
-
const [collapsed, setCollapsed] = useMergedState$1(() => props.defaultCollapsed &&
|
17142
|
+
const [collapsed, setCollapsed] = useMergedState$1(() => props.defaultCollapsed && props.submitter !== false, {
|
17125
17143
|
value: vue.computed(() => props.collapsed),
|
17126
17144
|
onChange: (val) => {
|
17127
17145
|
emit("collapse", val);
|
@@ -17455,7 +17473,7 @@
|
|
17455
17473
|
onChange: props.onCurrentChange
|
17456
17474
|
});
|
17457
17475
|
const regForm = (formRef, index) => {
|
17458
|
-
formArrayRef.value[index] = formRef;
|
17476
|
+
formArrayRef.value[index] = formRef.value;
|
17459
17477
|
};
|
17460
17478
|
const lastStep = vue.computed(() => step.value === props.steps.length - 1);
|
17461
17479
|
const onFormFinish = async (name, formData) => {
|
@@ -17469,10 +17487,7 @@
|
|
17469
17487
|
const success = await props.onFinish(values);
|
17470
17488
|
if (success) {
|
17471
17489
|
setStep(0);
|
17472
|
-
formArrayRef.value.forEach((form) =>
|
17473
|
-
var _a;
|
17474
|
-
return (_a = form.value) == null ? void 0 : _a.reset();
|
17475
|
-
});
|
17490
|
+
formArrayRef.value.forEach((form) => form == null ? void 0 : form.reset());
|
17476
17491
|
}
|
17477
17492
|
} catch (error) {
|
17478
17493
|
console.log(error);
|
@@ -17481,10 +17496,9 @@
|
|
17481
17496
|
}
|
17482
17497
|
};
|
17483
17498
|
const onSubmit = () => {
|
17484
|
-
var _a;
|
17485
17499
|
const from = formArrayRef.value[step.value];
|
17486
17500
|
if (from) {
|
17487
|
-
|
17501
|
+
from == null ? void 0 : from.submit();
|
17488
17502
|
}
|
17489
17503
|
};
|
17490
17504
|
const prePage = () => {
|
@@ -19738,6 +19752,7 @@
|
|
19738
19752
|
}, props.rowHoverDelay.value + 50);
|
19739
19753
|
};
|
19740
19754
|
const hoverContext = {
|
19755
|
+
rowHover: props.rowHover,
|
19741
19756
|
hoverColumnKey,
|
19742
19757
|
hoverRowKey,
|
19743
19758
|
handleCellHover,
|
@@ -19748,6 +19763,7 @@
|
|
19748
19763
|
};
|
19749
19764
|
const useInjectHover = () => {
|
19750
19765
|
return vue.inject(HoverContextKey, {
|
19766
|
+
rowHover: vue.computed(() => void 0),
|
19751
19767
|
hoverRowKey: vue.ref(),
|
19752
19768
|
hoverColumnKey: vue.ref(),
|
19753
19769
|
handleCellHover: () => {
|
@@ -19769,9 +19785,6 @@
|
|
19769
19785
|
function is(val, type) {
|
19770
19786
|
return toString.call(val) === `[object ${type}]`;
|
19771
19787
|
}
|
19772
|
-
function isFunction(val) {
|
19773
|
-
return typeof val === "function";
|
19774
|
-
}
|
19775
19788
|
function isArray(val) {
|
19776
19789
|
return val && Array.isArray(val);
|
19777
19790
|
}
|
@@ -19965,9 +19978,6 @@
|
|
19965
19978
|
currentData.splice(indexs[indexsLen - 1], 1);
|
19966
19979
|
return currentData;
|
19967
19980
|
}
|
19968
|
-
function isPromise(val) {
|
19969
|
-
return is(val, "Promise") && isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
19970
|
-
}
|
19971
19981
|
function ensureValidVNode(vnodes) {
|
19972
19982
|
return vnodes.some(
|
19973
19983
|
(vnode) => !vue.isVNode(vnode) || vnode.type !== vue.Comment && !(vnode.type === vue.Fragment && !ensureValidVNode(vnode.children))
|
@@ -20050,7 +20060,8 @@
|
|
20050
20060
|
type: [Number, String]
|
20051
20061
|
},
|
20052
20062
|
size: {
|
20053
|
-
type: String
|
20063
|
+
type: String,
|
20064
|
+
default: "middle"
|
20054
20065
|
},
|
20055
20066
|
bordered: {
|
20056
20067
|
type: Boolean,
|
@@ -20146,6 +20157,10 @@
|
|
20146
20157
|
type: Number,
|
20147
20158
|
default: 59
|
20148
20159
|
},
|
20160
|
+
rowHover: {
|
20161
|
+
type: Boolean,
|
20162
|
+
default: void 0
|
20163
|
+
},
|
20149
20164
|
rowKey: {
|
20150
20165
|
type: [Function, String]
|
20151
20166
|
},
|
@@ -20260,6 +20275,9 @@
|
|
20260
20275
|
"onUpdate:dataSource": {
|
20261
20276
|
type: Function
|
20262
20277
|
},
|
20278
|
+
"onUpdate:columns": {
|
20279
|
+
type: Function
|
20280
|
+
},
|
20263
20281
|
columnEmptyText: {
|
20264
20282
|
type: [String, Boolean],
|
20265
20283
|
default: "-"
|
@@ -20343,8 +20361,9 @@
|
|
20343
20361
|
|
20344
20362
|
const mergePropsAndPagination = ({ pagination }, intl) => {
|
20345
20363
|
if (pagination) {
|
20346
|
-
const { current, pageSize, total, showTotal, showSizeChanger } = pagination;
|
20364
|
+
const { current, pageSize, total, showTotal, showSizeChanger, ...rest } = pagination;
|
20347
20365
|
return {
|
20366
|
+
...rest,
|
20348
20367
|
current: current || 1,
|
20349
20368
|
total: total || 0,
|
20350
20369
|
pageSize: pageSize || 10,
|
@@ -20838,7 +20857,7 @@
|
|
20838
20857
|
var _a2;
|
20839
20858
|
return (_a2 = props.columnsState) == null ? void 0 : _a2.persistenceKey;
|
20840
20859
|
},
|
20841
|
-
columnsMap,
|
20860
|
+
() => columnsMap.value,
|
20842
20861
|
() => {
|
20843
20862
|
var _a2;
|
20844
20863
|
return (_a2 = props.columnsState) == null ? void 0 : _a2.persistenceType;
|
@@ -20899,8 +20918,8 @@
|
|
20899
20918
|
var _a;
|
20900
20919
|
const { columns, counter } = params;
|
20901
20920
|
return (_a = columns == null ? void 0 : columns.map((columnProps, columnsIndex) => {
|
20902
|
-
var _a2, _b;
|
20903
|
-
const { key, dataIndex, disable, valueEnum } = columnProps;
|
20921
|
+
var _a2, _b, _c;
|
20922
|
+
const { key, dataIndex, disable, valueEnum, width } = columnProps;
|
20904
20923
|
const columnKey = genColumnKey(
|
20905
20924
|
// key || (dataIndex ? `${dataIndex.toString()}-${columnsIndex}` : ''),
|
20906
20925
|
key || (dataIndex == null ? void 0 : dataIndex.toString()),
|
@@ -20909,18 +20928,20 @@
|
|
20909
20928
|
const config = counter.columnsMap.value[columnKey] || {
|
20910
20929
|
fixed: columnProps.fixed
|
20911
20930
|
};
|
20931
|
+
console.log("\u{1F680} ~ ?.map ~ config:", config);
|
20912
20932
|
const tempColumns = {
|
20913
20933
|
index: columnsIndex,
|
20914
20934
|
key: columnKey,
|
20915
20935
|
...columnProps,
|
20916
20936
|
valueEnum,
|
20917
20937
|
fixed: config.fixed,
|
20918
|
-
|
20938
|
+
width: (_a2 = config.width) != null ? _a2 : width,
|
20939
|
+
disable: (_b = config.disable) != null ? _b : disable,
|
20919
20940
|
// width: columnProps.width || (columnProps.fixed ? 200 : undefined),
|
20920
20941
|
children: columnProps.children ? genProColumnToColumn(
|
20921
20942
|
{
|
20922
20943
|
...params,
|
20923
|
-
columns: (
|
20944
|
+
columns: (_c = columnProps == null ? void 0 : columnProps.children) != null ? _c : []
|
20924
20945
|
},
|
20925
20946
|
{ ...columnProps, key: columnKey }
|
20926
20947
|
) : void 0
|
@@ -24455,6 +24476,7 @@
|
|
24455
24476
|
}
|
24456
24477
|
|
24457
24478
|
const DEFAULT_PAGE_SIZE = 10;
|
24479
|
+
const PAGE_SIZE_OPTIONS = ["5", "10", "20", "50"];
|
24458
24480
|
function getPaginationParam(pagination, mergedPagination) {
|
24459
24481
|
const param = {
|
24460
24482
|
current: mergedPagination.current,
|
@@ -24484,7 +24506,11 @@
|
|
24484
24506
|
return result;
|
24485
24507
|
}
|
24486
24508
|
function usePagination(total, props, mergedData, onChange) {
|
24487
|
-
const innerPagination = vue.reactive({
|
24509
|
+
const innerPagination = vue.reactive({
|
24510
|
+
current: 1,
|
24511
|
+
pageSize: DEFAULT_PAGE_SIZE,
|
24512
|
+
pageSizeOptions: PAGE_SIZE_OPTIONS
|
24513
|
+
});
|
24488
24514
|
const size = vue.computed(() => props.size);
|
24489
24515
|
const mergedPagination = vue.computed(() => {
|
24490
24516
|
const { pagination } = props;
|
@@ -24714,7 +24740,9 @@
|
|
24714
24740
|
if (copyCustomCellProps.rowSpan > 1) {
|
24715
24741
|
mergeCellStyles.height = `${getRowHeight(rowIndex, copyCustomCellProps.rowSpan) - 1}px`;
|
24716
24742
|
}
|
24717
|
-
cellProps.props = Object.assign({}, copyCustomCellProps, {
|
24743
|
+
cellProps.props = Object.assign({}, copyCustomCellProps, {
|
24744
|
+
style: { ...copyCustomCellProps.style, ...mergeCellStyles }
|
24745
|
+
});
|
24718
24746
|
return cellProps;
|
24719
24747
|
};
|
24720
24748
|
vue.watchEffect(() => {
|
@@ -25739,6 +25767,7 @@
|
|
25739
25767
|
var _a, _b;
|
25740
25768
|
return [
|
25741
25769
|
typeof props.column.title == "function" ? props.column.title({
|
25770
|
+
column: props.column.originColumn,
|
25742
25771
|
sortColumns: sortColumns.value,
|
25743
25772
|
sortColumn: (_a = sortColumns.value[0]) == null ? void 0 : _a.column,
|
25744
25773
|
sortOrder: (_b = sortColumns.value[0]) == null ? void 0 : _b.order
|
@@ -25839,16 +25868,28 @@
|
|
25839
25868
|
1040
|
25840
25869
|
/* FULL_PROPS, DYNAMIC_SLOTS */
|
25841
25870
|
)) : vue.createCommentVNode("v-if", true),
|
25842
|
-
_ctx.column.headerTooltip ? (vue.openBlock(), vue.createBlock(_component_Tooltip, {
|
25843
|
-
|
25844
|
-
|
25845
|
-
|
25871
|
+
_ctx.column.headerTooltip ? (vue.openBlock(), vue.createBlock(_component_Tooltip, { key: 1 }, {
|
25872
|
+
title: vue.withCtx(() => [
|
25873
|
+
_ctx.column.headerTooltip === true ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.title), { key: 0 })) : (vue.openBlock(), vue.createElementBlock(
|
25874
|
+
vue.Fragment,
|
25875
|
+
{ key: 1 },
|
25876
|
+
[
|
25877
|
+
vue.createTextVNode(
|
25878
|
+
vue.toDisplayString(_ctx.column.headerTooltip),
|
25879
|
+
1
|
25880
|
+
/* TEXT */
|
25881
|
+
)
|
25882
|
+
],
|
25883
|
+
64
|
25884
|
+
/* STABLE_FRAGMENT */
|
25885
|
+
))
|
25886
|
+
]),
|
25846
25887
|
default: vue.withCtx(() => [
|
25847
25888
|
vue.createVNode(_component_InfoCircleOutlined, { style: { "margin-inline-start": "3px", "font-size": "12px" } })
|
25848
25889
|
]),
|
25849
25890
|
_: 1
|
25850
25891
|
/* STABLE */
|
25851
|
-
}
|
25892
|
+
})) : vue.createCommentVNode("v-if", true)
|
25852
25893
|
], 14, _hoisted_1$d);
|
25853
25894
|
}
|
25854
25895
|
var HeaderCellTitle = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$w]]);
|
@@ -27033,6 +27074,7 @@
|
|
27033
27074
|
var _a, _b;
|
27034
27075
|
return vue.h(vue.Fragment, [
|
27035
27076
|
typeof props.column.title == "function" ? props.column.title({
|
27077
|
+
column: props.column.originColumn,
|
27036
27078
|
sortColumns: sortColumns.value,
|
27037
27079
|
sortColumn: (_a = sortColumns.value[0]) == null ? void 0 : _a.column,
|
27038
27080
|
sortOrder: (_b = sortColumns.value[0]) == null ? void 0 : _b.order
|
@@ -28462,28 +28504,29 @@
|
|
28462
28504
|
event: rowDragEvent.value
|
28463
28505
|
});
|
28464
28506
|
}
|
28507
|
+
} else {
|
28508
|
+
return [
|
28509
|
+
vue.createVNode(
|
28510
|
+
"span",
|
28511
|
+
{ class: `${prefixCls.value}-drag-ghost-image-icon`, innerHTML: dragIcon2 },
|
28512
|
+
null
|
28513
|
+
),
|
28514
|
+
vue.createVNode(
|
28515
|
+
"span",
|
28516
|
+
{
|
28517
|
+
class: `${prefixCls.value}-drag-ghost-image-label`,
|
28518
|
+
style: { maxWidth: `${parentOffsetWidth}px` }
|
28519
|
+
},
|
28520
|
+
[(_a = slots.label) == null ? void 0 : _a.call(slots)]
|
28521
|
+
)
|
28522
|
+
];
|
28465
28523
|
}
|
28466
|
-
return [
|
28467
|
-
vue.createVNode(
|
28468
|
-
"span",
|
28469
|
-
{ class: `${prefixCls.value}-drag-ghost-image-icon`, innerHTML: dragIcon2 },
|
28470
|
-
null
|
28471
|
-
),
|
28472
|
-
vue.createVNode(
|
28473
|
-
"span",
|
28474
|
-
{
|
28475
|
-
class: `${prefixCls.value}-drag-ghost-image-label`,
|
28476
|
-
style: { maxWidth: `${parentOffsetWidth}px` }
|
28477
|
-
},
|
28478
|
-
[(_a = slots.label) == null ? void 0 : _a.call(slots)]
|
28479
|
-
)
|
28480
|
-
];
|
28481
28524
|
};
|
28482
28525
|
const renderDragGhost = () => {
|
28483
28526
|
if (!dragGhostImage) {
|
28484
28527
|
dragGhostImage = vue.createVNode(renderDragGhostImage);
|
28528
|
+
vue.render(dragGhostImage, dragGhostDom);
|
28485
28529
|
}
|
28486
|
-
vue.render(dragGhostImage, dragGhostDom);
|
28487
28530
|
};
|
28488
28531
|
vue.watch(
|
28489
28532
|
[prefixCls],
|
@@ -28889,7 +28932,7 @@
|
|
28889
28932
|
newValue: modelValue.value,
|
28890
28933
|
oldValue
|
28891
28934
|
});
|
28892
|
-
if (isPromise
|
28935
|
+
if (isPromise(result)) {
|
28893
28936
|
result.then((res) => {
|
28894
28937
|
res && emit("closeEditor", [props.cellKey]);
|
28895
28938
|
}).catch(() => {
|
@@ -29109,7 +29152,7 @@
|
|
29109
29152
|
recordIndexs
|
29110
29153
|
})) != null ? _c2 : value;
|
29111
29154
|
const beforeOpen = (_e2 = (_d2 = tableContext.props) == null ? void 0 : _d2.onBeforeOpenEditor) == null ? void 0 : _e2.call(_d2, cellRenderArgs);
|
29112
|
-
if (isPromise
|
29155
|
+
if (isPromise(beforeOpen)) {
|
29113
29156
|
beforeOpen.then((res) => {
|
29114
29157
|
var _a3, _b3;
|
29115
29158
|
if (res) {
|
@@ -29130,7 +29173,7 @@
|
|
29130
29173
|
...cellRenderArgs,
|
29131
29174
|
oldValue: oldValuesMap.value[key]
|
29132
29175
|
});
|
29133
|
-
if (isPromise
|
29176
|
+
if (isPromise(beforeClose)) {
|
29134
29177
|
beforeClose.then((res) => {
|
29135
29178
|
var _a3, _b3;
|
29136
29179
|
if (res) {
|
@@ -29257,7 +29300,7 @@
|
|
29257
29300
|
// }),
|
29258
29301
|
shouldOpen: (isEllipsis) => {
|
29259
29302
|
var _a2;
|
29260
|
-
return (tooltipProps == null ? void 0 : tooltipProps.shouldOpen) ? (_a2 = tooltipProps == null ? void 0 : tooltipProps.shouldOpen) == null ? void 0 : _a2.call(tooltipProps, isEllipsis, cellRenderArgs) :
|
29303
|
+
return (tooltipProps == null ? void 0 : tooltipProps.shouldOpen) ? (_a2 = tooltipProps == null ? void 0 : tooltipProps.shouldOpen) == null ? void 0 : _a2.call(tooltipProps, isEllipsis, cellRenderArgs) : true;
|
29261
29304
|
},
|
29262
29305
|
onCellLeave: () => {
|
29263
29306
|
emit("cellLeave");
|
@@ -29889,7 +29932,7 @@
|
|
29889
29932
|
() => (props.type === "center" ? tableContext.centerRowColumnsMap.value.get(props.rowKey) : columns.value).filter((item) => !!item)
|
29890
29933
|
);
|
29891
29934
|
const { tooltipOpen, leftPopupContainer, centerPopupContainer, rightPopupContainer } = useInjectBody();
|
29892
|
-
const { handleCellBlur, handleCellHover, hoverRowKey, hoverColumnKey } = useInjectHover();
|
29935
|
+
const { handleCellBlur, handleCellHover, hoverRowKey, hoverColumnKey, rowHover } = useInjectHover();
|
29893
29936
|
const popupContainer = vue.computed(
|
29894
29937
|
() => props.type === "left" ? leftPopupContainer.value : props.type === "center" ? centerPopupContainer.value : props.type === "right" ? rightPopupContainer.value : null
|
29895
29938
|
);
|
@@ -29898,7 +29941,7 @@
|
|
29898
29941
|
vue.watch(
|
29899
29942
|
[isRowHover, bodyRow],
|
29900
29943
|
() => {
|
29901
|
-
bodyRow.value && (isRowHover.value ? addClass(bodyRow.value, `${props.prefixCls}-row-hover`) : removeClass(bodyRow.value, `${props.prefixCls}-row-hover`));
|
29944
|
+
bodyRow.value && rowHover.value && (isRowHover.value ? addClass(bodyRow.value, `${props.prefixCls}-row-hover`) : removeClass(bodyRow.value, `${props.prefixCls}-row-hover`));
|
29902
29945
|
},
|
29903
29946
|
{ immediate: true, flush: "post" }
|
29904
29947
|
);
|
@@ -29965,7 +30008,7 @@
|
|
29965
30008
|
{
|
29966
30009
|
[`${prefixCls}-row`]: true,
|
29967
30010
|
[`${prefixCls}-row-level-${indent}`]: true,
|
29968
|
-
[`${prefixCls}-row-hover`]: isRowHover.value,
|
30011
|
+
[`${prefixCls}-row-hover`]: isRowHover.value && rowHover.value,
|
29969
30012
|
[`${prefixCls}-row-dragging`]: isDragging.value,
|
29970
30013
|
[`${prefixCls}-row-dragging-insert-target`]: tableContext.insertToRowKey.value === props.rowKey,
|
29971
30014
|
[`${prefixCls}-row-odd`]: !isEven,
|
@@ -30642,8 +30685,7 @@
|
|
30642
30685
|
};
|
30643
30686
|
});
|
30644
30687
|
const bodyViewportStyle = vue.computed(() => ({
|
30645
|
-
width: `calc(100% + ${tableContext.showVerticalScrollbar.value ? tableContext.scrollBarSize.value
|
30646
|
-
// width: `calc(100% + 0px)`,
|
30688
|
+
width: `calc(100% + ${tableContext.showVerticalScrollbar.value ? tableContext.scrollBarSize.value : 0}px)`,
|
30647
30689
|
overflowX: "hidden",
|
30648
30690
|
overflowY: "auto",
|
30649
30691
|
height: "100%"
|
@@ -31929,9 +31971,14 @@
|
|
31929
31971
|
var _a;
|
31930
31972
|
const width = col.width;
|
31931
31973
|
const result = (_a = props.onResizeColumn) == null ? void 0 : _a.call(props, w, col, action);
|
31932
|
-
if (result !== false
|
31933
|
-
|
31934
|
-
|
31974
|
+
if (result !== false) {
|
31975
|
+
if (!(width === w && col.width === w)) {
|
31976
|
+
col.width = width !== col.width ? col.width : w;
|
31977
|
+
vue.triggerRef(rawColumns);
|
31978
|
+
}
|
31979
|
+
if (action === "end") {
|
31980
|
+
emit("update:columns", rawColumns.value, "resize");
|
31981
|
+
}
|
31935
31982
|
}
|
31936
31983
|
},
|
31937
31984
|
onRowDragEnd: (opt) => {
|
@@ -32105,7 +32152,7 @@
|
|
32105
32152
|
rawColumns.value.splice(index, 1);
|
32106
32153
|
}
|
32107
32154
|
vue.triggerRef(rawColumns);
|
32108
|
-
emit("update:columns", rawColumns.value);
|
32155
|
+
emit("update:columns", rawColumns.value, "drag");
|
32109
32156
|
};
|
32110
32157
|
if (isPromise(dragEnd)) {
|
32111
32158
|
dragEnd.then(() => {
|
@@ -33687,7 +33734,8 @@
|
|
33687
33734
|
const {
|
33688
33735
|
hoverRowKey
|
33689
33736
|
} = useProvideHover({
|
33690
|
-
rowHoverDelay: vue.computed(() => props.rowHoverDelay)
|
33737
|
+
rowHoverDelay: vue.computed(() => props.rowHoverDelay),
|
33738
|
+
rowHover: vue.computed(() => props.rowHover)
|
33691
33739
|
});
|
33692
33740
|
const mergedPrefixCls = vue.computed(() => {
|
33693
33741
|
var _a2;
|
@@ -33731,10 +33779,7 @@
|
|
33731
33779
|
if (props.pagination === false) {
|
33732
33780
|
return false;
|
33733
33781
|
}
|
33734
|
-
|
33735
|
-
return Object.assign({}, pagination.value, props.pagination);
|
33736
|
-
}
|
33737
|
-
return Object.assign({}, props.pagination, pagination.value);
|
33782
|
+
return pagination.value;
|
33738
33783
|
});
|
33739
33784
|
const formSubmitLoading = vue.computed(() => {
|
33740
33785
|
if (typeof loading.value === "boolean") {
|
@@ -33796,9 +33841,44 @@
|
|
33796
33841
|
};
|
33797
33842
|
return loopFilter(tableColumn.value);
|
33798
33843
|
});
|
33844
|
+
const onColumnsChange = (rawColumns, action) => {
|
33845
|
+
var _a2;
|
33846
|
+
const newMap = {
|
33847
|
+
...counter.columnsMap.value
|
33848
|
+
};
|
33849
|
+
const newColumns = rawColumns.map((item) => genColumnKey(item.key, item.index));
|
33850
|
+
if (action === "resize") {
|
33851
|
+
const loopSetWidth = (rawColumns2) => {
|
33852
|
+
rawColumns2.forEach((item) => {
|
33853
|
+
var _a3;
|
33854
|
+
const key = genColumnKey(item.key, item.index);
|
33855
|
+
const newSetting = {
|
33856
|
+
...newMap[key]
|
33857
|
+
};
|
33858
|
+
if ((_a3 = item.children) == null ? void 0 : _a3.length) {
|
33859
|
+
loopSetWidth(item.children);
|
33860
|
+
} else {
|
33861
|
+
newSetting.width = item.width;
|
33862
|
+
newMap[key] = newSetting;
|
33863
|
+
}
|
33864
|
+
});
|
33865
|
+
};
|
33866
|
+
loopSetWidth(rawColumns);
|
33867
|
+
} else {
|
33868
|
+
newColumns.forEach((key, order) => {
|
33869
|
+
newMap[key] = {
|
33870
|
+
...newMap[key] || {},
|
33871
|
+
order
|
33872
|
+
};
|
33873
|
+
});
|
33874
|
+
}
|
33875
|
+
counter.setColumnsMap(newMap);
|
33876
|
+
counter.setSortKeyColumns(newColumns);
|
33877
|
+
(_a2 = props["onUpdate:columns"]) == null ? void 0 : _a2.call(props, rawColumns, action);
|
33878
|
+
};
|
33799
33879
|
const formItems = vue.computed(() => {
|
33800
33880
|
var _a2, _b, _c;
|
33801
|
-
if (
|
33881
|
+
if (props.search === false) {
|
33802
33882
|
return [];
|
33803
33883
|
}
|
33804
33884
|
if ((_b = (_a2 = props.search) == null ? void 0 : _a2.items) == null ? void 0 : _b.length) {
|
@@ -33810,12 +33890,12 @@
|
|
33810
33890
|
}
|
33811
33891
|
return true;
|
33812
33892
|
}).map((item) => {
|
33813
|
-
return {
|
33893
|
+
return omitKeysAndUndefined({
|
33814
33894
|
...item,
|
33815
33895
|
width: void 0,
|
33816
33896
|
tooltip: item.headerTooltip,
|
33817
33897
|
name: item.dataIndex
|
33818
|
-
};
|
33898
|
+
}, ["dataIndex", "width", "tooltip", "disable"]);
|
33819
33899
|
});
|
33820
33900
|
});
|
33821
33901
|
const preserveRecordsRef = vue.ref(/* @__PURE__ */ new Map());
|
@@ -33832,8 +33912,8 @@
|
|
33832
33912
|
}
|
33833
33913
|
onCleanSelected();
|
33834
33914
|
});
|
33835
|
-
const [selectedRowKeys, setSelectedRowKeys] = useMergedState(props.rowSelection ? ((_a = props.rowSelection) == null ? void 0 : _a.defaultSelectedRowKeys) || [] : void 0, {
|
33836
|
-
value: vue.computed(() => props.rowSelection ? props.rowSelection.selectedRowKeys : void 0)
|
33915
|
+
const [selectedRowKeys, setSelectedRowKeys] = useMergedState(props.selectedRowKeys || (props.rowSelection ? ((_a = props.rowSelection) == null ? void 0 : _a.defaultSelectedRowKeys) || [] : void 0), {
|
33916
|
+
value: vue.computed(() => props.selectedRowKeys || (props.rowSelection ? props.rowSelection.selectedRowKeys : void 0))
|
33837
33917
|
});
|
33838
33918
|
const rowSelection = vue.computed(() => ({
|
33839
33919
|
selectedRowKeys: selectedRowKeys.value,
|
@@ -33970,7 +34050,7 @@
|
|
33970
34050
|
actions: slots.alertActions
|
33971
34051
|
}), vue.createVNode(InteralTable, vue.mergeProps({
|
33972
34052
|
"ref": table
|
33973
|
-
}, omit(props, ["onChange", "onUpdate:pagination", "onUpdate:selectedRowKeys"]), {
|
34053
|
+
}, omit(props, ["onChange", "onUpdate:pagination", "onUpdate:selectedRowKeys", "onUpdate:columns"]), {
|
33974
34054
|
"prefixCls": mergedPrefixCls.value,
|
33975
34055
|
"columns": mergeColumns || [],
|
33976
34056
|
"size": counter.tableSize.value,
|
@@ -33981,7 +34061,8 @@
|
|
33981
34061
|
"expandIcon": expandIcon,
|
33982
34062
|
"expandedRowRender": expandedRowRender,
|
33983
34063
|
"hasContextmenuPopup": !!slots.contextmenuPopup,
|
33984
|
-
"onChange": onTableChange
|
34064
|
+
"onChange": onTableChange,
|
34065
|
+
"onUpdate:columns": onColumnsChange
|
33985
34066
|
}), {
|
33986
34067
|
...slots,
|
33987
34068
|
footer: props.footer || slots.footer
|
@@ -36771,12 +36852,14 @@
|
|
36771
36852
|
}, [vue.createVNode(FormTitle, {
|
36772
36853
|
"title": props.item.title,
|
36773
36854
|
"tooltip": props.item.tooltip
|
36774
|
-
}, null)]), vue.createVNode(
|
36855
|
+
}, null)]), vue.createVNode("div", {
|
36856
|
+
"class": `${prefixCls}-item-title-extra`
|
36857
|
+
}, [vue.createVNode(RenderVNode$1, {
|
36775
36858
|
"vnode": extraRender,
|
36776
36859
|
"props": {
|
36777
36860
|
formData: formData.value
|
36778
36861
|
}
|
36779
|
-
}, null)]);
|
36862
|
+
}, null)])]);
|
36780
36863
|
}
|
36781
36864
|
return temp;
|
36782
36865
|
});
|
@@ -36823,20 +36906,6 @@
|
|
36823
36906
|
});
|
36824
36907
|
return () => {
|
36825
36908
|
var _a, _b;
|
36826
|
-
const render = getSlot(props.item.render, formSlotsContext);
|
36827
|
-
if (render) {
|
36828
|
-
return vue.createVNode(FormColWrapper, {
|
36829
|
-
"colProps": props.item.colProps,
|
36830
|
-
"grid": mergeGrid.value
|
36831
|
-
}, {
|
36832
|
-
default: () => [vue.createVNode(RenderVNode$1, {
|
36833
|
-
"vnode": render,
|
36834
|
-
"props": {
|
36835
|
-
formData: formData.value
|
36836
|
-
}
|
36837
|
-
}, null)]
|
36838
|
-
});
|
36839
|
-
}
|
36840
36909
|
const renderFormItem = getSlot(props.item.renderFormItem, formSlotsContext);
|
36841
36910
|
const extraRender = getSlot((_a = props.item.extra) == null ? void 0 : _a.item, formSlotsContext);
|
36842
36911
|
const FieldComponent = (_b = fieldComponentMap[fieldType.value]) != null ? _b : fieldComponentMap["text"];
|
@@ -36864,23 +36933,33 @@
|
|
36864
36933
|
if (extraRender) {
|
36865
36934
|
defaultDom = vue.createVNode("div", {
|
36866
36935
|
"style": "display: flex; flex-direction: row; justify-content: flex-start; align-items: center;"
|
36867
|
-
}, [defaultDom, vue.createVNode(
|
36936
|
+
}, [defaultDom, vue.createVNode("div", {
|
36937
|
+
"style": "margin-inline-start: 5px; flex-shrink: 0;"
|
36938
|
+
}, [vue.createVNode(RenderVNode$1, {
|
36868
36939
|
"vnode": extraRender,
|
36869
36940
|
"props": {
|
36870
36941
|
formData: formData.value,
|
36871
36942
|
listName: listName == null ? void 0 : listName.value,
|
36872
36943
|
name: props.item.name
|
36873
36944
|
}
|
36874
|
-
}, null)]);
|
36945
|
+
}, null)])]);
|
36875
36946
|
}
|
36947
|
+
const formItemDom = vue.createVNode(antDesignVue.Form.Item, restItemProps.value, {
|
36948
|
+
default: () => [defaultDom],
|
36949
|
+
...slotsGetter.value
|
36950
|
+
});
|
36951
|
+
const render = getSlot(props.item.render, formSlotsContext);
|
36876
36952
|
return vue.createVNode(FormColWrapper, {
|
36877
36953
|
"colProps": props.item.colProps,
|
36878
36954
|
"grid": mergeGrid.value
|
36879
36955
|
}, {
|
36880
|
-
default: () => [vue.createVNode(
|
36881
|
-
|
36882
|
-
|
36883
|
-
|
36956
|
+
default: () => [render ? vue.createVNode(RenderVNode$1, {
|
36957
|
+
"vnode": render,
|
36958
|
+
"props": {
|
36959
|
+
formData: formData.value,
|
36960
|
+
defaultDom: formItemDom
|
36961
|
+
}
|
36962
|
+
}, null) : formItemDom]
|
36884
36963
|
});
|
36885
36964
|
};
|
36886
36965
|
}
|