@pisell/lowcode-renderer 1.0.37 → 1.0.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.
- package/es/Render/index.js +5 -0
- package/lib/Render/index.js +3 -0
- package/package.json +2 -2
package/es/Render/index.js
CHANGED
|
@@ -39,6 +39,11 @@ var Render = function Render(props) {
|
|
|
39
39
|
i18n = _ref$i18n === void 0 ? {} : _ref$i18n,
|
|
40
40
|
_ref$projectDataSourc = _ref.projectDataSource,
|
|
41
41
|
projectDataSource = _ref$projectDataSourc === void 0 ? {} : _ref$projectDataSourc;
|
|
42
|
+
useEffect(function () {
|
|
43
|
+
// body追加id来处理antd 5 取消:where 时css权重问题
|
|
44
|
+
// 物料中css使用post-css追加 #body 前缀
|
|
45
|
+
document.body.id = "body";
|
|
46
|
+
}, []);
|
|
42
47
|
useEffect(function () {
|
|
43
48
|
function init() {
|
|
44
49
|
return _init.apply(this, arguments);
|
package/lib/Render/index.js
CHANGED
|
@@ -50,6 +50,9 @@ var Render = (props) => {
|
|
|
50
50
|
} = props;
|
|
51
51
|
const [data, setData] = (0, import_react.useState)({});
|
|
52
52
|
const { schema, components, i18n = {}, projectDataSource = {} } = data;
|
|
53
|
+
(0, import_react.useEffect)(() => {
|
|
54
|
+
document.body.id = "body";
|
|
55
|
+
}, []);
|
|
53
56
|
(0, import_react.useEffect)(() => {
|
|
54
57
|
async function init() {
|
|
55
58
|
if (!projectSchema)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/lowcode-renderer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.39",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@alifd/next": "^1.25.44",
|
|
19
19
|
"lodash-es": "^4.17.21",
|
|
20
20
|
"dayjs": "^1.11.9",
|
|
21
|
-
"@pisell/utils": "1.0.
|
|
21
|
+
"@pisell/utils": "1.0.20"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"react": ">=16.9.0",
|