@fonixtree/magic-design 0.0.171 → 0.0.172

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.
@@ -1,7 +1,6 @@
1
1
  .m-color-picker-panel {
2
- position: fixed;
3
- bottom: 5px;
4
2
  z-index: 999;
3
+ position: absolute;
5
4
 
6
5
  .panel-bg {
7
6
  position: fixed;
@@ -14,6 +14,13 @@
14
14
  // right: 20px;
15
15
  // }
16
16
 
17
+ .ant-carousel {
18
+ .slick-track {
19
+ display: flex;
20
+ align-items: center;
21
+ }
22
+ }
23
+
17
24
  .carouselItem {
18
25
  // height: 386px;
19
26
  position: relative;
@@ -1,6 +1,13 @@
1
1
  .m-banner-pc {
2
2
  position: relative;
3
3
 
4
+ .ant-carousel {
5
+ .slick-track {
6
+ display: flex;
7
+ align-items: center;
8
+ }
9
+ }
10
+
4
11
  .swiper-ban {
5
12
  position: absolute;
6
13
  width: 100%;
@@ -73,6 +73,13 @@ function (_super) {
73
73
 
74
74
  _this.preData = '';
75
75
  _this.preDevice = '';
76
+
77
+ _this.triggerButtonConfigRender = function () {
78
+ window.document.dispatchEvent(new Event('button-render', {
79
+ bubbles: false
80
+ }));
81
+ };
82
+
76
83
  return _this;
77
84
  }
78
85
 
@@ -102,6 +109,8 @@ function (_super) {
102
109
  _this.preData = JSON.stringify(__assign(__assign({}, JSON.parse(_this.preData)), {
103
110
  text: text
104
111
  }));
112
+
113
+ _this.triggerButtonConfigRender();
105
114
  },
106
115
  suppressContentEditableWarning: true
107
116
  }, data.text);
@@ -101,6 +101,14 @@ function (_super) {
101
101
  return _this;
102
102
  }
103
103
 
104
+ ButtonConfig.prototype.componentDidMount = function () {
105
+ window.document.addEventListener('button-render', this.selfRender);
106
+ };
107
+
108
+ ButtonConfig.prototype.componentWillUnmount = function () {
109
+ window.document.removeEventListener('button-render', this.selfRender);
110
+ };
111
+
104
112
  ButtonConfig.prototype.render = function () {
105
113
  var _this = this;
106
114
 
@@ -1,7 +1,6 @@
1
1
  .m-color-picker-panel {
2
- position: fixed;
3
- bottom: 5px;
4
2
  z-index: 999;
3
+ position: absolute;
5
4
 
6
5
  .panel-bg {
7
6
  position: fixed;
@@ -14,6 +14,13 @@
14
14
  // right: 20px;
15
15
  // }
16
16
 
17
+ .ant-carousel {
18
+ .slick-track {
19
+ display: flex;
20
+ align-items: center;
21
+ }
22
+ }
23
+
17
24
  .carouselItem {
18
25
  // height: 386px;
19
26
  position: relative;
@@ -1,6 +1,13 @@
1
1
  .m-banner-pc {
2
2
  position: relative;
3
3
 
4
+ .ant-carousel {
5
+ .slick-track {
6
+ display: flex;
7
+ align-items: center;
8
+ }
9
+ }
10
+
4
11
  .swiper-ban {
5
12
  position: absolute;
6
13
  width: 100%;
@@ -73,6 +73,13 @@ function (_super) {
73
73
 
74
74
  _this.preData = '';
75
75
  _this.preDevice = '';
76
+
77
+ _this.triggerButtonConfigRender = function () {
78
+ window.document.dispatchEvent(new Event('button-render', {
79
+ bubbles: false
80
+ }));
81
+ };
82
+
76
83
  return _this;
77
84
  }
78
85
 
@@ -102,6 +109,8 @@ function (_super) {
102
109
  _this.preData = JSON.stringify(__assign(__assign({}, JSON.parse(_this.preData)), {
103
110
  text: text
104
111
  }));
112
+
113
+ _this.triggerButtonConfigRender();
105
114
  },
106
115
  suppressContentEditableWarning: true
107
116
  }, data.text);
@@ -101,6 +101,14 @@ function (_super) {
101
101
  return _this;
102
102
  }
103
103
 
104
+ ButtonConfig.prototype.componentDidMount = function () {
105
+ window.document.addEventListener('button-render', this.selfRender);
106
+ };
107
+
108
+ ButtonConfig.prototype.componentWillUnmount = function () {
109
+ window.document.removeEventListener('button-render', this.selfRender);
110
+ };
111
+
104
112
  ButtonConfig.prototype.render = function () {
105
113
  var _this = this;
106
114
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.0.171",
4
+ "version": "0.0.172",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",