common-game
v1.0.27
Published
``` npm install common-game ```
Downloads
222
Readme
common-game
游戏公共组件
安装
npm install common-game
使用
必须开启 "enableSkia": "true"
- json
{
"usingComponents": {
"common-game": "../common-game/common-game"
}
}
- js
Component({
mixins: [],
data: {},
props: {},
didMount() { },
didUpdate() { },
didUnmount() { },
methods: {},
});
- xaml
<game-rich
gameSource="{{gameSource}}"
onRef="onRef"
onInitDone="onInitDone"
onChangePlayer="onChangePlayer"
onProCallback="onProCallback"
onBeforeBtnFun="onBeforeBtnFun"
onUpdate="onUpdate"
/>