|
@@ -1,8 +1,13 @@
|
|
|
<template>
|
|
|
<div
|
|
|
:style="{ display: store.historyOpen ? 'block' : 'none' }"
|
|
|
- class="history-container"
|
|
|
+ class="history-container tw-px-1"
|
|
|
>
|
|
|
+ <div class="tw-p-1" style="text-align: end">
|
|
|
+ <a-button shape="circle" @click="store.historyOpen = false">
|
|
|
+ <template #icon><CloseOutlined /></template>
|
|
|
+ </a-button>
|
|
|
+ </div>
|
|
|
<div class="tw-mt-1 tw-mb-1">
|
|
|
<input
|
|
|
v-model="secretNumberInput"
|
|
@@ -20,7 +25,7 @@
|
|
|
<div v-for="(task, index) of store.historyTasks" :key="index">
|
|
|
<div
|
|
|
@click="replaceCurrentTask(task)"
|
|
|
- class="tw-flex tw-justify-between"
|
|
|
+ class="tw-flex tw-justify-between tw-h-6 tw-place-items-center tw-rounded"
|
|
|
:class="store.currentTask === task && 'current-task'"
|
|
|
>
|
|
|
<div>{{ task.secretNumber }}</div>
|
|
@@ -45,9 +50,11 @@ import { getHistoryTask } from "@/api/markPage";
|
|
|
import { Task } from "@/types";
|
|
|
import { defineComponent, ref, watchEffect } from "vue";
|
|
|
import { store } from "./store";
|
|
|
+import { CloseOutlined } from "@ant-design/icons-vue";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: "MarkHistory",
|
|
|
+ components: { CloseOutlined },
|
|
|
setup() {
|
|
|
watchEffect(async () => {
|
|
|
if (store.historyOpen) {
|