feat(Picker): add allow-html prop (#4278)

This commit is contained in:
neverland
2019-08-28 20:58:50 +08:00
committed by GitHub
parent 93ef02c409
commit 667c4f692c
7 changed files with 70 additions and 22 deletions
+11
View File
@@ -195,3 +195,14 @@ test('toolbar-position prop', () => {
expect(wrapper).toMatchSnapshot();
});
test('not allow html', () => {
const wrapper = mount(Picker, {
propsData: {
allowHtml: false,
columns: ['<div>option</div>']
}
});
expect(wrapper).toMatchSnapshot();
});