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


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

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

    之后,改吧改吧,可以了

  • 相关阅读:
    Java IO流
    Java中Char和Byte的区别
    Java常用类
    View
    3 View
    View
    3 View
    3 View视图 URLconf
    2 Model层
    2 Model层-模型成员
  • 原文地址:https://www.cnblogs.com/DZzzz/p/8926662.html
Copyright © 2020-2023  润新知