2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-19 09:50:33 +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
+5 -5
View File
@@ -1,9 +1,9 @@
import Vue from 'vue'
import { defineComponent } from 'vue'
import { selectWithProps } from '../helpers'
describe('Components API', () => {
it('swap the Deselect component', () => {
const Deselect = Vue.component('Deselect', {
const Deselect = defineComponent('Deselect', {
render(createElement) {
return createElement('button', 'remove')
},
@@ -11,11 +11,11 @@ describe('Components API', () => {
const Select = selectWithProps({ components: { Deselect } })
expect(Select.findComponent(Deselect)).toBeTruthy()
expect(Select.find(Deselect)).toBeTruthy()
})
it('swap the OpenIndicator component', () => {
const OpenIndicator = Vue.component('OpenIndicator', {
const OpenIndicator = defineComponent('OpenIndicator', {
render(createElement) {
return createElement('i', '^')
},
@@ -23,6 +23,6 @@ describe('Components API', () => {
const Select = selectWithProps({ components: { OpenIndicator } })
expect(Select.findComponent(OpenIndicator)).toBeTruthy()
expect(Select.find(OpenIndicator)).toBeTruthy()
})
})