From 505798927f75c84693cc51becf16aa525503fc92 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 11 七月 2024 17:23:38 +0800
Subject: [PATCH] 2024.7.11

---
 src/components/search/OptionTime.vue |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/components/search/OptionTime.vue b/src/components/search/OptionTime.vue
index f9f7bc5..e3b9014 100644
--- a/src/components/search/OptionTime.vue
+++ b/src/components/search/OptionTime.vue
@@ -5,6 +5,7 @@
     @change="handleChange"
     :type="type"
     placeholder="閫夋嫨鏃堕棿"
+    :disabled-date="disabledDate"
     size="small"
     style="width: 100px"
   />
@@ -13,6 +14,7 @@
 
 <script>
 const MONTH = 'month'
+const DATE = 'date'
 
 export default {
   props: {
@@ -47,6 +49,9 @@
         default:
           return 'YYYY-MM'
       }
+    },
+    disabledDate(time) {
+      return time.getTime() > Date.now()
     }
   },
   mounted() {

--
Gitblit v1.9.3