feat(Picker): add columns-top、columns-bottom slot (#4607)

This commit is contained in:
neverland
2019-09-27 17:25:23 +08:00
committed by GitHub
parent 9729879593
commit b8daee5551
4 changed files with 29 additions and 0 deletions
+14
View File
@@ -206,3 +206,17 @@ test('not allow html', () => {
expect(wrapper).toMatchSnapshot();
});
test('columns-top、columns-bottom prop', () => {
const wrapper = mount(Picker, {
propsData: {
showToolbar: true
},
scopedSlots: {
'columns-top': () => 'Custom Columns Top',
'columns-bottom': () => 'Custom Columns Bottom',
}
});
expect(wrapper).toMatchSnapshot();
});