From de46f23b06cea670165860f111bf7e6f91b24193 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?=
<3277200+sentsim@users.noreply.github.com>
Date: Mon, 26 May 2025 23:52:36 +0800
Subject: [PATCH] =?UTF-8?q?chore(laydate):=20=E4=BC=98=E5=8C=96=E9=83=A8?=
=?UTF-8?q?=E5=88=86=E6=8F=90=E7=A4=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/modules/laydate.js | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/src/modules/laydate.js b/src/modules/laydate.js
index 7eaf4a9f..c1607468 100644
--- a/src/modules/laydate.js
+++ b/src/modules/laydate.js
@@ -201,11 +201,12 @@
selectTime: '选择时间',
startTime: '开始时间',
endTime: '结束时间',
- selectDate: '返回日期',
+ selectDate: '选择日期',
tools: {
confirm: '确定',
clear: '清空',
- now: '现在'
+ now: '现在',
+ reset: '重置'
},
timeout: '结束时间不能早于开始时间
请重新选择',
invalidDate: '不在有效日期或时间范围内',
@@ -223,7 +224,8 @@
tools: {
confirm: 'Confirm',
clear: 'Clear',
- now: 'Now'
+ now: 'Now',
+ reset: 'Reset'
},
timeout: 'End time cannot be less than start Time
Please re-select',
invalidDate: 'Invalid date',
@@ -594,8 +596,10 @@
lay.each(options.btns, function(i, item){
var title = lang.tools[item] || 'btn';
- if(options.range && item === 'now') return;
- if(isStatic && item === 'clear') title = options.lang === 'cn' ? '重置' : 'Reset';
+ if (options.range && item === 'now') return;
+ if (isStatic && item === 'clear') {
+ title = lang.tools.reset;
+ }
btns.push(''+ title +'');
});
html.push('