mirror of
https://github.com/youzan/vant.git
synced 2025-12-24 02:02:09 +08:00
[new feature] Field: add label-class prop
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user