[improvement] Slider: support number type of bar-height prop (#3794)

This commit is contained in:
neverland
2019-07-09 17:02:05 +08:00
committed by GitHub
parent 06cf48c4c5
commit 7caf664e48
5 changed files with 27 additions and 6 deletions
+11
View File
@@ -105,3 +105,14 @@ it('click vertical', () => {
restoreMock();
});
it('bar height', () => {
const wrapper = mount(Slider, {
propsData: {
value: 50,
barHeight: 10
}
});
expect(wrapper).toMatchSnapshot();
});