From 92c55b18820ee498a1c195ee20ecee56e655a0ad Mon Sep 17 00:00:00 2001 From: ap <951984189@qq.com> Date: Mon, 6 Dec 2021 18:37:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/plugins/cool.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/plugins/cool.ts b/build/plugins/cool.ts index c3c0acf..9d7acb1 100644 --- a/build/plugins/cool.ts +++ b/build/plugins/cool.ts @@ -200,14 +200,14 @@ function datetimeMerge({ columns, item }: any) { const key = item.prop.replace("start", ""); if (columns.find((e: any) => e.propertyName == "end" + key)) { - item.label = key == "time" ? "时间范围" : "日期访问"; + item.label = key == "time" ? "时间范围" : "日期范围"; item.prop = key.toLocaleLowerCase(); item.hook = "datetimeRange"; item.component = { name: "el-date-picker", props: { type: key == "time" ? "datetimerange" : "daterange", - valueFormat: "YYYY-MM-DD HH:mm:ss" + valueFormat: "time" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD 00:00:00" } }; }