From d726d42322d9525c4277e90e105d27d46debf801 Mon Sep 17 00:00:00 2001 From: sight <26325820+Sight-wcg@users.noreply.github.com> Date: Fri, 23 May 2025 15:24:46 +0800 Subject: [PATCH] =?UTF-8?q?wip(i18n):=20flow=20=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layui.js | 4 ++++ src/modules/flow.js | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/layui.js b/src/layui.js index 0ba75cc0..1b9e5312 100644 --- a/src/layui.js +++ b/src/layui.js @@ -34,6 +34,10 @@ dropdown: { noData: '暂无数据' }, + flow: { + loadMore: '加载更多', + noMore: '没有更多了' + }, // 未使用的字段为保留字段,将来可能会使用 laydate: { month: { diff --git a/src/modules/flow.js b/src/modules/flow.js index 751d214f..8cf1bb45 100644 --- a/src/modules/flow.js +++ b/src/modules/flow.js @@ -20,8 +20,8 @@ layui.define('jquery', function(exports) { var scrollElem = $(options.scrollElem || document); // 滚动条所在元素 var threshold = 'mb' in options ? options.mb : 50; // 临界距离 var isAuto = 'isAuto' in options ? options.isAuto : true; // 否自动滚动加载 - var moreText = options.moreText || layui.$t('加载更多'); // 手动加载时,加载更多按钮文案 - var end = options.end || layui.$t('没有更多了'); // “末页”显示文案 + var moreText = options.moreText || layui.$t('lay.flow.loadMore'); // 手动加载时,加载更多按钮文案 + var end = options.end || layui.$t('lay.flow.noMore'); // “末页”显示文案 var direction = options.direction || 'bottom'; var isTop = direction === 'top';