@fonixtree/magic-design 1.0.157 → 1.0.158

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.
@@ -524,15 +524,18 @@ function (_super) {
524
524
  _this.bannerGoto(_this.props.data.groupSource);
525
525
  });
526
526
  var navCardDom = document.querySelector('.navigation');
527
- document.addEventListener('click', function (event) {
528
- if (!navCardDom.contains(event.target)) {
529
- _this.setState({
530
- activeCatgId: null,
531
- visible: false,
532
- relativeLeft: 0
533
- });
534
- }
535
- });
527
+
528
+ if (navCardDom) {
529
+ document.addEventListener('click', function (event) {
530
+ if (!navCardDom.contains(event.target)) {
531
+ _this.setState({
532
+ activeCatgId: null,
533
+ visible: false,
534
+ relativeLeft: 0
535
+ });
536
+ }
537
+ });
538
+ }
536
539
  };
537
540
 
538
541
  SearchDitoPc.prototype.componentWillReceiveProps = function (nextProps) {
@@ -17,7 +17,8 @@
17
17
  content: '';
18
18
  display: block;
19
19
  width: 180%;
20
- height: 764px;
20
+ max-width: 672px;
21
+ height: 840px;
21
22
  position: absolute;
22
23
  transform: translate(-50%, -50%) rotate(-45deg) scale(0);
23
24
  top: 50%;
@@ -29,7 +30,7 @@
29
30
  background-size: 100%;
30
31
  background-repeat: no-repeat;
31
32
  background-position: center;
32
- transition: transform 1s linear;
33
+ transition: transform 0.7s linear;
33
34
  pointer-events: none;
34
35
  }
35
36
 
@@ -524,15 +524,18 @@ function (_super) {
524
524
  _this.bannerGoto(_this.props.data.groupSource);
525
525
  });
526
526
  var navCardDom = document.querySelector('.navigation');
527
- document.addEventListener('click', function (event) {
528
- if (!navCardDom.contains(event.target)) {
529
- _this.setState({
530
- activeCatgId: null,
531
- visible: false,
532
- relativeLeft: 0
533
- });
534
- }
535
- });
527
+
528
+ if (navCardDom) {
529
+ document.addEventListener('click', function (event) {
530
+ if (!navCardDom.contains(event.target)) {
531
+ _this.setState({
532
+ activeCatgId: null,
533
+ visible: false,
534
+ relativeLeft: 0
535
+ });
536
+ }
537
+ });
538
+ }
536
539
  };
537
540
 
538
541
  SearchDitoPc.prototype.componentWillReceiveProps = function (nextProps) {
@@ -17,7 +17,8 @@
17
17
  content: '';
18
18
  display: block;
19
19
  width: 180%;
20
- height: 764px;
20
+ max-width: 672px;
21
+ height: 840px;
21
22
  position: absolute;
22
23
  transform: translate(-50%, -50%) rotate(-45deg) scale(0);
23
24
  top: 50%;
@@ -29,7 +30,7 @@
29
30
  background-size: 100%;
30
31
  background-repeat: no-repeat;
31
32
  background-position: center;
32
- transition: transform 1s linear;
33
+ transition: transform 0.7s linear;
33
34
  pointer-events: none;
34
35
  }
35
36
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fonixtree/magic-design",
3
3
  "author": "Cylon Team",
4
- "version": "1.0.157",
4
+ "version": "1.0.158",
5
5
  "description": "Magic Design",
6
6
  "license": "MIT",
7
7
  "module": "es/index.js",