From 2f404fb6ed4d3e40da0e55dd86550b4a430ecf5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=A4=E5=BF=83?= <3277200+sentsim@users.noreply.github.com> Date: Fri, 28 Mar 2025 00:34:06 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BC=98=E5=8C=96=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E7=BB=86=E8=8A=82=20(#2594)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/index.md | 2 +- docs/tabs/examples/custom.md | 2 +- docs/tabs/examples/demo.md | 9 +++++++-- docs/versions.md | 14 ++++++++------ 4 files changed, 17 insertions(+), 10 deletions(-) diff --git a/docs/index.md b/docs/index.md index 2b0c421b..e64af0bb 100644 --- a/docs/index.md +++ b/docs/index.md @@ -18,7 +18,7 @@ toc: true 用途:用于更简单快速地构建网页界面 - 环境:详见不同版本的浏览器兼容规划 N + 环境:详见不同版本的浏览器兼容说明 N 特性:原生态开发 / 轻量级模块化 / 外简内丰 / 开箱即用 diff --git a/docs/tabs/examples/custom.md b/docs/tabs/examples/custom.md index f3ace3cf..1e91898b 100644 --- a/docs/tabs/examples/custom.md +++ b/docs/tabs/examples/custom.md @@ -1,6 +1,6 @@
diff --git a/docs/tabs/examples/demo.md b/docs/tabs/examples/demo.md index ebcd7daa..fa250da9 100644 --- a/docs/tabs/examples/demo.md +++ b/docs/tabs/examples/demo.md @@ -91,8 +91,12 @@ layui.use(function() { id: 'new-'+ n, aaa: 'attr-'+ n, // 自定义属性,其中 aaa 可任意命名 done: function(params) { - console.log(params); - dropdownInst.reload(); + console.log(params); // 查看返回的参数 + + // 给新标签头添加上下文菜单 + dropdown.render($.extend({}, dropdownInst.config, { + elem: params.thisHeaderItem // 当前标签头元素 + })); } }, opts); // 添加标签到最后 @@ -107,3 +111,4 @@ layui.use(function() { } }); }); + diff --git a/docs/versions.md b/docs/versions.md index a31767a2..1b2fb6da 100644 --- a/docs/versions.md +++ b/docs/versions.md @@ -5,11 +5,13 @@ toc: true # 更新日志 -> 导读:📑 [Layui 2.x 系列版本主要升级变化](/notes/share/2x-major-upgrade-changes.html) · 📑 [Layui 2.8+ 《升级指南》](/notes/2.8/upgrade-guide.html) · 📑 [Layui 新版文档站上线初衷](/notes/2.8/news.html) +> 导读:📑 [Layui 不同版本的浏览器兼容说明](/notes/browser-support.html) · 📑 [Layui 2.x 系列版本主要升级变化](/notes/share/2x-major-upgrade-changes.html) · 📑 [Layui 2.8+ 《升级指南》](/notes/2.8/upgrade-guide.html) + +

-

+

v2.10.1 2025-03-19

@@ -26,7 +28,7 @@ toc: true --- -

+

v2.10.0 2025-03-13

@@ -69,7 +71,7 @@ toc: true

-

+

v2.9.25 2025-03-13 稳定版 @@ -576,7 +578,7 @@ toc: true --- -

+

2.9.0 2023-11-29

@@ -653,7 +655,7 @@ toc: true

-

+

2.8.18 2023-10-31