2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-22 10:30:34 +03:00

feat: Vue 3 Support (#1344)

BREAKING CHANGE: drop vue 2 support
This commit is contained in:
Jeff Sagal
2021-10-19 18:53:22 -07:00
committed by GitHub
parent e8d7abbf33
commit 06177a4d24
29 changed files with 774 additions and 561 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ describe('Labels', () => {
const Select = selectWithProps({
options: [{ name: 'Foo' }],
label: 'name',
value: { name: 'Foo' },
modelValue: { name: 'Foo' },
})
expect(Select.find('.vs__selected').text()).toBe('Foo')
})
@@ -29,7 +29,7 @@ describe('Labels', () => {
it('should display a placeholder if the value is empty', () => {
const Select = shallowMount(VueSelect, {
propsData: {
props: {
options: ['one'],
},
attrs: {
@@ -66,7 +66,7 @@ describe('Labels', () => {
xit('will not call getOptionLabel if both scoped option slots are used and a filter is provided', () => {
const spy = spyOn(VueSelect.props.getOptionLabel, 'default')
const Select = shallowMount(VueSelect, {
propsData: {
props: {
options: [{ name: 'one' }],
filter: () => {},
},