[new feature] Picker: add title slot (#2811)

This commit is contained in:
neverland
2019-02-20 21:00:57 +08:00
committed by GitHub
parent da91631b0d
commit ea36edbd1a
5 changed files with 55 additions and 9 deletions

View File

@@ -117,3 +117,18 @@ test('column watch default index', async () => {
wrapper.vm.defaultIndex = 2;
expect(wrapper).toMatchSnapshot();
});
test('render title slot', () => {
const wrapper = mount({
template: `
<picker show-toolbar>
<template v-slot:title>Custom title</template>
</picker>
`,
components: {
Picker
}
});
expect(wrapper).toMatchSnapshot();
});