feat(Slider): add button-size prop

This commit is contained in:
陈嘉涵
2020-01-27 12:18:36 +08:00
parent 6ddd7ae69b
commit 1e9b8c8466
5 changed files with 41 additions and 4 deletions
+12 -1
View File
@@ -111,7 +111,7 @@ it('click vertical', () => {
restoreMock();
});
it('bar height', () => {
it('bar-height prop', () => {
const wrapper = mount(Slider, {
propsData: {
value: 50,
@@ -122,6 +122,17 @@ it('bar height', () => {
expect(wrapper).toMatchSnapshot();
});
it('button-size prop', () => {
const wrapper = mount(Slider, {
propsData: {
value: 50,
buttonSize: 10,
},
});
expect(wrapper).toMatchSnapshot();
});
it('should not emit change event when value not changed', () => {
const wrapper = mount(Slider, {
propsData: {