xrk-components 2.0.0-beta.87 → 2.0.0-beta.88
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 +20797 -20794
- package/lib/index.esm.js +94 -115
- package/lib/index.umd.js +94 -115
- package/lib/packages/base/table/table.d.ts +11 -0
- 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);
|
|
@@ -76273,7 +76256,8 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
|
|
|
76273
76256
|
}) },
|
|
76274
76257
|
spanMethod: { type: null, required: false },
|
|
76275
76258
|
treeProps: { type: Object, required: false },
|
|
76276
|
-
tooltipOptions: { type: null, required: false }
|
|
76259
|
+
tooltipOptions: { type: null, required: false },
|
|
76260
|
+
hideSelectNo: { type: Boolean, required: false, default: false }
|
|
76277
76261
|
}, emits: ["sort-change", "expand-change", "select", "select-all"], setup: function (__props, _a) {
|
|
76278
76262
|
var _b;
|
|
76279
76263
|
var expose = _a.expose, emits = _a.emit;
|
|
@@ -76326,7 +76310,7 @@ var script$9 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$9
|
|
|
76326
76310
|
});
|
|
76327
76311
|
return function (_ctx, _cache) {
|
|
76328
76312
|
return (openBlock(), createBlock(unref(ElTable), {
|
|
76329
|
-
class: normalizeClass({ 'base-table': __props.useBaseClass }),
|
|
76313
|
+
class: normalizeClass({ 'base-table': __props.useBaseClass, hideSelectNo: __props.hideSelectNo }),
|
|
76330
76314
|
ref_key: "BaseTableRef",
|
|
76331
76315
|
ref: BaseTableRef,
|
|
76332
76316
|
data: transformData(__props.data),
|
|
@@ -76521,7 +76505,7 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
|
|
|
76521
76505
|
});
|
|
76522
76506
|
var checkboxAllChecked = computed(function () {
|
|
76523
76507
|
return (filterPageAllData.value.length > 0 &&
|
|
76524
|
-
filterPageAllData.value.
|
|
76508
|
+
!filterPageAllData.value.some(function (row) { return props.prop && row[props.prop] && !isChecked(row[props.prop]); }));
|
|
76525
76509
|
});
|
|
76526
76510
|
var checkboxAllIndeterminate = computed(function () {
|
|
76527
76511
|
return (filterPageAllData.value.length > 0 &&
|
|
@@ -76639,14 +76623,13 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
|
|
|
76639
76623
|
});
|
|
76640
76624
|
};
|
|
76641
76625
|
var handleCheckboxClick = function (row) { return __awaiter(_this, void 0, void 0, function () {
|
|
76642
|
-
var _a, _b;
|
|
76626
|
+
var _a, _b, error_2;
|
|
76643
76627
|
return __generator(this, function (_c) {
|
|
76644
76628
|
switch (_c.label) {
|
|
76645
76629
|
case 0:
|
|
76646
|
-
if (_selectionDisabled(row)
|
|
76630
|
+
if (_selectionDisabled(row))
|
|
76647
76631
|
return [2 /*return*/];
|
|
76648
76632
|
if (!props.prop) return [3 /*break*/, 15];
|
|
76649
|
-
row._selectionLoading = true;
|
|
76650
76633
|
_c.label = 1;
|
|
76651
76634
|
case 1:
|
|
76652
76635
|
_c.trys.push([1, 14, , 15]);
|
|
@@ -76664,7 +76647,6 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
|
|
|
76664
76647
|
case 4:
|
|
76665
76648
|
// 树结构数据,选择联动处理
|
|
76666
76649
|
treeChecked({ row: row, type: 'remove' });
|
|
76667
|
-
row._selectionLoading = false;
|
|
76668
76650
|
_a = isFunction(props.selectionRemoveAfter);
|
|
76669
76651
|
if (!_a) return [3 /*break*/, 6];
|
|
76670
76652
|
return [4 /*yield*/, props.selectionRemoveAfter(row)];
|
|
@@ -76687,7 +76669,6 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
|
|
|
76687
76669
|
case 10:
|
|
76688
76670
|
// 树结构数据,选择联动处理
|
|
76689
76671
|
treeChecked({ row: row, type: 'add' });
|
|
76690
|
-
row._selectionLoading = false;
|
|
76691
76672
|
_b = isFunction(props.selectionAddAfter);
|
|
76692
76673
|
if (!_b) return [3 /*break*/, 12];
|
|
76693
76674
|
return [4 /*yield*/, props.selectionAddAfter(row)];
|
|
@@ -76700,8 +76681,8 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
|
|
|
76700
76681
|
emits('select', getSelectionRows === null || getSelectionRows === void 0 ? void 0 : getSelectionRows(), row);
|
|
76701
76682
|
return [3 /*break*/, 15];
|
|
76702
76683
|
case 14:
|
|
76703
|
-
_c.sent();
|
|
76704
|
-
|
|
76684
|
+
error_2 = _c.sent();
|
|
76685
|
+
console.log(error_2);
|
|
76705
76686
|
return [3 /*break*/, 15];
|
|
76706
76687
|
case 15: return [2 /*return*/];
|
|
76707
76688
|
}
|
|
@@ -76751,13 +76732,11 @@ var script$8 = /*#__PURE__*/ defineComponent(__assign(__assign({}, __default__$8
|
|
|
76751
76732
|
style: { "display": "inline-block" },
|
|
76752
76733
|
onClick: withModifiers(function ($event) { return (handleCheckboxClick(row)); }, ["prevent"])
|
|
76753
76734
|
}, [
|
|
76754
|
-
|
|
76735
|
+
createVNode(unref(BaseCheckbox), {
|
|
76755
76736
|
class: "table-base-checkbox",
|
|
76756
76737
|
"model-value": unref(checked)(row),
|
|
76757
76738
|
disabled: _selectionDisabled(row)
|
|
76758
|
-
}, null, 8 /* PROPS */, ["model-value", "disabled"])
|
|
76759
|
-
[unref(vLoading$1), row._selectionLoading]
|
|
76760
|
-
])
|
|
76739
|
+
}, null, 8 /* PROPS */, ["model-value", "disabled"])
|
|
76761
76740
|
], 8 /* PROPS */, _hoisted_1$5))
|
|
76762
76741
|
: (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
76763
76742
|
createTextVNode(toDisplayString(getColumnValue(row, $index, column)), 1 /* TEXT */)
|