官网地址: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>

为啥变得这么简单,因为底层做了一个组件封装,如下所示:

基于Vue的省市区三级联动插件

 

之后,改吧改吧,可以了

相关文章:

  • 2021-09-30
  • 2021-10-08
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-11-04
  • 2022-12-23
  • 2021-06-04
  • 2022-12-23
相关资源
相似解决方案