@vived/app 2.36.0 → 2.37.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.
|
@@ -51,5 +51,6 @@ export declare abstract class AppDispatcher {
|
|
|
51
51
|
abstract showAlert: (data: ShowAlertDTO) => void;
|
|
52
52
|
abstract showConfirm: (data: ShowConfirmDTO) => void;
|
|
53
53
|
abstract showMarkDownEditor: (data: ShowMarkDownEditorDTO) => void;
|
|
54
|
+
abstract showSelectModel(callback: (modelId: string) => void): void;
|
|
54
55
|
}
|
|
55
56
|
export declare function makeAppDispatcher(): AppDispatcher;
|
|
@@ -306,6 +306,12 @@ class AppDistpatcherImp extends AppDispatcher {
|
|
|
306
306
|
};
|
|
307
307
|
this.formRequestAndDispatch("SHOW_MARKDOWN_EDITOR", 1, payload);
|
|
308
308
|
};
|
|
309
|
+
this.showSelectModel = (callback) => {
|
|
310
|
+
const payload = {
|
|
311
|
+
callback
|
|
312
|
+
};
|
|
313
|
+
this.formRequestAndDispatch("SHOW_SELECT_MODEL", 1, payload);
|
|
314
|
+
};
|
|
309
315
|
}
|
|
310
316
|
formRequestAndDispatch(type, version, payload) {
|
|
311
317
|
const request = {
|