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.esm.js
CHANGED
|
@@ -863,52 +863,59 @@ function easeInOutCubic(t, b, c, d) {
|
|
|
863
863
|
return cc / 2 * ((t -= 2) * t * t + 2) + b;
|
|
864
864
|
}
|
|
865
865
|
|
|
866
|
-
/**
|
|
867
|
-
*
|
|
868
|
-
*
|
|
869
|
-
*
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
const
|
|
879
|
-
const
|
|
880
|
-
const
|
|
881
|
-
const
|
|
882
|
-
const
|
|
883
|
-
const
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
const
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
const
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
const
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
);
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
866
|
+
/**
|
|
867
|
+
* Make a map and return a function for checking if a key
|
|
868
|
+
* is in that map.
|
|
869
|
+
* IMPORTANT: all calls of this function must be prefixed with
|
|
870
|
+
* \/\*#\_\_PURE\_\_\*\/
|
|
871
|
+
* So that rollup can tree-shake them if necessary.
|
|
872
|
+
*/
|
|
873
|
+
|
|
874
|
+
(process.env.NODE_ENV !== 'production')
|
|
875
|
+
? Object.freeze({})
|
|
876
|
+
: {};
|
|
877
|
+
(process.env.NODE_ENV !== 'production') ? Object.freeze([]) : [];
|
|
878
|
+
const NOOP = () => { };
|
|
879
|
+
const hasOwnProperty$p = Object.prototype.hasOwnProperty;
|
|
880
|
+
const hasOwn = (val, key) => hasOwnProperty$p.call(val, key);
|
|
881
|
+
const isArray$1 = Array.isArray;
|
|
882
|
+
const isDate$1 = (val) => val instanceof Date;
|
|
883
|
+
const isFunction$2 = (val) => typeof val === 'function';
|
|
884
|
+
const isString$2 = (val) => typeof val === 'string';
|
|
885
|
+
const isObject$1 = (val) => val !== null && typeof val === 'object';
|
|
886
|
+
const isPromise = (val) => {
|
|
887
|
+
return isObject$1(val) && isFunction$2(val.then) && isFunction$2(val.catch);
|
|
888
|
+
};
|
|
889
|
+
const objectToString$1 = Object.prototype.toString;
|
|
890
|
+
const toTypeString = (value) => objectToString$1.call(value);
|
|
891
|
+
const toRawType = (value) => {
|
|
892
|
+
// extract "RawType" from strings like "[object RawType]"
|
|
893
|
+
return toTypeString(value).slice(8, -1);
|
|
894
|
+
};
|
|
895
|
+
const isPlainObject$1 = (val) => toTypeString(val) === '[object Object]';
|
|
896
|
+
const cacheStringFunction = (fn) => {
|
|
897
|
+
const cache = Object.create(null);
|
|
898
|
+
return ((str) => {
|
|
899
|
+
const hit = cache[str];
|
|
900
|
+
return hit || (cache[str] = fn(str));
|
|
901
|
+
});
|
|
902
|
+
};
|
|
903
|
+
const camelizeRE = /-(\w)/g;
|
|
904
|
+
/**
|
|
905
|
+
* @private
|
|
906
|
+
*/
|
|
907
|
+
const camelize = cacheStringFunction((str) => {
|
|
908
|
+
return str.replace(camelizeRE, (_, c) => (c ? c.toUpperCase() : ''));
|
|
909
|
+
});
|
|
910
|
+
const hyphenateRE = /\B([A-Z])/g;
|
|
911
|
+
/**
|
|
912
|
+
* @private
|
|
913
|
+
*/
|
|
914
|
+
const hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, '-$1').toLowerCase());
|
|
915
|
+
/**
|
|
916
|
+
* @private
|
|
917
|
+
*/
|
|
918
|
+
const capitalize$2 = cacheStringFunction((str) => str.charAt(0).toUpperCase() + str.slice(1));
|
|
912
919
|
|
|
913
920
|
/** Detect free variable `global` from Node.js. */
|
|
914
921
|
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
@@ -21106,9 +21113,8 @@ function getOppositeAxis(axis) {
|
|
|
21106
21113
|
function getAxisLength(axis) {
|
|
21107
21114
|
return axis === 'y' ? 'height' : 'width';
|
|
21108
21115
|
}
|
|
21109
|
-
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
21110
21116
|
function getSideAxis(placement) {
|
|
21111
|
-
return
|
|
21117
|
+
return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
|
|
21112
21118
|
}
|
|
21113
21119
|
function getAlignmentAxis(placement) {
|
|
21114
21120
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -21133,19 +21139,19 @@ function getExpandedPlacements(placement) {
|
|
|
21133
21139
|
function getOppositeAlignmentPlacement(placement) {
|
|
21134
21140
|
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
21135
21141
|
}
|
|
21136
|
-
const lrPlacement = ['left', 'right'];
|
|
21137
|
-
const rlPlacement = ['right', 'left'];
|
|
21138
|
-
const tbPlacement = ['top', 'bottom'];
|
|
21139
|
-
const btPlacement = ['bottom', 'top'];
|
|
21140
21142
|
function getSideList(side, isStart, rtl) {
|
|
21143
|
+
const lr = ['left', 'right'];
|
|
21144
|
+
const rl = ['right', 'left'];
|
|
21145
|
+
const tb = ['top', 'bottom'];
|
|
21146
|
+
const bt = ['bottom', 'top'];
|
|
21141
21147
|
switch (side) {
|
|
21142
21148
|
case 'top':
|
|
21143
21149
|
case 'bottom':
|
|
21144
|
-
if (rtl) return isStart ?
|
|
21145
|
-
return isStart ?
|
|
21150
|
+
if (rtl) return isStart ? rl : lr;
|
|
21151
|
+
return isStart ? lr : rl;
|
|
21146
21152
|
case 'left':
|
|
21147
21153
|
case 'right':
|
|
21148
|
-
return isStart ?
|
|
21154
|
+
return isStart ? tb : bt;
|
|
21149
21155
|
default:
|
|
21150
21156
|
return [];
|
|
21151
21157
|
}
|
|
@@ -21668,22 +21674,16 @@ const flip$1 = function (options) {
|
|
|
21668
21674
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
21669
21675
|
const nextPlacement = placements[nextIndex];
|
|
21670
21676
|
if (nextPlacement) {
|
|
21671
|
-
|
|
21672
|
-
|
|
21673
|
-
|
|
21674
|
-
|
|
21675
|
-
|
|
21676
|
-
|
|
21677
|
-
|
|
21678
|
-
|
|
21679
|
-
|
|
21680
|
-
|
|
21681
|
-
},
|
|
21682
|
-
reset: {
|
|
21683
|
-
placement: nextPlacement
|
|
21684
|
-
}
|
|
21685
|
-
};
|
|
21686
|
-
}
|
|
21677
|
+
// Try next placement and re-run the lifecycle.
|
|
21678
|
+
return {
|
|
21679
|
+
data: {
|
|
21680
|
+
index: nextIndex,
|
|
21681
|
+
overflows: overflowsData
|
|
21682
|
+
},
|
|
21683
|
+
reset: {
|
|
21684
|
+
placement: nextPlacement
|
|
21685
|
+
}
|
|
21686
|
+
};
|
|
21687
21687
|
}
|
|
21688
21688
|
|
|
21689
21689
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
@@ -21929,8 +21929,6 @@ const inline = function (options) {
|
|
|
21929
21929
|
};
|
|
21930
21930
|
};
|
|
21931
21931
|
|
|
21932
|
-
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
|
21933
|
-
|
|
21934
21932
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
21935
21933
|
// Derivable.
|
|
21936
21934
|
|
|
@@ -21944,7 +21942,7 @@ async function convertValueToCoords(state, options) {
|
|
|
21944
21942
|
const side = getSide(placement);
|
|
21945
21943
|
const alignment = getAlignment(placement);
|
|
21946
21944
|
const isVertical = getSideAxis(placement) === 'y';
|
|
21947
|
-
const mainAxisMulti =
|
|
21945
|
+
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
21948
21946
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
21949
21947
|
const rawValue = evaluate(options, state);
|
|
21950
21948
|
|
|
@@ -22144,7 +22142,7 @@ const limitShift = function (options) {
|
|
|
22144
22142
|
if (checkCrossAxis) {
|
|
22145
22143
|
var _middlewareData$offse, _middlewareData$offse2;
|
|
22146
22144
|
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
22147
|
-
const isOriginSide =
|
|
22145
|
+
const isOriginSide = ['top', 'left'].includes(getSide(placement));
|
|
22148
22146
|
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);
|
|
22149
22147
|
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);
|
|
22150
22148
|
if (crossAxisCoord < limitMin) {
|
|
@@ -22289,7 +22287,6 @@ function isShadowRoot(value) {
|
|
|
22289
22287
|
}
|
|
22290
22288
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
22291
22289
|
}
|
|
22292
|
-
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
22293
22290
|
function isOverflowElement(element) {
|
|
22294
22291
|
const {
|
|
22295
22292
|
overflow,
|
|
@@ -22297,32 +22294,27 @@ function isOverflowElement(element) {
|
|
|
22297
22294
|
overflowY,
|
|
22298
22295
|
display
|
|
22299
22296
|
} = getComputedStyle$1(element);
|
|
22300
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
|
22297
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
22301
22298
|
}
|
|
22302
|
-
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
22303
22299
|
function isTableElement(element) {
|
|
22304
|
-
return
|
|
22300
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
22305
22301
|
}
|
|
22306
|
-
const topLayerSelectors = [':popover-open', ':modal'];
|
|
22307
22302
|
function isTopLayer(element) {
|
|
22308
|
-
return
|
|
22303
|
+
return [':popover-open', ':modal'].some(selector => {
|
|
22309
22304
|
try {
|
|
22310
22305
|
return element.matches(selector);
|
|
22311
|
-
} catch (
|
|
22306
|
+
} catch (e) {
|
|
22312
22307
|
return false;
|
|
22313
22308
|
}
|
|
22314
22309
|
});
|
|
22315
22310
|
}
|
|
22316
|
-
const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
|
|
22317
|
-
const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
|
|
22318
|
-
const containValues = ['paint', 'layout', 'strict', 'content'];
|
|
22319
22311
|
function isContainingBlock(elementOrCss) {
|
|
22320
22312
|
const webkit = isWebKit();
|
|
22321
22313
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
22322
22314
|
|
|
22323
22315
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
22324
22316
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
22325
|
-
return
|
|
22317
|
+
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));
|
|
22326
22318
|
}
|
|
22327
22319
|
function getContainingBlock(element) {
|
|
22328
22320
|
let currentNode = getParentNode(element);
|
|
@@ -22340,9 +22332,8 @@ function isWebKit() {
|
|
|
22340
22332
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
22341
22333
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
22342
22334
|
}
|
|
22343
|
-
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
22344
22335
|
function isLastTraversableNode(node) {
|
|
22345
|
-
return
|
|
22336
|
+
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
22346
22337
|
}
|
|
22347
22338
|
function getComputedStyle$1(element) {
|
|
22348
22339
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -22647,7 +22638,6 @@ function getViewportRect(element, strategy) {
|
|
|
22647
22638
|
};
|
|
22648
22639
|
}
|
|
22649
22640
|
|
|
22650
|
-
const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
|
|
22651
22641
|
// Returns the inner client rect, subtracting scrollbars if present.
|
|
22652
22642
|
function getInnerBoundingClientRect(element, strategy) {
|
|
22653
22643
|
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
@@ -22712,7 +22702,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
22712
22702
|
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
22713
22703
|
currentContainingBlockComputedStyle = null;
|
|
22714
22704
|
}
|
|
22715
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle &&
|
|
22705
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
22716
22706
|
if (shouldDropCurrentNode) {
|
|
22717
22707
|
// Drop non-containing blocks.
|
|
22718
22708
|
result = result.filter(ancestor => ancestor !== currentNode);
|
|
@@ -22775,12 +22765,6 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
22775
22765
|
scrollTop: 0
|
|
22776
22766
|
};
|
|
22777
22767
|
const offsets = createCoords(0);
|
|
22778
|
-
|
|
22779
|
-
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
22780
|
-
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
22781
|
-
function setLeftRTLScrollbarOffset() {
|
|
22782
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
22783
|
-
}
|
|
22784
22768
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
22785
22769
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
22786
22770
|
scroll = getNodeScroll(offsetParent);
|
|
@@ -22790,12 +22774,11 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
22790
22774
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
22791
22775
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
22792
22776
|
} else if (documentElement) {
|
|
22793
|
-
|
|
22777
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
22778
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
22779
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
22794
22780
|
}
|
|
22795
22781
|
}
|
|
22796
|
-
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
22797
|
-
setLeftRTLScrollbarOffset();
|
|
22798
|
-
}
|
|
22799
22782
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
22800
22783
|
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
22801
22784
|
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
@@ -22972,7 +22955,7 @@ function observeMove(element, onMove) {
|
|
|
22972
22955
|
// Handle <iframe>s
|
|
22973
22956
|
root: root.ownerDocument
|
|
22974
22957
|
});
|
|
22975
|
-
} catch (
|
|
22958
|
+
} catch (e) {
|
|
22976
22959
|
io = new IntersectionObserver(handleObserve, options);
|
|
22977
22960
|
}
|
|
22978
22961
|
io.observe(element);
|
|
@@ -71512,7 +71495,7 @@ script$F.__file = "packages/base/button/button.vue";
|
|
|
71512
71495
|
|
|
71513
71496
|
var _hoisted_1$i = /*#__PURE__*/ createTextVNode("更多");
|
|
71514
71497
|
var _hoisted_2$b = { class: "btn-group" };
|
|
71515
|
-
var _hoisted_3$
|
|
71498
|
+
var _hoisted_3$a = ["onClick"];
|
|
71516
71499
|
var __default__$C = {
|
|
71517
71500
|
name: 'base-button-more'
|
|
71518
71501
|
};
|
|
@@ -71631,7 +71614,7 @@ var script$E = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$C
|
|
|
71631
71614
|
(_b = (_a = popoverRef.value) === null || _a === void 0 ? void 0 : _a.hide) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
71632
71615
|
(_c = (btn.onClick || btn.click)) === null || _c === void 0 ? void 0 : _c();
|
|
71633
71616
|
}
|
|
71634
|
-
}, toDisplayString(btn.content), 11 /* TEXT, CLASS, PROPS */, _hoisted_3$
|
|
71617
|
+
}, toDisplayString(btn.content), 11 /* TEXT, CLASS, PROPS */, _hoisted_3$a));
|
|
71635
71618
|
}), 128 /* KEYED_FRAGMENT */))
|
|
71636
71619
|
])
|
|
71637
71620
|
]; }),
|
|
@@ -71847,7 +71830,7 @@ var _hoisted_2$a = {
|
|
|
71847
71830
|
key: 0,
|
|
71848
71831
|
style: { "position": "absolute", "width": "100%", "height": "100%", "left": "0", "top": "0" }
|
|
71849
71832
|
};
|
|
71850
|
-
var _hoisted_3$
|
|
71833
|
+
var _hoisted_3$9 = {
|
|
71851
71834
|
key: 0,
|
|
71852
71835
|
style: { "position": "absolute", "width": "100%", "height": "100%", "left": "0", "top": "0" }
|
|
71853
71836
|
};
|
|
@@ -72091,7 +72074,7 @@ var script$C = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$A
|
|
|
72091
72074
|
var _a;
|
|
72092
72075
|
return [
|
|
72093
72076
|
((_a = unref(slots)) === null || _a === void 0 ? void 0 : _a.default)
|
|
72094
|
-
? (openBlock(), createElementBlock("div", _hoisted_3$
|
|
72077
|
+
? (openBlock(), createElementBlock("div", _hoisted_3$9, [
|
|
72095
72078
|
renderSlot(_ctx.$slots, "default", {
|
|
72096
72079
|
slotScope: { activeIndex: activeIndex.value }
|
|
72097
72080
|
})
|
|
@@ -72584,7 +72567,7 @@ var BaseCheckboxButton = script$x;
|
|
|
72584
72567
|
var BaseCheckboxGroup = script$v;
|
|
72585
72568
|
var BaseCheckbox = script$w;
|
|
72586
72569
|
|
|
72587
|
-
var propsKey$
|
|
72570
|
+
var propsKey$1 = 'date-picker'; // 解决defineProps作用域问题
|
|
72588
72571
|
var __default__$s = {
|
|
72589
72572
|
name: 'base-date-picker'
|
|
72590
72573
|
};
|
|
@@ -72610,7 +72593,7 @@ var script$u = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$s
|
|
|
72610
72593
|
clearIcon: { type: null, required: false },
|
|
72611
72594
|
validateEvent: { type: Boolean, required: false },
|
|
72612
72595
|
disabledDate: { type: Function, required: false },
|
|
72613
|
-
shortcuts: { type: null, required: false, default: (function () { return useGetGlobalDefaultProp(propsKey$
|
|
72596
|
+
shortcuts: { type: null, required: false, default: (function () { return useGetGlobalDefaultProp(propsKey$1, 'shortcuts', []); }) },
|
|
72614
72597
|
cellClassName: { type: Function, required: false },
|
|
72615
72598
|
teleported: { type: Boolean, required: false, default: true }
|
|
72616
72599
|
}, emits: ["change", "visibleChange", "calendarChange", "update:modelValue"], setup: function (__props, _a) {
|
|
@@ -74266,8 +74249,9 @@ var script$k = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$i
|
|
|
74266
74249
|
script$k.__scopeId = "data-v-17eda5db";
|
|
74267
74250
|
script$k.__file = "packages/base/form/form-item.vue";
|
|
74268
74251
|
|
|
74269
|
-
var _hoisted_1$c = { class: "
|
|
74270
|
-
var _hoisted_2$8 = { class: "btn-group" };
|
|
74252
|
+
var _hoisted_1$c = { class: "btn-group" };
|
|
74253
|
+
var _hoisted_2$8 = { class: "btn-group-left" };
|
|
74254
|
+
var _hoisted_3$8 = { class: "btn-group-right" };
|
|
74271
74255
|
var __default__$h = {
|
|
74272
74256
|
name: 'xrk-search'
|
|
74273
74257
|
};
|
|
@@ -74293,6 +74277,21 @@ var script$j = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$h
|
|
|
74293
74277
|
var searchFormRef = ref();
|
|
74294
74278
|
var searchBtn = computed(function () { return (__assign({ text: '搜索', show: true }, props.searchBtn)); });
|
|
74295
74279
|
var resetBtn = computed(function () { return (__assign({ text: '重置', show: true }, props.resetBtn)); });
|
|
74280
|
+
var columnNum = ref(5);
|
|
74281
|
+
var searchStyle = ref({
|
|
74282
|
+
'--column-num': columnNum.value,
|
|
74283
|
+
'--column-len': props.columns.length
|
|
74284
|
+
});
|
|
74285
|
+
var isExpand = ref(false);
|
|
74286
|
+
var getCurrentColumns = computed(function () {
|
|
74287
|
+
var _a;
|
|
74288
|
+
if (isExpand.value) {
|
|
74289
|
+
return props === null || props === void 0 ? void 0 : props.columns;
|
|
74290
|
+
}
|
|
74291
|
+
else {
|
|
74292
|
+
return (_a = props === null || props === void 0 ? void 0 : props.columns) === null || _a === void 0 ? void 0 : _a.slice(0, columnNum.value * 2);
|
|
74293
|
+
}
|
|
74294
|
+
});
|
|
74296
74295
|
var _getPleaseText = function (type) {
|
|
74297
74296
|
if (['input', 'inputNumber'].includes(type)) {
|
|
74298
74297
|
return '请输入';
|
|
@@ -74426,14 +74425,21 @@ var script$j = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$h
|
|
|
74426
74425
|
handleResetClick: handleResetClick
|
|
74427
74426
|
});
|
|
74428
74427
|
return function (_ctx, _cache) {
|
|
74429
|
-
|
|
74428
|
+
var _a, _b;
|
|
74429
|
+
return (openBlock(), createElementBlock("div", {
|
|
74430
|
+
class: normalizeClass(["xrk-search", {
|
|
74431
|
+
'xrk-search-line': ((_a = __props.columns) === null || _a === void 0 ? void 0 : _a.length) < columnNum.value
|
|
74432
|
+
}]),
|
|
74433
|
+
style: normalizeStyle(searchStyle.value)
|
|
74434
|
+
}, [
|
|
74430
74435
|
createVNode(script$b, {
|
|
74431
74436
|
model: searchValue,
|
|
74432
74437
|
ref_key: "searchFormRef",
|
|
74433
|
-
ref: searchFormRef
|
|
74438
|
+
ref: searchFormRef,
|
|
74439
|
+
"label-position": "top"
|
|
74434
74440
|
}, {
|
|
74435
74441
|
default: withCtx(function () { return [
|
|
74436
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
74442
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getCurrentColumns), function (_a) {
|
|
74437
74443
|
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;
|
|
74438
74444
|
return (openBlock(), createBlock(script$k, {
|
|
74439
74445
|
prop: prop,
|
|
@@ -74446,7 +74452,7 @@ var script$j = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$h
|
|
|
74446
74452
|
type
|
|
74447
74453
|
? (openBlock(), createBlock(resolveDynamicComponent(unref(formItemComponents)[type]), mergeProps({
|
|
74448
74454
|
key: 0,
|
|
74449
|
-
style: __assign({
|
|
74455
|
+
style: __assign(__assign({}, (style || {})), { minWidth: '100%' })
|
|
74450
74456
|
}, __assign(__assign(__assign(__assign({}, computedDefaultConfig({ label: label, prop: prop, type: type })), { clearable: true }), config), proxyColumnListener(listener || {})), {
|
|
74451
74457
|
disabled: unref(isFunction)(disabled) ? disabled(searchValue) : disabled,
|
|
74452
74458
|
modelValue: searchValue[prop],
|
|
@@ -74456,45 +74462,72 @@ var script$j = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$h
|
|
|
74456
74462
|
]; }),
|
|
74457
74463
|
_: 2 /* DYNAMIC */
|
|
74458
74464
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["prop", "label", "labelWidth", "rules"]));
|
|
74459
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
74460
|
-
createElementVNode("div", _hoisted_2$8, [
|
|
74461
|
-
(unref(searchBtn).show)
|
|
74462
|
-
? (openBlock(), createBlock(script$F, {
|
|
74463
|
-
key: 0,
|
|
74464
|
-
click: handleSearchClick,
|
|
74465
|
-
icon: unref(search_default)
|
|
74466
|
-
}, {
|
|
74467
|
-
default: withCtx(function () { return [
|
|
74468
|
-
createTextVNode(toDisplayString(unref(searchBtn).text), 1 /* TEXT */)
|
|
74469
|
-
]; }),
|
|
74470
|
-
_: 1 /* STABLE */
|
|
74471
|
-
}, 8 /* PROPS */, ["icon"]))
|
|
74472
|
-
: createCommentVNode("v-if", true),
|
|
74473
|
-
(unref(resetBtn).show)
|
|
74474
|
-
? (openBlock(), createBlock(script$F, {
|
|
74475
|
-
key: 1,
|
|
74476
|
-
type: "default",
|
|
74477
|
-
plain: true,
|
|
74478
|
-
click: handleResetClick
|
|
74479
|
-
}, {
|
|
74480
|
-
default: withCtx(function () { return [
|
|
74481
|
-
createTextVNode(toDisplayString(unref(resetBtn).text), 1 /* TEXT */)
|
|
74482
|
-
]; }),
|
|
74483
|
-
_: 1 /* STABLE */
|
|
74484
|
-
}))
|
|
74485
|
-
: createCommentVNode("v-if", true),
|
|
74486
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.otherComponents, function (_a, index) {
|
|
74487
|
-
var render = _a.render;
|
|
74488
|
-
return (openBlock(), createBlock(unref(BaseSearchRender), {
|
|
74489
|
-
render: render,
|
|
74490
|
-
key: index
|
|
74491
|
-
}, null, 8 /* PROPS */, ["render"]));
|
|
74492
|
-
}), 128 /* KEYED_FRAGMENT */))
|
|
74493
|
-
])
|
|
74465
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
74494
74466
|
]; }),
|
|
74495
74467
|
_: 1 /* STABLE */
|
|
74496
|
-
}, 8 /* PROPS */, ["model"])
|
|
74497
|
-
|
|
74468
|
+
}, 8 /* PROPS */, ["model"]),
|
|
74469
|
+
createElementVNode("div", _hoisted_1$c, [
|
|
74470
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
74471
|
+
(unref(searchBtn).show)
|
|
74472
|
+
? (openBlock(), createBlock(script$F, {
|
|
74473
|
+
key: 0,
|
|
74474
|
+
click: handleSearchClick,
|
|
74475
|
+
icon: unref(search_default)
|
|
74476
|
+
}, {
|
|
74477
|
+
default: withCtx(function () { return [
|
|
74478
|
+
createTextVNode(toDisplayString(unref(searchBtn).text), 1 /* TEXT */)
|
|
74479
|
+
]; }),
|
|
74480
|
+
_: 1 /* STABLE */
|
|
74481
|
+
}, 8 /* PROPS */, ["icon"]))
|
|
74482
|
+
: createCommentVNode("v-if", true),
|
|
74483
|
+
(unref(resetBtn).show)
|
|
74484
|
+
? (openBlock(), createBlock(script$F, {
|
|
74485
|
+
key: 1,
|
|
74486
|
+
type: "default",
|
|
74487
|
+
plain: true,
|
|
74488
|
+
click: handleResetClick
|
|
74489
|
+
}, {
|
|
74490
|
+
default: withCtx(function () { return [
|
|
74491
|
+
createTextVNode(toDisplayString(unref(resetBtn).text), 1 /* TEXT */)
|
|
74492
|
+
]; }),
|
|
74493
|
+
_: 1 /* STABLE */
|
|
74494
|
+
}))
|
|
74495
|
+
: createCommentVNode("v-if", true),
|
|
74496
|
+
(__props.columns && ((_b = __props.columns) === null || _b === void 0 ? void 0 : _b.length) > columnNum.value * 2)
|
|
74497
|
+
? (openBlock(), createBlock(script$F, {
|
|
74498
|
+
key: 2,
|
|
74499
|
+
type: "default",
|
|
74500
|
+
onClick: _cache[0] || (_cache[0] = function () { return (isExpand.value = !isExpand.value); })
|
|
74501
|
+
}, {
|
|
74502
|
+
default: withCtx(function () { return [
|
|
74503
|
+
createTextVNode(toDisplayString(!isExpand.value ? '展开' : '收起') + " ", 1 /* TEXT */),
|
|
74504
|
+
createVNode(unref(BaseIcon), { style: { "margin-left": "5px" } }, {
|
|
74505
|
+
default: withCtx(function () { return [
|
|
74506
|
+
withDirectives(createVNode(unref(arrow_up_default), null, null, 512 /* NEED_PATCH */), [
|
|
74507
|
+
[vShow, isExpand.value]
|
|
74508
|
+
]),
|
|
74509
|
+
withDirectives(createVNode(unref(arrow_down_default), null, null, 512 /* NEED_PATCH */), [
|
|
74510
|
+
[vShow, !isExpand.value]
|
|
74511
|
+
])
|
|
74512
|
+
]; }),
|
|
74513
|
+
_: 1 /* STABLE */
|
|
74514
|
+
})
|
|
74515
|
+
]; }),
|
|
74516
|
+
_: 1 /* STABLE */
|
|
74517
|
+
}))
|
|
74518
|
+
: createCommentVNode("v-if", true)
|
|
74519
|
+
]),
|
|
74520
|
+
createElementVNode("div", _hoisted_3$8, [
|
|
74521
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.otherComponents, function (_a, index) {
|
|
74522
|
+
var render = _a.render;
|
|
74523
|
+
return (openBlock(), createBlock(unref(BaseSearchRender), {
|
|
74524
|
+
render: render,
|
|
74525
|
+
key: index
|
|
74526
|
+
}, null, 8 /* PROPS */, ["render"]));
|
|
74527
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
74528
|
+
])
|
|
74529
|
+
])
|
|
74530
|
+
], 6 /* CLASS, STYLE */));
|
|
74498
74531
|
};
|
|
74499
74532
|
} }));
|
|
74500
74533
|
|
|
@@ -76242,7 +76275,7 @@ var addParentIds = function (_a) {
|
|
|
76242
76275
|
});
|
|
76243
76276
|
};
|
|
76244
76277
|
|
|
76245
|
-
var propsKey
|
|
76278
|
+
var propsKey = 'table'; // 解决defineProps作用域问题
|
|
76246
76279
|
var __default__$a = {
|
|
76247
76280
|
name: 'base-table'
|
|
76248
76281
|
};
|
|
@@ -76251,8 +76284,8 @@ var script$a = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$a
|
|
|
76251
76284
|
columns: { type: null, required: true },
|
|
76252
76285
|
height: { type: [String, Number], required: false, default: '100%' },
|
|
76253
76286
|
maxHeight: { type: [String, Number], required: false },
|
|
76254
|
-
stripe: { type: Boolean, required: false, default:
|
|
76255
|
-
border: { type: Boolean, required: false, default: (function () { return useGetGlobalDefaultProp(propsKey
|
|
76287
|
+
stripe: { type: Boolean, required: false, default: false },
|
|
76288
|
+
border: { type: Boolean, required: false, default: (function () { return useGetGlobalDefaultProp(propsKey, 'border', false); }) },
|
|
76256
76289
|
size: { type: String, required: false, default: 'large' },
|
|
76257
76290
|
fit: { type: Boolean, required: false, default: true },
|
|
76258
76291
|
rowClassName: { type: null, required: false },
|
|
@@ -76269,7 +76302,7 @@ var script$a = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$a
|
|
|
76269
76302
|
emptyText: { type: String, required: false, default: '暂无数据' },
|
|
76270
76303
|
defaultSort: { type: Object, required: false },
|
|
76271
76304
|
useBaseClass: { type: Boolean, required: false, default: (function () {
|
|
76272
|
-
return useGetGlobalDefaultProp(propsKey
|
|
76305
|
+
return useGetGlobalDefaultProp(propsKey, 'useBaseClass', true);
|
|
76273
76306
|
}) },
|
|
76274
76307
|
spanMethod: { type: null, required: false },
|
|
76275
76308
|
treeProps: { type: Object, required: false },
|
|
@@ -76359,7 +76392,7 @@ var script$a = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$a
|
|
|
76359
76392
|
: (openBlock(), createBlock(unref(BaseEmpty), { key: 1 }))
|
|
76360
76393
|
]; }),
|
|
76361
76394
|
default: withCtx(function () { return [
|
|
76362
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, function (column) {
|
|
76395
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, function (column, index) {
|
|
76363
76396
|
return (openBlock(), createBlock(unref(BaseTableColumn), mergeProps({
|
|
76364
76397
|
key: column.prop,
|
|
76365
76398
|
pageAllData: __props.data,
|
|
@@ -76369,11 +76402,12 @@ var script$a = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$a
|
|
|
76369
76402
|
getSelectionRows: unref(getSelectionRows),
|
|
76370
76403
|
addSelectionRow: unref(addSelectionRow),
|
|
76371
76404
|
removeSelectionRow: unref(removeSelectionRow),
|
|
76372
|
-
clearSelectionRows: unref(clearSelectionRows)
|
|
76405
|
+
clearSelectionRows: unref(clearSelectionRows),
|
|
76406
|
+
isBothEnds: !index || index === __props.columns.length - 1
|
|
76373
76407
|
}, column, {
|
|
76374
76408
|
onSelect: handleColumnSelect,
|
|
76375
76409
|
onSelectAll: handleColumnSelectAll
|
|
76376
|
-
}), null, 16 /* FULL_PROPS */, ["pageAllData", "treeProps", "selectionIds", "selectionRows", "getSelectionRows", "addSelectionRow", "removeSelectionRow", "clearSelectionRows"]));
|
|
76410
|
+
}), null, 16 /* FULL_PROPS */, ["pageAllData", "treeProps", "selectionIds", "selectionRows", "getSelectionRows", "addSelectionRow", "removeSelectionRow", "clearSelectionRows", "isBothEnds"]));
|
|
76377
76411
|
}), 128 /* KEYED_FRAGMENT */))
|
|
76378
76412
|
]; }),
|
|
76379
76413
|
_: 1 /* STABLE */
|
|
@@ -76385,7 +76419,6 @@ script$a.__scopeId = "data-v-968a9a5a";
|
|
|
76385
76419
|
script$a.__file = "packages/base/table/table.vue";
|
|
76386
76420
|
|
|
76387
76421
|
var _hoisted_1$6 = ["onClick"];
|
|
76388
|
-
var propsKey = 'table-column'; // 解决defineProps作用域问题
|
|
76389
76422
|
var __default__$9 = {
|
|
76390
76423
|
name: 'base-table-column'
|
|
76391
76424
|
};
|
|
@@ -76404,11 +76437,12 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
|
|
|
76404
76437
|
sortBy: { type: [Array, String, Function], required: false },
|
|
76405
76438
|
sortOrders: { type: Array, required: false },
|
|
76406
76439
|
showOverflowTooltip: { type: Boolean, required: false, default: true },
|
|
76407
|
-
align: { type: String, required: false
|
|
76440
|
+
align: { type: String, required: false },
|
|
76408
76441
|
headerAlign: { type: String, required: false },
|
|
76409
76442
|
className: { type: String, required: false },
|
|
76410
76443
|
labelClassName: { type: String, required: false },
|
|
76411
76444
|
children: { type: Array, required: false },
|
|
76445
|
+
isBothEnds: { type: Boolean, required: false },
|
|
76412
76446
|
renderHeader: { type: Function, required: false },
|
|
76413
76447
|
renderHeaderSelectionLabel: { type: Function, required: false },
|
|
76414
76448
|
formatter: { type: Function, required: false, default: function (_a) {
|
|
@@ -76441,6 +76475,11 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
|
|
|
76441
76475
|
var childrenKey = ((_b = props === null || props === void 0 ? void 0 : props.treeProps) === null || _b === void 0 ? void 0 : _b.children) || 'children';
|
|
76442
76476
|
var _selectionAllLoading = ref(false);
|
|
76443
76477
|
var _selectionRowLoading = ref(false);
|
|
76478
|
+
var getAlign = computed(function () {
|
|
76479
|
+
if ((props === null || props === void 0 ? void 0 : props.isBothEnds) || (props === null || props === void 0 ? void 0 : props.type))
|
|
76480
|
+
return (props === null || props === void 0 ? void 0 : props.align) || 'center';
|
|
76481
|
+
return (props === null || props === void 0 ? void 0 : props.align) || 'left';
|
|
76482
|
+
});
|
|
76444
76483
|
var BaseTableColumnHeaderSelectionLabelRender = defineComponent({
|
|
76445
76484
|
name: 'table-column-header-selection-label-render',
|
|
76446
76485
|
props: ['size'],
|
|
@@ -76724,7 +76763,7 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
|
|
|
76724
76763
|
sortMethod: __props.sortMethod,
|
|
76725
76764
|
sortBy: __props.sortBy,
|
|
76726
76765
|
sortOrders: __props.sortOrders,
|
|
76727
|
-
align:
|
|
76766
|
+
align: unref(getAlign),
|
|
76728
76767
|
headerAlign: __props.headerAlign,
|
|
76729
76768
|
className: __props.className,
|
|
76730
76769
|
labelClassName: __props.labelClassName,
|
|
@@ -76982,7 +77021,9 @@ var script$6 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$6
|
|
|
76982
77021
|
replace: item.replace
|
|
76983
77022
|
}, {
|
|
76984
77023
|
default: withCtx(function () { return [
|
|
76985
|
-
|
|
77024
|
+
createElementVNode("span", {
|
|
77025
|
+
class: normalizeClass(["title", { last: index === __props.data.length - 1 }])
|
|
77026
|
+
}, toDisplayString(item.name), 3 /* TEXT, CLASS */)
|
|
76986
77027
|
]; }),
|
|
76987
77028
|
_: 2 /* DYNAMIC */
|
|
76988
77029
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["to", "replace"]));
|
|
@@ -77002,7 +77043,7 @@ var _hoisted_1$4 = { class: "base-layout-body" };
|
|
|
77002
77043
|
var _hoisted_2$4 = { class: "body-top" };
|
|
77003
77044
|
var _hoisted_3$4 = {
|
|
77004
77045
|
key: 1,
|
|
77005
|
-
style: { "padding": "
|
|
77046
|
+
style: { "padding": "16px 0" }
|
|
77006
77047
|
};
|
|
77007
77048
|
var __default__$5 = {
|
|
77008
77049
|
name: 'base-layout-body'
|
|
@@ -77431,7 +77472,7 @@ var script$2 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$2
|
|
|
77431
77472
|
contentStyle: { type: null, required: false },
|
|
77432
77473
|
menuType: { type: String, required: false, default: 'vertical' },
|
|
77433
77474
|
renderMenuTop: { type: Function, required: false },
|
|
77434
|
-
trigger: { type: String, required: false, default: '
|
|
77475
|
+
trigger: { type: String, required: false, default: 'fold' }
|
|
77435
77476
|
}, emits: ["menuClick"], setup: function (__props, _a) {
|
|
77436
77477
|
var expose = _a.expose, emits = _a.emit;
|
|
77437
77478
|
var props = __props;
|
|
@@ -77801,7 +77842,7 @@ var script$1 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$1
|
|
|
77801
77842
|
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); },
|
|
77802
77843
|
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); },
|
|
77803
77844
|
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); },
|
|
77804
|
-
initCurrentList: function (customQuery) { return __awaiter(_this, void 0, void 0, function () {
|
|
77845
|
+
initCurrentList: function (customQuery, config) { return __awaiter(_this, void 0, void 0, function () {
|
|
77805
77846
|
return __generator(this, function (_a) {
|
|
77806
77847
|
switch (_a.label) {
|
|
77807
77848
|
case 0:
|
|
@@ -77809,8 +77850,12 @@ var script$1 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$1
|
|
|
77809
77850
|
return [4 /*yield*/, (getList === null || getList === void 0 ? void 0 : getList(__assign(__assign({}, (customQuery || {})), query.value)))];
|
|
77810
77851
|
case 1:
|
|
77811
77852
|
_a.sent();
|
|
77812
|
-
|
|
77813
|
-
|
|
77853
|
+
if (!(config === null || config === void 0 ? void 0 : config.noChange)) {
|
|
77854
|
+
if (!(config === null || config === void 0 ? void 0 : config.noToTop))
|
|
77855
|
+
tableToTop();
|
|
77856
|
+
if (!(config === null || config === void 0 ? void 0 : config.noScroll))
|
|
77857
|
+
checkTableNeedScroll();
|
|
77858
|
+
}
|
|
77814
77859
|
return [2 /*return*/];
|
|
77815
77860
|
}
|
|
77816
77861
|
});
|