当前位置: 首页 > 工具软件 > Vanilla JS > 使用案例 >

vanilla.js_Vanila Vue.js组件,模仿选择行为

颜乐
2023-12-01

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

 类似资料: