<template>
    <el-timeline>
        <el-timeline-item v-for="(item, index) in activities" :key="index" :timestamp="item.time">
            {{ item.title + '-' + item.ip }}
        </el-timeline-item>
    </el-timeline>
</template>

<script lang='ts' setup>
import { onMounted, reactive, ref, toRefs, watch } from 'vue'
import { dateFormater } from '@/utils/date-util';

const activities: any = []

while (activities.length < 10) {
    activities.push({
        time: dateFormater('yyyy-MM-dd HH:mm:ss'),
        title: '登录成功',
        ip: '127.0.0.1'
    })
}
</script>

<style lang='scss' scoped></style>
