@widget-js/core 24.1.1-beta.77 → 24.1.1-beta.78
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.
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1060,6 +1060,7 @@ var Widget = class _Widget extends Page {
|
|
|
1060
1060
|
* 如果为true,组件将不会添加到组件包中
|
|
1061
1061
|
*/
|
|
1062
1062
|
disabled;
|
|
1063
|
+
synchronizable;
|
|
1063
1064
|
/**
|
|
1064
1065
|
* 配置页面路径,没有则不能修改
|
|
1065
1066
|
*/
|
|
@@ -1078,6 +1079,7 @@ var Widget = class _Widget extends Page {
|
|
|
1078
1079
|
this.socialLinks = options.socialLinks;
|
|
1079
1080
|
this.disabled = options.disabled;
|
|
1080
1081
|
this.trayOptions = options.trayOptions;
|
|
1082
|
+
this.synchronizable = options.synchronizable;
|
|
1081
1083
|
this.requiredAppVersion = options.requiredAppVersion;
|
|
1082
1084
|
this.routes = options.routes ?? [];
|
|
1083
1085
|
}
|
|
@@ -2314,6 +2316,12 @@ var WidgetApiEvent = /* @__PURE__ */ ((WidgetApiEvent2) => {
|
|
|
2314
2316
|
return WidgetApiEvent2;
|
|
2315
2317
|
})(WidgetApiEvent || {});
|
|
2316
2318
|
var WidgetApiImpl = class extends BaseApi {
|
|
2319
|
+
getSyncInfo(widgetName) {
|
|
2320
|
+
return this.invokeMethod("getSyncInfo", widgetName);
|
|
2321
|
+
}
|
|
2322
|
+
updateSyncInfo() {
|
|
2323
|
+
return this.invokeMethod("updateSyncInfo");
|
|
2324
|
+
}
|
|
2317
2325
|
reload(id) {
|
|
2318
2326
|
return this.invokeMethod("reload", id);
|
|
2319
2327
|
}
|