Security News
Internet Archive Hacked, 31 Million Record Compromised
The Internet Archive's "Wayback Machine" has been hacked and defaced, with 31 millions records compromised.
vue-countries-cities
Advanced tools
List of countries and cities made for Vue.js
✨ Live Demo -> vue-countries-cities
These instructions will get you a copy of the component up and running on your local machine.
You can install vue-countries-cities component by npm
npm install --save vue-countries-cities
After download vue-country-cities package will be ready to use in your vue.js applications
import vueCountriesCities from "vue-countries-cities";
Vue.component("countriesCities", vueCountriesCities);
After this step, it can be used by all registered components in your project by tag name.
import vueCountriesCities from "vue-countries-cities";
After importing the package, you can add and use it like a regular component.
components: { vueCountriesCities }
<template>
<vueCountriesCities @country='selectedCountry = $event' @city='selectedCity = $event' />
</template>
<script>
import vueCountriesCities from "vue-countries-cities";
export default{
data () {
return {
selectedCountry: '',
selectedCity: ''
}
},
components: { vueCountriesCities }
}
</script>
<vueCountriesCities :city='false' />
<template>
<div class="countries-cities">
<div class="select-box">
<select class="countries">
<option><option>
</select>
<svg></svg>
</div>
<div class="select-box">
<select class="cities">
<option><option>
</select>
<svg></svg>
</div>
</div>
</template>
Default css codes
.countries-cities {
display: flex;
justify-content: space-around;
box-sizing: border-box;
.select-box {
height: 40px;
min-width: 300px;
background: #fff;
border: 1px solid #e9e9e9;
position: relative;
select {
background: none;
border: none;
outline: none;s
padding-left: 7px;
padding-right: 65px;
appearance: none;
width: 100%;
height: 100%;
}
svg {
position: absolute;
right: 0;
top: 0;
width: 50px;
height: 100%;
background: darken(#fff, 3%);
pointer-events: none;
box-sizing: border-box;
padding: 5px;
path {
fill: rgba(black, .7);
}
}
}
}
You can visit vercel.com for details.
We use GitHub for versioning.
Licensed under the MIT license, see LICENSE for details.
FAQs
List of countries and cities made for Vue.js
We found that vue-countries-cities demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Internet Archive's "Wayback Machine" has been hacked and defaced, with 31 millions records compromised.
Security News
TC39 is meeting in Tokyo this week and they have approved nearly a dozen proposals to advance to the next stages.
Security News
Our threat research team breaks down two malicious npm packages designed to exploit developer trust, steal your data, and destroy data on your machine.