@signalplus/params-about 0.1.45 → 0.1.46

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.
Files changed (2) hide show
  1. package/lib/es/index.js +10 -2
  2. package/package.json +1 -1
package/lib/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Bundle of @signalplus/params-about
3
- * Generated: 2022-04-24
4
- * Version: 0.1.45
3
+ * Generated: 2022-04-26
4
+ * Version: 0.1.46
5
5
  * License: MIT
6
6
  * Author: 2631541504@qq.com
7
7
  */
@@ -1594,6 +1594,7 @@ var ParamFormModal = /*#__PURE__*/function () {
1594
1594
  _createClass(ParamFormModal, null, [{
1595
1595
  key: "show",
1596
1596
  value: function show(props) {
1597
+ window.addEventListener('popstate', ParamFormModal.hide);
1597
1598
  return ParamFormModal.el.render(props).then(function () {
1598
1599
  ParamFormModal.el.ref.onShow();
1599
1600
  });
@@ -1601,6 +1602,7 @@ var ParamFormModal = /*#__PURE__*/function () {
1601
1602
  }, {
1602
1603
  key: "hide",
1603
1604
  value: function hide() {
1605
+ window.removeEventListener('popstate', ParamFormModal.hide);
1604
1606
  return ParamFormModal.el.render().then(function () {
1605
1607
  ParamFormModal.el.ref.onHide();
1606
1608
  });
@@ -1820,6 +1822,7 @@ var ParamValueEditorModal = /*#__PURE__*/function () {
1820
1822
  _createClass(ParamValueEditorModal, null, [{
1821
1823
  key: "show",
1822
1824
  value: function show(props) {
1825
+ window.addEventListener('popstate', ParamValueEditorModal.hide);
1823
1826
  return ParamValueEditorModal.el.render(props).then(function () {
1824
1827
  ParamValueEditorModal.el.ref.onShow();
1825
1828
  });
@@ -1827,6 +1830,7 @@ var ParamValueEditorModal = /*#__PURE__*/function () {
1827
1830
  }, {
1828
1831
  key: "hide",
1829
1832
  value: function hide() {
1833
+ window.removeEventListener('popstate', ParamValueEditorModal.hide);
1830
1834
  return ParamValueEditorModal.el.render().then(function () {
1831
1835
  ParamValueEditorModal.el.ref.onHide();
1832
1836
  });
@@ -2099,6 +2103,7 @@ var ParamGroupEditorModal = /*#__PURE__*/function () {
2099
2103
  _createClass(ParamGroupEditorModal, null, [{
2100
2104
  key: "show",
2101
2105
  value: function show(props) {
2106
+ window.addEventListener('popstate', ParamGroupEditorModal.hide);
2102
2107
  return ParamGroupEditorModal.el.render(props).then(function () {
2103
2108
  ParamGroupEditorModal.el.ref.onShow();
2104
2109
  });
@@ -2106,6 +2111,7 @@ var ParamGroupEditorModal = /*#__PURE__*/function () {
2106
2111
  }, {
2107
2112
  key: "hide",
2108
2113
  value: function hide() {
2114
+ window.removeEventListener('popstate', ParamGroupEditorModal.hide);
2109
2115
  return ParamGroupEditorModal.el.render().then(function () {
2110
2116
  ParamGroupEditorModal.el.ref.onHide();
2111
2117
  });
@@ -2380,6 +2386,7 @@ var ParamMoverModal = /*#__PURE__*/function () {
2380
2386
  _createClass(ParamMoverModal, null, [{
2381
2387
  key: "show",
2382
2388
  value: function show(props) {
2389
+ window.addEventListener('popstate', ParamMoverModal.hide);
2383
2390
  return ParamMoverModal.el.render(props).then(function () {
2384
2391
  ParamMoverModal.el.ref.onShow();
2385
2392
  });
@@ -2387,6 +2394,7 @@ var ParamMoverModal = /*#__PURE__*/function () {
2387
2394
  }, {
2388
2395
  key: "hide",
2389
2396
  value: function hide() {
2397
+ window.removeEventListener('popstate', ParamMoverModal.hide);
2390
2398
  return ParamMoverModal.el.render().then(function () {
2391
2399
  ParamMoverModal.el.ref.onHide();
2392
2400
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalplus/params-about",
3
- "version": "0.1.45",
3
+ "version": "0.1.46",
4
4
  "description": "A description for the module",
5
5
  "main": "./lib/umd/index.js",
6
6
  "module": "./lib/es/index.js",