Skip to content

Yiiu/everyone

Repository files navigation

everyone

Ant Design UI library for Vuejs 2.0

build build build build

Install

$ npm install -save everyone

Links

Usage

Use all component

import Vue from 'vue'
import everyone from 'everyone'	// 引入组件
Vue.use(everyone)

And import style manually:

import 'everyone/dist/everyone.css'	// 引入css文件

Use one component

  • 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)

happy use

<y-button type="dashed">一个按钮</y-button>

Releases

No releases published

Packages

No packages published