@fonixtree/magic-design 0.2.11 → 0.2.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.
@@ -128,6 +128,20 @@ function (_super) {
128
128
  }
129
129
  };
130
130
 
131
+ CountDown.prototype.componentDidMount = function () {
132
+ var _this = this;
133
+
134
+ this.setState({
135
+ nowTime: this.props.now
136
+ }, function () {
137
+ _this.clearTimer();
138
+
139
+ _this.calcLastTime();
140
+
141
+ _this.timer = setInterval(_this.calcLastTime, 1000);
142
+ });
143
+ };
144
+
131
145
  CountDown.prototype.render = function () {
132
146
  var _a = this.state,
133
147
  hour = _a.hour,
@@ -128,6 +128,20 @@ function (_super) {
128
128
  }
129
129
  };
130
130
 
131
+ CountDown.prototype.componentDidMount = function () {
132
+ var _this = this;
133
+
134
+ this.setState({
135
+ nowTime: this.props.now
136
+ }, function () {
137
+ _this.clearTimer();
138
+
139
+ _this.calcLastTime();
140
+
141
+ _this.timer = setInterval(_this.calcLastTime, 1000);
142
+ });
143
+ };
144
+
131
145
  CountDown.prototype.render = function () {
132
146
  var _a = this.state,
133
147
  hour = _a.hour,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "0.2.11",
4
+ "version": "0.2.12",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",