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

use alias in imports

This commit is contained in:
Jeff Sagal
2022-07-17 12:39:51 -07:00
parent 6a3795c9d8
commit d0f93d9155
2 changed files with 18 additions and 9 deletions
+9
View File
@@ -0,0 +1,9 @@
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
},
"exclude": ["node_modules", "dist", "coverage", "docs"]
}
+9 -9
View File
@@ -136,13 +136,13 @@
</template> </template>
<script> <script>
import pointerScroll from '../mixins/pointerScroll' import pointerScroll from '@/mixins/pointerScroll.js'
import typeAheadPointer from '../mixins/typeAheadPointer' import typeAheadPointer from '@/mixins/typeAheadPointer.js'
import ajax from '../mixins/ajax' import ajax from '@/mixins/ajax.js'
import childComponents from './childComponents' import childComponents from '@/components/childComponents.js'
import appendToBody from '../directives/appendToBody' import appendToBody from '@/directives/appendToBody.js'
import sortAndStringify from '../utility/sortAndStringify' import sortAndStringify from '@/utility/sortAndStringify.js'
import uniqueId from '../utility/uniqueId' import uniqueId from '@/utility/uniqueId.js'
/** /**
* @name VueSelect * @name VueSelect
@@ -890,7 +890,7 @@ export default {
return optionList return optionList
} }
let options = this.search.length const options = this.search.length
? this.filter(optionList, this.search, this) ? this.filter(optionList, this.search, this)
: optionList : optionList
if (this.taggable && this.search.length) { if (this.taggable && this.search.length) {
@@ -930,7 +930,7 @@ export default {
* @return {[type]} [description] * @return {[type]} [description]
*/ */
options(newOptions, oldOptions) { options(newOptions, oldOptions) {
let shouldReset = () => const shouldReset = () =>
typeof this.resetOnOptionsChange === 'function' typeof this.resetOnOptionsChange === 'function'
? this.resetOnOptionsChange( ? this.resetOnOptionsChange(
newOptions, newOptions,