0.0.11 • Published 3 years ago

ht-button v0.0.11

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

按钮组件

Installation

Npm安装
$ npm install ht-button
Yarn安装
$ yarn add ht-button
main.js
import htbutton from 'ht-button'

Vue.use(htbutton);
使用方法

按钮

<ht-button title="确定" type="success" size round></ht-button>

返回按钮

<ht-button-back type="success" small></ht-button-back>

编辑按钮

<ht-button-edit type="primary" small :id="111" path="redirect_route"></ht-button-edit>

删除按钮

<ht-button-del type="danger" small></ht-button-del>
Props
属性值类型默认值备注
titleString按钮标题
typeString (primary,success,warning,info,danger,light,dark)primary按钮样式
sizeString (small,large,exsmall,extra-small)按钮大小
shadowBollean Numberfalse按钮阴影
shadowBollean Numberfalse按钮阴影
iconString按钮图标
disabledBollean Numberfalse是否禁用按钮
fullwidthBollean Numberfalse是否自动伸展宽度
roundBollean Numberfalse圆角处理
smallBollean Numberfalse是否是小按钮
loadingBollean Numberfalse是否显示loading图标
idNumber编辑按钮,要编辑的目标id
pathString编辑按钮,要跳转的编辑页面
Events

@ok

针对删除按钮,当点击确定删除后的

0.0.11

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.1

3 years ago