vanilla.js
Vue选择 (vue-selectize)
Vanila Vue.js component that mimics Selectize behaviour (no need jquery dependency)
模仿Selectize行为的Vanila Vue.js组件(不需要jquery依赖)
安装 (Installation)
yarn add selectize @isneezy/vue-selectize
yarn add selectize @isneezy/vue-selectize
用法 (Usage)
<template>
<v-selectize v-model="selected" :options="['neat','awesome']"/>
</template>
import 'selectize/dist/css/selectize.css'
import VSelectize from '@isneezy/vue-selectize'
export default {
data: () => ({
selected: ''
}),
components: {
VSelectize
}
}
翻译自: https://vuejsexamples.com/a-vanila-vue-js-component-that-mimics-the-selectize-behaviour/
vanilla.js