提交 d2504f4c 编写于 作者: Z zhangxinyue

bug fix

Signed-off-by: Nzhangxinyue <zhangxinyue38@huawei.com>
上级 8b3d4d9a
...@@ -46,8 +46,8 @@ struct slider { ...@@ -46,8 +46,8 @@ struct slider {
.blockColor('#FFFF0000') .blockColor('#FFFF0000')
.selectedColor('#FF0000FF') .selectedColor('#FF0000FF')
.trackColor('#FF808080') .trackColor('#FF808080')
.minLabel('10') .minLabel('0')
.maxLabel('10') .maxLabel('100')
.showTips(false) .showTips(false)
.showSteps(false) .showSteps(false)
.onChange((value: number, mode: SliderChangeMode) => { .onChange((value: number, mode: SliderChangeMode) => {
......
...@@ -67,7 +67,7 @@ export default function sliderJsunit() { ...@@ -67,7 +67,7 @@ export default function sliderJsunit() {
console.info("component obj is Slider: " + JSON.stringify(obj.$attrs.constructor)); console.info("component obj is Slider: " + JSON.stringify(obj.$attrs.constructor));
expect(obj.$attrs.showTips).assertEqual("false") expect(obj.$attrs.showTips).assertEqual("false")
expect(obj.$attrs.showSteps).assertEqual("false") expect(obj.$attrs.showSteps).assertEqual("false")
expect(obj.$attrs.constructor.value).assertEqual(10.000000.toFixed(6)) expect(obj.$attrs.constructor.value).assertEqual(40.000000.toFixed(6))
expect(obj.$attrs.constructor.min).assertEqual(0.000000.toFixed(6)) expect(obj.$attrs.constructor.min).assertEqual(0.000000.toFixed(6))
expect(obj.$attrs.constructor.max).assertEqual(100.000000.toFixed(6)) expect(obj.$attrs.constructor.max).assertEqual(100.000000.toFixed(6))
expect(obj.$attrs.constructor.step).assertEqual(1.000000.toFixed(6)) expect(obj.$attrs.constructor.step).assertEqual(1.000000.toFixed(6))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册