bug 修改
This commit is contained in:
@@ -1,14 +1,18 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="number-digital">
|
<div class="number-digital">
|
||||||
<div class="box-item">
|
<div class="box-item">
|
||||||
|
<!-- :class="{ 'number-item': !isNaN(item), 'mark-item': isNaN(item) }" -->
|
||||||
<li
|
<li
|
||||||
:class="{ 'number-item': !isNaN(item), 'mark-item': isNaN(item) }"
|
class="number-item"
|
||||||
v-for="(item, index) in orderNum"
|
v-for="(item, index) in orderNum"
|
||||||
:key="index"
|
:key="index"
|
||||||
>
|
>
|
||||||
<span v-if="!isNaN(item)">
|
<span v-if="!isNaN(item)">
|
||||||
<i :id="`${prefix}numberItem${index}`">0123456789</i>
|
<i :id="`${prefix}numberItem${index}`">0123456789</i>
|
||||||
</span>
|
</span>
|
||||||
|
<span v-else>
|
||||||
|
<i>-</i>
|
||||||
|
</span>
|
||||||
</li>
|
</li>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -31,6 +35,7 @@
|
|||||||
const toOrderNum = (num) => {
|
const toOrderNum = (num) => {
|
||||||
num = num.toString()
|
num = num.toString()
|
||||||
orderNum.value = num.split('') // 将其便变成数据,渲染至滚动数组
|
orderNum.value = num.split('') // 将其便变成数据,渲染至滚动数组
|
||||||
|
console.log(orderNum.value,'nnnnnnnnnn')
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
setNumberTransform()
|
setNumberTransform()
|
||||||
}, 500)
|
}, 500)
|
||||||
|
|||||||
Reference in New Issue
Block a user