pixuireactcomponents 1.1.9 → 1.1.10

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.
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "pixuireactcomponents",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "pixui react components",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },
9
- "author": "hardenzheng",
9
+ "author": "nepdai",
10
10
  "license": "ISC"
11
11
  }
@@ -4,6 +4,7 @@ export interface SliderProps {
4
4
  wrapperWidth: number;
5
5
  wrapperHeight: number;
6
6
  height: number;
7
+ innerHeight?: number;
7
8
  dotWidth: number;
8
9
  dotHeight: number;
9
10
  dotWrapperWidth: number;
@@ -200,7 +200,7 @@ var Slider = /** @class */ (function (_super) {
200
200
  var _width = Math.floor(_this.state.percent / 100) + "%";
201
201
  innerStyle = {
202
202
  width: _width,
203
- height: '100%',
203
+ height: (_this.props.innerHeight != null) ? _this.props.innerHeight + "px" : '100%',
204
204
  backgroundImage: "url(".concat(_this.props.innerBg, ")"),
205
205
  backgroundSize: '100% 100%',
206
206
  display: 'flex',