0.1.6 • Published 5 years ago

style-ui v0.1.6

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

style-ui

参考Element UI 造的基于Vue2.x的前端UI组件库(未完待续)

  • Dialog
  • Button
  • Toast
  • Input
  • Card

预览

npm.io npm.io npm.io

安装

npm install  style-ui -S

使用

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

  • 全局注册

    // 导入组件库
    import StyleUI from 'style-ui'
    import 'style-ui/lib/style-ui.css'
    // 注册组件库
    Vue.use(StyleUI)

    在项目中使用组件

<template>
  <div>
    <style-button>默认按钮</style-button>
    <style-button type="primary">主要按钮</style-button>
    <style-button type="success">成功按钮</style-button>
    <style-button type="warning">警告按钮</style-button>
    <style-button type="error">错误按钮</style-button>
  </div>
</template>
0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago