提交 d2504f4c 编写于 作者: Z zhangxinyue

bug fix

Signed-off-by: Nzhangxinyue <zhangxinyue38@huawei.com>
上级 8b3d4d9a
......@@ -46,8 +46,8 @@ struct slider {
.blockColor('#FFFF0000')
.selectedColor('#FF0000FF')
.trackColor('#FF808080')
.minLabel('10')
.maxLabel('10')
.minLabel('0')
.maxLabel('100')
.showTips(false)
.showSteps(false)
.onChange((value: number, mode: SliderChangeMode) => {
......
......@@ -67,7 +67,7 @@ export default function sliderJsunit() {
console.info("component obj is Slider: " + JSON.stringify(obj.$attrs.constructor));
expect(obj.$attrs.showTips).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.max).assertEqual(100.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.
先完成此消息的编辑!
想要评论请 注册