mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-21 14:13:36 +08:00
chore: structure change
This commit is contained in:
48
src/views/components/count-to/index.vue
Normal file
48
src/views/components/count-to/index.vue
Normal file
@@ -0,0 +1,48 @@
|
||||
<template>
|
||||
<div style="margin:10px">
|
||||
<el-row :gutter="10">
|
||||
<el-col :span="10">
|
||||
<el-card shadow="always">
|
||||
<CountTo
|
||||
prefix="$"
|
||||
:duration="1000"
|
||||
:color="'#409EFF'"
|
||||
:fontSize="'60px'"
|
||||
:startVal="1"
|
||||
:endVal="1000"
|
||||
/>
|
||||
</el-card>
|
||||
</el-col>
|
||||
<el-col :span="10">
|
||||
<el-card shadow="always">
|
||||
<CountTo
|
||||
prefix="$"
|
||||
:duration="2000"
|
||||
:color="'green'"
|
||||
:fontSize="'60px'"
|
||||
:startVal="1"
|
||||
:endVal="2000"
|
||||
/>
|
||||
</el-card>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang='ts'>
|
||||
import CountTo from "/@/components/countTo";
|
||||
export default {
|
||||
components: {
|
||||
CountTo
|
||||
},
|
||||
setup() {
|
||||
return {};
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
:deep(.el-card) {
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user