0.1.6 • Published 5 years ago
style-ui v0.1.6
style-ui
参考Element UI 造的基于Vue2.x的前端UI组件库(未完待续)
- Dialog
- Button
- Toast
InputCard
预览
安装
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>