From 5b3740ea439f65a50152cfbc5910c37022907979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Sat, 16 Dec 2023 23:29:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(table):=20=E5=A2=9E=E5=8A=A0=20style=20?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E7=8A=B6=E6=80=81=E7=9A=84=E6=9C=80=E5=B0=8F?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/table.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/table.js b/src/modules/table.js index 9eec4c7f..adc1a592 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -558,7 +558,7 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ layui.each(options.cols, function(i1, item1) { layui.each(item1, function(i2, item2) { var key = [index, i1, i2].join('-'); - var val = item2.width ? ['width: ', item2.width, 'px'].join('') : ''; + var val = ['width: ', (item2.width || options.cellMinWidth), 'px'].join(''); text.push('.laytable-cell-'+ key +'{'+ val +'}'); }); });