@byhealth/walle

walle瓦力,是抽奖游戏模块化的大管家,它始于抽奖但不止于抽奖,可应用到其他项目。

Usage no npm install needed!

<script type="module">
  import byhealthWalle from 'https://cdn.skypack.dev/@byhealth/walle';
</script>

README

Walle

walle瓦力,是抽奖游戏模块化的大管家,它始于抽奖但不止于抽奖,可应用到其他项目。

所有通用模块样式可以高度定制 属性定义参考style

安装

npm i @byhealth/walle -S

结构

Walle

底层模块

import {Loading, Modal, Message, Picker} from '@byhealth/walle';

游戏模块

demo

import {AddressModal, ResultModal, NoticeModal, Msg } from '@byhealth/walle';

工具包

工具包

{
    validate: {...}
    htmlFactory: {
        createDom, 
        removeDom,
        combineDomByClass,
        inlineStyle
    },
    tools: {
        isPC,
        isObject,
        countDown,
        dormancyFor,
        fixpx,
        setEmBase
    },
    regionsDataFormat: {
        formatWheelsData,
        getPositionByDefaultValue
    },
    webAnimation: {
        onceTransitionEnd,
        onceAnimationEnd
    }
}

to do list

  • change to typescript