walle瓦力,是抽奖游戏模块化的大管家,它始于抽奖但不止于抽奖,可应用到其他项目。
所有通用模块样式可以高度定制 属性定义参考style
npm i @byhealth/walle -S
import {Loading, Modal, Message, Picker} from '@byhealth/walle';
import {AddressModal, ResultModal, NoticeModal, Msg } from '@byhealth/walle';
-
填写收货人地址弹窗 AddressModal
-
抽奖结果弹窗 ResultModal
-
消息弹窗 NoticeModal
工具包
{
validate: {...}
htmlFactory: {
createDom,
removeDom,
combineDomByClass,
inlineStyle
},
tools: {
isPC,
isObject,
countDown,
dormancyFor,
fixpx,
setEmBase
},
regionsDataFormat: {
formatWheelsData,
getPositionByDefaultValue
},
webAnimation: {
onceTransitionEnd,
onceAnimationEnd
}
}
- change to typescript