0.1.2 • Published 5 years ago

@will1123/will-ui v0.1.2

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

will-ui

如何使用

  • 初始化您的项目
vue create demo
  • 安装 will-ui 组件库
npm i @will1123/will-ui
  • 全局引入
import WillUi from '@will1123/will-ui'
import "@will1123/will-ui/dist/will-ui.css";

Vue.use(WillUi)

组件

Will-button

参数说明类型可选默认
type类型stringprimary / success / warning / danger / info——
plain是否朴素按钮booleantrue / falsefalse
round是否圆角按钮booleantrue / falsefalse
circle是否圆形按钮booleantrue / falsefalse
disabled是否禁用状态booleantrue / falsefalse
icon图标类名 font-awesome 库string————

Will-input

参数说明类型可选默认
v-model绑定值string————
placeholder输入框占位文本string————
clearable是否可清空booleantrue / falsefalse
show-password是否显示切换密码图标booleantrue / falsefalse
disabled是否禁用状态booleantrue / falsefalse

Will-switch

参数说明类型可选默认
v-model是否选中boolean————
name原生 name 属性string————
activeColorswitch 打开时的背景色string——#409eff
show-inactiveColorswitch 关闭时的背景色string——dcdfe6
@changechange 事件function————

Will-dialog

参数说明类型可选默认
titleDialog 的标题,也可通过具名 slot 为 title 的 template 传递string——提示
widthDialog 的宽度string——50%
topDialog CSS 中的 margin-top 值string——15vh
visible是否显示 Dialog,支持 .sync 修饰符booleantrue / falsefalse

Will-checkbox

参数说明类型可选默认
label选中状态的值(只有在 checkbox-group 时有效),不传递匿名 slot 时 显示 labelstring————
name原生 name 属性string————
v-model不使用 Will-checkbox-group 时是否勾选booleantrue / falsefalse

Will-checkbox-group

参数说明类型可选默认
v-model存放选中的 checkbox 的 label 数据Array————
@changechange 事件function————

Will-radio

参数说明类型可选默认
labelRadio 的 valuestring————
name原生 name 属性string————
v-model绑定值 与 label 一致时选中——————
@changechange 事件function————

Will-radio-group

参数说明类型可选默认
v-model存放选中的 radio 的 label 数据String————

Will-form

参数说明类型可选默认
model表单数据对象object————
label-width表单域标签的宽度,例如 '50px'。作为 Form 直接子元素的 form-item 会继承该值。支持 auto。string————

Will-form-item

参数说明类型可选默认
label表单域标签的内容String————

方法

\$loading

参数说明类型参数默认
showLoading显示 loading 加载框function传递对象其中 content 为显示内容 mask 为是否防止穿透{content:'',mask:false}
hideLoading隐藏 loading 加载框function————

\$tost

参数说明类型参数默认
showTost显示 tost 提示框function传递对象其中 content 为显示内容 mask 为是否防止穿透 time 为显示时长(毫秒){content:'',mask:false,time:3000}
hideTost隐藏 tost 提示框function————
0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago