xrk-components 2.0.0-beta.94 → 2.0.0-beta.96
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 +21079 -21030
- package/lib/index.esm.js +195 -163
- package/lib/index.umd.js +195 -163
- 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) {
|
|
@@ -74268,6 +74251,7 @@ script$k.__file = "packages/base/form/form-item.vue";
|
|
|
74268
74251
|
|
|
74269
74252
|
var _hoisted_1$c = { class: "xrk-search" };
|
|
74270
74253
|
var _hoisted_2$8 = { class: "btn-group" };
|
|
74254
|
+
var _hoisted_3$8 = { class: "btn-group-left" };
|
|
74271
74255
|
var __default__$h = {
|
|
74272
74256
|
name: 'xrk-search'
|
|
74273
74257
|
};
|
|
@@ -74293,6 +74277,16 @@ 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 isExpand = ref(false);
|
|
74281
|
+
var getCurrentColumns = computed(function () {
|
|
74282
|
+
var _a;
|
|
74283
|
+
if (isExpand.value) {
|
|
74284
|
+
return props === null || props === void 0 ? void 0 : props.columns;
|
|
74285
|
+
}
|
|
74286
|
+
else {
|
|
74287
|
+
return (_a = props === null || props === void 0 ? void 0 : props.columns) === null || _a === void 0 ? void 0 : _a.slice(0, 8);
|
|
74288
|
+
}
|
|
74289
|
+
});
|
|
74296
74290
|
var _getPleaseText = function (type) {
|
|
74297
74291
|
if (['input', 'inputNumber'].includes(type)) {
|
|
74298
74292
|
return '请输入';
|
|
@@ -74426,14 +74420,16 @@ var script$j = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$h
|
|
|
74426
74420
|
handleResetClick: handleResetClick
|
|
74427
74421
|
});
|
|
74428
74422
|
return function (_ctx, _cache) {
|
|
74423
|
+
var _a;
|
|
74429
74424
|
return (openBlock(), createElementBlock("div", _hoisted_1$c, [
|
|
74430
74425
|
createVNode(script$b, {
|
|
74431
74426
|
model: searchValue,
|
|
74432
74427
|
ref_key: "searchFormRef",
|
|
74433
|
-
ref: searchFormRef
|
|
74428
|
+
ref: searchFormRef,
|
|
74429
|
+
"label-position": "top"
|
|
74434
74430
|
}, {
|
|
74435
74431
|
default: withCtx(function () { return [
|
|
74436
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(
|
|
74432
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(getCurrentColumns), function (_a) {
|
|
74437
74433
|
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
74434
|
return (openBlock(), createBlock(script$k, {
|
|
74439
74435
|
prop: prop,
|
|
@@ -74446,7 +74442,7 @@ var script$j = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$h
|
|
|
74446
74442
|
type
|
|
74447
74443
|
? (openBlock(), createBlock(resolveDynamicComponent(unref(formItemComponents)[type]), mergeProps({
|
|
74448
74444
|
key: 0,
|
|
74449
|
-
style: __assign({
|
|
74445
|
+
style: __assign(__assign({}, (style || {})), { minWidth: '100%' })
|
|
74450
74446
|
}, __assign(__assign(__assign(__assign({}, computedDefaultConfig({ label: label, prop: prop, type: type })), { clearable: true }), config), proxyColumnListener(listener || {})), {
|
|
74451
74447
|
disabled: unref(isFunction)(disabled) ? disabled(searchValue) : disabled,
|
|
74452
74448
|
modelValue: searchValue[prop],
|
|
@@ -74456,44 +74452,69 @@ var script$j = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$h
|
|
|
74456
74452
|
]; }),
|
|
74457
74453
|
_: 2 /* DYNAMIC */
|
|
74458
74454
|
}, 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
|
-
])
|
|
74455
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
74494
74456
|
]; }),
|
|
74495
74457
|
_: 1 /* STABLE */
|
|
74496
|
-
}, 8 /* PROPS */, ["model"])
|
|
74458
|
+
}, 8 /* PROPS */, ["model"]),
|
|
74459
|
+
createElementVNode("div", _hoisted_2$8, [
|
|
74460
|
+
createElementVNode("div", _hoisted_3$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
|
+
(__props.columns && ((_a = __props.columns) === null || _a === void 0 ? void 0 : _a.length) >= 8)
|
|
74487
|
+
? (openBlock(), createBlock(script$F, {
|
|
74488
|
+
key: 2,
|
|
74489
|
+
type: "default",
|
|
74490
|
+
onClick: _cache[0] || (_cache[0] = function () { return (isExpand.value = !isExpand.value); })
|
|
74491
|
+
}, {
|
|
74492
|
+
default: withCtx(function () { return [
|
|
74493
|
+
createTextVNode(toDisplayString(!isExpand.value ? '展开' : '收起') + " ", 1 /* TEXT */),
|
|
74494
|
+
createVNode(unref(BaseIcon), { style: { "margin-left": "5px" } }, {
|
|
74495
|
+
default: withCtx(function () { return [
|
|
74496
|
+
withDirectives(createVNode(unref(arrow_up_default), null, null, 512 /* NEED_PATCH */), [
|
|
74497
|
+
[vShow, isExpand.value]
|
|
74498
|
+
]),
|
|
74499
|
+
withDirectives(createVNode(unref(arrow_down_default), null, null, 512 /* NEED_PATCH */), [
|
|
74500
|
+
[vShow, !isExpand.value]
|
|
74501
|
+
])
|
|
74502
|
+
]; }),
|
|
74503
|
+
_: 1 /* STABLE */
|
|
74504
|
+
})
|
|
74505
|
+
]; }),
|
|
74506
|
+
_: 1 /* STABLE */
|
|
74507
|
+
}))
|
|
74508
|
+
: createCommentVNode("v-if", true)
|
|
74509
|
+
]),
|
|
74510
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.otherComponents, function (_a, index) {
|
|
74511
|
+
var render = _a.render;
|
|
74512
|
+
return (openBlock(), createBlock(unref(BaseSearchRender), {
|
|
74513
|
+
render: render,
|
|
74514
|
+
key: index
|
|
74515
|
+
}, null, 8 /* PROPS */, ["render"]));
|
|
74516
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
74517
|
+
])
|
|
74497
74518
|
]));
|
|
74498
74519
|
};
|
|
74499
74520
|
} }));
|
|
@@ -76242,7 +76263,7 @@ var addParentIds = function (_a) {
|
|
|
76242
76263
|
});
|
|
76243
76264
|
};
|
|
76244
76265
|
|
|
76245
|
-
var propsKey
|
|
76266
|
+
var propsKey = 'table'; // 解决defineProps作用域问题
|
|
76246
76267
|
var __default__$a = {
|
|
76247
76268
|
name: 'base-table'
|
|
76248
76269
|
};
|
|
@@ -76251,8 +76272,8 @@ var script$a = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$a
|
|
|
76251
76272
|
columns: { type: null, required: true },
|
|
76252
76273
|
height: { type: [String, Number], required: false, default: '100%' },
|
|
76253
76274
|
maxHeight: { type: [String, Number], required: false },
|
|
76254
|
-
stripe: { type: Boolean, required: false, default:
|
|
76255
|
-
border: { type: Boolean, required: false, default: (function () { return useGetGlobalDefaultProp(propsKey
|
|
76275
|
+
stripe: { type: Boolean, required: false, default: false },
|
|
76276
|
+
border: { type: Boolean, required: false, default: (function () { return useGetGlobalDefaultProp(propsKey, 'border', false); }) },
|
|
76256
76277
|
size: { type: String, required: false, default: 'large' },
|
|
76257
76278
|
fit: { type: Boolean, required: false, default: true },
|
|
76258
76279
|
rowClassName: { type: null, required: false },
|
|
@@ -76269,7 +76290,7 @@ var script$a = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$a
|
|
|
76269
76290
|
emptyText: { type: String, required: false, default: '暂无数据' },
|
|
76270
76291
|
defaultSort: { type: Object, required: false },
|
|
76271
76292
|
useBaseClass: { type: Boolean, required: false, default: (function () {
|
|
76272
|
-
return useGetGlobalDefaultProp(propsKey
|
|
76293
|
+
return useGetGlobalDefaultProp(propsKey, 'useBaseClass', true);
|
|
76273
76294
|
}) },
|
|
76274
76295
|
spanMethod: { type: null, required: false },
|
|
76275
76296
|
treeProps: { type: Object, required: false },
|
|
@@ -76359,7 +76380,7 @@ var script$a = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$a
|
|
|
76359
76380
|
: (openBlock(), createBlock(unref(BaseEmpty), { key: 1 }))
|
|
76360
76381
|
]; }),
|
|
76361
76382
|
default: withCtx(function () { return [
|
|
76362
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, function (column) {
|
|
76383
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, function (column, index) {
|
|
76363
76384
|
return (openBlock(), createBlock(unref(BaseTableColumn), mergeProps({
|
|
76364
76385
|
key: column.prop,
|
|
76365
76386
|
pageAllData: __props.data,
|
|
@@ -76369,11 +76390,12 @@ var script$a = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$a
|
|
|
76369
76390
|
getSelectionRows: unref(getSelectionRows),
|
|
76370
76391
|
addSelectionRow: unref(addSelectionRow),
|
|
76371
76392
|
removeSelectionRow: unref(removeSelectionRow),
|
|
76372
|
-
clearSelectionRows: unref(clearSelectionRows)
|
|
76393
|
+
clearSelectionRows: unref(clearSelectionRows),
|
|
76394
|
+
isBothEnds: !index || index === __props.columns.length - 1
|
|
76373
76395
|
}, column, {
|
|
76374
76396
|
onSelect: handleColumnSelect,
|
|
76375
76397
|
onSelectAll: handleColumnSelectAll
|
|
76376
|
-
}), null, 16 /* FULL_PROPS */, ["pageAllData", "treeProps", "selectionIds", "selectionRows", "getSelectionRows", "addSelectionRow", "removeSelectionRow", "clearSelectionRows"]));
|
|
76398
|
+
}), null, 16 /* FULL_PROPS */, ["pageAllData", "treeProps", "selectionIds", "selectionRows", "getSelectionRows", "addSelectionRow", "removeSelectionRow", "clearSelectionRows", "isBothEnds"]));
|
|
76377
76399
|
}), 128 /* KEYED_FRAGMENT */))
|
|
76378
76400
|
]; }),
|
|
76379
76401
|
_: 1 /* STABLE */
|
|
@@ -76385,7 +76407,6 @@ script$a.__scopeId = "data-v-968a9a5a";
|
|
|
76385
76407
|
script$a.__file = "packages/base/table/table.vue";
|
|
76386
76408
|
|
|
76387
76409
|
var _hoisted_1$6 = ["onClick"];
|
|
76388
|
-
var propsKey = 'table-column'; // 解决defineProps作用域问题
|
|
76389
76410
|
var __default__$9 = {
|
|
76390
76411
|
name: 'base-table-column'
|
|
76391
76412
|
};
|
|
@@ -76404,11 +76425,12 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
|
|
|
76404
76425
|
sortBy: { type: [Array, String, Function], required: false },
|
|
76405
76426
|
sortOrders: { type: Array, required: false },
|
|
76406
76427
|
showOverflowTooltip: { type: Boolean, required: false, default: true },
|
|
76407
|
-
align: { type: String, required: false
|
|
76428
|
+
align: { type: String, required: false },
|
|
76408
76429
|
headerAlign: { type: String, required: false },
|
|
76409
76430
|
className: { type: String, required: false },
|
|
76410
76431
|
labelClassName: { type: String, required: false },
|
|
76411
76432
|
children: { type: Array, required: false },
|
|
76433
|
+
isBothEnds: { type: Boolean, required: false },
|
|
76412
76434
|
renderHeader: { type: Function, required: false },
|
|
76413
76435
|
renderHeaderSelectionLabel: { type: Function, required: false },
|
|
76414
76436
|
formatter: { type: Function, required: false, default: function (_a) {
|
|
@@ -76441,6 +76463,11 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
|
|
|
76441
76463
|
var childrenKey = ((_b = props === null || props === void 0 ? void 0 : props.treeProps) === null || _b === void 0 ? void 0 : _b.children) || 'children';
|
|
76442
76464
|
var _selectionAllLoading = ref(false);
|
|
76443
76465
|
var _selectionRowLoading = ref(false);
|
|
76466
|
+
var getAlign = computed(function () {
|
|
76467
|
+
if (props === null || props === void 0 ? void 0 : props.isBothEnds)
|
|
76468
|
+
return (props === null || props === void 0 ? void 0 : props.align) || 'center';
|
|
76469
|
+
return (props === null || props === void 0 ? void 0 : props.align) || 'left';
|
|
76470
|
+
});
|
|
76444
76471
|
var BaseTableColumnHeaderSelectionLabelRender = defineComponent({
|
|
76445
76472
|
name: 'table-column-header-selection-label-render',
|
|
76446
76473
|
props: ['size'],
|
|
@@ -76724,7 +76751,7 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
|
|
|
76724
76751
|
sortMethod: __props.sortMethod,
|
|
76725
76752
|
sortBy: __props.sortBy,
|
|
76726
76753
|
sortOrders: __props.sortOrders,
|
|
76727
|
-
align:
|
|
76754
|
+
align: unref(getAlign),
|
|
76728
76755
|
headerAlign: __props.headerAlign,
|
|
76729
76756
|
className: __props.className,
|
|
76730
76757
|
labelClassName: __props.labelClassName,
|
|
@@ -76982,7 +77009,9 @@ var script$6 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$6
|
|
|
76982
77009
|
replace: item.replace
|
|
76983
77010
|
}, {
|
|
76984
77011
|
default: withCtx(function () { return [
|
|
76985
|
-
|
|
77012
|
+
createElementVNode("span", {
|
|
77013
|
+
class: normalizeClass(["title", { last: index === __props.data.length - 1 }])
|
|
77014
|
+
}, toDisplayString(item.name), 3 /* TEXT, CLASS */)
|
|
76986
77015
|
]; }),
|
|
76987
77016
|
_: 2 /* DYNAMIC */
|
|
76988
77017
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["to", "replace"]));
|
|
@@ -77002,7 +77031,7 @@ var _hoisted_1$4 = { class: "base-layout-body" };
|
|
|
77002
77031
|
var _hoisted_2$4 = { class: "body-top" };
|
|
77003
77032
|
var _hoisted_3$4 = {
|
|
77004
77033
|
key: 1,
|
|
77005
|
-
style: { "padding": "
|
|
77034
|
+
style: { "padding": "16px 0" }
|
|
77006
77035
|
};
|
|
77007
77036
|
var __default__$5 = {
|
|
77008
77037
|
name: 'base-layout-body'
|
|
@@ -77261,7 +77290,7 @@ script$4.__scopeId = "data-v-1bea9a2a";
|
|
|
77261
77290
|
script$4.__file = "packages/base/layout/menu.vue";
|
|
77262
77291
|
|
|
77263
77292
|
var _hoisted_1$2 = { class: "main-menu" };
|
|
77264
|
-
var _hoisted_2$2 = ["name"];
|
|
77293
|
+
var _hoisted_2$2 = ["name", "onClick"];
|
|
77265
77294
|
var _hoisted_3$2 = ["src"];
|
|
77266
77295
|
var _hoisted_4$2 = { key: 0 };
|
|
77267
77296
|
var _hoisted_5$2 = ["onClick"];
|
|
@@ -77340,7 +77369,8 @@ var script$3 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$3
|
|
|
77340
77369
|
paddingLeft: (__props.level + 1) * 12 + 'px'
|
|
77341
77370
|
}),
|
|
77342
77371
|
class: normalizeClass(menuClassName),
|
|
77343
|
-
name: menu.url
|
|
77372
|
+
name: menu.url,
|
|
77373
|
+
onClick: function ($event) { return (onMenuClick(menu)); }
|
|
77344
77374
|
}, [
|
|
77345
77375
|
(!__props.level && menu.icon)
|
|
77346
77376
|
? (openBlock(), createElementBlock("img", {
|
|
@@ -77359,8 +77389,9 @@ var script$3 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$3
|
|
|
77359
77389
|
key: 0,
|
|
77360
77390
|
menus: menu.menuList,
|
|
77361
77391
|
menusMap: __props.menusMap,
|
|
77362
|
-
level: __props.level + 1
|
|
77363
|
-
|
|
77392
|
+
level: __props.level + 1,
|
|
77393
|
+
onMenuClick: function (menu) { return emits('menuClick', menu); }
|
|
77394
|
+
}, null, 8 /* PROPS */, ["menus", "menusMap", "level", "onMenuClick"]))
|
|
77364
77395
|
: createCommentVNode("v-if", true)
|
|
77365
77396
|
]))
|
|
77366
77397
|
: createCommentVNode("v-if", true)
|
|
@@ -77429,7 +77460,7 @@ var script$2 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$2
|
|
|
77429
77460
|
contentStyle: { type: null, required: false },
|
|
77430
77461
|
menuType: { type: String, required: false, default: 'vertical' },
|
|
77431
77462
|
renderMenuTop: { type: Function, required: false },
|
|
77432
|
-
trigger: { type: String, required: false, default: '
|
|
77463
|
+
trigger: { type: String, required: false, default: 'fold' }
|
|
77433
77464
|
}, emits: ["menuClick"], setup: function (__props, _a) {
|
|
77434
77465
|
var expose = _a.expose, emits = _a.emit;
|
|
77435
77466
|
var props = __props;
|
|
@@ -77452,6 +77483,7 @@ var script$2 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$2
|
|
|
77452
77483
|
setMenuMap(menuArr, menusMap);
|
|
77453
77484
|
return menuArr;
|
|
77454
77485
|
});
|
|
77486
|
+
setMenuMap(menuBase.value, menusMap);
|
|
77455
77487
|
var onMenuClick = function (menu) {
|
|
77456
77488
|
var _a, _b, _c, _d;
|
|
77457
77489
|
currentMenu.value = menu;
|