2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-13 08:32:26 +03:00

- remove selected-option-container slot

- add prop methods for getting looped slot scopes
- simplify `Deselect` component
This commit is contained in:
Jeff
2019-10-31 14:28:09 -07:00
parent 7f069a1c26
commit db8b40afab
3 changed files with 100 additions and 37 deletions
-12
View File
@@ -1,18 +1,6 @@
import { mountDefault } from '../helpers';
describe('Scoped Slots', () => {
it('receives an option object to the selected-option-container slot', () => {
const Select = mountDefault(
{value: 'one'},
{
scopedSlots: {
'selected-option-container': `<span slot="selected-option-container" slot-scope="{option}">{{ option.label }}</span>`,
},
});
expect(Select.find({ ref: 'selectedOptions' }).text()).toEqual('one')
});
it('receives an option object to the selected-option slot', () => {
const Select = mountDefault(
{value: 'one'},