nuke-components
Advanced tools
Comparing version 0.2.23 to 0.2.24
# Changelog | ||
## 0.2.24 / 2017-05-03 | ||
* [[0d28f90](http://gitlab.alibaba-inc.com/nuke/components/commit/0d28f901cde8d014059a0c77c506427fcc90651f)] - `feat` add sticky for h5 header | ||
## 0.2.23 / 2017-05-03 | ||
@@ -5,0 +9,0 @@ |
@@ -29,2 +29,4 @@ 'use strict'; | ||
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -80,3 +82,8 @@ | ||
} else { | ||
return (0, _rax.createElement)(_view2.default, _extends({ x: 'header' }, this.props)); | ||
var _props = this.props, | ||
_props$style = _props.style, | ||
style = _props$style === undefined ? {} : _props$style, | ||
others = _objectWithoutProperties(_props, ['style']); | ||
return (0, _rax.createElement)(_view2.default, _extends({ x: 'header', style: [{ position: 'sticky' }, style] }, others)); | ||
} | ||
@@ -83,0 +90,0 @@ } |
{ | ||
"name": "nuke-components", | ||
"version": "0.2.23", | ||
"version": "0.2.24", | ||
"description": "nuke原件库", | ||
@@ -5,0 +5,0 @@ "main": "lib/index", |
@@ -34,3 +34,4 @@ /* @jsx createElement */ | ||
} else { | ||
return <View x="header" {...this.props} />; | ||
const {style={},...others} = this.props; | ||
return <View x="header" style={[{position:'sticky'},style]} {...others} />; | ||
} | ||
@@ -37,0 +38,0 @@ } |
135255
2497