pull/2695/head
sight 2025-05-22 23:19:05 +08:00
parent 5e50dba1a1
commit a06e2e4f54
1 changed files with 2 additions and 1 deletions

View File

@ -176,7 +176,7 @@
,showBottom: true //是否显示底部栏
,isPreview: true //是否显示值预览
,btns: ['clear', 'now', 'confirm'] //右下角显示的按钮,会按照数组顺序排列
,lang: (isLayui && layui.cache.locale) || 'cn' //语言只支持cn/en即中文和英文
,lang: 'cn' //语言只支持cn/en即中文和英文
,theme: 'default' //主题
,position: null //控件定位方式定位, 默认absolute支持fixed/absolute/static
,calendar: false //是否开启公历重要节日,仅支持中文版
@ -279,6 +279,7 @@
};
if(isLayui){
options.lang = layui.cache.locale;
var message = layui.cache.i18nMessages[layui.cache.locale];
if(message){
text[layui.cache.locale] = message.lay.laydate;