Ant Design UI library for Vuejs 2.0
$ npm install -save everyone
import Vue from 'vue'
import everyone from 'everyone' // 引入组件
Vue.use(everyone)
And import style manually:
import 'everyone/dist/everyone.css' // 引入css文件
-
webpack.base.conf.js
{ module: { loaders: [ { test: /everyone.src.*?js$/, loader: 'babel' } ] }, resolve: { alias: { 'everyone-ui': 'everyone/components' } } }
-
Manually import
import Vue from 'vue' import button from 'everyone-ui/button' // .. Vue.component(button.name, button)
<y-button type="dashed">一个按钮</y-button>