更新代码
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
</div>
|
||||
<div class="count">
|
||||
<slot v-if="$scopedSlots.default" :data="item" :$index="index"></slot>
|
||||
<count-to v-else :start-val="0" :end-val="item.value" :duration="2600" :decimal="2" class="card-panel-num" />
|
||||
<count-to v-else :start-val="0" :options="options" :end-val="item.value" :duration="2600" class="card-panel-num" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -36,7 +36,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import CountTo from 'vue-count-to';
|
||||
import CountTo from 'vue-countup-v2'
|
||||
import { staticRank } from '@/api/cai/static'
|
||||
import publisherInstance from '@/utils/pubsub'
|
||||
export default {
|
||||
@@ -62,6 +62,13 @@ export default {
|
||||
|
||||
data() {
|
||||
return {
|
||||
options: {
|
||||
useEasing: true,
|
||||
useGrouping: true,
|
||||
separator: ',',
|
||||
prefix: '¥',
|
||||
suffix: ''
|
||||
},
|
||||
activeTime: 'Total',
|
||||
data: [],
|
||||
baseUrl: process.env.VUE_APP_COS_BASE_URL
|
||||
|
||||
Reference in New Issue
Block a user