From 84f2e978a8308d77cc02fd0c65e5ebde20b6201f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Wed, 22 Nov 2023 16:46:07 +0800 Subject: [PATCH 01/12] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Gitee=20Issue=20?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitee/ISSUE_TEMPLATE/bug.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitee/ISSUE_TEMPLATE/bug.yml b/.gitee/ISSUE_TEMPLATE/bug.yml index f5f46e03..77da8221 100644 --- a/.gitee/ISSUE_TEMPLATE/bug.yml +++ b/.gitee/ISSUE_TEMPLATE/bug.yml @@ -16,7 +16,8 @@ body: - type: input attributes: label: 版本号 - placeholder: 请提供您所使用的 Layui 版本号 + placeholder: 请提供您当前使用的 Layui 版本号 + description: 若不清楚,可打开 `layui.js`,头部注释有对应的版本号 validations: required: true - type: input From 6d5d356583a2761e83554702625b2c400df1cccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Wed, 22 Nov 2023 16:46:37 +0800 Subject: [PATCH 02/12] =?UTF-8?q?=E4=BC=98=E5=8C=96=20layui-v2.9.0-rc.1=20?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/versions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/versions.md b/docs/versions.md index 29a11ae2..24b9b058 100644 --- a/docs/versions.md +++ b/docs/versions.md @@ -27,11 +27,11 @@ toc: true - #### util - 优化 `util.on()` 方法,提升参数的灵活性和代码的可读性 [d74abb4](https://github.com/layui/layui/commit/d74abb453cb45ea5d2eb69f0ed7250caf0ab0088) / [92c8580](https://github.com/layui/layui/commit/92c85805c2558bf384292d7adf783d8453cd895a) - #### colorpicker - - 优化 colorpicker 内部输入框取值,移除字符串两侧的空白字符 [#1427](https://github.com/layui/layui/pull/1427) + - 优化 内部输入框取值,移除字符串两侧的空白字符 [#1427](https://github.com/layui/layui/pull/1427) [@Sight-wcg](https://github.com/Sight-wcg) - #### 其他 - 优化 `lay.clipboard.writeText()` 逻辑,以适配无写入权限时的场景 [#1421](https://github.com/layui/layui/pull/1421) [@Sight-wcg](https://github.com/Sight-wcg) -### 下载: [layui-v2.9.0-beta.1.zip](https://gitee.com/layui/layui/attach_files/1589824/download) +### 下载: [layui-v2.9.0-rc.1.zip](https://gitee.com/layui/layui/attach_files/1589824/download) --- From 8174aa900540eb0ca0427ac2b963a1deccedcaf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Thu, 23 Nov 2023 12:48:32 +0800 Subject: [PATCH 03/12] =?UTF-8?q?=E6=B8=85=E7=90=86=20docs=20=E4=B8=BB?= =?UTF-8?q?=E9=A1=B5=E5=A4=9A=E4=BD=99=E7=A9=BA=E7=99=BD=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/index.md b/docs/index.md index a10ad542..4da36e70 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,7 +2,7 @@ title: 开始使用 toc: true --- - +

开始使用

> Layui 是一套免费的开源 Web UI 组件库,采用自身轻量级模块化规范,遵循原生态的 HTML/CSS/JavaScript 开发模式,极易上手,拿来即用。其风格简约轻盈,而内在雅致丰盈,甚至包括文档在内的每一处细节都经过精心雕琢,非常适合网页界面的快速构建。Layui 区别于一众主流的前端框架,却并非逆道而行,而是信奉返璞归真之道。确切地说,它更多是面向于追求简单的务实主义者,即无需涉足各类构建工具,只需面向浏览器本身,便可将页面所需呈现的元素与交互信手拈来。 @@ -64,7 +64,7 @@ npm i layui
UNPKG - CDNJS + CDNJS
@@ -101,7 +101,7 @@ npm i layui // Welcome layer.msg('Hello World', {icon: 6}); }); - + From f10357775f6a1a50ff7e1a6e2e3178eaf5ad3cb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Tue, 28 Nov 2023 10:22:06 +0800 Subject: [PATCH 04/12] =?UTF-8?q?=E4=BC=98=E5=8C=96=20table=20=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/table-test.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/table-test.html b/examples/table-test.html index 7e9da0c7..79ca8931 100644 --- a/examples/table-test.html +++ b/examples/table-test.html @@ -49,7 +49,7 @@ From 1d408f0f4a50911d28d84ec33976813ed6238abc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Tue, 28 Nov 2023 10:25:44 +0800 Subject: [PATCH 07/12] =?UTF-8?q?=E4=BC=98=E5=8C=96=20table=20=E5=BD=93?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=80=BC=E4=B8=BA=20`0,undefined,null`=20?= =?UTF-8?q?=E4=B8=94=E5=BC=80=E5=90=AF=E5=88=97=E6=A8=A1=E6=9D=BF=EF=BC=8C?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=8D=95=E5=85=83=E6=A0=BC=E4=BC=9A=E5=B8=A6?= =?UTF-8?q?=E5=85=A5=E6=A8=A1=E6=9D=BF=E5=AD=97=E7=AC=A6=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20=E8=A7=A3=E5=86=B3=EF=BC=9A[#I8JOSW](https://gitee.?= =?UTF-8?q?com/layui/layui/issues/I8JOSW)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/table.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/table.js b/src/modules/table.js index 0db61e3c..3990c889 100644 --- a/src/modules/table.js +++ b/src/modules/table.js @@ -2379,8 +2379,9 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){ } return inputElem; }()); - - input[0].value = othis.data('content') || data[field] || elemCell.text(); + input[0].value = function(val) { + return (val === undefined || val === null) ? '' : val; + }(othis.data('content') || data[field]); othis.find('.'+ELEM_EDIT)[0] || othis.append(input); input.focus(); e && layui.stope(e); From b92932c891c075680ba093232335ac7c0ad2156e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Tue, 28 Nov 2023 16:29:16 +0800 Subject: [PATCH 08/12] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20table=20=E7=94=A8?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/table-test.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/table-test.html b/examples/table-test.html index 79ca8931..d828a90b 100644 --- a/examples/table-test.html +++ b/examples/table-test.html @@ -75,7 +75,9 @@ -
+
+
+