@splicetree/plugin-lazy-load 0.1.1 → 0.3.0
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/CHANGELOG.md +4 -0
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ const lazyLoad = {
|
|
|
33
33
|
if (children?.length) {
|
|
34
34
|
ctx.tree.appendChildren(id, children);
|
|
35
35
|
for (const c of children) {
|
|
36
|
-
const childId = String(Reflect.get(c, ctx.tree.options?.keyField ?? "id"));
|
|
36
|
+
const childId = String(Reflect.get(c, ctx.tree.options?.configuration?.keyField ?? "id"));
|
|
37
37
|
const childNode = ctx.tree.getNode(childId);
|
|
38
38
|
if (childNode) applyLazyOverrides(childNode);
|
|
39
39
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splicetree/plugin-lazy-load",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"author": {
|
|
6
6
|
"email": "michael.cocova@gmail.com",
|
|
7
7
|
"name": "Michael Cocova"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@splicetree/core": "0.
|
|
26
|
+
"@splicetree/core": "0.3.0"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"dev": "tsdown --watch",
|
package/src/index.ts
CHANGED
|
@@ -101,7 +101,7 @@ export const lazyLoad: SpliceTreePlugin = {
|
|
|
101
101
|
if (children?.length) {
|
|
102
102
|
ctx.tree.appendChildren(id, children)
|
|
103
103
|
for (const c of children) {
|
|
104
|
-
const childId = String(Reflect.get(c, ctx.tree.options?.keyField ?? 'id'))
|
|
104
|
+
const childId = String(Reflect.get(c, ctx.tree.options?.configuration?.keyField ?? 'id'))
|
|
105
105
|
const childNode = ctx.tree.getNode(childId)
|
|
106
106
|
if (childNode) {
|
|
107
107
|
applyLazyOverrides(childNode)
|