@ibiz-template/mob-vue3-components 0.0.17-sz → 0.0.18-sz
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.
|
@@ -21,6 +21,10 @@ class MobEditViewEngine extends ViewEngineBase {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
|
+
if (!this.view.slotProps.form) {
|
|
25
|
+
this.view.slotProps.form = {};
|
|
26
|
+
}
|
|
27
|
+
this.view.slotProps.form.loadDefault = false;
|
|
24
28
|
}
|
|
25
29
|
/**
|
|
26
30
|
* 获取所有的工具栏控制器
|
|
@@ -87,7 +91,7 @@ class MobEditViewEngine extends ViewEngineBase {
|
|
|
87
91
|
formDataStateChange(event);
|
|
88
92
|
evt.emit("onDataChange", { ...event, actionType: "REMOVE" });
|
|
89
93
|
});
|
|
90
|
-
if (model.loadDefault) {
|
|
94
|
+
if (!this.view.state.noLoadDefault && model.loadDefault) {
|
|
91
95
|
this.load();
|
|
92
96
|
}
|
|
93
97
|
}
|
|
@@ -23,6 +23,10 @@ class MobEditViewEngine extends runtime.ViewEngineBase {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
+
if (!this.view.slotProps.form) {
|
|
27
|
+
this.view.slotProps.form = {};
|
|
28
|
+
}
|
|
29
|
+
this.view.slotProps.form.loadDefault = false;
|
|
26
30
|
}
|
|
27
31
|
/**
|
|
28
32
|
* 获取所有的工具栏控制器
|
|
@@ -89,7 +93,7 @@ class MobEditViewEngine extends runtime.ViewEngineBase {
|
|
|
89
93
|
formDataStateChange(event);
|
|
90
94
|
evt.emit("onDataChange", { ...event, actionType: "REMOVE" });
|
|
91
95
|
});
|
|
92
|
-
if (model.loadDefault) {
|
|
96
|
+
if (!this.view.state.noLoadDefault && model.loadDefault) {
|
|
93
97
|
this.load();
|
|
94
98
|
}
|
|
95
99
|
}
|