feat(Field): add colon prop (#6195)

This commit is contained in:
neverland
2020-05-01 19:31:23 +08:00
committed by GitHub
parent a7294ea980
commit 4adefe5605
6 changed files with 26 additions and 1 deletions
+10
View File
@@ -314,3 +314,13 @@ test('call focus method before mounted', (done) => {
test('destroy field', () => {
mount(Field).destroy();
});
test('colon prop', () => {
const wrapper = mount(Field, {
propsData: {
label: 'foo',
colon: true,
},
});
expect(wrapper).toMatchSnapshot();
});