feat(Stepper): add placeholder prop (#6519)

This commit is contained in:
neverland
2020-06-11 16:54:41 +08:00
committed by GitHub
parent febf17e546
commit 6de66e0455
7 changed files with 18 additions and 3 deletions
+9
View File
@@ -378,3 +378,12 @@ test('change integer', async () => {
expect(wrapper.emitted('input')[0][0]).toEqual(1);
});
test('placeholder prop', () => {
const wrapper = mount(Stepper, {
propsData: {
placeholder: 'foo',
},
});
expect(wrapper.find('.van-stepper__input')).toMatchSnapshot();
});