@subiz/widget-v4 4.1.106 → 4.1.107
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/compiled_src/popup/popup.js +7 -1
- package/dist/132.js +7 -1
- package/dist/{19258dbe3c2.132.js → 1927039db4c.132.js} +1 -1
- package/dist/1927039db4c.app.js +1 -0
- package/dist/{19258dbe3c2.index.html → 1927039db4c.index.html} +1 -1
- package/dist/{19258dbe3c2.library.html → 1927039db4c.library.html} +1 -1
- package/dist/1927039db4c.library.js +1 -0
- package/dist/{19258dbe3c2.preview.html → 1927039db4c.preview.html} +1 -1
- package/dist/1927039db4c.preview.js +1 -0
- package/dist/1927039db4c.webview.js +1 -0
- package/dist/HASH +1 -1
- package/dist/screenshoot.js +2 -2
- package/package.json +1 -1
- package/src/popup/popup.js +7 -1
- package/dist/19258dbe3c2.app.js +0 -1
- package/dist/19258dbe3c2.library.js +0 -1
- package/dist/19258dbe3c2.preview.js +0 -1
- package/dist/19258dbe3c2.webview.js +0 -1
- /package/dist/{19258dbe3c2.127.js → 1927039db4c.127.js} +0 -0
- /package/dist/{19258dbe3c2.185.js → 1927039db4c.185.js} +0 -0
- /package/dist/{19258dbe3c2.27.js → 1927039db4c.27.js} +0 -0
- /package/dist/{19258dbe3c2.278.js → 1927039db4c.278.js} +0 -0
- /package/dist/{19258dbe3c2.459.js → 1927039db4c.459.js} +0 -0
- /package/dist/{19258dbe3c2.490.js → 1927039db4c.490.js} +0 -0
- /package/dist/{19258dbe3c2.74.js → 1927039db4c.74.js} +0 -0
- /package/dist/{19258dbe3c2.997.js → 1927039db4c.997.js} +0 -0
package/package.json
CHANGED
package/src/popup/popup.js
CHANGED
|
@@ -906,6 +906,12 @@ export default class Popup extends Com {
|
|
|
906
906
|
return containercss
|
|
907
907
|
}
|
|
908
908
|
|
|
909
|
+
onClickOverlay() {
|
|
910
|
+
let popup = sb.get(this.props.plugin, 'popup', {})
|
|
911
|
+
if (!popup.overlay) return
|
|
912
|
+
this.setClose(true)
|
|
913
|
+
}
|
|
914
|
+
|
|
909
915
|
render() {
|
|
910
916
|
if (!this.props.t) return null
|
|
911
917
|
if (!this.state.cssready) return null
|
|
@@ -984,7 +990,7 @@ export default class Popup extends Com {
|
|
|
984
990
|
}
|
|
985
991
|
|
|
986
992
|
return (
|
|
987
|
-
<div class='overlay' style={overlaystyle}>
|
|
993
|
+
<div class='overlay' style={overlaystyle} onClick={() => this.onClickOverlay()}>
|
|
988
994
|
<div class={animation} style={this.js2css(containercss)} onClick={(e) => e.stopPropagation()}>
|
|
989
995
|
{this.renderCloseButton()}
|
|
990
996
|
<div style={this.js2css(bodycss)} onClick={(e) => this.onButtonClick(e, 'background')}>
|