- Using .vue file development mode
- Based on npm + webpack + babel, support ES2015
- High quality and rich functions
- Friendly APIs,free and flexible
Use vue-vueRouter-webpack(Recommended) Or vue-cli
npm install iview --save
module: {
loaders: [
{ test: /iview\/.*?js$/, loader: 'babel' },
{ test: /\.js$/, loader: 'babel', exclude: /node_modules/ }
]
}
Use component as required
<template>
<Page :current="1" :total="100"></Page>
</template>
<script>
import { Page } from 'iview';
export default {
components: { Page }
}
</script>
Use css
import 'iview/dist/styles/iview.css';
Normal browsers and Internet Explorer 9+.