xrk-components 2.0.0-beta.95 → 2.0.0-beta.97
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/lib/index.css +21096 -21030
- package/lib/index.esm.js +211 -166
- package/lib/index.umd.js +211 -166
- package/lib/packages/base/table/table-column.d.ts +9 -3
- package/lib/packages/base/table/types/type.d.ts +1 -0
- package/package.json +1 -1
package/lib/index.umd.js
CHANGED
|
@@ -866,52 +866,59 @@
|
|
|
866
866
|
return cc / 2 * ((t -= 2) * t * t + 2) + b;
|
|
867
867
|
}
|
|
868
868
|
|
|
869
|
-
/**
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
const
|
|
882
|
-
const
|
|
883
|
-
const
|
|
884
|
-
const
|
|
885
|
-
const
|
|
886
|
-
const
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
const
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
const
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
869
|
+
/**
|
|
870
|
+
* Make a map and return a function for checking if a key
|
|
871
|
+
* is in that map.
|
|
872
|
+
* IMPORTANT: all calls of this function must be prefixed with
|
|
873
|
+
* \/\*#\_\_PURE\_\_\*\/
|
|
874
|
+
* So that rollup can tree-shake them if necessary.
|
|
875
|
+
*/
|
|
876
|
+
|
|
877
|
+
(process.env.NODE_ENV !== 'production')
|
|
878
|
+
? Object.freeze({})
|
|
879
|
+
: {};
|
|
880
|
+
(process.env.NODE_ENV !== 'production') ? Object.freeze([]) : [];
|
|
881
|
+
const NOOP = () => { };
|
|
882
|
+
const hasOwnProperty$p = Object.prototype.hasOwnProperty;
|
|
883
|
+
const hasOwn = (val, key) => hasOwnProperty$p.call(val, key);
|
|
884
|
+
const isArray$1 = Array.isArray;
|
|
885
|
+
const isDate$1 = (val) => val instanceof Date;
|
|
886
|
+
const isFunction$2 = (val) => typeof val === 'function';
|
|
887
|
+
const isString$2 = (val) => typeof val === 'string';
|
|
888
|
+
const isObject$1 = (val) => val !== null && typeof val === 'object';
|
|
889
|
+
const isPromise = (val) => {
|
|
890
|
+
return isObject$1(val) && isFunction$2(val.then) && isFunction$2(val.catch);
|
|
891
|
+
};
|
|
892
|
+
const objectToString$1 = Object.prototype.toString;
|
|
893
|
+
const toTypeString = (value) => objectToString$1.call(value);
|
|
894
|
+
const toRawType = (value) => {
|
|
895
|
+
// extract "RawType" from strings like "[object RawType]"
|
|
896
|
+
return toTypeString(value).slice(8, -1);
|
|
897
|
+
};
|
|
898
|
+
const isPlainObject$1 = (val) => toTypeString(val) === '[object Object]';
|
|
899
|
+
const cacheStringFunction = (fn) => {
|
|
900
|
+
const cache = Object.create(null);
|
|
901
|
+
return ((str) => {
|
|
902
|
+
const hit = cache[str];
|
|
903
|
+
return hit || (cache[str] = fn(str));
|
|
904
|
+
});
|
|
905
|
+
};
|
|
906
|
+
const camelizeRE = /-(\w)/g;
|
|
907
|
+
/**
|
|
908
|
+
* @private
|
|
909
|
+
*/
|
|
910
|
+
const camelize = cacheStringFunction((str) => {
|
|
911
|
+
return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));
|
|
912
|
+
});
|
|
913
|
+
const hyphenateRE = /\B([A-Z])/g;
|
|
914
|
+
/**
|
|
915
|
+
* @private
|
|
916
|
+
*/
|
|
917
|
+
const hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, '-$1').toLowerCase());
|
|
918
|
+
/**
|
|
919
|
+
* @private
|
|
920
|
+
*/
|
|
921
|
+
const capitalize$2 = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));
|
|
915
922
|
|
|
916
923
|
/** Detect free variable `global` from Node.js. */
|
|
917
924
|
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
@@ -21109,9 +21116,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
21109
21116
|
function getAxisLength(axis) {
|
|
21110
21117
|
return axis === 'y' ? 'height' : 'width';
|
|
21111
21118
|
}
|
|
21112
|
-
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
21113
21119
|
function getSideAxis(placement) {
|
|
21114
|
-
return
|
|
21120
|
+
return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
|
|
21115
21121
|
}
|
|
21116
21122
|
function getAlignmentAxis(placement) {
|
|
21117
21123
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -21136,19 +21142,19 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
21136
21142
|
function getOppositeAlignmentPlacement(placement) {
|
|
21137
21143
|
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
21138
21144
|
}
|
|
21139
|
-
const lrPlacement = ['left', 'right'];
|
|
21140
|
-
const rlPlacement = ['right', 'left'];
|
|
21141
|
-
const tbPlacement = ['top', 'bottom'];
|
|
21142
|
-
const btPlacement = ['bottom', 'top'];
|
|
21143
21145
|
function getSideList(side, isStart, rtl) {
|
|
21146
|
+
const lr = ['left', 'right'];
|
|
21147
|
+
const rl = ['right', 'left'];
|
|
21148
|
+
const tb = ['top', 'bottom'];
|
|
21149
|
+
const bt = ['bottom', 'top'];
|
|
21144
21150
|
switch (side) {
|
|
21145
21151
|
case 'top':
|
|
21146
21152
|
case 'bottom':
|
|
21147
|
-
if (rtl) return isStart ?
|
|
21148
|
-
return isStart ?
|
|
21153
|
+
if (rtl) return isStart ? rl : lr;
|
|
21154
|
+
return isStart ? lr : rl;
|
|
21149
21155
|
case 'left':
|
|
21150
21156
|
case 'right':
|
|
21151
|
-
return isStart ?
|
|
21157
|
+
return isStart ? tb : bt;
|
|
21152
21158
|
default:
|
|
21153
21159
|
return [];
|
|
21154
21160
|
}
|
|
@@ -21671,22 +21677,16 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
21671
21677
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
21672
21678
|
const nextPlacement = placements[nextIndex];
|
|
21673
21679
|
if (nextPlacement) {
|
|
21674
|
-
|
|
21675
|
-
|
|
21676
|
-
|
|
21677
|
-
|
|
21678
|
-
|
|
21679
|
-
|
|
21680
|
-
|
|
21681
|
-
|
|
21682
|
-
|
|
21683
|
-
|
|
21684
|
-
},
|
|
21685
|
-
reset: {
|
|
21686
|
-
placement: nextPlacement
|
|
21687
|
-
}
|
|
21688
|
-
};
|
|
21689
|
-
}
|
|
21680
|
+
// Try next placement and re-run the lifecycle.
|
|
21681
|
+
return {
|
|
21682
|
+
data: {
|
|
21683
|
+
index: nextIndex,
|
|
21684
|
+
overflows: overflowsData
|
|
21685
|
+
},
|
|
21686
|
+
reset: {
|
|
21687
|
+
placement: nextPlacement
|
|
21688
|
+
}
|
|
21689
|
+
};
|
|
21690
21690
|
}
|
|
21691
21691
|
|
|
21692
21692
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
@@ -21932,8 +21932,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
21932
21932
|
};
|
|
21933
21933
|
};
|
|
21934
21934
|
|
|
21935
|
-
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
|
21936
|
-
|
|
21937
21935
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
21938
21936
|
// Derivable.
|
|
21939
21937
|
|
|
@@ -21947,7 +21945,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
21947
21945
|
const side = getSide(placement);
|
|
21948
21946
|
const alignment = getAlignment(placement);
|
|
21949
21947
|
const isVertical = getSideAxis(placement) === 'y';
|
|
21950
|
-
const mainAxisMulti =
|
|
21948
|
+
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
21951
21949
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
21952
21950
|
const rawValue = evaluate(options, state);
|
|
21953
21951
|
|
|
@@ -22147,7 +22145,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22147
22145
|
if (checkCrossAxis) {
|
|
22148
22146
|
var _middlewareData$offse, _middlewareData$offse2;
|
|
22149
22147
|
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
22150
|
-
const isOriginSide =
|
|
22148
|
+
const isOriginSide = ['top', 'left'].includes(getSide(placement));
|
|
22151
22149
|
const limitMin = rects.reference[crossAxis] - rects.floating[len] + (isOriginSide ? ((_middlewareData$offse = middlewareData.offset) == null ? void 0 : _middlewareData$offse[crossAxis]) || 0 : 0) + (isOriginSide ? 0 : computedOffset.crossAxis);
|
|
22152
22150
|
const limitMax = rects.reference[crossAxis] + rects.reference[len] + (isOriginSide ? 0 : ((_middlewareData$offse2 = middlewareData.offset) == null ? void 0 : _middlewareData$offse2[crossAxis]) || 0) - (isOriginSide ? computedOffset.crossAxis : 0);
|
|
22153
22151
|
if (crossAxisCoord < limitMin) {
|
|
@@ -22292,7 +22290,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22292
22290
|
}
|
|
22293
22291
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
22294
22292
|
}
|
|
22295
|
-
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
22296
22293
|
function isOverflowElement(element) {
|
|
22297
22294
|
const {
|
|
22298
22295
|
overflow,
|
|
@@ -22300,32 +22297,27 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22300
22297
|
overflowY,
|
|
22301
22298
|
display
|
|
22302
22299
|
} = getComputedStyle$1(element);
|
|
22303
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
|
22300
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
22304
22301
|
}
|
|
22305
|
-
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
22306
22302
|
function isTableElement(element) {
|
|
22307
|
-
return
|
|
22303
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
22308
22304
|
}
|
|
22309
|
-
const topLayerSelectors = [':popover-open', ':modal'];
|
|
22310
22305
|
function isTopLayer(element) {
|
|
22311
|
-
return
|
|
22306
|
+
return [':popover-open', ':modal'].some(selector => {
|
|
22312
22307
|
try {
|
|
22313
22308
|
return element.matches(selector);
|
|
22314
|
-
} catch (
|
|
22309
|
+
} catch (e) {
|
|
22315
22310
|
return false;
|
|
22316
22311
|
}
|
|
22317
22312
|
});
|
|
22318
22313
|
}
|
|
22319
|
-
const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
|
|
22320
|
-
const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
|
|
22321
|
-
const containValues = ['paint', 'layout', 'strict', 'content'];
|
|
22322
22314
|
function isContainingBlock(elementOrCss) {
|
|
22323
22315
|
const webkit = isWebKit();
|
|
22324
22316
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
22325
22317
|
|
|
22326
22318
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
22327
22319
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
22328
|
-
return
|
|
22320
|
+
return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
|
22329
22321
|
}
|
|
22330
22322
|
function getContainingBlock(element) {
|
|
22331
22323
|
let currentNode = getParentNode(element);
|
|
@@ -22343,9 +22335,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22343
22335
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
22344
22336
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
22345
22337
|
}
|
|
22346
|
-
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
22347
22338
|
function isLastTraversableNode(node) {
|
|
22348
|
-
return
|
|
22339
|
+
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
22349
22340
|
}
|
|
22350
22341
|
function getComputedStyle$1(element) {
|
|
22351
22342
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -22650,7 +22641,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22650
22641
|
};
|
|
22651
22642
|
}
|
|
22652
22643
|
|
|
22653
|
-
const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
|
|
22654
22644
|
// Returns the inner client rect, subtracting scrollbars if present.
|
|
22655
22645
|
function getInnerBoundingClientRect(element, strategy) {
|
|
22656
22646
|
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
@@ -22715,7 +22705,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22715
22705
|
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
22716
22706
|
currentContainingBlockComputedStyle = null;
|
|
22717
22707
|
}
|
|
22718
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle &&
|
|
22708
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
22719
22709
|
if (shouldDropCurrentNode) {
|
|
22720
22710
|
// Drop non-containing blocks.
|
|
22721
22711
|
result = result.filter(ancestor => ancestor !== currentNode);
|
|
@@ -22778,12 +22768,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22778
22768
|
scrollTop: 0
|
|
22779
22769
|
};
|
|
22780
22770
|
const offsets = createCoords(0);
|
|
22781
|
-
|
|
22782
|
-
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
22783
|
-
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
22784
|
-
function setLeftRTLScrollbarOffset() {
|
|
22785
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
22786
|
-
}
|
|
22787
22771
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
22788
22772
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
22789
22773
|
scroll = getNodeScroll(offsetParent);
|
|
@@ -22793,12 +22777,11 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22793
22777
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
22794
22778
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
22795
22779
|
} else if (documentElement) {
|
|
22796
|
-
|
|
22780
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
22781
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
22782
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
22797
22783
|
}
|
|
22798
22784
|
}
|
|
22799
|
-
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
22800
|
-
setLeftRTLScrollbarOffset();
|
|
22801
|
-
}
|
|
22802
22785
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
22803
22786
|
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
22804
22787
|
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
@@ -22975,7 +22958,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
22975
22958
|
// Handle <iframe>s
|
|
22976
22959
|
root: root.ownerDocument
|
|
22977
22960
|
});
|
|
22978
|
-
} catch (
|
|
22961
|
+
} catch (e) {
|
|
22979
22962
|
io = new IntersectionObserver(handleObserve, options);
|
|
22980
22963
|
}
|
|
22981
22964
|
io.observe(element);
|
|
@@ -71515,7 +71498,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
71515
71498
|
|
|
71516
71499
|
var _hoisted_1$i = /*#__PURE__*/ vue.createTextVNode("更多");
|
|
71517
71500
|
var _hoisted_2$b = { class: "btn-group" };
|
|
71518
|
-
var _hoisted_3$
|
|
71501
|
+
var _hoisted_3$a = ["onClick"];
|
|
71519
71502
|
var __default__$C = {
|
|
71520
71503
|
name: 'base-button-more'
|
|
71521
71504
|
};
|
|
@@ -71634,7 +71617,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
71634
71617
|
(_b = (_a = popoverRef.value) === null || _a === void 0 ? void 0 : _a.hide) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
71635
71618
|
(_c = (btn.onClick || btn.click)) === null || _c === void 0 ? void 0 : _c();
|
|
71636
71619
|
}
|
|
71637
|
-
}, vue.toDisplayString(btn.content), 11 /* TEXT, CLASS, PROPS */, _hoisted_3$
|
|
71620
|
+
}, vue.toDisplayString(btn.content), 11 /* TEXT, CLASS, PROPS */, _hoisted_3$a));
|
|
71638
71621
|
}), 128 /* KEYED_FRAGMENT */))
|
|
71639
71622
|
])
|
|
71640
71623
|
]; }),
|
|
@@ -71850,7 +71833,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
71850
71833
|
key: 0,
|
|
71851
71834
|
style: { "position": "absolute", "width": "100%", "height": "100%", "left": "0", "top": "0" }
|
|
71852
71835
|
};
|
|
71853
|
-
var _hoisted_3$
|
|
71836
|
+
var _hoisted_3$9 = {
|
|
71854
71837
|
key: 0,
|
|
71855
71838
|
style: { "position": "absolute", "width": "100%", "height": "100%", "left": "0", "top": "0" }
|
|
71856
71839
|
};
|
|
@@ -72094,7 +72077,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
72094
72077
|
var _a;
|
|
72095
72078
|
return [
|
|
72096
72079
|
((_a = vue.unref(slots)) === null || _a === void 0 ? void 0 : _a.default)
|
|
72097
|
-
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$
|
|
72080
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$9, [
|
|
72098
72081
|
vue.renderSlot(_ctx.$slots, "default", {
|
|
72099
72082
|
slotScope: { activeIndex: activeIndex.value }
|
|
72100
72083
|
})
|
|
@@ -72587,7 +72570,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
72587
72570
|
var BaseCheckboxGroup = script$v;
|
|
72588
72571
|
var BaseCheckbox = script$w;
|
|
72589
72572
|
|
|
72590
|
-
var propsKey$
|
|
72573
|
+
var propsKey$1 = 'date-picker'; // 解决defineProps作用域问题
|
|
72591
72574
|
var __default__$s = {
|
|
72592
72575
|
name: 'base-date-picker'
|
|
72593
72576
|
};
|
|
@@ -72613,7 +72596,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
72613
72596
|
clearIcon: { type: null, required: false },
|
|
72614
72597
|
validateEvent: { type: Boolean, required: false },
|
|
72615
72598
|
disabledDate: { type: Function, required: false },
|
|
72616
|
-
shortcuts: { type: null, required: false, default: (function () { return useGetGlobalDefaultProp(propsKey$
|
|
72599
|
+
shortcuts: { type: null, required: false, default: (function () { return useGetGlobalDefaultProp(propsKey$1, 'shortcuts', []); }) },
|
|
72617
72600
|
cellClassName: { type: Function, required: false },
|
|
72618
72601
|
teleported: { type: Boolean, required: false, default: true }
|
|
72619
72602
|
}, emits: ["change", "visibleChange", "calendarChange", "update:modelValue"], setup: function (__props, _a) {
|
|
@@ -74269,8 +74252,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74269
74252
|
script$k.__scopeId = "data-v-17eda5db";
|
|
74270
74253
|
script$k.__file = "packages/base/form/form-item.vue";
|
|
74271
74254
|
|
|
74272
|
-
var _hoisted_1$c = { class: "
|
|
74273
|
-
var _hoisted_2$8 = { class: "btn-group" };
|
|
74255
|
+
var _hoisted_1$c = { class: "btn-group" };
|
|
74256
|
+
var _hoisted_2$8 = { class: "btn-group-left" };
|
|
74257
|
+
var _hoisted_3$8 = { class: "btn-group-right" };
|
|
74274
74258
|
var __default__$h = {
|
|
74275
74259
|
name: 'xrk-search'
|
|
74276
74260
|
};
|
|
@@ -74296,6 +74280,21 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74296
74280
|
var searchFormRef = vue.ref();
|
|
74297
74281
|
var searchBtn = vue.computed(function () { return (__assign({ text: '搜索', show: true }, props.searchBtn)); });
|
|
74298
74282
|
var resetBtn = vue.computed(function () { return (__assign({ text: '重置', show: true }, props.resetBtn)); });
|
|
74283
|
+
var columnNum = vue.ref(5);
|
|
74284
|
+
var searchStyle = vue.ref({
|
|
74285
|
+
'--column-num': columnNum.value,
|
|
74286
|
+
'--column-len': props.columns.length
|
|
74287
|
+
});
|
|
74288
|
+
var isExpand = vue.ref(false);
|
|
74289
|
+
var getCurrentColumns = vue.computed(function () {
|
|
74290
|
+
var _a;
|
|
74291
|
+
if (isExpand.value) {
|
|
74292
|
+
return props === null || props === void 0 ? void 0 : props.columns;
|
|
74293
|
+
}
|
|
74294
|
+
else {
|
|
74295
|
+
return (_a = props === null || props === void 0 ? void 0 : props.columns) === null || _a === void 0 ? void 0 : _a.slice(0, columnNum.value * 2);
|
|
74296
|
+
}
|
|
74297
|
+
});
|
|
74299
74298
|
var _getPleaseText = function (type) {
|
|
74300
74299
|
if (['input', 'inputNumber'].includes(type)) {
|
|
74301
74300
|
return '请输入';
|
|
@@ -74429,14 +74428,21 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74429
74428
|
handleResetClick: handleResetClick
|
|
74430
74429
|
});
|
|
74431
74430
|
return function (_ctx, _cache) {
|
|
74432
|
-
|
|
74431
|
+
var _a, _b;
|
|
74432
|
+
return (vue.openBlock(), vue.createElementBlock("div", {
|
|
74433
|
+
class: vue.normalizeClass(["xrk-search", {
|
|
74434
|
+
'xrk-search-line': ((_a = __props.columns) === null || _a === void 0 ? void 0 : _a.length) < columnNum.value
|
|
74435
|
+
}]),
|
|
74436
|
+
style: vue.normalizeStyle(searchStyle.value)
|
|
74437
|
+
}, [
|
|
74433
74438
|
vue.createVNode(script$b, {
|
|
74434
74439
|
model: searchValue,
|
|
74435
74440
|
ref_key: "searchFormRef",
|
|
74436
|
-
ref: searchFormRef
|
|
74441
|
+
ref: searchFormRef,
|
|
74442
|
+
"label-position": "top"
|
|
74437
74443
|
}, {
|
|
74438
74444
|
default: vue.withCtx(function () { return [
|
|
74439
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(
|
|
74445
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(getCurrentColumns), function (_a) {
|
|
74440
74446
|
var style = _a.style, label = _a.label, prop = _a.prop, type = _a.type, disabled = _a.disabled, config = _a.config, listener = _a.listener, labelWidth = _a.labelWidth, rules = _a.rules;
|
|
74441
74447
|
return (vue.openBlock(), vue.createBlock(script$k, {
|
|
74442
74448
|
prop: prop,
|
|
@@ -74449,7 +74455,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74449
74455
|
type
|
|
74450
74456
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(formItemComponents)[type]), vue.mergeProps({
|
|
74451
74457
|
key: 0,
|
|
74452
|
-
style: __assign({
|
|
74458
|
+
style: __assign(__assign({}, (style || {})), { minWidth: '100%' })
|
|
74453
74459
|
}, __assign(__assign(__assign(__assign({}, computedDefaultConfig({ label: label, prop: prop, type: type })), { clearable: true }), config), proxyColumnListener(listener || {})), {
|
|
74454
74460
|
disabled: vue.unref(isFunction)(disabled) ? disabled(searchValue) : disabled,
|
|
74455
74461
|
modelValue: searchValue[prop],
|
|
@@ -74459,45 +74465,72 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
74459
74465
|
]; }),
|
|
74460
74466
|
_: 2 /* DYNAMIC */
|
|
74461
74467
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["prop", "label", "labelWidth", "rules"]));
|
|
74462
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
74463
|
-
vue.createElementVNode("div", _hoisted_2$8, [
|
|
74464
|
-
(vue.unref(searchBtn).show)
|
|
74465
|
-
? (vue.openBlock(), vue.createBlock(script$F, {
|
|
74466
|
-
key: 0,
|
|
74467
|
-
click: handleSearchClick,
|
|
74468
|
-
icon: vue.unref(search_default)
|
|
74469
|
-
}, {
|
|
74470
|
-
default: vue.withCtx(function () { return [
|
|
74471
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(searchBtn).text), 1 /* TEXT */)
|
|
74472
|
-
]; }),
|
|
74473
|
-
_: 1 /* STABLE */
|
|
74474
|
-
}, 8 /* PROPS */, ["icon"]))
|
|
74475
|
-
: vue.createCommentVNode("v-if", true),
|
|
74476
|
-
(vue.unref(resetBtn).show)
|
|
74477
|
-
? (vue.openBlock(), vue.createBlock(script$F, {
|
|
74478
|
-
key: 1,
|
|
74479
|
-
type: "default",
|
|
74480
|
-
plain: true,
|
|
74481
|
-
click: handleResetClick
|
|
74482
|
-
}, {
|
|
74483
|
-
default: vue.withCtx(function () { return [
|
|
74484
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(resetBtn).text), 1 /* TEXT */)
|
|
74485
|
-
]; }),
|
|
74486
|
-
_: 1 /* STABLE */
|
|
74487
|
-
}))
|
|
74488
|
-
: vue.createCommentVNode("v-if", true),
|
|
74489
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.otherComponents, function (_a, index) {
|
|
74490
|
-
var render = _a.render;
|
|
74491
|
-
return (vue.openBlock(), vue.createBlock(vue.unref(BaseSearchRender), {
|
|
74492
|
-
render: render,
|
|
74493
|
-
key: index
|
|
74494
|
-
}, null, 8 /* PROPS */, ["render"]));
|
|
74495
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
74496
|
-
])
|
|
74468
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
74497
74469
|
]; }),
|
|
74498
74470
|
_: 1 /* STABLE */
|
|
74499
|
-
}, 8 /* PROPS */, ["model"])
|
|
74500
|
-
|
|
74471
|
+
}, 8 /* PROPS */, ["model"]),
|
|
74472
|
+
vue.createElementVNode("div", _hoisted_1$c, [
|
|
74473
|
+
vue.createElementVNode("div", _hoisted_2$8, [
|
|
74474
|
+
(vue.unref(searchBtn).show)
|
|
74475
|
+
? (vue.openBlock(), vue.createBlock(script$F, {
|
|
74476
|
+
key: 0,
|
|
74477
|
+
click: handleSearchClick,
|
|
74478
|
+
icon: vue.unref(search_default)
|
|
74479
|
+
}, {
|
|
74480
|
+
default: vue.withCtx(function () { return [
|
|
74481
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(searchBtn).text), 1 /* TEXT */)
|
|
74482
|
+
]; }),
|
|
74483
|
+
_: 1 /* STABLE */
|
|
74484
|
+
}, 8 /* PROPS */, ["icon"]))
|
|
74485
|
+
: vue.createCommentVNode("v-if", true),
|
|
74486
|
+
(vue.unref(resetBtn).show)
|
|
74487
|
+
? (vue.openBlock(), vue.createBlock(script$F, {
|
|
74488
|
+
key: 1,
|
|
74489
|
+
type: "default",
|
|
74490
|
+
plain: true,
|
|
74491
|
+
click: handleResetClick
|
|
74492
|
+
}, {
|
|
74493
|
+
default: vue.withCtx(function () { return [
|
|
74494
|
+
vue.createTextVNode(vue.toDisplayString(vue.unref(resetBtn).text), 1 /* TEXT */)
|
|
74495
|
+
]; }),
|
|
74496
|
+
_: 1 /* STABLE */
|
|
74497
|
+
}))
|
|
74498
|
+
: vue.createCommentVNode("v-if", true),
|
|
74499
|
+
(__props.columns && ((_b = __props.columns) === null || _b === void 0 ? void 0 : _b.length) > columnNum.value * 2)
|
|
74500
|
+
? (vue.openBlock(), vue.createBlock(script$F, {
|
|
74501
|
+
key: 2,
|
|
74502
|
+
type: "default",
|
|
74503
|
+
onClick: _cache[0] || (_cache[0] = function () { return (isExpand.value = !isExpand.value); })
|
|
74504
|
+
}, {
|
|
74505
|
+
default: vue.withCtx(function () { return [
|
|
74506
|
+
vue.createTextVNode(vue.toDisplayString(!isExpand.value ? '展开' : '收起') + " ", 1 /* TEXT */),
|
|
74507
|
+
vue.createVNode(vue.unref(BaseIcon), { style: { "margin-left": "5px" } }, {
|
|
74508
|
+
default: vue.withCtx(function () { return [
|
|
74509
|
+
vue.withDirectives(vue.createVNode(vue.unref(arrow_up_default), null, null, 512 /* NEED_PATCH */), [
|
|
74510
|
+
[vue.vShow, isExpand.value]
|
|
74511
|
+
]),
|
|
74512
|
+
vue.withDirectives(vue.createVNode(vue.unref(arrow_down_default), null, null, 512 /* NEED_PATCH */), [
|
|
74513
|
+
[vue.vShow, !isExpand.value]
|
|
74514
|
+
])
|
|
74515
|
+
]; }),
|
|
74516
|
+
_: 1 /* STABLE */
|
|
74517
|
+
})
|
|
74518
|
+
]; }),
|
|
74519
|
+
_: 1 /* STABLE */
|
|
74520
|
+
}))
|
|
74521
|
+
: vue.createCommentVNode("v-if", true)
|
|
74522
|
+
]),
|
|
74523
|
+
vue.createElementVNode("div", _hoisted_3$8, [
|
|
74524
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.otherComponents, function (_a, index) {
|
|
74525
|
+
var render = _a.render;
|
|
74526
|
+
return (vue.openBlock(), vue.createBlock(vue.unref(BaseSearchRender), {
|
|
74527
|
+
render: render,
|
|
74528
|
+
key: index
|
|
74529
|
+
}, null, 8 /* PROPS */, ["render"]));
|
|
74530
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
74531
|
+
])
|
|
74532
|
+
])
|
|
74533
|
+
], 6 /* CLASS, STYLE */));
|
|
74501
74534
|
};
|
|
74502
74535
|
} }));
|
|
74503
74536
|
|
|
@@ -76245,7 +76278,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76245
76278
|
});
|
|
76246
76279
|
};
|
|
76247
76280
|
|
|
76248
|
-
var propsKey
|
|
76281
|
+
var propsKey = 'table'; // 解决defineProps作用域问题
|
|
76249
76282
|
var __default__$a = {
|
|
76250
76283
|
name: 'base-table'
|
|
76251
76284
|
};
|
|
@@ -76254,8 +76287,8 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76254
76287
|
columns: { type: null, required: true },
|
|
76255
76288
|
height: { type: [String, Number], required: false, default: '100%' },
|
|
76256
76289
|
maxHeight: { type: [String, Number], required: false },
|
|
76257
|
-
stripe: { type: Boolean, required: false, default:
|
|
76258
|
-
border: { type: Boolean, required: false, default: (function () { return useGetGlobalDefaultProp(propsKey
|
|
76290
|
+
stripe: { type: Boolean, required: false, default: false },
|
|
76291
|
+
border: { type: Boolean, required: false, default: (function () { return useGetGlobalDefaultProp(propsKey, 'border', false); }) },
|
|
76259
76292
|
size: { type: String, required: false, default: 'large' },
|
|
76260
76293
|
fit: { type: Boolean, required: false, default: true },
|
|
76261
76294
|
rowClassName: { type: null, required: false },
|
|
@@ -76272,7 +76305,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76272
76305
|
emptyText: { type: String, required: false, default: '暂无数据' },
|
|
76273
76306
|
defaultSort: { type: Object, required: false },
|
|
76274
76307
|
useBaseClass: { type: Boolean, required: false, default: (function () {
|
|
76275
|
-
return useGetGlobalDefaultProp(propsKey
|
|
76308
|
+
return useGetGlobalDefaultProp(propsKey, 'useBaseClass', true);
|
|
76276
76309
|
}) },
|
|
76277
76310
|
spanMethod: { type: null, required: false },
|
|
76278
76311
|
treeProps: { type: Object, required: false },
|
|
@@ -76362,7 +76395,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76362
76395
|
: (vue.openBlock(), vue.createBlock(vue.unref(BaseEmpty), { key: 1 }))
|
|
76363
76396
|
]; }),
|
|
76364
76397
|
default: vue.withCtx(function () { return [
|
|
76365
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.columns, function (column) {
|
|
76398
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.columns, function (column, index) {
|
|
76366
76399
|
return (vue.openBlock(), vue.createBlock(vue.unref(BaseTableColumn), vue.mergeProps({
|
|
76367
76400
|
key: column.prop,
|
|
76368
76401
|
pageAllData: __props.data,
|
|
@@ -76372,11 +76405,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76372
76405
|
getSelectionRows: vue.unref(getSelectionRows),
|
|
76373
76406
|
addSelectionRow: vue.unref(addSelectionRow),
|
|
76374
76407
|
removeSelectionRow: vue.unref(removeSelectionRow),
|
|
76375
|
-
clearSelectionRows: vue.unref(clearSelectionRows)
|
|
76408
|
+
clearSelectionRows: vue.unref(clearSelectionRows),
|
|
76409
|
+
isBothEnds: !index || index === __props.columns.length - 1
|
|
76376
76410
|
}, column, {
|
|
76377
76411
|
onSelect: handleColumnSelect,
|
|
76378
76412
|
onSelectAll: handleColumnSelectAll
|
|
76379
|
-
}), null, 16 /* FULL_PROPS */, ["pageAllData", "treeProps", "selectionIds", "selectionRows", "getSelectionRows", "addSelectionRow", "removeSelectionRow", "clearSelectionRows"]));
|
|
76413
|
+
}), null, 16 /* FULL_PROPS */, ["pageAllData", "treeProps", "selectionIds", "selectionRows", "getSelectionRows", "addSelectionRow", "removeSelectionRow", "clearSelectionRows", "isBothEnds"]));
|
|
76380
76414
|
}), 128 /* KEYED_FRAGMENT */))
|
|
76381
76415
|
]; }),
|
|
76382
76416
|
_: 1 /* STABLE */
|
|
@@ -76388,7 +76422,6 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76388
76422
|
script$a.__file = "packages/base/table/table.vue";
|
|
76389
76423
|
|
|
76390
76424
|
var _hoisted_1$6 = ["onClick"];
|
|
76391
|
-
var propsKey = 'table-column'; // 解决defineProps作用域问题
|
|
76392
76425
|
var __default__$9 = {
|
|
76393
76426
|
name: 'base-table-column'
|
|
76394
76427
|
};
|
|
@@ -76407,11 +76440,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76407
76440
|
sortBy: { type: [Array, String, Function], required: false },
|
|
76408
76441
|
sortOrders: { type: Array, required: false },
|
|
76409
76442
|
showOverflowTooltip: { type: Boolean, required: false, default: true },
|
|
76410
|
-
align: { type: String, required: false
|
|
76443
|
+
align: { type: String, required: false },
|
|
76411
76444
|
headerAlign: { type: String, required: false },
|
|
76412
76445
|
className: { type: String, required: false },
|
|
76413
76446
|
labelClassName: { type: String, required: false },
|
|
76414
76447
|
children: { type: Array, required: false },
|
|
76448
|
+
isBothEnds: { type: Boolean, required: false },
|
|
76415
76449
|
renderHeader: { type: Function, required: false },
|
|
76416
76450
|
renderHeaderSelectionLabel: { type: Function, required: false },
|
|
76417
76451
|
formatter: { type: Function, required: false, default: function (_a) {
|
|
@@ -76444,6 +76478,11 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76444
76478
|
var childrenKey = ((_b = props === null || props === void 0 ? void 0 : props.treeProps) === null || _b === void 0 ? void 0 : _b.children) || 'children';
|
|
76445
76479
|
var _selectionAllLoading = vue.ref(false);
|
|
76446
76480
|
var _selectionRowLoading = vue.ref(false);
|
|
76481
|
+
var getAlign = vue.computed(function () {
|
|
76482
|
+
if ((props === null || props === void 0 ? void 0 : props.isBothEnds) || (props === null || props === void 0 ? void 0 : props.type))
|
|
76483
|
+
return (props === null || props === void 0 ? void 0 : props.align) || 'center';
|
|
76484
|
+
return (props === null || props === void 0 ? void 0 : props.align) || 'left';
|
|
76485
|
+
});
|
|
76447
76486
|
var BaseTableColumnHeaderSelectionLabelRender = vue.defineComponent({
|
|
76448
76487
|
name: 'table-column-header-selection-label-render',
|
|
76449
76488
|
props: ['size'],
|
|
@@ -76727,7 +76766,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76727
76766
|
sortMethod: __props.sortMethod,
|
|
76728
76767
|
sortBy: __props.sortBy,
|
|
76729
76768
|
sortOrders: __props.sortOrders,
|
|
76730
|
-
align:
|
|
76769
|
+
align: vue.unref(getAlign),
|
|
76731
76770
|
headerAlign: __props.headerAlign,
|
|
76732
76771
|
className: __props.className,
|
|
76733
76772
|
labelClassName: __props.labelClassName,
|
|
@@ -76985,7 +77024,9 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
76985
77024
|
replace: item.replace
|
|
76986
77025
|
}, {
|
|
76987
77026
|
default: vue.withCtx(function () { return [
|
|
76988
|
-
vue.
|
|
77027
|
+
vue.createElementVNode("span", {
|
|
77028
|
+
class: vue.normalizeClass(["title", { last: index === __props.data.length - 1 }])
|
|
77029
|
+
}, vue.toDisplayString(item.name), 3 /* TEXT, CLASS */)
|
|
76989
77030
|
]; }),
|
|
76990
77031
|
_: 2 /* DYNAMIC */
|
|
76991
77032
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["to", "replace"]));
|
|
@@ -77005,7 +77046,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77005
77046
|
var _hoisted_2$4 = { class: "body-top" };
|
|
77006
77047
|
var _hoisted_3$4 = {
|
|
77007
77048
|
key: 1,
|
|
77008
|
-
style: { "padding": "
|
|
77049
|
+
style: { "padding": "16px 0" }
|
|
77009
77050
|
};
|
|
77010
77051
|
var __default__$5 = {
|
|
77011
77052
|
name: 'base-layout-body'
|
|
@@ -77434,7 +77475,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77434
77475
|
contentStyle: { type: null, required: false },
|
|
77435
77476
|
menuType: { type: String, required: false, default: 'vertical' },
|
|
77436
77477
|
renderMenuTop: { type: Function, required: false },
|
|
77437
|
-
trigger: { type: String, required: false, default: '
|
|
77478
|
+
trigger: { type: String, required: false, default: 'fold' }
|
|
77438
77479
|
}, emits: ["menuClick"], setup: function (__props, _a) {
|
|
77439
77480
|
var expose = _a.expose, emits = _a.emit;
|
|
77440
77481
|
var props = __props;
|
|
@@ -77804,7 +77845,7 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77804
77845
|
clearSearchValues: function () { var _a, _b; return (_b = (_a = XrkSearchRef.value) === null || _a === void 0 ? void 0 : _a.clearSearchValues) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
77805
77846
|
setSearchValue: function (key, value) { var _a, _b; return (_b = (_a = XrkSearchRef.value) === null || _a === void 0 ? void 0 : _a.setSearchValue) === null || _b === void 0 ? void 0 : _b.call(_a, key, value); },
|
|
77806
77847
|
getSearchValue: function () { var _a, _b; return (_b = (_a = XrkSearchRef.value) === null || _a === void 0 ? void 0 : _a.getSearchValue) === null || _b === void 0 ? void 0 : _b.call(_a); },
|
|
77807
|
-
initCurrentList: function (customQuery) { return __awaiter(_this, void 0, void 0, function () {
|
|
77848
|
+
initCurrentList: function (customQuery, config) { return __awaiter(_this, void 0, void 0, function () {
|
|
77808
77849
|
return __generator(this, function (_a) {
|
|
77809
77850
|
switch (_a.label) {
|
|
77810
77851
|
case 0:
|
|
@@ -77812,8 +77853,12 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`);
|
|
|
77812
77853
|
return [4 /*yield*/, (getList === null || getList === void 0 ? void 0 : getList(__assign(__assign({}, (customQuery || {})), query.value)))];
|
|
77813
77854
|
case 1:
|
|
77814
77855
|
_a.sent();
|
|
77815
|
-
|
|
77816
|
-
|
|
77856
|
+
if (!(config === null || config === void 0 ? void 0 : config.noChange)) {
|
|
77857
|
+
if (!(config === null || config === void 0 ? void 0 : config.noToTop))
|
|
77858
|
+
tableToTop();
|
|
77859
|
+
if (!(config === null || config === void 0 ? void 0 : config.noScroll))
|
|
77860
|
+
checkTableNeedScroll();
|
|
77861
|
+
}
|
|
77817
77862
|
return [2 /*return*/];
|
|
77818
77863
|
}
|
|
77819
77864
|
});
|