0.1.3 • Published 6 years ago

nek-vue v0.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
6 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

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.14

6 years ago

0.0.13

6 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago