wip(i18n): dropdown 国际化

pull/2695/head
sight 2025-05-23 15:09:56 +08:00
parent 2c9daf6c3b
commit d863e9ccae
2 changed files with 6 additions and 3 deletions

View File

@ -17,7 +17,7 @@
common: { common: {
noMatch: '无匹配数据', noMatch: '无匹配数据',
noData: '暂无数据', noData: '暂无数据',
placeholder: '请选择', placeholder: '请选择'
}, },
code: { code: {
copy: '复制代码', copy: '复制代码',
@ -25,12 +25,15 @@
copyError: '复制失败', copyError: '复制失败',
maximize: '最大化显示', maximize: '最大化显示',
restore: '还原显示', restore: '还原显示',
preview: '在新窗口预览', preview: '在新窗口预览'
}, },
colorpicker: { colorpicker: {
clear: '清除', clear: '清除',
confirm: '确定' confirm: '确定'
}, },
dropdown: {
noData: '暂无数据'
},
// 未使用的字段为保留字段,将来可能会使用 // 未使用的字段为保留字段,将来可能会使用
laydate: { laydate: {
month: { month: {

View File

@ -181,7 +181,7 @@ layui.define(['jquery', 'laytpl', 'lay', 'util'], function(exports) {
if(options.data.length > 0 ){ if(options.data.length > 0 ){
eachItemView(elemUl, options.data) eachItemView(elemUl, options.data)
} else { } else {
elemUl.html(layui.$t('<li class="layui-menu-item-none">暂无数据</li>')); elemUl.html('<li class="layui-menu-item-none">' + layui.$t('lay.dropdown.noData') + '</li>');
} }
return elemUl; return elemUl;
}; };