[new feature] Field: add size prop (#2936)

This commit is contained in:
neverland
2019-03-11 09:13:23 +08:00
committed by GitHub
parent cb72fef807
commit e553c6e0dd
5 changed files with 21 additions and 0 deletions
@@ -44,3 +44,11 @@ exports[`render textarea 1`] = `
</div>
</div>
`;
exports[`size prop 1`] = `
<div class="van-cell van-cell--large van-field">
<div class="van-cell__value van-cell__value--alone">
<div class="van-field__body"><input type="text" class="van-field__control"></div>
</div>
</div>
`;
+9
View File
@@ -187,3 +187,12 @@ test('render right icon with icon prop for old version', () => {
});
expect(wrapper).toMatchSnapshot();
});
test('size prop', () => {
const wrapper = mount(Field, {
propsData: {
size: 'large'
}
});
expect(wrapper).toMatchSnapshot();
});