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
|
@@ -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;
|