GithubHelp home page GithubHelp logo

libin1991 / vue-city-select Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cleeu/vue-city-select

0.0 0.0 0.0 173 KB

基于vue2.0的仿美团的城市选择组件,通讯录

HTML 5.74% Vue 18.95% JavaScript 75.31%

vue-city-select's Introduction

效果图

Image text

vue-city-select

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

For detailed explanation on how things work, consult the docs for vue-loader.

插件使用方法

npm i vue-city-select -S

在main.js中引入注册

  import vueCity from 'vue-city-select'
  vue.use(vueCity);
  //然后就可以在项目中引用了,热门城市 hotCityList 参数可以根据自己的需求传或者不传
  <vue-city :hotCityList="hotCityList" @changeCity="changeCity"></vue-city>
  

注意这里的vue-city就是组件vueCity.vue中的name 的名称。否则会报错的。

vue-city-select's People

Contributors

catbea avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.