@elite.framework/ng.core 1.0.17 → 1.0.18
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.
|
@@ -5865,6 +5865,7 @@ class BaseCrud {
|
|
|
5865
5865
|
dialogVisible = false;
|
|
5866
5866
|
drawerVisible = false;
|
|
5867
5867
|
selectedItem = null;
|
|
5868
|
+
defaultModel = null;
|
|
5868
5869
|
// selectedItem: T | any = {};
|
|
5869
5870
|
isViewMode = false;
|
|
5870
5871
|
isEditMode = false;
|
|
@@ -5963,7 +5964,7 @@ class BaseCrud {
|
|
|
5963
5964
|
this.mode = mode;
|
|
5964
5965
|
// this.drawerVisible = !this.drawerVisible;
|
|
5965
5966
|
if (item == null) {
|
|
5966
|
-
this.selectedItem = {};
|
|
5967
|
+
this.selectedItem = this.defaultModel || {};
|
|
5967
5968
|
}
|
|
5968
5969
|
else {
|
|
5969
5970
|
this.selectedItem = item;
|