Coder Social home page Coder Social logo

vue-country-data-select's Introduction

vue-country-data-select

✨ A selector for country data, such as selecting a calling code

效果预览

demo.gif

下拉选项会根据输入进行筛选,匹配 电话区号地区官方英文名称地区英文简称

数据包含大部分国家和某些国家的部分地区,如 Hong Kong

安装方式

npm install vue-country-data-select --save
import vueCountryDataSelect from 'vue-country-data-select'

Vue.use(vueCountryDataSelect)

使用方法

<vueCountryDataSelect v-model="input" width="300" height="30"></vueCountryDataSelect>
  • 无论有无输入,在点击三角形出现下拉列表时,必为完整的列表,但只要改变输入,数据会自动筛选(1.1.1 版本新增功能)

1.1.1更新.gif

  • 支持 v-model 语法糖
  • widthheight 必填
  • 选填项 mode 可切换至输出地区电话区号模式,以后会继续添加功能
  • placeholder: 输入提示信息
<vueCountryDataSelect
  v-model="input" width="200" height="30" mode="countryCallingCodes">
</vueCountryDataSelect>

数据来源

country-data

vue-country-data-select's People

Contributors

dependabot[bot] avatar miilord avatar

Stargazers

 avatar  avatar  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.