laydate lang
This commit is contained in:
@@ -1251,7 +1251,7 @@
|
|||||||
,showBottom: true //是否显示底部栏
|
,showBottom: true //是否显示底部栏
|
||||||
,isPreview: true //是否显示值预览
|
,isPreview: true //是否显示值预览
|
||||||
,btns: ['clear', 'now', 'confirm'] //右下角显示的按钮,会按照数组顺序排列
|
,btns: ['clear', 'now', 'confirm'] //右下角显示的按钮,会按照数组顺序排列
|
||||||
,lang: 'cn' //语言,只支持cn/en,即中文和英文
|
,lang: window.lang || 'zh_CN' //语言,只支持cn/en,即中文和英文
|
||||||
,theme: 'default' //主题
|
,theme: 'default' //主题
|
||||||
,position: null //控件定位方式定位, 默认absolute,支持:fixed/absolute/static
|
,position: null //控件定位方式定位, 默认absolute,支持:fixed/absolute/static
|
||||||
,calendar: false //是否开启公历重要节日,仅支持中文版
|
,calendar: false //是否开启公历重要节日,仅支持中文版
|
||||||
@@ -1266,7 +1266,7 @@
|
|||||||
var that = this
|
var that = this
|
||||||
,options = that.config
|
,options = that.config
|
||||||
,text = {
|
,text = {
|
||||||
cn: {
|
zh_CN: {
|
||||||
weeks: ['日', '一', '二', '三', '四', '五', '六']
|
weeks: ['日', '一', '二', '三', '四', '五', '六']
|
||||||
,time: ['时', '分', '秒']
|
,time: ['时', '分', '秒']
|
||||||
,timeTips: '选择时间'
|
,timeTips: '选择时间'
|
||||||
@@ -1303,7 +1303,7 @@
|
|||||||
,preview: 'The selected result'
|
,preview: 'The selected result'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return text[options.lang] || text['cn'];
|
return text[options.lang] || text['zh_CN'];
|
||||||
};
|
};
|
||||||
|
|
||||||
//初始准备
|
//初始准备
|
||||||
|
|||||||
Reference in New Issue
Block a user