pixuireactcomponents 1.3.11 → 1.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixuireactcomponents",
3
- "version": "1.3.11",
3
+ "version": "1.3.12",
4
4
  "description": "pixui react components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,6 +31,7 @@ export interface SliderProps {
31
31
  rangeControl?: boolean;
32
32
  startRange?: number;
33
33
  endRange?: number;
34
+ hasDot?: boolean;
34
35
  }
35
36
  export declare class Slider extends Component<SliderProps, {
36
37
  percent: number;
@@ -275,13 +275,13 @@ var Slider = /** @class */ (function (_super) {
275
275
  this.computeIncButtonStyle();
276
276
  this.computeDecButtonStyle();
277
277
  this.computeWithButtonStyle();
278
+ var hasDot = this.props.hasDot === undefined || this.props.hasDot === true;
278
279
  return (h("div", { style: this.props.hasIncDecButton ? withButtonStyle : {} },
279
280
  this.props.hasIncDecButton && h("img", { src: this.props.decButtonBg, style: decButtonStyle, onClick: this.onDecClick }),
280
281
  h("div", { ref: this.refWrapper, style: wrapperStyle },
281
282
  h("div", { style: outerStyle },
282
283
  h("div", { style: innerStyle },
283
- h("div", { style: dotWrapperStyle, draggable: true, onDragStart: this.onDragStart, onDrag: this.onDrag, onDragEnd: this.onDragEnd },
284
- h("img", { src: this.props.dotBg, style: dotStyle }))))),
284
+ h("div", { style: dotWrapperStyle, draggable: true, onDragStart: this.onDragStart, onDrag: this.onDrag, onDragEnd: this.onDragEnd }, hasDot && h("img", { src: this.props.dotBg, style: dotStyle }))))),
285
285
  this.props.hasIncDecButton && h("img", { src: this.props.incButtonBg, style: incButtonStyle, onClick: this.onIncClick })));
286
286
  };
287
287
  return Slider;