@tmagic/editor 1.2.1 → 1.2.3
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.
|
@@ -1731,8 +1731,8 @@
|
|
|
1731
1731
|
if (Array.isArray(value)) {
|
|
1732
1732
|
throw new Error("root \u4E0D\u80FD\u4E3A\u6570\u7EC4");
|
|
1733
1733
|
}
|
|
1734
|
-
if (lodashEs.isObject(value) && !(value instanceof StageCore__default.default) && !(value instanceof Map)) {
|
|
1735
|
-
this.state.pageLength = value.items
|
|
1734
|
+
if (value && lodashEs.isObject(value) && !(value instanceof StageCore__default.default) && !(value instanceof Map)) {
|
|
1735
|
+
this.state.pageLength = value.items?.length || 0;
|
|
1736
1736
|
} else {
|
|
1737
1737
|
this.state.pageLength = 0;
|
|
1738
1738
|
}
|