Skip to content

Commit

Permalink
remove compiled js/css
Browse files Browse the repository at this point in the history
  • Loading branch information
kallesprd authored and kallefrombosnia committed Apr 27, 2022
1 parent 843a189 commit 83c3efe
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions frontend/js/components/VSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
:value="value"
:options="currentOptions"
:searchable="searchable"
:selectable="selectable"
:clearSearchOnSelect="clearSearchOnSelect"
:label="optionsLabel"
:taggable="taggable"
Expand Down Expand Up @@ -44,7 +45,6 @@
import extendedVSelect from '@/components/VSelect/ExtendedVSelect.vue'
// check full options of the vueSelect here : http://sagalbot.github.io/vue-select/
// import vSelect from 'vue-select' // check full options of the vueSelect here : http://sagalbot.github.io/vue-select/
export default {
name: 'A17VueSelect',
mixins: [randKeyMixin, InputframeMixin, FormStoreMixin, AttributesMixin],
Expand Down Expand Up @@ -81,6 +81,10 @@
type: Boolean,
default: false
},
selectable: {
type: Function,
default: option => option.selectable ?? true,
},
clearSearchOnSelect: {
type: Boolean,
default: true
Expand Down Expand Up @@ -150,7 +154,6 @@
if (typeof this.value[0] === 'object') {
return this.value.map(e => e.value)
}
return this.value.join(',')
}
}
Expand Down Expand Up @@ -199,12 +202,10 @@
// see formStore mixin
this.value = value
this.saveIntoStore()
this.$emit('change', value)
},
getOptions: debounce(function (search, loading) {
if (!this.isAjax()) return true
loading(true)
this.$http.get(this.ajaxUrl, { params: { q: search } }).then((resp) => {
if (resp.data.items && resp.data.items.length) {
Expand All @@ -226,4 +227,4 @@
}, 500)
}
}
</script>
</script>

0 comments on commit 83c3efe

Please sign in to comment.