2018-12-05 18:31:43 +08:00
|
|
|
<template>
|
|
|
|
<div class="number-show">
|
2018-12-07 15:50:25 +08:00
|
|
|
<div class="number-itme" v-for="(n, i) in number.toString()" :key="`${n}-${i}`">
|
2018-12-05 18:31:43 +08:00
|
|
|
{{ n }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: 'NumberShow',
|
|
|
|
props: ['number']
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="less">
|
|
|
|
.number-show {
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
.number-itme {
|
|
|
|
display: inline-block;
|
|
|
|
height: 70px;
|
|
|
|
padding: 0 20px;
|
|
|
|
line-height: 70px;
|
|
|
|
text-align: center;
|
2018-12-11 14:52:12 +08:00
|
|
|
background-color: rgba(4, 49, 128, 0.6);
|
2018-12-05 18:31:43 +08:00
|
|
|
margin-right: 20px;
|
2018-12-11 14:52:12 +08:00
|
|
|
color: rgb(8, 229, 255);
|
2018-12-05 18:31:43 +08:00
|
|
|
font-weight: bold;
|
2018-12-11 14:52:12 +08:00
|
|
|
font-size: 45px;
|
2018-12-05 18:31:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|