From 71381986451bb109cdc8caac4adc5d5b33499eea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Mon, 12 May 2025 16:25:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(tabs):=20=E4=BC=98=E5=8C=96=20header=20?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=80=BC=E5=88=A4=E6=96=AD=EF=BC=8C=E5=85=81?= =?UTF-8?q?=E8=AE=B8=E6=95=B0=E7=BB=84=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/tabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/tabs.js b/src/modules/tabs.js index 11cce8dc..2119eeb7 100644 --- a/src/modules/tabs.js +++ b/src/modules/tabs.js @@ -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') {