naive-ui 2.33.4 → 2.33.5
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/dist/index.js +12 -5
- package/dist/index.prod.js +1 -1
- package/es/data-table/src/DataTable.js +1 -0
- package/es/data-table/src/TableParts/Body.js +12 -4
- package/es/data-table/src/interface.d.ts +2 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/data-table/src/DataTable.js +1 -0
- package/lib/data-table/src/TableParts/Body.js +11 -3
- package/lib/data-table/src/interface.d.ts +2 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/web-types.json +16 -35
package/dist/index.js
CHANGED
|
@@ -66317,6 +66317,7 @@
|
|
|
66317
66317
|
stickyExpandedRowsRef,
|
|
66318
66318
|
renderExpandIconRef,
|
|
66319
66319
|
summaryPlacementRef,
|
|
66320
|
+
treeMateRef,
|
|
66320
66321
|
setHeaderScrollLeft,
|
|
66321
66322
|
doUpdateExpandedRowKeys,
|
|
66322
66323
|
handleTableBodyScroll,
|
|
@@ -66339,13 +66340,14 @@
|
|
|
66339
66340
|
return new Set(mergedExpandedRowKeysRef.value);
|
|
66340
66341
|
});
|
|
66341
66342
|
function getRowInfo(key) {
|
|
66342
|
-
|
|
66343
|
-
(item) => item.key === key
|
|
66344
|
-
);
|
|
66345
|
-
return paginatedDataRef.value[currentIndex].rawNode;
|
|
66343
|
+
return treeMateRef.value.getNode(key)?.rawNode;
|
|
66346
66344
|
}
|
|
66347
66345
|
function handleCheckboxUpdateChecked(tmNode, checked, shiftKey) {
|
|
66348
66346
|
const rowInfo = getRowInfo(tmNode.key);
|
|
66347
|
+
if (!rowInfo) {
|
|
66348
|
+
warn$2("data-table", `fail to get row data with key ${tmNode.key}`);
|
|
66349
|
+
return;
|
|
66350
|
+
}
|
|
66349
66351
|
if (shiftKey) {
|
|
66350
66352
|
const lastIndex = paginatedDataRef.value.findIndex(
|
|
66351
66353
|
(item) => item.key === lastSelectedKey
|
|
@@ -66380,6 +66382,10 @@
|
|
|
66380
66382
|
}
|
|
66381
66383
|
function handleRadioUpdateChecked(tmNode) {
|
|
66382
66384
|
const rowInfo = getRowInfo(tmNode.key);
|
|
66385
|
+
if (!rowInfo) {
|
|
66386
|
+
warn$2("data-table", `fail to get row data with key ${tmNode.key}`);
|
|
66387
|
+
return;
|
|
66388
|
+
}
|
|
66383
66389
|
doCheck(tmNode.key, true, rowInfo);
|
|
66384
66390
|
}
|
|
66385
66391
|
function getScrollContainer() {
|
|
@@ -68783,6 +68789,7 @@
|
|
|
68783
68789
|
});
|
|
68784
68790
|
vue.provide(dataTableInjectionKey, {
|
|
68785
68791
|
props,
|
|
68792
|
+
treeMateRef,
|
|
68786
68793
|
renderExpandIconRef: vue.toRef(props, "renderExpandIcon"),
|
|
68787
68794
|
loadingKeySetRef: vue.ref(/* @__PURE__ */ new Set()),
|
|
68788
68795
|
slots,
|
|
@@ -108046,7 +108053,7 @@
|
|
|
108046
108053
|
createDiscreteApi: createDiscreteApi
|
|
108047
108054
|
});
|
|
108048
108055
|
|
|
108049
|
-
var version = "2.33.
|
|
108056
|
+
var version = "2.33.5";
|
|
108050
108057
|
|
|
108051
108058
|
function create() {
|
|
108052
108059
|
let {
|