@@ -27,22 +27,37 @@
<script>
export default {
- data() {
- return {
- currentDate: "",
- };
- },
- methods: {
- getCurrentDate() {
- const now = new Date();
- this.currentDate = `${now.getFullYear()}-${
- now.getMonth() + 1
- }月${now.getDate().toString().padStart(2, "0")}日`;
+ props: {
+ timelineData: {
+ type: Array,
+ default: () => [
+ {
+ time: "16:12",
+ title: "进入卫生间(房间)",
+ },
+ time: "16:42",
+ title: "离开房间",
+ ],
},
- mounted() {
- this.getCurrentDate();
};
</script>