easy3wmui 0.0.42-beta18 → 0.0.42-beta19

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.
@@ -29,52 +29,18 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'd
29
29
  var Easy3wMGlobalFooter = function (_Component) {
30
30
  (0, _inherits3['default'])(Easy3wMGlobalFooter, _Component);
31
31
 
32
- function Easy3wMGlobalFooter(props) {
32
+ function Easy3wMGlobalFooter() {
33
33
  (0, _classCallCheck3['default'])(this, Easy3wMGlobalFooter);
34
-
35
- var _this = (0, _possibleConstructorReturn3['default'])(this, _Component.call(this, props));
36
-
37
- _this.touchFooterStyle = function () {
38
- var element = document.getElementById('Easy3wMGlobalFooter');
39
- var viewHeight = window.innerHeight; // 目标可视区的高度
40
- var elementBottom = element.getBoundingClientRect().bottom; // 目标div上边框距离可视区的上边界的距离
41
- // elementTop === viewHeight div上边框正好与可视区下边框重叠
42
- if (elementBottom < viewHeight) {
43
- // 达到目标区域
44
- // console.log('div出现在可视区!');
45
- _this.setState({
46
- bottomFixed: true // 是否固定于页面底部
47
- });
48
- } else {
49
- _this.setState({
50
- bottomFixed: false // 是否固定于页面底部
51
- });
52
- }
53
- };
54
-
55
- _this.state = {
56
- bottomFixed: false // 是否固定于页面底部
57
- };
58
- return _this;
34
+ return (0, _possibleConstructorReturn3['default'])(this, _Component.apply(this, arguments));
59
35
  }
60
36
 
61
- Easy3wMGlobalFooter.prototype.componentDidMount = function componentDidMount() {};
62
-
63
- Easy3wMGlobalFooter.prototype.componentWillUnmount = function componentWillUnmount() {};
64
- // 底部样式监听
65
-
66
-
67
37
  Easy3wMGlobalFooter.prototype.render = function render() {
68
- var bottomFixed = this.state.bottomFixed;
69
38
  var _props = this.props,
70
- globalLoading = _props.globalLoading,
39
+ bottomFixed = _props.bottomFixed,
71
40
  className = _props.className,
72
41
  links = _props.links,
73
42
  copyright = _props.copyright;
74
43
 
75
- if (globalLoading === false) {
76
- window.onload = this.touchFooterStyle;
77
- }
78
44
  var clsString = (0, _classnames2['default'])(className, { bottomFixed: bottomFixed });
79
45
  return _react2['default'].createElement(
80
46
  'div',
@@ -81,7 +81,7 @@ var Easy3wMInsideLayout = function (_Component) {
81
81
  links = _props.links,
82
82
  copyrightContent = _props.copyrightContent,
83
83
  routeDataLayout = _props.routeDataLayout,
84
- globalLoading = _props.globalLoading;
84
+ bottomFixed = _props.bottomFixed;
85
85
 
86
86
  var hadHaederFlag = includeHeaderFlag !== '0';
87
87
  var copyRightFlag = includeCopyRightFlag !== '0';
@@ -121,7 +121,7 @@ var Easy3wMInsideLayout = function (_Component) {
121
121
  )
122
122
  ),
123
123
  copyRightFlag ? _react2['default'].createElement(_Easy3wMGlobalFooter2['default'], {
124
- globalLoading: globalLoading,
124
+ bottomFixed: bottomFixed,
125
125
  links: links,
126
126
  copyright: copyright
127
127
  }) : ''
@@ -78,7 +78,7 @@ var Easy3wMUserLayout = function (_PureComponent) {
78
78
  copyrightContent = _props.copyrightContent,
79
79
  headerElem = _props.headerElem,
80
80
  links = _props.links,
81
- globalLoading = _props.globalLoading,
81
+ bottomFixed = _props.bottomFixed,
82
82
  rootRedirectPath = _props.rootRedirectPath,
83
83
  routeDataLayout = _props.routeDataLayout,
84
84
  backImg = _props.backImg,
@@ -124,7 +124,7 @@ var Easy3wMUserLayout = function (_PureComponent) {
124
124
  )
125
125
  ),
126
126
  copyRightFlag ? _react2['default'].createElement(_Easy3wMGlobalFooter2['default'], {
127
- globalLoading: globalLoading,
127
+ bottomFixed: bottomFixed,
128
128
  links: links,
129
129
  copyright: copyright
130
130
  }) : ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wmui",
3
- "version": "0.0.42-beta18",
3
+ "version": "0.0.42-beta19",
4
4
  "description": "easy3wmui components for react",
5
5
  "keywords": [
6
6
  "react",