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">
|
2018-12-07 18:28:53 +08:00
|
|
|
@import url('../../assets/style/index.less');
|
|
|
|
|
2018-12-05 18:31:43 +08:00
|
|
|
.number-show {
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
.number-itme {
|
|
|
|
display: inline-block;
|
|
|
|
height: 70px;
|
|
|
|
padding: 0 20px;
|
|
|
|
line-height: 70px;
|
|
|
|
text-align: center;
|
2018-12-07 18:28:53 +08:00
|
|
|
background-color: @NSIBC;
|
2018-12-05 18:31:43 +08:00
|
|
|
margin-right: 20px;
|
2018-12-07 18:28:53 +08:00
|
|
|
color: @NSINC;
|
2018-12-05 18:31:43 +08:00
|
|
|
font-weight: bold;
|
2018-12-07 18:28:53 +08:00
|
|
|
font-size: @NSIFS;
|
2018-12-05 18:31:43 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|