iview-country-select
A iView component to select countries.
this component only support Vue 1 and iView 1 currently
Screenshot
Use in iView Project
-
install package and dependencies via npm
npm install iview-country-select flag-icon-css iview --save-dev -
add loaders to webpack
module:loaders:test: /iview-country-select.*?js$/loader: 'babel' -
import lib in vue file
import iviewCountrySelect from 'iview-country-select';export default {components: { iviewCountrySelect },}; -
bind result
<iview-country-select:result.sync="result"></iview-country-select>
Development Setup
# install dependenciesnpm install# serve with hot reload at localhost:8080npm run dev