@chamn/render 0.0.32 → 0.0.33
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/core/designReactRender.d.ts +2 -0
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -2
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -4388,6 +4388,8 @@ const qm = (t) => {
|
|
|
4388
4388
|
"div",
|
|
4389
4389
|
{
|
|
4390
4390
|
style: {
|
|
4391
|
+
margin: 0,
|
|
4392
|
+
padding: 0,
|
|
4391
4393
|
display: "flex",
|
|
4392
4394
|
alignItems: "center",
|
|
4393
4395
|
justifyContent: "center",
|
|
@@ -4411,6 +4413,7 @@ class iv extends O.Component {
|
|
|
4411
4413
|
y(this, "instanceManager", new Qm());
|
|
4412
4414
|
y(this, "renderRef");
|
|
4413
4415
|
y(this, "dropPlaceholder", qm);
|
|
4416
|
+
y(this, "_components", {});
|
|
4414
4417
|
y(this, "onGetComponent", (r, n) => {
|
|
4415
4418
|
var c, u;
|
|
4416
4419
|
const o = this;
|
|
@@ -4464,11 +4467,14 @@ class iv extends O.Component {
|
|
|
4464
4467
|
);
|
|
4465
4468
|
});
|
|
4466
4469
|
});
|
|
4467
|
-
this.renderRef = O.createRef(), r.dropPlaceholder && (this.dropPlaceholder = r.dropPlaceholder);
|
|
4470
|
+
this.updateComponents(this.props.components), this.renderRef = O.createRef(), r.dropPlaceholder && (this.dropPlaceholder = r.dropPlaceholder);
|
|
4471
|
+
}
|
|
4472
|
+
updateComponents(r = {}) {
|
|
4473
|
+
this._components = Object.assign(this._components, r), this.forceUpdate();
|
|
4468
4474
|
}
|
|
4469
4475
|
componentDidMount() {
|
|
4470
4476
|
var r, n;
|
|
4471
|
-
(n = (r = this.props).onMount) == null || n.call(r, this);
|
|
4477
|
+
this.updateComponents(this.props.components), (n = (r = this.props).onMount) == null || n.call(r, this);
|
|
4472
4478
|
}
|
|
4473
4479
|
getPageModel() {
|
|
4474
4480
|
var r;
|
|
@@ -4512,6 +4518,7 @@ class iv extends O.Component {
|
|
|
4512
4518
|
return o && (o.ref.current = this), O.createElement(Jm, {
|
|
4513
4519
|
onGetComponent: n,
|
|
4514
4520
|
...a,
|
|
4521
|
+
components: this._components,
|
|
4515
4522
|
// 拦截特殊属性配置, 配合开发模式使用
|
|
4516
4523
|
processNodeConfigHook: (i, s) => {
|
|
4517
4524
|
var h, g;
|