Vue按钮插件Flash-Button正式版1.1.0发布

301 阅读1分钟
原文链接: www.licoy.cn

前言

去年,我写了一篇关于在WordPress中定义闪光的教程-《纯CSS闪光按钮部署到WordPress短代码教程》,由于最近前端的开发都是使用的Vue,于是突发奇想开发一个Vue按钮插件,所以就有了Flash-Button。
Vue按钮插件Flash-Button正式版1.1.0发布

使用方法

添加组件

//npm
npm install flash-button
 
//yarn
yarn add flash-button

引入

import FlashButton from 'flash-button'
 
Vue.use(FlashButton)

使用

<flash-button type="success" size="large">large</flash-button>
 
<flash-button type="primary" size="default">default</flash-button>
 
<flash-button type="error" size="small">small</flash-button>

项目地址

Github:github.com/Licoy/vue-f…

Npm:www.npmjs.com/package/fla…

后记

开发Vue插件中也遇到了很多的问题,同时也增长了很多的见识,是一次愉快的开发,另外如果觉得不错,欢迎您在Github上给我的项目一个小星星(Star),谢谢! :smile: