Demo

Demo

The installation

npm install --save vue-selectl
Copy the code

use

// main.js
import VueSelectl from 'vue-selectl'
import 'vue-selectl/dist/styles.css'
Vue.use(VueSelectl)Copy the code

It is also supported in the form of the <code>script</code> tag introduction.



instructions

  1. Supports setting custom selector staff list item CustomDatas, which defaults to an empty array.
  2. Support to set the limit to select the number of people limit, exceed the number of people choose to select the last few items by default, the rest will be cut off.
  3. Support to set initial selected staff entry initcurlists, default is empty array, the contents of the array is composed of staff ids.
  4. Support fast search for people (English name, Chinese name, pinyin, ID search).
  5. Linkage between display and select dialog box.



conclusion

If you are satisfied with words, might as well stargithub.com/luolinyuan/… Once in a while.