0.0.2 • Published 7 years ago

iview-country-select v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

iview-country-select

npm version

A iView component to select countries.

this component only support Vue 1 and iView 1 currently

Screenshot

screenshot

Use in iView Project

  1. install package and dependencies via npm

    npm install iview-country-select flag-icon-css iview --save-dev
  2. add loaders to webpack

    module: {
        loaders: [
            {
                test: /iview-country-select.*?js$/,
                loader: 'babel'
            },
        ]
    }
  3. import lib in vue file

    import iviewCountrySelect from 'iview-country-select';
    
    export default {
        components: { iviewCountrySelect },
    };
  4. bind result

    <iview-country-select
        :result.sync="result">
    </iview-country-select>

Development Setup

# install dependencies
npm install

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

7 years ago

0.0.1

7 years ago