[new feature] Field: add label-class prop

This commit is contained in:
陈嘉涵
2019-05-02 17:48:51 +08:00
parent e9e6e238db
commit 7f0615a503
6 changed files with 28 additions and 2 deletions

View File

@@ -203,3 +203,13 @@ test('label-width prop without unit', () => {
});
expect(wrapper).toMatchSnapshot();
});
test('label-class prop', () => {
const wrapper = mount(Field, {
propsData: {
label: 'Label',
labelClass: 'custom-label-class'
}
});
expect(wrapper).toMatchSnapshot();
});