pro-design-vue 1.0.0-rc.13 → 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 +157 -91
- 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 +157 -91
- package/es/components/form/src/layouts/QueryFilter.mjs +1 -2
- package/es/components/form/src/layouts/QueryFilter.mjs.map +1 -1
- 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 +45 -11
- 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 +32 -3
- 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/layouts/QueryFilter.js +1 -2
- package/lib/components/form/src/layouts/QueryFilter.js.map +1 -1
- 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 +44 -10
- 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 +32 -3
- 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/src/table/table.less +1 -1
package/dist/index.full.mjs
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
|
import { Modal, 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, theme as theme$1, 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, computed, renderSlot, createPropsRestProxy, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, shallowRef, shallowReadonly, toValue, getCurrentScope, onScopeDispose, watch, onMounted, hasInjectionContext, isRef, toRefs as toRefs$1, customRef, toRef as toRef$1, readonly, watchEffect, toRaw, createElementBlock, createCommentVNode, resolveDynamicComponent, mergeProps, 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';
|
@@ -13,7 +13,7 @@ const ELEMENT_ID_MAIN_CONTENT = `__pro_main_content`;
|
|
13
13
|
const SCROLL_FIXED_CLASS = `_scroll__fixed_`;
|
14
14
|
const DEFAULT_NAMESPACE = "pro";
|
15
15
|
|
16
|
-
const version$1 = "1.0.0-rc.
|
16
|
+
const version$1 = "1.0.0-rc.14";
|
17
17
|
|
18
18
|
const makeInstaller = (components = []) => {
|
19
19
|
const install = (app) => {
|
@@ -2203,13 +2203,13 @@ const isNil = (value) => value === null || value === void 0;
|
|
2203
2203
|
function isNumber$2(val) {
|
2204
2204
|
return is$1(val, "Number");
|
2205
2205
|
}
|
2206
|
-
function isPromise
|
2207
|
-
return is$1(val, "Promise") &&
|
2206
|
+
function isPromise(val) {
|
2207
|
+
return is$1(val, "Promise") && isFunction$2(val.then) && isFunction$2(val.catch);
|
2208
2208
|
}
|
2209
2209
|
function isString$1(val) {
|
2210
2210
|
return is$1(val, "String");
|
2211
2211
|
}
|
2212
|
-
function isFunction$
|
2212
|
+
function isFunction$2(val) {
|
2213
2213
|
return typeof val === "function";
|
2214
2214
|
}
|
2215
2215
|
function isArray$2(val) {
|
@@ -2253,7 +2253,7 @@ const confirm = (props) => {
|
|
2253
2253
|
...okButtonProps
|
2254
2254
|
},
|
2255
2255
|
async onOk(...args) {
|
2256
|
-
if (isPromise
|
2256
|
+
if (isPromise(onOk)) {
|
2257
2257
|
return await new Promise(() => {
|
2258
2258
|
onOk == null ? void 0 : onOk(args);
|
2259
2259
|
});
|
@@ -2504,7 +2504,7 @@ var asyncTag = "[object AsyncFunction]";
|
|
2504
2504
|
var funcTag$2 = "[object Function]";
|
2505
2505
|
var genTag$1 = "[object GeneratorFunction]";
|
2506
2506
|
var proxyTag = "[object Proxy]";
|
2507
|
-
function isFunction$
|
2507
|
+
function isFunction$1(value) {
|
2508
2508
|
if (!isObject$3(value)) {
|
2509
2509
|
return false;
|
2510
2510
|
}
|
@@ -2551,7 +2551,7 @@ function baseIsNative(value) {
|
|
2551
2551
|
if (!isObject$3(value) || isMasked(value)) {
|
2552
2552
|
return false;
|
2553
2553
|
}
|
2554
|
-
var pattern = isFunction$
|
2554
|
+
var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor;
|
2555
2555
|
return pattern.test(toSource(value));
|
2556
2556
|
}
|
2557
2557
|
|
@@ -2753,7 +2753,7 @@ function isLength(value) {
|
|
2753
2753
|
}
|
2754
2754
|
|
2755
2755
|
function isArrayLike(value) {
|
2756
|
-
return value != null && isLength(value.length) && !isFunction$
|
2756
|
+
return value != null && isLength(value.length) && !isFunction$1(value);
|
2757
2757
|
}
|
2758
2758
|
|
2759
2759
|
function isIterateeCall(value, index, object) {
|
@@ -4426,7 +4426,7 @@ function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, sta
|
|
4426
4426
|
newValue = objValue;
|
4427
4427
|
if (isArguments(objValue)) {
|
4428
4428
|
newValue = toPlainObject(objValue);
|
4429
|
-
} else if (!isObject$3(objValue) || isFunction$
|
4429
|
+
} else if (!isObject$3(objValue) || isFunction$1(objValue)) {
|
4430
4430
|
newValue = initCloneObject(srcValue);
|
4431
4431
|
}
|
4432
4432
|
} else {
|
@@ -8477,7 +8477,7 @@ var _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
8477
8477
|
});
|
8478
8478
|
const isComponent = computed(() => {
|
8479
8479
|
const { icon } = props;
|
8480
|
-
return !isString$1(icon) && (isObject$4(icon) || isFunction$
|
8480
|
+
return !isString$1(icon) && (isObject$4(icon) || isFunction$2(icon));
|
8481
8481
|
});
|
8482
8482
|
return (_ctx, _cache) => {
|
8483
8483
|
return isComponent.value ? (openBlock(), createBlock(
|
@@ -9141,7 +9141,7 @@ function isPlainObject(value) {
|
|
9141
9141
|
return false;
|
9142
9142
|
}
|
9143
9143
|
}
|
9144
|
-
function isFunction
|
9144
|
+
function isFunction(value) {
|
9145
9145
|
return typeof value === "function";
|
9146
9146
|
}
|
9147
9147
|
var slice = Array.prototype.slice;
|
@@ -9149,7 +9149,7 @@ function toArray$1(value) {
|
|
9149
9149
|
return Array.from ? Array.from(value) : slice.call(value);
|
9150
9150
|
}
|
9151
9151
|
function forEach(data, callback) {
|
9152
|
-
if (data && isFunction
|
9152
|
+
if (data && isFunction(callback)) {
|
9153
9153
|
if (Array.isArray(data) || isNumber(data.length)) {
|
9154
9154
|
toArray$1(data).forEach(function(value, key) {
|
9155
9155
|
callback.call(data, value, key, data);
|
@@ -9363,7 +9363,7 @@ function addListener(element, type, listener) {
|
|
9363
9363
|
}
|
9364
9364
|
function dispatchEvent(element, type, data) {
|
9365
9365
|
var event;
|
9366
|
-
if (isFunction
|
9366
|
+
if (isFunction(Event) && isFunction(CustomEvent)) {
|
9367
9367
|
event = new CustomEvent(type, {
|
9368
9368
|
detail: data,
|
9369
9369
|
bubbles: true,
|
@@ -10102,19 +10102,19 @@ var preview = {
|
|
10102
10102
|
var events$1 = {
|
10103
10103
|
bind: function bind() {
|
10104
10104
|
var element = this.element, options = this.options, cropper = this.cropper;
|
10105
|
-
if (isFunction
|
10105
|
+
if (isFunction(options.cropstart)) {
|
10106
10106
|
addListener(element, EVENT_CROP_START, options.cropstart);
|
10107
10107
|
}
|
10108
|
-
if (isFunction
|
10108
|
+
if (isFunction(options.cropmove)) {
|
10109
10109
|
addListener(element, EVENT_CROP_MOVE, options.cropmove);
|
10110
10110
|
}
|
10111
|
-
if (isFunction
|
10111
|
+
if (isFunction(options.cropend)) {
|
10112
10112
|
addListener(element, EVENT_CROP_END, options.cropend);
|
10113
10113
|
}
|
10114
|
-
if (isFunction
|
10114
|
+
if (isFunction(options.crop)) {
|
10115
10115
|
addListener(element, EVENT_CROP, options.crop);
|
10116
10116
|
}
|
10117
|
-
if (isFunction
|
10117
|
+
if (isFunction(options.zoom)) {
|
10118
10118
|
addListener(element, EVENT_ZOOM, options.zoom);
|
10119
10119
|
}
|
10120
10120
|
addListener(cropper, EVENT_POINTER_DOWN, this.onCropStart = this.cropStart.bind(this));
|
@@ -10135,19 +10135,19 @@ var events$1 = {
|
|
10135
10135
|
},
|
10136
10136
|
unbind: function unbind() {
|
10137
10137
|
var element = this.element, options = this.options, cropper = this.cropper;
|
10138
|
-
if (isFunction
|
10138
|
+
if (isFunction(options.cropstart)) {
|
10139
10139
|
removeListener(element, EVENT_CROP_START, options.cropstart);
|
10140
10140
|
}
|
10141
|
-
if (isFunction
|
10141
|
+
if (isFunction(options.cropmove)) {
|
10142
10142
|
removeListener(element, EVENT_CROP_MOVE, options.cropmove);
|
10143
10143
|
}
|
10144
|
-
if (isFunction
|
10144
|
+
if (isFunction(options.cropend)) {
|
10145
10145
|
removeListener(element, EVENT_CROP_END, options.cropend);
|
10146
10146
|
}
|
10147
|
-
if (isFunction
|
10147
|
+
if (isFunction(options.crop)) {
|
10148
10148
|
removeListener(element, EVENT_CROP, options.crop);
|
10149
10149
|
}
|
10150
|
-
if (isFunction
|
10150
|
+
if (isFunction(options.zoom)) {
|
10151
10151
|
removeListener(element, EVENT_ZOOM, options.zoom);
|
10152
10152
|
}
|
10153
10153
|
removeListener(cropper, EVENT_POINTER_DOWN, this.onCropStart);
|
@@ -11552,7 +11552,7 @@ var Cropper = /* @__PURE__ */ (function() {
|
|
11552
11552
|
this.crop();
|
11553
11553
|
}
|
11554
11554
|
this.setData(options.data);
|
11555
|
-
if (isFunction
|
11555
|
+
if (isFunction(options.ready)) {
|
11556
11556
|
addListener(element, EVENT_READY, options.ready, {
|
11557
11557
|
once: true
|
11558
11558
|
});
|
@@ -14763,7 +14763,7 @@ var FieldUploadButton = /* @__PURE__ */ defineComponent({
|
|
14763
14763
|
});
|
14764
14764
|
const icon = computed(() => {
|
14765
14765
|
const render = getSlot(props.iconRender, formSlotsContext);
|
14766
|
-
if (isFunction$
|
14766
|
+
if (isFunction$2(render)) {
|
14767
14767
|
return createVNode(RenderVNode$1, {
|
14768
14768
|
"vnode": render
|
14769
14769
|
}, null);
|
@@ -14772,7 +14772,7 @@ var FieldUploadButton = /* @__PURE__ */ defineComponent({
|
|
14772
14772
|
});
|
14773
14773
|
const title = computed(() => {
|
14774
14774
|
const render = getSlot(props.title, formSlotsContext);
|
14775
|
-
if (isFunction$
|
14775
|
+
if (isFunction$2(render)) {
|
14776
14776
|
return createVNode(RenderVNode$1, {
|
14777
14777
|
"vnode": render
|
14778
14778
|
}, null);
|
@@ -14886,7 +14886,7 @@ var FieldUploadDragger = /* @__PURE__ */ defineComponent({
|
|
14886
14886
|
});
|
14887
14887
|
const icon = computed(() => {
|
14888
14888
|
const render = getSlot(props.iconRender, formSlotsContext);
|
14889
|
-
if (isFunction$
|
14889
|
+
if (isFunction$2(render)) {
|
14890
14890
|
return createVNode(RenderVNode$1, {
|
14891
14891
|
"vnode": render
|
14892
14892
|
}, null);
|
@@ -14895,7 +14895,7 @@ var FieldUploadDragger = /* @__PURE__ */ defineComponent({
|
|
14895
14895
|
});
|
14896
14896
|
const title = computed(() => {
|
14897
14897
|
const render = getSlot(props.title, formSlotsContext);
|
14898
|
-
if (isFunction$
|
14898
|
+
if (isFunction$2(render)) {
|
14899
14899
|
return createVNode(RenderVNode$1, {
|
14900
14900
|
"vnode": render
|
14901
14901
|
}, null);
|
@@ -14904,7 +14904,7 @@ var FieldUploadDragger = /* @__PURE__ */ defineComponent({
|
|
14904
14904
|
});
|
14905
14905
|
const description = computed(() => {
|
14906
14906
|
const render = getSlot(props.description, formSlotsContext);
|
14907
|
-
if (isFunction$
|
14907
|
+
if (isFunction$2(render)) {
|
14908
14908
|
return createVNode(RenderVNode$1, {
|
14909
14909
|
"vnode": render
|
14910
14910
|
}, null);
|
@@ -17100,7 +17100,6 @@ var QueryFilter = /* @__PURE__ */ defineComponent({
|
|
17100
17100
|
}
|
17101
17101
|
if (props.defaultColsNumber !== void 0) {
|
17102
17102
|
const oneRowControlsNumber = 24 / spanSize.value.span - 1;
|
17103
|
-
console.log("\u{1F680} ~ showLength ~ oneRowControlsNumber:", oneRowControlsNumber);
|
17104
17103
|
return props.defaultColsNumber > oneRowControlsNumber ? oneRowControlsNumber : props.defaultColsNumber;
|
17105
17104
|
}
|
17106
17105
|
return Math.max(1, 24 / spanSize.value.span - 1);
|
@@ -17137,7 +17136,7 @@ var QueryFilter = /* @__PURE__ */ defineComponent({
|
|
17137
17136
|
}
|
17138
17137
|
return void 0;
|
17139
17138
|
});
|
17140
|
-
const [collapsed, setCollapsed] = useMergedState$1(() => props.defaultCollapsed &&
|
17139
|
+
const [collapsed, setCollapsed] = useMergedState$1(() => props.defaultCollapsed && props.submitter !== false, {
|
17141
17140
|
value: computed(() => props.collapsed),
|
17142
17141
|
onChange: (val) => {
|
17143
17142
|
emit("collapse", val);
|
@@ -19750,6 +19749,7 @@ const useProvideHover = (props) => {
|
|
19750
19749
|
}, props.rowHoverDelay.value + 50);
|
19751
19750
|
};
|
19752
19751
|
const hoverContext = {
|
19752
|
+
rowHover: props.rowHover,
|
19753
19753
|
hoverColumnKey,
|
19754
19754
|
hoverRowKey,
|
19755
19755
|
handleCellHover,
|
@@ -19760,6 +19760,7 @@ const useProvideHover = (props) => {
|
|
19760
19760
|
};
|
19761
19761
|
const useInjectHover = () => {
|
19762
19762
|
return inject(HoverContextKey, {
|
19763
|
+
rowHover: computed(() => void 0),
|
19763
19764
|
hoverRowKey: ref(),
|
19764
19765
|
hoverColumnKey: ref(),
|
19765
19766
|
handleCellHover: () => {
|
@@ -19781,9 +19782,6 @@ const useProvideLevel = () => {
|
|
19781
19782
|
function is(val, type) {
|
19782
19783
|
return toString.call(val) === `[object ${type}]`;
|
19783
19784
|
}
|
19784
|
-
function isFunction(val) {
|
19785
|
-
return typeof val === "function";
|
19786
|
-
}
|
19787
19785
|
function isArray(val) {
|
19788
19786
|
return val && Array.isArray(val);
|
19789
19787
|
}
|
@@ -19977,9 +19975,6 @@ function deleteNestItemData(data, indexs, childrenColumnName) {
|
|
19977
19975
|
currentData.splice(indexs[indexsLen - 1], 1);
|
19978
19976
|
return currentData;
|
19979
19977
|
}
|
19980
|
-
function isPromise(val) {
|
19981
|
-
return is(val, "Promise") && isObject(val) && isFunction(val.then) && isFunction(val.catch);
|
19982
|
-
}
|
19983
19978
|
function ensureValidVNode(vnodes) {
|
19984
19979
|
return vnodes.some(
|
19985
19980
|
(vnode) => !isVNode(vnode) || vnode.type !== Comment$1 && !(vnode.type === Fragment && !ensureValidVNode(vnode.children))
|
@@ -20062,7 +20057,8 @@ const baseTableProps = () => ({
|
|
20062
20057
|
type: [Number, String]
|
20063
20058
|
},
|
20064
20059
|
size: {
|
20065
|
-
type: String
|
20060
|
+
type: String,
|
20061
|
+
default: "middle"
|
20066
20062
|
},
|
20067
20063
|
bordered: {
|
20068
20064
|
type: Boolean,
|
@@ -20158,6 +20154,10 @@ const baseTableProps = () => ({
|
|
20158
20154
|
type: Number,
|
20159
20155
|
default: 59
|
20160
20156
|
},
|
20157
|
+
rowHover: {
|
20158
|
+
type: Boolean,
|
20159
|
+
default: void 0
|
20160
|
+
},
|
20161
20161
|
rowKey: {
|
20162
20162
|
type: [Function, String]
|
20163
20163
|
},
|
@@ -20272,6 +20272,9 @@ const baseTableProps = () => ({
|
|
20272
20272
|
"onUpdate:dataSource": {
|
20273
20273
|
type: Function
|
20274
20274
|
},
|
20275
|
+
"onUpdate:columns": {
|
20276
|
+
type: Function
|
20277
|
+
},
|
20275
20278
|
columnEmptyText: {
|
20276
20279
|
type: [String, Boolean],
|
20277
20280
|
default: "-"
|
@@ -20355,8 +20358,9 @@ const tableProps = () => ({
|
|
20355
20358
|
|
20356
20359
|
const mergePropsAndPagination = ({ pagination }, intl) => {
|
20357
20360
|
if (pagination) {
|
20358
|
-
const { current, pageSize, total, showTotal, showSizeChanger } = pagination;
|
20361
|
+
const { current, pageSize, total, showTotal, showSizeChanger, ...rest } = pagination;
|
20359
20362
|
return {
|
20363
|
+
...rest,
|
20360
20364
|
current: current || 1,
|
20361
20365
|
total: total || 0,
|
20362
20366
|
pageSize: pageSize || 10,
|
@@ -20850,7 +20854,7 @@ const useContainer = (props) => {
|
|
20850
20854
|
var _a2;
|
20851
20855
|
return (_a2 = props.columnsState) == null ? void 0 : _a2.persistenceKey;
|
20852
20856
|
},
|
20853
|
-
columnsMap,
|
20857
|
+
() => columnsMap.value,
|
20854
20858
|
() => {
|
20855
20859
|
var _a2;
|
20856
20860
|
return (_a2 = props.columnsState) == null ? void 0 : _a2.persistenceType;
|
@@ -20911,8 +20915,8 @@ function genProColumnToColumn(params, parents) {
|
|
20911
20915
|
var _a;
|
20912
20916
|
const { columns, counter } = params;
|
20913
20917
|
return (_a = columns == null ? void 0 : columns.map((columnProps, columnsIndex) => {
|
20914
|
-
var _a2, _b;
|
20915
|
-
const { key, dataIndex, disable, valueEnum } = columnProps;
|
20918
|
+
var _a2, _b, _c;
|
20919
|
+
const { key, dataIndex, disable, valueEnum, width } = columnProps;
|
20916
20920
|
const columnKey = genColumnKey(
|
20917
20921
|
// key || (dataIndex ? `${dataIndex.toString()}-${columnsIndex}` : ''),
|
20918
20922
|
key || (dataIndex == null ? void 0 : dataIndex.toString()),
|
@@ -20921,18 +20925,20 @@ function genProColumnToColumn(params, parents) {
|
|
20921
20925
|
const config = counter.columnsMap.value[columnKey] || {
|
20922
20926
|
fixed: columnProps.fixed
|
20923
20927
|
};
|
20928
|
+
console.log("\u{1F680} ~ ?.map ~ config:", config);
|
20924
20929
|
const tempColumns = {
|
20925
20930
|
index: columnsIndex,
|
20926
20931
|
key: columnKey,
|
20927
20932
|
...columnProps,
|
20928
20933
|
valueEnum,
|
20929
20934
|
fixed: config.fixed,
|
20930
|
-
|
20935
|
+
width: (_a2 = config.width) != null ? _a2 : width,
|
20936
|
+
disable: (_b = config.disable) != null ? _b : disable,
|
20931
20937
|
// width: columnProps.width || (columnProps.fixed ? 200 : undefined),
|
20932
20938
|
children: columnProps.children ? genProColumnToColumn(
|
20933
20939
|
{
|
20934
20940
|
...params,
|
20935
|
-
columns: (
|
20941
|
+
columns: (_c = columnProps == null ? void 0 : columnProps.children) != null ? _c : []
|
20936
20942
|
},
|
20937
20943
|
{ ...columnProps, key: columnKey }
|
20938
20944
|
) : void 0
|
@@ -24467,6 +24473,7 @@ function useFlattenRecords(pageDataRef, childrenColumnNameRef, expandedKeysRef,
|
|
24467
24473
|
}
|
24468
24474
|
|
24469
24475
|
const DEFAULT_PAGE_SIZE = 10;
|
24476
|
+
const PAGE_SIZE_OPTIONS = ["5", "10", "20", "50"];
|
24470
24477
|
function getPaginationParam(pagination, mergedPagination) {
|
24471
24478
|
const param = {
|
24472
24479
|
current: mergedPagination.current,
|
@@ -24496,7 +24503,11 @@ function extendsObject(...list) {
|
|
24496
24503
|
return result;
|
24497
24504
|
}
|
24498
24505
|
function usePagination(total, props, mergedData, onChange) {
|
24499
|
-
const innerPagination = reactive({
|
24506
|
+
const innerPagination = reactive({
|
24507
|
+
current: 1,
|
24508
|
+
pageSize: DEFAULT_PAGE_SIZE,
|
24509
|
+
pageSizeOptions: PAGE_SIZE_OPTIONS
|
24510
|
+
});
|
24500
24511
|
const size = computed(() => props.size);
|
24501
24512
|
const mergedPagination = computed(() => {
|
24502
24513
|
const { pagination } = props;
|
@@ -24726,7 +24737,9 @@ const useCellProps = ({
|
|
24726
24737
|
if (copyCustomCellProps.rowSpan > 1) {
|
24727
24738
|
mergeCellStyles.height = `${getRowHeight(rowIndex, copyCustomCellProps.rowSpan) - 1}px`;
|
24728
24739
|
}
|
24729
|
-
cellProps.props = Object.assign({}, copyCustomCellProps, {
|
24740
|
+
cellProps.props = Object.assign({}, copyCustomCellProps, {
|
24741
|
+
style: { ...copyCustomCellProps.style, ...mergeCellStyles }
|
24742
|
+
});
|
24730
24743
|
return cellProps;
|
24731
24744
|
};
|
24732
24745
|
watchEffect(() => {
|
@@ -25751,6 +25764,7 @@ var _sfc_main$A = defineComponent({
|
|
25751
25764
|
var _a, _b;
|
25752
25765
|
return [
|
25753
25766
|
typeof props.column.title == "function" ? props.column.title({
|
25767
|
+
column: props.column.originColumn,
|
25754
25768
|
sortColumns: sortColumns.value,
|
25755
25769
|
sortColumn: (_a = sortColumns.value[0]) == null ? void 0 : _a.column,
|
25756
25770
|
sortOrder: (_b = sortColumns.value[0]) == null ? void 0 : _b.order
|
@@ -25851,16 +25865,28 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25851
25865
|
1040
|
25852
25866
|
/* FULL_PROPS, DYNAMIC_SLOTS */
|
25853
25867
|
)) : createCommentVNode("v-if", true),
|
25854
|
-
_ctx.column.headerTooltip ? (openBlock(), createBlock(_component_Tooltip, {
|
25855
|
-
|
25856
|
-
|
25857
|
-
|
25868
|
+
_ctx.column.headerTooltip ? (openBlock(), createBlock(_component_Tooltip, { key: 1 }, {
|
25869
|
+
title: withCtx(() => [
|
25870
|
+
_ctx.column.headerTooltip === true ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.title), { key: 0 })) : (openBlock(), createElementBlock(
|
25871
|
+
Fragment,
|
25872
|
+
{ key: 1 },
|
25873
|
+
[
|
25874
|
+
createTextVNode(
|
25875
|
+
toDisplayString(_ctx.column.headerTooltip),
|
25876
|
+
1
|
25877
|
+
/* TEXT */
|
25878
|
+
)
|
25879
|
+
],
|
25880
|
+
64
|
25881
|
+
/* STABLE_FRAGMENT */
|
25882
|
+
))
|
25883
|
+
]),
|
25858
25884
|
default: withCtx(() => [
|
25859
25885
|
createVNode(_component_InfoCircleOutlined, { style: { "margin-inline-start": "3px", "font-size": "12px" } })
|
25860
25886
|
]),
|
25861
25887
|
_: 1
|
25862
25888
|
/* STABLE */
|
25863
|
-
}
|
25889
|
+
})) : createCommentVNode("v-if", true)
|
25864
25890
|
], 14, _hoisted_1$d);
|
25865
25891
|
}
|
25866
25892
|
var HeaderCellTitle = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["render", _sfc_render$w]]);
|
@@ -27045,6 +27071,7 @@ var _sfc_main$u = defineComponent({
|
|
27045
27071
|
var _a, _b;
|
27046
27072
|
return h(Fragment, [
|
27047
27073
|
typeof props.column.title == "function" ? props.column.title({
|
27074
|
+
column: props.column.originColumn,
|
27048
27075
|
sortColumns: sortColumns.value,
|
27049
27076
|
sortColumn: (_a = sortColumns.value[0]) == null ? void 0 : _a.column,
|
27050
27077
|
sortOrder: (_b = sortColumns.value[0]) == null ? void 0 : _b.order
|
@@ -28474,28 +28501,29 @@ var _sfc_main$n = defineComponent({
|
|
28474
28501
|
event: rowDragEvent.value
|
28475
28502
|
});
|
28476
28503
|
}
|
28504
|
+
} else {
|
28505
|
+
return [
|
28506
|
+
createVNode(
|
28507
|
+
"span",
|
28508
|
+
{ class: `${prefixCls.value}-drag-ghost-image-icon`, innerHTML: dragIcon2 },
|
28509
|
+
null
|
28510
|
+
),
|
28511
|
+
createVNode(
|
28512
|
+
"span",
|
28513
|
+
{
|
28514
|
+
class: `${prefixCls.value}-drag-ghost-image-label`,
|
28515
|
+
style: { maxWidth: `${parentOffsetWidth}px` }
|
28516
|
+
},
|
28517
|
+
[(_a = slots.label) == null ? void 0 : _a.call(slots)]
|
28518
|
+
)
|
28519
|
+
];
|
28477
28520
|
}
|
28478
|
-
return [
|
28479
|
-
createVNode(
|
28480
|
-
"span",
|
28481
|
-
{ class: `${prefixCls.value}-drag-ghost-image-icon`, innerHTML: dragIcon2 },
|
28482
|
-
null
|
28483
|
-
),
|
28484
|
-
createVNode(
|
28485
|
-
"span",
|
28486
|
-
{
|
28487
|
-
class: `${prefixCls.value}-drag-ghost-image-label`,
|
28488
|
-
style: { maxWidth: `${parentOffsetWidth}px` }
|
28489
|
-
},
|
28490
|
-
[(_a = slots.label) == null ? void 0 : _a.call(slots)]
|
28491
|
-
)
|
28492
|
-
];
|
28493
28521
|
};
|
28494
28522
|
const renderDragGhost = () => {
|
28495
28523
|
if (!dragGhostImage) {
|
28496
28524
|
dragGhostImage = createVNode(renderDragGhostImage);
|
28525
|
+
render$1(dragGhostImage, dragGhostDom);
|
28497
28526
|
}
|
28498
|
-
render$1(dragGhostImage, dragGhostDom);
|
28499
28527
|
};
|
28500
28528
|
watch(
|
28501
28529
|
[prefixCls],
|
@@ -28901,7 +28929,7 @@ var _sfc_main$m = defineComponent({
|
|
28901
28929
|
newValue: modelValue.value,
|
28902
28930
|
oldValue
|
28903
28931
|
});
|
28904
|
-
if (isPromise
|
28932
|
+
if (isPromise(result)) {
|
28905
28933
|
result.then((res) => {
|
28906
28934
|
res && emit("closeEditor", [props.cellKey]);
|
28907
28935
|
}).catch(() => {
|
@@ -29121,7 +29149,7 @@ const BodyCell = (props, { slots, emit }) => {
|
|
29121
29149
|
recordIndexs
|
29122
29150
|
})) != null ? _c2 : value;
|
29123
29151
|
const beforeOpen = (_e2 = (_d2 = tableContext.props) == null ? void 0 : _d2.onBeforeOpenEditor) == null ? void 0 : _e2.call(_d2, cellRenderArgs);
|
29124
|
-
if (isPromise
|
29152
|
+
if (isPromise(beforeOpen)) {
|
29125
29153
|
beforeOpen.then((res) => {
|
29126
29154
|
var _a3, _b3;
|
29127
29155
|
if (res) {
|
@@ -29142,7 +29170,7 @@ const BodyCell = (props, { slots, emit }) => {
|
|
29142
29170
|
...cellRenderArgs,
|
29143
29171
|
oldValue: oldValuesMap.value[key]
|
29144
29172
|
});
|
29145
|
-
if (isPromise
|
29173
|
+
if (isPromise(beforeClose)) {
|
29146
29174
|
beforeClose.then((res) => {
|
29147
29175
|
var _a3, _b3;
|
29148
29176
|
if (res) {
|
@@ -29269,7 +29297,7 @@ const BodyCell = (props, { slots, emit }) => {
|
|
29269
29297
|
// }),
|
29270
29298
|
shouldOpen: (isEllipsis) => {
|
29271
29299
|
var _a2;
|
29272
|
-
return (tooltipProps == null ? void 0 : tooltipProps.shouldOpen) ? (_a2 = tooltipProps == null ? void 0 : tooltipProps.shouldOpen) == null ? void 0 : _a2.call(tooltipProps, isEllipsis, cellRenderArgs) :
|
29300
|
+
return (tooltipProps == null ? void 0 : tooltipProps.shouldOpen) ? (_a2 = tooltipProps == null ? void 0 : tooltipProps.shouldOpen) == null ? void 0 : _a2.call(tooltipProps, isEllipsis, cellRenderArgs) : true;
|
29273
29301
|
},
|
29274
29302
|
onCellLeave: () => {
|
29275
29303
|
emit("cellLeave");
|
@@ -29901,7 +29929,7 @@ var _sfc_main$i = defineComponent({
|
|
29901
29929
|
() => (props.type === "center" ? tableContext.centerRowColumnsMap.value.get(props.rowKey) : columns.value).filter((item) => !!item)
|
29902
29930
|
);
|
29903
29931
|
const { tooltipOpen, leftPopupContainer, centerPopupContainer, rightPopupContainer } = useInjectBody();
|
29904
|
-
const { handleCellBlur, handleCellHover, hoverRowKey, hoverColumnKey } = useInjectHover();
|
29932
|
+
const { handleCellBlur, handleCellHover, hoverRowKey, hoverColumnKey, rowHover } = useInjectHover();
|
29905
29933
|
const popupContainer = computed(
|
29906
29934
|
() => props.type === "left" ? leftPopupContainer.value : props.type === "center" ? centerPopupContainer.value : props.type === "right" ? rightPopupContainer.value : null
|
29907
29935
|
);
|
@@ -29910,7 +29938,7 @@ var _sfc_main$i = defineComponent({
|
|
29910
29938
|
watch(
|
29911
29939
|
[isRowHover, bodyRow],
|
29912
29940
|
() => {
|
29913
|
-
bodyRow.value && (isRowHover.value ? addClass(bodyRow.value, `${props.prefixCls}-row-hover`) : removeClass(bodyRow.value, `${props.prefixCls}-row-hover`));
|
29941
|
+
bodyRow.value && rowHover.value && (isRowHover.value ? addClass(bodyRow.value, `${props.prefixCls}-row-hover`) : removeClass(bodyRow.value, `${props.prefixCls}-row-hover`));
|
29914
29942
|
},
|
29915
29943
|
{ immediate: true, flush: "post" }
|
29916
29944
|
);
|
@@ -29977,7 +30005,7 @@ var _sfc_main$i = defineComponent({
|
|
29977
30005
|
{
|
29978
30006
|
[`${prefixCls}-row`]: true,
|
29979
30007
|
[`${prefixCls}-row-level-${indent}`]: true,
|
29980
|
-
[`${prefixCls}-row-hover`]: isRowHover.value,
|
30008
|
+
[`${prefixCls}-row-hover`]: isRowHover.value && rowHover.value,
|
29981
30009
|
[`${prefixCls}-row-dragging`]: isDragging.value,
|
29982
30010
|
[`${prefixCls}-row-dragging-insert-target`]: tableContext.insertToRowKey.value === props.rowKey,
|
29983
30011
|
[`${prefixCls}-row-odd`]: !isEven,
|
@@ -30654,8 +30682,7 @@ var _sfc_main$g = defineComponent({
|
|
30654
30682
|
};
|
30655
30683
|
});
|
30656
30684
|
const bodyViewportStyle = computed(() => ({
|
30657
|
-
width: `calc(100% + ${tableContext.showVerticalScrollbar.value ? tableContext.scrollBarSize.value
|
30658
|
-
// width: `calc(100% + 0px)`,
|
30685
|
+
width: `calc(100% + ${tableContext.showVerticalScrollbar.value ? tableContext.scrollBarSize.value : 0}px)`,
|
30659
30686
|
overflowX: "hidden",
|
30660
30687
|
overflowY: "auto",
|
30661
30688
|
height: "100%"
|
@@ -31941,9 +31968,14 @@ var _sfc_main$f = defineComponent({
|
|
31941
31968
|
var _a;
|
31942
31969
|
const width = col.width;
|
31943
31970
|
const result = (_a = props.onResizeColumn) == null ? void 0 : _a.call(props, w, col, action);
|
31944
|
-
if (result !== false
|
31945
|
-
|
31946
|
-
|
31971
|
+
if (result !== false) {
|
31972
|
+
if (!(width === w && col.width === w)) {
|
31973
|
+
col.width = width !== col.width ? col.width : w;
|
31974
|
+
triggerRef(rawColumns);
|
31975
|
+
}
|
31976
|
+
if (action === "end") {
|
31977
|
+
emit("update:columns", rawColumns.value, "resize");
|
31978
|
+
}
|
31947
31979
|
}
|
31948
31980
|
},
|
31949
31981
|
onRowDragEnd: (opt) => {
|
@@ -32117,7 +32149,7 @@ var _sfc_main$f = defineComponent({
|
|
32117
32149
|
rawColumns.value.splice(index, 1);
|
32118
32150
|
}
|
32119
32151
|
triggerRef(rawColumns);
|
32120
|
-
emit("update:columns", rawColumns.value);
|
32152
|
+
emit("update:columns", rawColumns.value, "drag");
|
32121
32153
|
};
|
32122
32154
|
if (isPromise(dragEnd)) {
|
32123
32155
|
dragEnd.then(() => {
|
@@ -33699,7 +33731,8 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
33699
33731
|
const {
|
33700
33732
|
hoverRowKey
|
33701
33733
|
} = useProvideHover({
|
33702
|
-
rowHoverDelay: computed(() => props.rowHoverDelay)
|
33734
|
+
rowHoverDelay: computed(() => props.rowHoverDelay),
|
33735
|
+
rowHover: computed(() => props.rowHover)
|
33703
33736
|
});
|
33704
33737
|
const mergedPrefixCls = computed(() => {
|
33705
33738
|
var _a2;
|
@@ -33743,10 +33776,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
33743
33776
|
if (props.pagination === false) {
|
33744
33777
|
return false;
|
33745
33778
|
}
|
33746
|
-
|
33747
|
-
return Object.assign({}, pagination.value, props.pagination);
|
33748
|
-
}
|
33749
|
-
return Object.assign({}, props.pagination, pagination.value);
|
33779
|
+
return pagination.value;
|
33750
33780
|
});
|
33751
33781
|
const formSubmitLoading = computed(() => {
|
33752
33782
|
if (typeof loading.value === "boolean") {
|
@@ -33808,9 +33838,44 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
33808
33838
|
};
|
33809
33839
|
return loopFilter(tableColumn.value);
|
33810
33840
|
});
|
33841
|
+
const onColumnsChange = (rawColumns, action) => {
|
33842
|
+
var _a2;
|
33843
|
+
const newMap = {
|
33844
|
+
...counter.columnsMap.value
|
33845
|
+
};
|
33846
|
+
const newColumns = rawColumns.map((item) => genColumnKey(item.key, item.index));
|
33847
|
+
if (action === "resize") {
|
33848
|
+
const loopSetWidth = (rawColumns2) => {
|
33849
|
+
rawColumns2.forEach((item) => {
|
33850
|
+
var _a3;
|
33851
|
+
const key = genColumnKey(item.key, item.index);
|
33852
|
+
const newSetting = {
|
33853
|
+
...newMap[key]
|
33854
|
+
};
|
33855
|
+
if ((_a3 = item.children) == null ? void 0 : _a3.length) {
|
33856
|
+
loopSetWidth(item.children);
|
33857
|
+
} else {
|
33858
|
+
newSetting.width = item.width;
|
33859
|
+
newMap[key] = newSetting;
|
33860
|
+
}
|
33861
|
+
});
|
33862
|
+
};
|
33863
|
+
loopSetWidth(rawColumns);
|
33864
|
+
} else {
|
33865
|
+
newColumns.forEach((key, order) => {
|
33866
|
+
newMap[key] = {
|
33867
|
+
...newMap[key] || {},
|
33868
|
+
order
|
33869
|
+
};
|
33870
|
+
});
|
33871
|
+
}
|
33872
|
+
counter.setColumnsMap(newMap);
|
33873
|
+
counter.setSortKeyColumns(newColumns);
|
33874
|
+
(_a2 = props["onUpdate:columns"]) == null ? void 0 : _a2.call(props, rawColumns, action);
|
33875
|
+
};
|
33811
33876
|
const formItems = computed(() => {
|
33812
33877
|
var _a2, _b, _c;
|
33813
|
-
if (
|
33878
|
+
if (props.search === false) {
|
33814
33879
|
return [];
|
33815
33880
|
}
|
33816
33881
|
if ((_b = (_a2 = props.search) == null ? void 0 : _a2.items) == null ? void 0 : _b.length) {
|
@@ -33822,12 +33887,12 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
33822
33887
|
}
|
33823
33888
|
return true;
|
33824
33889
|
}).map((item) => {
|
33825
|
-
return {
|
33890
|
+
return omitKeysAndUndefined({
|
33826
33891
|
...item,
|
33827
33892
|
width: void 0,
|
33828
33893
|
tooltip: item.headerTooltip,
|
33829
33894
|
name: item.dataIndex
|
33830
|
-
};
|
33895
|
+
}, ["dataIndex", "width", "tooltip", "disable"]);
|
33831
33896
|
});
|
33832
33897
|
});
|
33833
33898
|
const preserveRecordsRef = ref(/* @__PURE__ */ new Map());
|
@@ -33982,7 +34047,7 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
33982
34047
|
actions: slots.alertActions
|
33983
34048
|
}), createVNode(InteralTable, mergeProps({
|
33984
34049
|
"ref": table
|
33985
|
-
}, omit(props, ["onChange", "onUpdate:pagination", "onUpdate:selectedRowKeys"]), {
|
34050
|
+
}, omit(props, ["onChange", "onUpdate:pagination", "onUpdate:selectedRowKeys", "onUpdate:columns"]), {
|
33986
34051
|
"prefixCls": mergedPrefixCls.value,
|
33987
34052
|
"columns": mergeColumns || [],
|
33988
34053
|
"size": counter.tableSize.value,
|
@@ -33993,7 +34058,8 @@ var Table = /* @__PURE__ */ defineComponent({
|
|
33993
34058
|
"expandIcon": expandIcon,
|
33994
34059
|
"expandedRowRender": expandedRowRender,
|
33995
34060
|
"hasContextmenuPopup": !!slots.contextmenuPopup,
|
33996
|
-
"onChange": onTableChange
|
34061
|
+
"onChange": onTableChange,
|
34062
|
+
"onUpdate:columns": onColumnsChange
|
33997
34063
|
}), {
|
33998
34064
|
...slots,
|
33999
34065
|
footer: props.footer || slots.footer
|
@@ -114,7 +114,6 @@ var QueryFilter = /* @__PURE__ */ defineComponent({
|
|
114
114
|
}
|
115
115
|
if (props.defaultColsNumber !== void 0) {
|
116
116
|
const oneRowControlsNumber = 24 / spanSize.value.span - 1;
|
117
|
-
console.log("\u{1F680} ~ showLength ~ oneRowControlsNumber:", oneRowControlsNumber);
|
118
117
|
return props.defaultColsNumber > oneRowControlsNumber ? oneRowControlsNumber : props.defaultColsNumber;
|
119
118
|
}
|
120
119
|
return Math.max(1, 24 / spanSize.value.span - 1);
|
@@ -151,7 +150,7 @@ var QueryFilter = /* @__PURE__ */ defineComponent({
|
|
151
150
|
}
|
152
151
|
return void 0;
|
153
152
|
});
|
154
|
-
const [collapsed, setCollapsed] = useMergedState(() => props.defaultCollapsed &&
|
153
|
+
const [collapsed, setCollapsed] = useMergedState(() => props.defaultCollapsed && props.submitter !== false, {
|
155
154
|
value: computed(() => props.collapsed),
|
156
155
|
onChange: (val) => {
|
157
156
|
emit("collapse", val);
|