vue2.6 + mui3.7.2 封装控件
依赖mui.previewimage.js,mui.zoom.js,mui.imageviewer.css
组件属性:
images,数组,存放图片的路径,数组中数据的格式{ path: 图片路径string, isNew: 是否通过新增按钮添加的图片true/false }
max,整数,图片最大数量
disableEdit,是否允许添加删除图片
依赖@tweenjs/tween.js
组件属性:
number,数字
duration,动画时间
precision,精度,显示到小数点后几位
cut,剪切,格式 { start: 0, end: 9999 }
cutDirection,剪切方向,"toLeft","toRight",默认"toLeft"
依赖lib/mui.picker.all.yjmodify.js,js/yj.dateFormat.js
依赖components/picker.vue,components/rollnumbers.vue
组件属性:
page,支持sync
data,数据集
pageSize,页大小
事件:
changed,返回数据格式{ page: 当前页, pagingData:当前页数据 }
依赖jquery.easing
组件属性:
number,数字0-9
speed,滚动速度,大于0,可以带小数点,默认为1,数值越大越慢
initNumberRoll,初始化的数值是否滚动,类型bool
依赖components/rollnumber.vue
组件属性:
number,总的数字,如果数字的位数大于count,超出的高位不显示
count,滚动的数字个数
speed,滚动速度,大于0,可以带小数点,默认为1,数值越大越慢
initNumberRoll,初始化的数值是否滚动,类型bool
依赖mui.pullToRefresh.js,mui.pullToRefresh.material.js
组件属性:
enablePulldown,是否开启下拉刷新的功能,类型bool
pulling,刷新中,类型bool,支持sync
pulldownTimeout,下拉超时时间,类型number
scrollY,当前Y轴位置,支持sync
目前暂时只支持绑定input事件
组件属性:
tabs,数组,数组中可以是string,也可以是object
currentTab,string或者object
tabKey,string,如果tabs数组中是object,则需要指定object的某个属性的属性名为tabKey
组件属性:
alreadyShowed,bool,是否已经展示过,支持sync
依赖jquery
组件属性:
message,标签内容
placement,标签位置,值为"top"、"bottom"、"left"、"right"、"topleft"、"lefttop"、"topright"、"righttop"、"bottomleft"、"leftbottom"、"bottomright"、"rightbottom"
offsetLeft,左偏移量,类型number
offsetTop,上偏移量,类型number
backgroundColor,背景颜色
color,文字颜色
textWrap,文字是否可以换行,默认false
width,宽度,默认auto
封装了一下components/tooltip.vue
依赖components/tooltip.vue
组件属性:
message,标签内容
placement,标签位置,值为"top"、"bottom"、"left"、"right"、"topleft"、"lefttop"、"topright"、"righttop"、"bottomleft"、"leftbottom"、"bottomright"、"rightbottom"
offsetLeft,左偏移量,类型number
offsetTop,上偏移量,类型number
textWrap,文字是否可以换行,默认false
width,宽度,默认auto
依赖css/pageaniimation.css