@widget-js/core 0.7.8 → 0.7.9
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 +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -112,6 +112,7 @@ interface IPageOptions extends IWindowSize {
|
|
|
112
112
|
movable?: boolean;
|
|
113
113
|
resizable?: boolean;
|
|
114
114
|
backgroundThrottling?: boolean;
|
|
115
|
+
security?: boolean;
|
|
115
116
|
path: string;
|
|
116
117
|
/**
|
|
117
118
|
* 是否只能添加一次
|
|
@@ -168,6 +169,7 @@ declare class Page implements IPage {
|
|
|
168
169
|
*/
|
|
169
170
|
readonly description: LanguageTextMap;
|
|
170
171
|
readonly keywords: WidgetKeyword[];
|
|
172
|
+
readonly security: boolean;
|
|
171
173
|
/**
|
|
172
174
|
* 组件默认语言
|
|
173
175
|
*/
|
|
@@ -1414,6 +1416,7 @@ interface ILogApi {
|
|
|
1414
1416
|
error(...data: any[]): void;
|
|
1415
1417
|
warn(...data: any[]): void;
|
|
1416
1418
|
log(...data: any[]): void;
|
|
1419
|
+
json(data: any): void;
|
|
1417
1420
|
}
|
|
1418
1421
|
type LogApiMethods = keyof ILogApi;
|
|
1419
1422
|
declare const LogApi: ILogApi;
|
package/dist/index.js
CHANGED
|
@@ -64,6 +64,7 @@ var Page = class {
|
|
|
64
64
|
*/
|
|
65
65
|
description;
|
|
66
66
|
keywords;
|
|
67
|
+
security;
|
|
67
68
|
/**
|
|
68
69
|
* 组件默认语言
|
|
69
70
|
*/
|
|
@@ -105,6 +106,7 @@ var Page = class {
|
|
|
105
106
|
this.previewImage = options.previewImage;
|
|
106
107
|
this.path = options.path;
|
|
107
108
|
this.meta = options.meta ?? {};
|
|
109
|
+
this.security = options.security ?? false;
|
|
108
110
|
}
|
|
109
111
|
/**
|
|
110
112
|
* 获取组件标题
|
|
@@ -1905,6 +1907,10 @@ var LogApiImpl = class extends BaseApi {
|
|
|
1905
1907
|
console.log(...data);
|
|
1906
1908
|
this.invokeMethod("log", ...data);
|
|
1907
1909
|
}
|
|
1910
|
+
json(data) {
|
|
1911
|
+
const json = JSON.stringify(data, null, 2);
|
|
1912
|
+
this.invokeMethod("info", json);
|
|
1913
|
+
}
|
|
1908
1914
|
};
|
|
1909
1915
|
var LogApi = new LogApiImpl();
|
|
1910
1916
|
|