From be40cc37cae5940acf1ec1fba98252dcfa2dc020 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 28 六月 2022 08:41:49 +0800
Subject: [PATCH] 1.引入全局主题颜色

---
 src/utils/global.js |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/utils/global.js b/src/utils/global.js
index f636c90..044a6b0 100644
--- a/src/utils/global.js
+++ b/src/utils/global.js
@@ -6,10 +6,11 @@
 // 澶勭悊琛ㄥご鍗曞厓鏍兼牱寮�
 export function headerCellStyle() {
   const option = {
-    background: '#eee', padding: '5px 0'
+    background: '#eee', padding: '0'
   }
   return option
 }
+
 // 澶勭悊琛ㄦ牸鍗曞厓鏍兼牱寮�
 export function cellStyle() {
   const option = {
@@ -17,3 +18,11 @@
   }
   return option
 }
+
+// 鏃堕棿澶勭悊鍑芥暟
+export function handleDatatime(value) {
+  const data = new Date(value)
+  const month = data.getMonth() < 9 ? '0' + (data.getMonth() + 1) : data.getMonth() + 1
+  const date = data.getDate() <= 9 ? '0' + data.getDate() : data.getDate()
+  return data.getFullYear() + '-' + month + '-' + date
+}

--
Gitblit v1.9.3