vuejs 计数器
vue2-选择 (vue2-selectize)
A Selectize wrapper for VueJS 2.
VueJS 2的Selectize包装器。
先决条件 (Prerequisites)
jQuery >= 1.7.0
jQuery> = 1.7.0
安装 (Installation)
npm install --save jquery vue2-selectize
用法 (Usage)
<selectize v-model="selected" :settings="settings"> <!-- settings is optional -->
<option :value="1">One</option>
<option :value="2">Two</option>
</selectize>
import Selectize from 'vue2-selectize'
export default {
components: {
Selectize
},
data() {
return {
settings: {}, // https://github.com/selectize/selectize.js/blob/master/docs/usage.md
selected: 1
}
}
}
// Include your preferred theme in your main SASS file (or your component's <style lang="scss"/> section).
@import "~selectize/dist/css/selectize.bootstrap3.css";
翻译自: https://vuejsexamples.com/a-selectize-wrapper-for-vuejs/
vuejs 计数器