xrk-components 2.0.0-beta.88 → 2.0.0-beta.89
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 +20785 -20797
- package/lib/index.esm.js +145 -115
- package/lib/index.umd.js +145 -115
- package/lib/packages/base/table/table.d.ts +0 -11
- package/lib/packages/base/table/types/type.d.ts +0 -1
- package/package.json +1 -1
package/lib/index.esm.js
CHANGED
|
@@ -863,59 +863,52 @@ 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
|
-
const
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
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));
|
|
866
|
+
/**
|
|
867
|
+
* @vue/shared v3.5.17
|
|
868
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
869
|
+
* @license MIT
|
|
870
|
+
**/
|
|
871
|
+
|
|
872
|
+
!!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
|
|
873
|
+
!!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
|
|
874
|
+
const NOOP = () => {
|
|
875
|
+
};
|
|
876
|
+
const hasOwnProperty$p = Object.prototype.hasOwnProperty;
|
|
877
|
+
const hasOwn = (val, key) => hasOwnProperty$p.call(val, key);
|
|
878
|
+
const isArray$1 = Array.isArray;
|
|
879
|
+
const isDate$1 = (val) => toTypeString(val) === "[object Date]";
|
|
880
|
+
const isFunction$2 = (val) => typeof val === "function";
|
|
881
|
+
const isString$2 = (val) => typeof val === "string";
|
|
882
|
+
const isObject$1 = (val) => val !== null && typeof val === "object";
|
|
883
|
+
const isPromise = (val) => {
|
|
884
|
+
return (isObject$1(val) || isFunction$2(val)) && isFunction$2(val.then) && isFunction$2(val.catch);
|
|
885
|
+
};
|
|
886
|
+
const objectToString$1 = Object.prototype.toString;
|
|
887
|
+
const toTypeString = (value) => objectToString$1.call(value);
|
|
888
|
+
const toRawType = (value) => {
|
|
889
|
+
return toTypeString(value).slice(8, -1);
|
|
890
|
+
};
|
|
891
|
+
const isPlainObject$1 = (val) => toTypeString(val) === "[object Object]";
|
|
892
|
+
const cacheStringFunction = (fn) => {
|
|
893
|
+
const cache = /* @__PURE__ */ Object.create(null);
|
|
894
|
+
return (str) => {
|
|
895
|
+
const hit = cache[str];
|
|
896
|
+
return hit || (cache[str] = fn(str));
|
|
897
|
+
};
|
|
898
|
+
};
|
|
899
|
+
const camelizeRE = /-(\w)/g;
|
|
900
|
+
const camelize = cacheStringFunction(
|
|
901
|
+
(str) => {
|
|
902
|
+
return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
|
|
903
|
+
}
|
|
904
|
+
);
|
|
905
|
+
const hyphenateRE = /\B([A-Z])/g;
|
|
906
|
+
const hyphenate = cacheStringFunction(
|
|
907
|
+
(str) => str.replace(hyphenateRE, "-$1").toLowerCase()
|
|
908
|
+
);
|
|
909
|
+
const capitalize$2 = cacheStringFunction((str) => {
|
|
910
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
911
|
+
});
|
|
919
912
|
|
|
920
913
|
/** Detect free variable `global` from Node.js. */
|
|
921
914
|
var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;
|
|
@@ -21113,8 +21106,9 @@ function getOppositeAxis(axis) {
|
|
|
21113
21106
|
function getAxisLength(axis) {
|
|
21114
21107
|
return axis === 'y' ? 'height' : 'width';
|
|
21115
21108
|
}
|
|
21109
|
+
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
21116
21110
|
function getSideAxis(placement) {
|
|
21117
|
-
return
|
|
21111
|
+
return yAxisSides.has(getSide(placement)) ? 'y' : 'x';
|
|
21118
21112
|
}
|
|
21119
21113
|
function getAlignmentAxis(placement) {
|
|
21120
21114
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -21139,19 +21133,19 @@ function getExpandedPlacements(placement) {
|
|
|
21139
21133
|
function getOppositeAlignmentPlacement(placement) {
|
|
21140
21134
|
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
21141
21135
|
}
|
|
21136
|
+
const lrPlacement = ['left', 'right'];
|
|
21137
|
+
const rlPlacement = ['right', 'left'];
|
|
21138
|
+
const tbPlacement = ['top', 'bottom'];
|
|
21139
|
+
const btPlacement = ['bottom', 'top'];
|
|
21142
21140
|
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'];
|
|
21147
21141
|
switch (side) {
|
|
21148
21142
|
case 'top':
|
|
21149
21143
|
case 'bottom':
|
|
21150
|
-
if (rtl) return isStart ?
|
|
21151
|
-
return isStart ?
|
|
21144
|
+
if (rtl) return isStart ? rlPlacement : lrPlacement;
|
|
21145
|
+
return isStart ? lrPlacement : rlPlacement;
|
|
21152
21146
|
case 'left':
|
|
21153
21147
|
case 'right':
|
|
21154
|
-
return isStart ?
|
|
21148
|
+
return isStart ? tbPlacement : btPlacement;
|
|
21155
21149
|
default:
|
|
21156
21150
|
return [];
|
|
21157
21151
|
}
|
|
@@ -21674,16 +21668,22 @@ const flip$1 = function (options) {
|
|
|
21674
21668
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
21675
21669
|
const nextPlacement = placements[nextIndex];
|
|
21676
21670
|
if (nextPlacement) {
|
|
21677
|
-
|
|
21678
|
-
|
|
21679
|
-
|
|
21680
|
-
|
|
21681
|
-
|
|
21682
|
-
|
|
21683
|
-
|
|
21684
|
-
|
|
21685
|
-
|
|
21686
|
-
|
|
21671
|
+
const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
21672
|
+
if (!ignoreCrossAxisOverflow ||
|
|
21673
|
+
// We leave the current main axis only if every placement on that axis
|
|
21674
|
+
// overflows the main axis.
|
|
21675
|
+
overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
|
|
21676
|
+
// Try next placement and re-run the lifecycle.
|
|
21677
|
+
return {
|
|
21678
|
+
data: {
|
|
21679
|
+
index: nextIndex,
|
|
21680
|
+
overflows: overflowsData
|
|
21681
|
+
},
|
|
21682
|
+
reset: {
|
|
21683
|
+
placement: nextPlacement
|
|
21684
|
+
}
|
|
21685
|
+
};
|
|
21686
|
+
}
|
|
21687
21687
|
}
|
|
21688
21688
|
|
|
21689
21689
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
@@ -21929,6 +21929,8 @@ const inline = function (options) {
|
|
|
21929
21929
|
};
|
|
21930
21930
|
};
|
|
21931
21931
|
|
|
21932
|
+
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
|
21933
|
+
|
|
21932
21934
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
21933
21935
|
// Derivable.
|
|
21934
21936
|
|
|
@@ -21942,7 +21944,7 @@ async function convertValueToCoords(state, options) {
|
|
|
21942
21944
|
const side = getSide(placement);
|
|
21943
21945
|
const alignment = getAlignment(placement);
|
|
21944
21946
|
const isVertical = getSideAxis(placement) === 'y';
|
|
21945
|
-
const mainAxisMulti =
|
|
21947
|
+
const mainAxisMulti = originSides.has(side) ? -1 : 1;
|
|
21946
21948
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
21947
21949
|
const rawValue = evaluate(options, state);
|
|
21948
21950
|
|
|
@@ -22142,7 +22144,7 @@ const limitShift = function (options) {
|
|
|
22142
22144
|
if (checkCrossAxis) {
|
|
22143
22145
|
var _middlewareData$offse, _middlewareData$offse2;
|
|
22144
22146
|
const len = mainAxis === 'y' ? 'width' : 'height';
|
|
22145
|
-
const isOriginSide =
|
|
22147
|
+
const isOriginSide = originSides.has(getSide(placement));
|
|
22146
22148
|
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);
|
|
22147
22149
|
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);
|
|
22148
22150
|
if (crossAxisCoord < limitMin) {
|
|
@@ -22287,6 +22289,7 @@ function isShadowRoot(value) {
|
|
|
22287
22289
|
}
|
|
22288
22290
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
22289
22291
|
}
|
|
22292
|
+
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
22290
22293
|
function isOverflowElement(element) {
|
|
22291
22294
|
const {
|
|
22292
22295
|
overflow,
|
|
@@ -22294,27 +22297,32 @@ function isOverflowElement(element) {
|
|
|
22294
22297
|
overflowY,
|
|
22295
22298
|
display
|
|
22296
22299
|
} = getComputedStyle$1(element);
|
|
22297
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
|
22300
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !invalidOverflowDisplayValues.has(display);
|
|
22298
22301
|
}
|
|
22302
|
+
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
22299
22303
|
function isTableElement(element) {
|
|
22300
|
-
return
|
|
22304
|
+
return tableElements.has(getNodeName(element));
|
|
22301
22305
|
}
|
|
22306
|
+
const topLayerSelectors = [':popover-open', ':modal'];
|
|
22302
22307
|
function isTopLayer(element) {
|
|
22303
|
-
return
|
|
22308
|
+
return topLayerSelectors.some(selector => {
|
|
22304
22309
|
try {
|
|
22305
22310
|
return element.matches(selector);
|
|
22306
|
-
} catch (
|
|
22311
|
+
} catch (_e) {
|
|
22307
22312
|
return false;
|
|
22308
22313
|
}
|
|
22309
22314
|
});
|
|
22310
22315
|
}
|
|
22316
|
+
const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
|
|
22317
|
+
const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
|
|
22318
|
+
const containValues = ['paint', 'layout', 'strict', 'content'];
|
|
22311
22319
|
function isContainingBlock(elementOrCss) {
|
|
22312
22320
|
const webkit = isWebKit();
|
|
22313
22321
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
22314
22322
|
|
|
22315
22323
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
22316
22324
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
22317
|
-
return
|
|
22325
|
+
return transformProperties.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) || willChangeValues.some(value => (css.willChange || '').includes(value)) || containValues.some(value => (css.contain || '').includes(value));
|
|
22318
22326
|
}
|
|
22319
22327
|
function getContainingBlock(element) {
|
|
22320
22328
|
let currentNode = getParentNode(element);
|
|
@@ -22332,8 +22340,9 @@ function isWebKit() {
|
|
|
22332
22340
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
22333
22341
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
22334
22342
|
}
|
|
22343
|
+
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
22335
22344
|
function isLastTraversableNode(node) {
|
|
22336
|
-
return
|
|
22345
|
+
return lastTraversableNodeNames.has(getNodeName(node));
|
|
22337
22346
|
}
|
|
22338
22347
|
function getComputedStyle$1(element) {
|
|
22339
22348
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -22638,6 +22647,7 @@ function getViewportRect(element, strategy) {
|
|
|
22638
22647
|
};
|
|
22639
22648
|
}
|
|
22640
22649
|
|
|
22650
|
+
const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
|
|
22641
22651
|
// Returns the inner client rect, subtracting scrollbars if present.
|
|
22642
22652
|
function getInnerBoundingClientRect(element, strategy) {
|
|
22643
22653
|
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
@@ -22702,7 +22712,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
22702
22712
|
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
22703
22713
|
currentContainingBlockComputedStyle = null;
|
|
22704
22714
|
}
|
|
22705
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle &&
|
|
22715
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && absoluteOrFixed.has(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
22706
22716
|
if (shouldDropCurrentNode) {
|
|
22707
22717
|
// Drop non-containing blocks.
|
|
22708
22718
|
result = result.filter(ancestor => ancestor !== currentNode);
|
|
@@ -22765,6 +22775,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
22765
22775
|
scrollTop: 0
|
|
22766
22776
|
};
|
|
22767
22777
|
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
|
+
}
|
|
22768
22784
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
22769
22785
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
22770
22786
|
scroll = getNodeScroll(offsetParent);
|
|
@@ -22774,11 +22790,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
22774
22790
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
22775
22791
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
22776
22792
|
} else if (documentElement) {
|
|
22777
|
-
|
|
22778
|
-
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
22779
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
22793
|
+
setLeftRTLScrollbarOffset();
|
|
22780
22794
|
}
|
|
22781
22795
|
}
|
|
22796
|
+
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
22797
|
+
setLeftRTLScrollbarOffset();
|
|
22798
|
+
}
|
|
22782
22799
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
22783
22800
|
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
22784
22801
|
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
@@ -22955,7 +22972,7 @@ function observeMove(element, onMove) {
|
|
|
22955
22972
|
// Handle <iframe>s
|
|
22956
22973
|
root: root.ownerDocument
|
|
22957
22974
|
});
|
|
22958
|
-
} catch (
|
|
22975
|
+
} catch (_e) {
|
|
22959
22976
|
io = new IntersectionObserver(handleObserve, options);
|
|
22960
22977
|
}
|
|
22961
22978
|
io.observe(element);
|
|
@@ -74996,7 +75013,7 @@ var _hoisted_4$5 = /*#__PURE__*/ createElementVNode("path", {
|
|
|
74996
75013
|
d: "M682.666667 724.024889L638.691556 768 341.333333 470.670222 385.308444 426.666667zM454.087111 611.128889l44.088889 44.088889L385.422222 768 341.333333 723.911111zM682.666667 470.755556l-113.066667 113.066666-44.088889-44.088889L638.577778 426.666667z",
|
|
74997
75014
|
fill: "#FFFFFF"
|
|
74998
75015
|
}, null, -1 /* HOISTED */);
|
|
74999
|
-
var _hoisted_5$
|
|
75016
|
+
var _hoisted_5$5 = [
|
|
75000
75017
|
_hoisted_2$6,
|
|
75001
75018
|
_hoisted_3$6,
|
|
75002
75019
|
_hoisted_4$5
|
|
@@ -75284,7 +75301,7 @@ var script$c = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$c
|
|
|
75284
75301
|
}, {
|
|
75285
75302
|
default: withCtx(function () { return [
|
|
75286
75303
|
(unref(isExcel))
|
|
75287
|
-
? (openBlock(), createElementBlock("svg", _hoisted_1$7, _hoisted_5$
|
|
75304
|
+
? (openBlock(), createElementBlock("svg", _hoisted_1$7, _hoisted_5$5))
|
|
75288
75305
|
: (unref(isVideo))
|
|
75289
75306
|
? (openBlock(), createElementBlock("svg", _hoisted_6$3, _hoisted_11$2))
|
|
75290
75307
|
: (unref(isPdf))
|
|
@@ -75397,7 +75414,7 @@ var _hoisted_3$5 = /*#__PURE__*/ _withScopeId$3(function () { return createElem
|
|
|
75397
75414
|
/*#__PURE__*/ createElementVNode("em", null, "点击上传")
|
|
75398
75415
|
], -1 /* HOISTED */); });
|
|
75399
75416
|
var _hoisted_4$4 = { class: "xrk-upload__text--right" };
|
|
75400
|
-
var _hoisted_5$
|
|
75417
|
+
var _hoisted_5$4 = { class: "c" };
|
|
75401
75418
|
var _hoisted_6$2 = ["onClick"];
|
|
75402
75419
|
var _hoisted_7$2 = ["onClick"];
|
|
75403
75420
|
var _hoisted_8$2 = ["src"];
|
|
@@ -75721,7 +75738,7 @@ var script$b = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$b
|
|
|
75721
75738
|
createElementVNode("div", _hoisted_4$4, [
|
|
75722
75739
|
renderSlot(_ctx.$slots, "uploadRight")
|
|
75723
75740
|
]),
|
|
75724
|
-
createElementVNode("div", _hoisted_5$
|
|
75741
|
+
createElementVNode("div", _hoisted_5$4, [
|
|
75725
75742
|
(__props.showFileList && fileList.value.length > 0)
|
|
75726
75743
|
? (openBlock(), createElementBlock("div", {
|
|
75727
75744
|
key: 0,
|
|
@@ -76256,8 +76273,7 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
|
|
|
76256
76273
|
}) },
|
|
76257
76274
|
spanMethod: { type: null, required: false },
|
|
76258
76275
|
treeProps: { type: Object, required: false },
|
|
76259
|
-
tooltipOptions: { type: null, required: false }
|
|
76260
|
-
hideSelectNo: { type: Boolean, required: false, default: false }
|
|
76276
|
+
tooltipOptions: { type: null, required: false }
|
|
76261
76277
|
}, emits: ["sort-change", "expand-change", "select", "select-all"], setup: function (__props, _a) {
|
|
76262
76278
|
var _b;
|
|
76263
76279
|
var expose = _a.expose, emits = _a.emit;
|
|
@@ -76310,7 +76326,7 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
|
|
|
76310
76326
|
});
|
|
76311
76327
|
return function (_ctx, _cache) {
|
|
76312
76328
|
return (openBlock(), createBlock(unref(ElTable), {
|
|
76313
|
-
class: normalizeClass({ 'base-table': __props.useBaseClass
|
|
76329
|
+
class: normalizeClass({ 'base-table': __props.useBaseClass }),
|
|
76314
76330
|
ref_key: "BaseTableRef",
|
|
76315
76331
|
ref: BaseTableRef,
|
|
76316
76332
|
data: transformData(__props.data),
|
|
@@ -76627,12 +76643,13 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
|
|
|
76627
76643
|
return __generator(this, function (_c) {
|
|
76628
76644
|
switch (_c.label) {
|
|
76629
76645
|
case 0:
|
|
76630
|
-
if (_selectionDisabled(row))
|
|
76646
|
+
if (_selectionDisabled(row) || row._selectionLoading)
|
|
76631
76647
|
return [2 /*return*/];
|
|
76632
|
-
if (!props.prop) return [3 /*break*/,
|
|
76648
|
+
if (!props.prop) return [3 /*break*/, 16];
|
|
76649
|
+
row._selectionLoading = true;
|
|
76633
76650
|
_c.label = 1;
|
|
76634
76651
|
case 1:
|
|
76635
|
-
_c.trys.push([1, 14, ,
|
|
76652
|
+
_c.trys.push([1, 14, 15, 16]);
|
|
76636
76653
|
if (!isChecked(row[props.prop])) return [3 /*break*/, 7];
|
|
76637
76654
|
if (!isFunction(props.selectionRemoveBefore)) return [3 /*break*/, 3];
|
|
76638
76655
|
return [4 /*yield*/, props.selectionRemoveBefore(row, removeSelectionRow
|
|
@@ -76679,12 +76696,15 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
|
|
|
76679
76696
|
_c.label = 13;
|
|
76680
76697
|
case 13:
|
|
76681
76698
|
emits('select', getSelectionRows === null || getSelectionRows === void 0 ? void 0 : getSelectionRows(), row);
|
|
76682
|
-
return [3 /*break*/,
|
|
76699
|
+
return [3 /*break*/, 16];
|
|
76683
76700
|
case 14:
|
|
76684
76701
|
error_2 = _c.sent();
|
|
76685
|
-
console.log(error_2);
|
|
76686
|
-
return [3 /*break*/,
|
|
76687
|
-
case 15:
|
|
76702
|
+
console.log('handleCheckboxClick error', error_2);
|
|
76703
|
+
return [3 /*break*/, 16];
|
|
76704
|
+
case 15:
|
|
76705
|
+
row._selectionLoading = false;
|
|
76706
|
+
return [7 /*endfinally*/];
|
|
76707
|
+
case 16: return [2 /*return*/];
|
|
76688
76708
|
}
|
|
76689
76709
|
});
|
|
76690
76710
|
}); };
|
|
@@ -76732,11 +76752,13 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
|
|
|
76732
76752
|
style: { "display": "inline-block" },
|
|
76733
76753
|
onClick: withModifiers(function ($event) { return (handleCheckboxClick(row)); }, ["prevent"])
|
|
76734
76754
|
}, [
|
|
76735
|
-
createVNode(unref(BaseCheckbox), {
|
|
76755
|
+
withDirectives(createVNode(unref(BaseCheckbox), {
|
|
76736
76756
|
class: "table-base-checkbox",
|
|
76737
76757
|
"model-value": unref(checked)(row),
|
|
76738
76758
|
disabled: _selectionDisabled(row)
|
|
76739
|
-
}, null, 8 /* PROPS */, ["model-value", "disabled"])
|
|
76759
|
+
}, null, 8 /* PROPS */, ["model-value", "disabled"]), [
|
|
76760
|
+
[unref(vLoading$1), row._selectionLoading]
|
|
76761
|
+
])
|
|
76740
76762
|
], 8 /* PROPS */, _hoisted_1$5))
|
|
76741
76763
|
: (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
76742
76764
|
createTextVNode(toDisplayString(getColumnValue(row, $index, column)), 1 /* TEXT */)
|
|
@@ -76906,7 +76928,7 @@ var _hoisted_4$3 = {
|
|
|
76906
76928
|
key: 1,
|
|
76907
76929
|
class: "name"
|
|
76908
76930
|
};
|
|
76909
|
-
var _hoisted_5$
|
|
76931
|
+
var _hoisted_5$3 = { class: "right" };
|
|
76910
76932
|
var __default__$6 = {
|
|
76911
76933
|
name: 'base-layout-header'
|
|
76912
76934
|
};
|
|
@@ -76926,7 +76948,7 @@ var script$6 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$6
|
|
|
76926
76948
|
: (openBlock(), createElementBlock("span", _hoisted_4$3, toDisplayString(__props.appName), 1 /* TEXT */))
|
|
76927
76949
|
], 64 /* STABLE_FRAGMENT */))
|
|
76928
76950
|
]),
|
|
76929
|
-
createElementVNode("div", _hoisted_5$
|
|
76951
|
+
createElementVNode("div", _hoisted_5$3, [
|
|
76930
76952
|
(unref(slots).headerRight)
|
|
76931
76953
|
? (openBlock(), createBlock(resolveDynamicComponent(unref(slots).headerRight), { key: 0 }))
|
|
76932
76954
|
: createCommentVNode("v-if", true)
|
|
@@ -77024,7 +77046,7 @@ var _hoisted_1$2 = { class: "main-menu" };
|
|
|
77024
77046
|
var _hoisted_2$2 = ["name"];
|
|
77025
77047
|
var _hoisted_3$2 = ["src"];
|
|
77026
77048
|
var _hoisted_4$2 = ["onClick", "name", "onMouseenter"];
|
|
77027
|
-
var _hoisted_5$
|
|
77049
|
+
var _hoisted_5$2 = ["onClick"];
|
|
77028
77050
|
var _hoisted_6$1 = ["id"];
|
|
77029
77051
|
var _hoisted_7$1 = ["name"];
|
|
77030
77052
|
var _hoisted_8$1 = ["src"];
|
|
@@ -77206,7 +77228,7 @@ var script$3 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$3
|
|
|
77206
77228
|
], 8 /* PROPS */, _hoisted_7$1),
|
|
77207
77229
|
_hoisted_9$1
|
|
77208
77230
|
], 10 /* CLASS, PROPS */, _hoisted_6$1)
|
|
77209
|
-
], 8 /* PROPS */, _hoisted_5$
|
|
77231
|
+
], 8 /* PROPS */, _hoisted_5$2))
|
|
77210
77232
|
], 64 /* STABLE_FRAGMENT */));
|
|
77211
77233
|
}), 128 /* KEYED_FRAGMENT */))
|
|
77212
77234
|
]; }),
|
|
@@ -77253,8 +77275,9 @@ var _hoisted_2$1 = {
|
|
|
77253
77275
|
key: 1,
|
|
77254
77276
|
class: "menu-top"
|
|
77255
77277
|
};
|
|
77256
|
-
var _hoisted_3$1 =
|
|
77257
|
-
var _hoisted_4$1 =
|
|
77278
|
+
var _hoisted_3$1 = { style: { "display": "flex", "width": "fit-content" } };
|
|
77279
|
+
var _hoisted_4$1 = ["onClick"];
|
|
77280
|
+
var _hoisted_5$1 = { class: "content" };
|
|
77258
77281
|
var __default__$2 = {
|
|
77259
77282
|
name: 'base-layout-main'
|
|
77260
77283
|
};
|
|
@@ -77373,17 +77396,24 @@ var script$2 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$2
|
|
|
77373
77396
|
menus: unref(menuBase)
|
|
77374
77397
|
}))
|
|
77375
77398
|
? (openBlock(), createBlock(unref(MenuTopRender), { key: 0 }))
|
|
77376
|
-
: (openBlock(
|
|
77377
|
-
|
|
77378
|
-
|
|
77379
|
-
|
|
77380
|
-
|
|
77381
|
-
|
|
77382
|
-
|
|
77383
|
-
|
|
77399
|
+
: (openBlock(), createBlock(unref(ElScrollbar), { key: 1 }, {
|
|
77400
|
+
default: withCtx(function () { return [
|
|
77401
|
+
createElementVNode("div", _hoisted_3$1, [
|
|
77402
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(menuBase).filter(function (item) { return !(item === null || item === void 0 ? void 0 : item._hide); }), function (menu) {
|
|
77403
|
+
var _a;
|
|
77404
|
+
return (openBlock(), createElementBlock("p", {
|
|
77405
|
+
class: normalizeClass(["menu-top-item", { active: ((_a = currentMenu.value) === null || _a === void 0 ? void 0 : _a.menuKey) === menu.menuKey }]),
|
|
77406
|
+
key: menu.menuKey,
|
|
77407
|
+
onClick: function ($event) { return (onMenuClick(menu)); }
|
|
77408
|
+
}, toDisplayString(menu.name), 11 /* TEXT, CLASS, PROPS */, _hoisted_4$1));
|
|
77409
|
+
}), 128 /* KEYED_FRAGMENT */))
|
|
77410
|
+
])
|
|
77411
|
+
]; }),
|
|
77412
|
+
_: 1 /* STABLE */
|
|
77413
|
+
}))
|
|
77384
77414
|
]))
|
|
77385
77415
|
: createCommentVNode("v-if", true),
|
|
77386
|
-
createElementVNode("div",
|
|
77416
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
77387
77417
|
(unref(hideMenuFlag))
|
|
77388
77418
|
? (openBlock(), createBlock(unref(BaseLayoutFlexContent), {
|
|
77389
77419
|
key: 0,
|