feat(Stepper): add show-input prop (#7812)

This commit is contained in:
neverland
2020-12-24 20:23:32 +08:00
committed by GitHub
parent 1fac5c5f4f
commit 97509a90b1
4 changed files with 17 additions and 0 deletions
+10
View File
@@ -277,6 +277,16 @@ test('show-plus & show-minus props', () => {
expect(wrapper).toMatchSnapshot();
});
test('should hide input when show-input prop is false', () => {
const wrapper = mount(Stepper, {
propsData: {
showInput: false,
},
});
expect(wrapper.find('input').element.style.display).toEqual('none');
});
test('decimal-length prop', () => {
const wrapper = mount(Stepper, {
propsData: {