-
Array of strings
-
-
Options:
-
-
- disabled
-
-
-
- searchable
-
-
-
-
Array of objects
-
-
Options:
-
-
- disabled
-
-
-
- searchable
-
+
+
Array of strings
+
+
Options:
+
+
+ disabled
+
+
+
+ searchable
+
+
+
+
Array of objects
+
+
Options:
+
+
+ disabled
+
+
+
+ searchable
+
+
+
+
+
Asynchronous provider function
+
+
Options:
+
+
+ disabled
+
+
+
+ searchable
+
+
+
+
+
Synchronous provider function
+
+
Options:
+
+
+ disabled
+
+
+
+ searchable
+
+
+
+
+
Templated label
+
+
Options:
+
+
+ disabled
+
+
+
+ searchable
+
+
+
+
+
+
+ {{data.option.name}}
+
+
+
-
-
+
-
diff --git a/src/entry.js b/src/entry.js
index 34cc246..1166814 100644
--- a/src/entry.js
+++ b/src/entry.js
@@ -3,26 +3,26 @@ import component from './vue-bootstrap-select.vue';
// install function executed by Vue.use()
function install(Vue) {
- if (install.installed) return;
- install.installed = true;
- Vue.component('VueBootstrapSelect', component);
+ if (install.installed) return;
+ install.installed = true;
+ Vue.component('VueBootstrapSelect', component);
}
// Create module definition for Vue.use()
const plugin = {
- install,
+ install,
};
// To auto-install when vue is found
/* global window global */
let GlobalVue = null;
if (typeof window !== 'undefined') {
- GlobalVue = window.Vue;
+ GlobalVue = window.Vue;
} else if (typeof global !== 'undefined') {
- GlobalVue = global.Vue;
+ GlobalVue = global.Vue;
}
if (GlobalVue) {
- GlobalVue.use(plugin);
+ GlobalVue.use(plugin);
}
// To allow use as module (npm/webpack/etc.) export component
diff --git a/src/main.js b/src/main.js
index a3fd06b..1f4f28e 100644
--- a/src/main.js
+++ b/src/main.js
@@ -4,5 +4,5 @@ import App from "./App.vue";
Vue.config.productionTip = false;
new Vue({
- render: h => h(App)
+ render: h => h(App)
}).$mount("#app");
diff --git a/src/vue-bootstrap-select.vue b/src/vue-bootstrap-select.vue
index 4cda5e3..4307bb4 100644
--- a/src/vue-bootstrap-select.vue
+++ b/src/vue-bootstrap-select.vue
@@ -1,393 +1,415 @@
-
-
-
-
-
-
-
- - {{ labelNotFound }} "{{ searchValue }}"
- - {{ labelTitle }}
- - {{ getOptionLabel(option) }}
-
+
+
+
+
+
+
+
+ -
+
+ {{ labelNotFound }} "{{ searchValue }}"
+
+
+ - {{ labelTitle }}
+
+ -
+
+ {{ getOptionLabel(option) }}
+
+
+
+
-
diff --git a/vue.config.js b/vue.config.js
index 4fa175b..53f122a 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -4,7 +4,7 @@ module.exports = {
.rule("eslint")
.use("eslint-loader")
.options({
- fix: true
+ fix: false,
});
}
};