@michengai/dsh-im-connect 0.1.11 → 0.1.12
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/client.js +2 -5
- package/lib/client.js +2 -5
- package/package.json +1 -1
package/client.js
CHANGED
|
@@ -546,7 +546,7 @@ window.__ModuleLoader__.load({
|
|
|
546
546
|
return () => window.removeEventListener("keydown", onKey, true);
|
|
547
547
|
}, [props.open, props.onCancel]);
|
|
548
548
|
if (!props.open) return null;
|
|
549
|
-
return h("div", {
|
|
549
|
+
return ReactDOM.createPortal(h("div", {
|
|
550
550
|
className: "ima-mask",
|
|
551
551
|
role: "presentation",
|
|
552
552
|
onMouseDown: (event) => event.stopPropagation(),
|
|
@@ -579,7 +579,7 @@ window.__ModuleLoader__.load({
|
|
|
579
579
|
h("button", { className: "ima-btn", onClick: props.onCancel }, "取消"),
|
|
580
580
|
h("button", { className: "ima-btn primary", disabled: !props.acknowledged, onClick: props.onConfirm }, "启用 完全访问"),
|
|
581
581
|
),
|
|
582
|
-
));
|
|
582
|
+
)), document.body);
|
|
583
583
|
}
|
|
584
584
|
|
|
585
585
|
function ComposerBar(props) {
|
|
@@ -1816,6 +1816,3 @@ window.__ModuleLoader__.load({
|
|
|
1816
1816
|
|
|
1817
1817
|
|
|
1818
1818
|
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
package/lib/client.js
CHANGED
|
@@ -546,7 +546,7 @@ window.__ModuleLoader__.load({
|
|
|
546
546
|
return () => window.removeEventListener("keydown", onKey, true);
|
|
547
547
|
}, [props.open, props.onCancel]);
|
|
548
548
|
if (!props.open) return null;
|
|
549
|
-
return h("div", {
|
|
549
|
+
return ReactDOM.createPortal(h("div", {
|
|
550
550
|
className: "ima-mask",
|
|
551
551
|
role: "presentation",
|
|
552
552
|
onMouseDown: (event) => event.stopPropagation(),
|
|
@@ -579,7 +579,7 @@ window.__ModuleLoader__.load({
|
|
|
579
579
|
h("button", { className: "ima-btn", onClick: props.onCancel }, "取消"),
|
|
580
580
|
h("button", { className: "ima-btn primary", disabled: !props.acknowledged, onClick: props.onConfirm }, "启用 完全访问"),
|
|
581
581
|
),
|
|
582
|
-
));
|
|
582
|
+
)), document.body);
|
|
583
583
|
}
|
|
584
584
|
|
|
585
585
|
function ComposerBar(props) {
|
|
@@ -1816,6 +1816,3 @@ window.__ModuleLoader__.load({
|
|
|
1816
1816
|
|
|
1817
1817
|
|
|
1818
1818
|
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|