fix(tabs): 优化 header 初始值判断,允许数组为空

pull/2680/head
贤心 2025-05-12 16:25:55 +08:00
parent a7af177223
commit 7138198645
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ layui.define('component', function(exports) {
// 若 header 选项类型为数组
if (layui.type(options.header) === 'array') {
if (options.header.length === 0) return;
// if (options.header.length === 0) return;
// 给任意元素绑定 tabs 切换功能
if (typeof options.header[0] === 'string') {