iview / iview
- суббота, 1 октября 2016 г. в 03:13:46
JavaScript
UI Components with Vue.js
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+.