From d9c91eaccd4a4338f790fe1cd73ec5f27ca1f41c Mon Sep 17 00:00:00 2001
From: morning-star <26325820+Sight-wcg@users.noreply.github.com>
Date: Mon, 29 Jan 2024 13:00:51 +0800
Subject: [PATCH] =?UTF-8?q?chore:=20=E5=B0=86=20Unicode=20=E7=BC=96?=
=?UTF-8?q?=E7=A0=81=E8=BD=AC=E6=8D=A2=E4=B8=BA=E4=B8=AD=E6=96=87=E5=AD=97?=
=?UTF-8?q?=E7=AC=A6=20(#1600)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/modules/dropdown.js | 2 +-
src/modules/layer.js | 14 +++++++-------
src/modules/laypage.js | 18 +++++++++---------
3 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/src/modules/dropdown.js b/src/modules/dropdown.js
index 4af957859..7510b6631 100644
--- a/src/modules/dropdown.js
+++ b/src/modules/dropdown.js
@@ -167,7 +167,7 @@ layui.define(['jquery', 'laytpl', 'lay', 'util'], function(exports){
if(options.data.length > 0 ){
eachItemView(elemUl, options.data)
} else {
- elemUl.html('
');
+ elemUl.html('');
}
return elemUl;
};
diff --git a/src/modules/layer.js b/src/modules/layer.js
index 2758e0d1d..d6783404f 100644
--- a/src/modules/layer.js
+++ b/src/modules/layer.js
@@ -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('当前图片地址异常
是否继续查看下一张?', {
+ layer.msg('当前图片地址异常,
是否继续查看下一张?', {
time: 30000,
- btn: ['下一张', '不看了'],
+ btn: ['下一张', '不看了'],
yes: function(){
data.length > 1 && dict.imgnext(true,true);
}
diff --git a/src/modules/laypage.js b/src/modules/laypage.js
index 46b958c35..12c740412 100644
--- a/src/modules/laypage.js
+++ b/src/modules/laypage.js
@@ -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(''+ (config.first || 1) +'');
+ pager.push(''+ (config.first || 1) +'');
}
// 计算当前页码组的起始页
@@ -118,7 +118,7 @@ layui.define(function(exports){
// 输出左分割符
if(config.first !== false && start > 2){
- pager.push('…')
+ pager.push('...')
}
// 输出连续页码
@@ -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('…');
+ pager.push('...');
}
if(groups !== 0){
- pager.push(''+ (config.last || config.pages) +'');
+ pager.push(''+ (config.last || config.pages) +'');
}
}
@@ -189,9 +189,9 @@ layui.define(function(exports){
// 跳页区域
skip: function(){
var skipText = typeof config.skipText === 'object' ? config.skipText : [
- '到第',
- '页',
- '确定'
+ '到第',
+ '页',
+ '确定'
];
return [
''+ skipText[0],