# vue3-country-intl **Repository Path**: joe_zy/vue3-country-intl ## Basic Information - **Project Name**: vue3-country-intl - **Description**: 基于vue3的手机区号、国籍组件,兼容pc、移动端。vue3-country-intl有3种模式( input、popover、modal) - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2024-12-27 - **Last Updated**: 2024-12-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 1、vue3-country-intl 基于vue3的手机区号、国籍组件,兼容pc、移动端。`vue3-country-intl`有3种模式( input、popover、modal) 插件支持的国家/地区数据来自: + iso2 code: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 + country code: https://en.wikipedia.org/wiki/List_of_country_calling_codes ## 1.1、效果预览 [https://941477276.github.io/vue3-country-intl/dist/](https://941477276.github.io/vue3-country-intl/dist/) ## 同门师兄弟 >vue2.0版的国籍/手机区号选择插件(`vue-country-intl`) + [vue-country-intl](https://github.com/941477276/vue-country-intl) >react版的国籍/手机区号选择插件(`reaxt-country-intl`) + [react-country-intl](https://github.com/941477276/react-country-intl) >微信小程序版的国籍/手机区号选择插件(`wx-country-intl`) + [wx-country-intl](https://github.com/941477276/wx-country-intl) >最容易使用最基础的下拉菜单组件(`easyest-dropdown`) + [easyest-dropdown](https://github.com/941477276/easyest-dropdown) ## 1.2、安裝 `npm install vue3-country-intl --save` ## 1.3、使用——.vue单文件 ``` /*****main.js****/ import Vue from 'vue'; import App from './App.vue'; import Vue3CountryIntl from 'vue3-country-intl'; // 引入css import 'vue3-country-intl/lib/vue3-country-intl.css' const app = Vue.createApp(App); // 全局注册组件 app.component(Vue3CountryIntl.name, Vue3CountryIntl); /*****组件中使用****/ ``` ## 1.4、使用——直接引入js文件 ```