1.0.16 • Published 2 months ago

@niyang-es/mux-ui v1.0.16

Weekly downloads
1
License
MIT
Repository
github
Last release
2 months ago

mux-ui

A Vue.js component

Build Setup

# install
npm install @niyang-es/mux-ui

api

Actionsheet组件

属性类型默认值描述备注
itemsstring[]/object[][]组件展示的数据项items为对象数组时,每一项必须含name,即:{name:string,prop:value}
valuebooleanfalse控制组件是否显示
cancelboolean/objectfalse控制是否显示取消按钮或者自定义取消按钮自定义取消按钮{text:string}
zIndexnumber2020阴影层的层级
closeOnMaskClickbooleantrue点击阴影层是否隐藏组件

按钮Button组件

属性类型默认值描述备注
blockbooleanfalse表现块元素
disabledbooleanfalse按钮disabled状态
plainboolean空心按钮
sizestring按钮尺寸,定义了small/normal/large三种尺寸
colorstring按钮颜色,定义了default/primary/danger/error四种颜色

头像Avatar组件

属性类型默认值描述备注
srcstring''头像地址需要完整的url地址
altstringavatar图片的占位符
sizestring/number30头像尺寸
flatbooleanfalse扁平化
fitstringall图片适配宽高

Cell组件

属性类型默认值描述备注
arrowbooleanfalse是否有箭头
directionstringrow定义cell的方向,row行/column列
alignstringstart弹性布局的item-align的属性
justifystringstart弹性布局content-justify的属性

Card组件

属性类型默认值描述备注
headerstring卡片头部
contentstring卡片内容
footerstring卡片底部

Alert组件

属性类型默认值描述备注
titlestring提示
valuebooleanfalse
zIndexnumber2020
transitionstringmux-bounce
messagestring''
btnTextstring确定

Confirm组件

属性类型默认值描述备注
titlestring提示
valuebooleanfalse
zIndexnumber2020
transitionstringmux-bounce
messagestring''
cancelBtnTextstring取消
confirmBtnTextstring确定

Prompt组件

属性类型默认值描述备注
titlestring提示
typestringtextinput的type属性
rulesarray[]数组项function(v){return booleanstring}
valuebooleanfalse
zIndexnumber2020
transitionstringmux-bounce
cancelBtnTextstring取消
confirmBtnTextstring确定

Field组件

属性类型默认值描述备注
typestringtextinput类型,含H5输入类型email, number, password, search, tel, text, url
idstring''
attrsobject
requiredbooleanfalse
labelstring''
disabledbooleanfalse
namestringXFeild
valuestring''
placeholderstring请输入
clearablebooleantrue
readonlybooleanfalse
labelClassstring/array[]
alignstringleft文字对齐方式left, center, right
plainbooleanfalse
roundedbooleanfalse
invalidbooleanfalse
messagestring''

RadioGroup组件

属性类型默认值描述备注
blockbooleanfalse
valuestring
reversebooleanfalse反向

Radio组件

属性类型默认值描述备注
labelstring''
idstring''
namestring'XRadio'
checkedbooleanfalse
disabledbooleanfalse
valuestring
radioValuestring''

Checkbox组件

属性类型默认值描述备注
valuearray[]
namestring
idstring''
checkedbooleanfalse
disabledbooleanfalse
partialbooleanfalse
labelstring''
checkboxValuestring''

Switch组件

属性类型默认值描述备注
onValuestring/boolean/numbertrue
offValuestring/boolean/numberfalse
disabledbooleanfalse
readonlybooleanfalse
valuestring/boolean/numbertrue

Header组件

属性类型默认值描述备注
fixedbooleanfalse
backobject/boolean]true
titlestring''
moreboolean/bjectfalse

Sticky组件

属性类型默认值描述备注
topnumber/string0
leftnumber/stringauto
rightnumber/stringauto
bottomnumber/stringauto

Tab组件

属性类型默认值描述备注
hideSliderbooleanfalse
sliderSizenumber70
sitestringbottomsilder的位置top, bottom
fillCellbooleanfalse
maxCellnumber6

TabItem组件

属性类型默认值描述备注
activedbooleanfalse

Fold组件

属性类型默认值描述备注
titlestring''
valuebooleanfalse

Tree组件

属性类型默认值描述备注
valuearray[]
itemsarray[]
itemTextstringname
itemValuestringid
itemChildrenstringchildren
checkedbooleanfalse
lazybooleanfalse
loadChildrenfunction(id) => { }
useCheckboxbooleanfalse
openbooleanfalse

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

1.0.16

2 months ago

1.0.15

2 months ago

1.0.14

8 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.9

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.8

1 year ago

1.0.2

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.2.2

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.4

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago