@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.cjs
CHANGED
|
@@ -146,6 +146,7 @@ var Page = class {
|
|
|
146
146
|
*/
|
|
147
147
|
description;
|
|
148
148
|
keywords;
|
|
149
|
+
security;
|
|
149
150
|
/**
|
|
150
151
|
* 组件默认语言
|
|
151
152
|
*/
|
|
@@ -187,6 +188,7 @@ var Page = class {
|
|
|
187
188
|
this.previewImage = options.previewImage;
|
|
188
189
|
this.path = options.path;
|
|
189
190
|
this.meta = options.meta ?? {};
|
|
191
|
+
this.security = options.security ?? false;
|
|
190
192
|
}
|
|
191
193
|
/**
|
|
192
194
|
* 获取组件标题
|
|
@@ -1987,6 +1989,10 @@ var LogApiImpl = class extends BaseApi {
|
|
|
1987
1989
|
console.log(...data);
|
|
1988
1990
|
this.invokeMethod("log", ...data);
|
|
1989
1991
|
}
|
|
1992
|
+
json(data) {
|
|
1993
|
+
const json = JSON.stringify(data, null, 2);
|
|
1994
|
+
this.invokeMethod("info", json);
|
|
1995
|
+
}
|
|
1990
1996
|
};
|
|
1991
1997
|
var LogApi = new LogApiImpl();
|
|
1992
1998
|
|