From 407a7ac8baadf4ffc349bc610475e18d5741775d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Thu, 19 Oct 2023 14:18:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20laypage=20=E7=9A=84=20`ski?= =?UTF-8?q?pText`=20=E5=B1=9E=E6=80=A7=EF=BC=8C=E7=94=A8=E4=BA=8E=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E8=B7=B3=E9=A1=B5=E5=8C=BA=E5=9F=9F=E6=96=87?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/laypage.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/modules/laypage.js b/src/modules/laypage.js index 5194a593..4ce4af38 100644 --- a/src/modules/laypage.js +++ b/src/modules/laypage.js @@ -185,10 +185,15 @@ layui.define(function(exports){ // 跳页区域 skip: function(){ + var skipText = typeof config.skipText === 'object' ? config.skipText : [ + '到第', + '页', + '确定' + ]; return [ - '到第', + ''+ skipText[0], '', - '页', + skipText[1]+ '', '' ].join(''); }()