0.1.3 • Published 7 years ago

nek-vue v0.1.3

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

nek-vue

UI components based on Vue.js

Build Status npm

Install nek-vue

using npm

npm install nek-vue --save

Usage

import nek from 'nek-vue'
import 'nek-vue/lib/style/index.css'
Vue.use(nek)

按需引用

借助 babel-plugin-component,我们可以只引入需要的组件,以达到减小项目体积的目的。

首先,安装 babel-plugin-component:

npm install babel-plugin-component -D

然后,在 .babelrc 添加如下配置:

  "plugins": [["component", [
    {
      "libraryName": "nek-vue",
      "styleLibraryName": "style",
      "styleLibrary": {
        "name": "/",
        "base": true,
        "path": "[module]/style/index.css",
        "mixin": false
      },
      "camel2Dash": true
    }
  ]]]

接下来,如果你只希望引入部分组件,比如 Button 和 Select,那么需要在 main.js 中写入以下内容:

import { Button } from 'nek-vue'
Vue.component(Button.name, Button)

LICENSE

MIT

0.1.3

7 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

8 years ago

0.0.10

8 years ago

0.0.9

8 years ago

0.0.8

8 years ago

0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago