官网地址:https://distpicker.uine.org/
安装:
npm install v-distpicker --save
局部注册:
import VDistpicker from 'v-distpicker' export default { components: { VDistpicker } }
使用:
<template> <v-distpicker></v-distpicker> <template> <script> import VDistpicker from 'v-distpicker' export default { components: { VDistpicker }, } </script>
为啥变得这么简单,因为底层做了一个组件封装,如下所示:
之后,改吧改吧,可以了