dochub-sdk 0.1.171 → 0.1.174
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.
@@ -10,6 +10,7 @@ export class DocHubComponentProto extends Vue {
|
|
10
10
|
*/
|
11
11
|
remountLangPackage() {
|
12
12
|
this.lang = DocHub.lang.getConst(this.getLangPackageID());
|
13
|
+
this.onLangSwitch();
|
13
14
|
}
|
14
15
|
|
15
16
|
mounted() {
|
@@ -30,4 +31,9 @@ export class DocHubComponentProto extends Vue {
|
|
30
31
|
return 'dochub';
|
31
32
|
}
|
32
33
|
|
34
|
+
/**
|
35
|
+
* Событие переключения языкового пакета
|
36
|
+
*/
|
37
|
+
onLangSwitch() {}
|
38
|
+
|
33
39
|
}
|
@@ -87,6 +87,13 @@ export class DocHubDocumentProto extends DocHubComponentProto implements IDocHub
|
|
87
87
|
return {};
|
88
88
|
}
|
89
89
|
|
90
|
+
/**
|
91
|
+
* Обрабатываем событие переключения языкового пакета
|
92
|
+
*/
|
93
|
+
onLangSwitch() {
|
94
|
+
this.onRefresh();
|
95
|
+
}
|
96
|
+
|
90
97
|
/**
|
91
98
|
* Для переопределения
|
92
99
|
*/
|