0.0.1 • Published 2 years ago
common-game2 v0.0.1
common-game2
游戏公共组件
安装
npm install common-game2
使用
必须开启 "enableSkia": "true"
- json
{
"usingComponents": {
"common-game2": "../common-game2/index"
}
}
- 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"
/>
0.0.1
2 years ago