mirror of https://github.com/layui/layui
chore: 将 Unicode 编码转换为中文字符 (#1600)
parent
020b6f0482
commit
d9c91eaccd
|
@ -167,7 +167,7 @@ layui.define(['jquery', 'laytpl', 'lay', 'util'], function(exports){
|
|||
if(options.data.length > 0 ){
|
||||
eachItemView(elemUl, options.data)
|
||||
} else {
|
||||
elemUl.html('<li class="layui-menu-item-none">No data</li>');
|
||||
elemUl.html('<li class="layui-menu-item-none">暂无数据</li>');
|
||||
}
|
||||
return elemUl;
|
||||
};
|
||||
|
|
|
@ -33,7 +33,7 @@ var ready = {
|
|||
events: {resize: {}},
|
||||
minStackIndex: 0,
|
||||
minStackArr: [],
|
||||
btn: ['确定', '取消'],
|
||||
btn: ['确定', '取消'],
|
||||
|
||||
// 五种原始层模式
|
||||
type: ['dialog', 'page', 'iframe', 'loading', 'tips'],
|
||||
|
@ -264,7 +264,7 @@ Class.pt.config = {
|
|||
shade: 0.3,
|
||||
fixed: true,
|
||||
move: doms[1],
|
||||
title: '信息',
|
||||
title: '信息',
|
||||
offset: 'auto',
|
||||
area: 'auto',
|
||||
closeBtn: 1,
|
||||
|
@ -1331,7 +1331,7 @@ layer.prompt = function(options, yes){
|
|||
|
||||
return layer.open($.extend({
|
||||
type: 1,
|
||||
btn: ['确定','取消'],
|
||||
btn: ['确定;','取消'],
|
||||
content: content,
|
||||
skin: 'layui-layer-prompt' + skin('prompt'),
|
||||
maxWidth: win.width(),
|
||||
|
@ -1344,7 +1344,7 @@ layer.prompt = function(options, yes){
|
|||
yes: function(index){
|
||||
var value = prompt.val();
|
||||
if(value.length > (options.maxlength||500)) {
|
||||
layer.tips('最多输入'+ (options.maxlength || 500) +'个字数', prompt, {tips: 1});
|
||||
layer.tips('最多输入'+ (options.maxlength || 500) +'个字符', prompt, {tips: 1});
|
||||
} else {
|
||||
yes && yes(value, index, prompt);
|
||||
}
|
||||
|
@ -1460,7 +1460,7 @@ layer.photos = function(options, loop, key){
|
|||
// 不直接弹出
|
||||
if (!loop) return;
|
||||
} else if (data.length === 0){
|
||||
return layer.msg('没有图片');
|
||||
return layer.msg('没有图片');
|
||||
}
|
||||
|
||||
// 上一张
|
||||
|
@ -1745,9 +1745,9 @@ layer.photos = function(options, loop, key){
|
|||
}, options));
|
||||
}, function(){
|
||||
layer.close(dict.loadi);
|
||||
layer.msg('当前图片地址异常<br>是否继续查看下一张?', {
|
||||
layer.msg('当前图片地址异常,<br>是否继续查看下一张?', {
|
||||
time: 30000,
|
||||
btn: ['下一张', '不看了'],
|
||||
btn: ['下一张', '不看了'],
|
||||
yes: function(){
|
||||
data.length > 1 && dict.imgnext(true,true);
|
||||
}
|
||||
|
|
|
@ -72,8 +72,8 @@ layui.define(function(exports){
|
|||
groups = config.pages;
|
||||
}
|
||||
|
||||
config.prev = 'prev' in config ? config.prev : '上一页'; // 上一页文本
|
||||
config.next = 'next' in config ? config.next : '下一页'; // 下一页文本
|
||||
config.prev = 'prev' in config ? config.prev : '上一页'; // 上一页文本
|
||||
config.next = 'next' in config ? config.next : '下一页'; // 下一页文本
|
||||
|
||||
// 计算当前组
|
||||
var index = config.pages > groups
|
||||
|
@ -100,7 +100,7 @@ layui.define(function(exports){
|
|||
|
||||
// 首页
|
||||
if(index > 1 && config.first !== false && groups !== 0){
|
||||
pager.push('<a class="layui-laypage-first" data-page="1" title="首页">'+ (config.first || 1) +'</a>');
|
||||
pager.push('<a class="layui-laypage-first" data-page="1" title="首页">'+ (config.first || 1) +'</a>');
|
||||
}
|
||||
|
||||
// 计算当前页码组的起始页
|
||||
|
@ -118,7 +118,7 @@ layui.define(function(exports){
|
|||
|
||||
// 输出左分割符
|
||||
if(config.first !== false && start > 2){
|
||||
pager.push('<span class="layui-laypage-spr">…</span>')
|
||||
pager.push('<span class="layui-laypage-spr">...</span>')
|
||||
}
|
||||
|
||||
// 输出连续页码
|
||||
|
@ -134,10 +134,10 @@ layui.define(function(exports){
|
|||
// 输出输出右分隔符 & 末页
|
||||
if(config.pages > groups && config.pages > end && config.last !== false){
|
||||
if(end + 1 < config.pages){
|
||||
pager.push('<span class="layui-laypage-spr">…</span>');
|
||||
pager.push('<span class="layui-laypage-spr">...</span>');
|
||||
}
|
||||
if(groups !== 0){
|
||||
pager.push('<a class="layui-laypage-last" title="尾页" data-page="'+ config.pages +'">'+ (config.last || config.pages) +'</a>');
|
||||
pager.push('<a class="layui-laypage-last" title="尾页" data-page="'+ config.pages +'">'+ (config.last || config.pages) +'</a>');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -189,9 +189,9 @@ layui.define(function(exports){
|
|||
// 跳页区域
|
||||
skip: function(){
|
||||
var skipText = typeof config.skipText === 'object' ? config.skipText : [
|
||||
'到第',
|
||||
'页',
|
||||
'确定'
|
||||
'到第',
|
||||
'页',
|
||||
'确定'
|
||||
];
|
||||
return [
|
||||
'<span class="layui-laypage-skip">'+ skipText[0],
|
||||
|
|
Loading…
Reference in New Issue