[new feature] Stepper: add input-width prop (#3076)

This commit is contained in:
neverland
2019-04-01 19:22:10 +08:00
committed by GitHub
parent 93e2dd8ffe
commit 89ccdfe63b
5 changed files with 15 additions and 0 deletions

View File

@@ -108,3 +108,12 @@ test('stepper blur', () => {
expect(wrapper.emitted('input')).toEqual([[0], [3]]);
expect(wrapper.emitted('blur')).toBeTruthy();
});
test('input width', () => {
const wrapper = mount(Stepper, {
propsData: {
inputWidth: '10rem'
}
});
expect(wrapper).toMatchSnapshot();
});