@cloudbase/framework-plugin-low-code 0.7.36 → 0.7.39
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.
|
@@ -6,7 +6,7 @@ export declare function originJsonToFileList(appData: IWeAppData): (import("../t
|
|
|
6
6
|
code: string;
|
|
7
7
|
pageId: string;
|
|
8
8
|
})[];
|
|
9
|
-
export declare function getExtByType(type: CodeType): ".
|
|
9
|
+
export declare function getExtByType(type: CodeType): ".less" | ".js" | ".json";
|
|
10
10
|
export declare function HACK_FIX_LOWCODE_IN(code?: string): string;
|
|
11
11
|
export declare function HACK_FIX_LOWCODE_OUT(code?: string): string;
|
|
12
12
|
//# sourceMappingURL=file.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/framework-plugin-low-code",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.39",
|
|
4
4
|
"description": "云开发 Tencent CloudBase Framework Low Code Plugin,将低码配置生成完整项目并一键部署云开发资源。",
|
|
5
5
|
"author": "yhsunshining@gmail.com",
|
|
6
6
|
"homepage": "https://github.com/TencentCloudBase/cloudbase-framework#readme",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"url": "https://github.com/TencentCloudBase/cloudbase-framework/issues"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@cloudbase/cals": "0.3.
|
|
38
|
+
"@cloudbase/cals": "0.3.37",
|
|
39
39
|
"@cloudbase/framework-core": "^1.8.16",
|
|
40
40
|
"@cloudbase/framework-plugin-auth": "^1.8.16",
|
|
41
41
|
"@cloudbase/framework-plugin-mp": "v1.3.6-beta.8",
|
|
@@ -87,4 +87,4 @@
|
|
|
87
87
|
"jest": "^26.0.1",
|
|
88
88
|
"typescript": "^3.8.3"
|
|
89
89
|
}
|
|
90
|
-
}
|
|
90
|
+
}
|
|
@@ -218,7 +218,6 @@ export async function checkAnonymous() {
|
|
|
218
218
|
* 检查页面权限
|
|
219
219
|
**/
|
|
220
220
|
export async function checkAuth(app, appId, $page) {
|
|
221
|
-
return true
|
|
222
221
|
<% if (isAdminPortal || isXPage) { %>return true;<% } %>
|
|
223
222
|
app.showNavigationBarLoading();
|
|
224
223
|
const { loginConfigVersion } = app.__internal__.getConfig();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { observable, autorun, untracked } from 'mobx';
|
|
3
|
-
import { remove, set as lodashSet } from 'lodash';
|
|
3
|
+
import { remove, set as lodashSet, get as lodashGet, isEqual } from 'lodash';
|
|
4
4
|
import { checkVisible } from '../../utils/index';
|
|
5
5
|
|
|
6
6
|
export const WidgetsContext = React.createContext({ parent: null });
|
|
@@ -272,7 +272,18 @@ export function createWidgets(widgetProps, dataBinds, scopeContext = {}, context
|
|
|
272
272
|
const paths = prop.split('.').filter((key) => !!key);
|
|
273
273
|
if (paths.length > 1) {
|
|
274
274
|
// 一定要 untracked 不然爆栈了
|
|
275
|
-
untracked(() =>
|
|
275
|
+
untracked(() => {
|
|
276
|
+
const pre = lodashGet(w, prop);
|
|
277
|
+
lodashSet(w, prop, value);
|
|
278
|
+
/**
|
|
279
|
+
* 深层的对象内部值变化不会触发 obverver,因此浅拷贝对象
|
|
280
|
+
*/
|
|
281
|
+
if (Array.isArray(w[paths[0]])) {
|
|
282
|
+
if (!isEqual(pre, value)) {
|
|
283
|
+
w[paths[0]] = [...w[paths[0]]];
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
});
|
|
276
287
|
} else {
|
|
277
288
|
// 普通 key 直接赋值
|
|
278
289
|
w[prop] = value;
|