自制游戏 index.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="my.css">
</head>
<body>
    <div id="app" >
        <!--<transition-group name="list-move" tag="ul" v-for="(row, r) in data">-->
        <transition-group name="list-move" tag="ul">
            <li class="list-move-item" v-bind:key="cell.id" v-for="(cell, i) in data[0]"  v-bind:style="{left:cell.x*55 +'px',top:cell.y*55 +'px',color:cell.removeX || cell.removeY  ?  'red' : 'black'}">
                <obj-list v-bind:cell="cell"  v-on:li_click="updataLastCell"></obj-list>
            </li>
            <li class="list-move-item" v-bind:key="cell.id" v-for="(cell, i) in data[1]"  v-bind:style="{left:cell.x*55 +'px',top:cell.y*55 +'px',color:cell.removeX || cell.removeY  ?  'red' : 'black'}">
                <obj-list v-bind:cell="cell"  v-on:li_click="updataLastCell"></obj-list>
            </li>
            <li class="list-move-item" v-bind:key="cell.id" v-for="(cell, i) in data[2]"  v-bind:style="{left:cell.x*55 +'px',top:cell.y*55 +'px',color:cell.removeX || cell.removeY  ?  'red' : 'black'}">
                <obj-list v-bind:cell="cell"  v-on:li_click="updataLastCell"></obj-list>
            </li>
            <li class="list-move-item" v-bind:key="cell.id" v-for="(cell, i) in data[3]"  v-bind:style="{left:cell.x*55 +'px',top:cell.y*55 +'px',color:cell.removeX || cell.removeY  ?  'red' : 'black'}">
                <obj-list v-bind:cell="cell"  v-on:li_click="updataLastCell"></obj-list>
            </li>
            <li class="list-move-item" v-bind:key="cell.id" v-for="(cell, i) in data[4]"  v-bind:style="{left:cell.x*55 +'px',top:cell.y*55 +'px',color:cell.removeX || cell.removeY  ?  'red' : 'black'}">
                <obj-list v-bind:cell="cell"  v-on:li_click="updataLastCell"></obj-list>
            </li>
            <li class="list-move-item" v-bind:key="cell.id" v-for="(cell, i) in data[5]"  v-bind:style="{left:cell.x*55 +'px',top:cell.y*55 +'px',color:cell.removeX || cell.removeY  ?  'red' : 'black'}">
                <obj-list v-bind:cell="cell"  v-on:li_click="updataLastCell"></obj-list>
            </li>
            <li class="list-move-item" v-bind:key="cell.id" v-for="(cell, i) in data[6]"  v-bind:style="{left:cell.x*55 +'px',top:cell.y*55 +'px',color:cell.removeX || cell.removeY  ?  'red' : 'black'}">
                <obj-list v-bind:cell="cell"  v-on:li_click="updataLastCell"></obj-list>
            </li>
            <li class="list-move-item" v-bind:key="cell.id" v-for="(cell, i) in data[7]"  v-bind:style="{left:cell.x*55 +'px',top:cell.y*55 +'px',color:cell.removeX || cell.removeY  ?  'red' : 'black'}">
                <obj-list v-bind:cell="cell"  v-on:li_click="updataLastCell"></obj-list>
            </li>
            <li class="list-move-item" v-bind:key="cell.id" v-for="(cell, i) in data[8]"  v-bind:style="{left:cell.x*55 +'px',top:cell.y*55 +'px',color:cell.removeX || cell.removeY  ?  'red' : 'black'}">
                <obj-list v-bind:cell="cell"  v-on:li_click="updataLastCell"></obj-list>
            </li>
            <li class="list-move-item" v-bind:key="cell.id" v-for="(cell, i) in rem"  v-bind:style="{left:cell.x*55 +'px',top:cell.y*55 +'px',color:cell.removeX || cell.removeY  ?  'red' : 'black'}">
                <obj-list v-bind:cell="cell"  v-on:li_click="updataLastCell"></obj-list>
            </li>
        </transition-group>
    </div>

</body>
    <script src="node_modules/vue/dist/vue.min.js"></script>
    <script src="node_modules/vue-resource/dist/vue-resource.min.js"></script>
    <script src="node_modules/lodash/lodash.min.js"></script>
    <script src="node_modules/underscore/underscore-min.js"></script>
    <script src="./util.js"></script>
    <script src="my.js"></script>
</html>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值