|
@@ -32,13 +32,14 @@ export const store = EditorModule.store({
|
|
|
isDisplay(state) {
|
|
|
return state.mode === "display";
|
|
|
},
|
|
|
-
|
|
|
- previewImageList(state) {
|
|
|
+
|
|
|
+ previewImageList() {
|
|
|
const res: string[] = [];
|
|
|
let scope = this;
|
|
|
function deepChild(item: any) {
|
|
|
if (typeof item == "string") {
|
|
|
const comp = scope.controls.pageCtrl.compMap[item];
|
|
|
+ if (!comp) return;
|
|
|
if (comp.compKey === "Image") {
|
|
|
res.push(comp.value.url);
|
|
|
} else if (comp.children) {
|
|
@@ -50,9 +51,13 @@ export const store = EditorModule.store({
|
|
|
deepChild(d);
|
|
|
});
|
|
|
} else {
|
|
|
- Object.values(item).forEach((d) => {
|
|
|
- deepChild(d);
|
|
|
- });
|
|
|
+ if (item.__rx == undefined) {
|
|
|
+ Object.values(item).forEach((d) => {
|
|
|
+ deepChild(d);
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ deepChild(item.default);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|