0.1.7 • Published 4 years ago

sigmob-ui v0.1.7

Weekly downloads
8
License
ISC
Repository
-
Last release
4 years ago

sigmob-ui

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

在 package.json 的 scripts 中新增一条命令 npm run lib

"lib": "vue-cli-service build --target lib --name sigui --dest lib packages/index.js"
  • --target: 构建目标,默认为应用模式。这里修改为 lib 启用库模式。
  • --dest : 输出目录,默认 dist。这里我们改成 lib
  • entry: 最后一个参数为入口文件,默认为 src/App.vue。这里我们指定编译 packages/ 组件库目录。

安装

$ npm install -g nrm
$ nrm add sinopia http://npm.sigmob.com
$ nrm use sinopia
$ npm install sigmob-ui -S
$ npm use npm
npm install 其他包……

或者

$ cnpm config set registry http://registry.npm.sigmob.cn
$ cnpm install sigmob-ui -S
$ cnpm config set registry https://registry.npm.taobao.org
$ cnpm install 其他包……

使用

main.js 文件中引入插件并注册

# main.js
import sigmobUI from 'sigmob-ui'
Vue.use(sigmobUI)

在项目中使用 sigmob-ui

<template>
  <sig-button>按钮</sig-button>
</template>

Customize configuration

See Configuration Reference.

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago