docs: 优化文档细节 (#2594)

This commit is contained in:
贤心 2025-03-28 00:34:06 +08:00 committed by GitHub
parent 6884f80378
commit 2f404fb6ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 17 additions and 10 deletions

View File

@ -18,7 +18,7 @@ toc: true
<td>用途:用于更简单快速地构建网页界面</td>
</tr>
<tr>
<td>环境:<a href="/notes/browser-support.html" target="_blank">详见不同版本的浏览器兼容规划</a> <sup>N</sup></td>
<td>环境:<a href="/notes/browser-support.html" target="_blank">详见不同版本的浏览器兼容说明</a> <sup>N</sup></td>
<td>特性:原生态开发 / 轻量级模块化 / 外简内丰 / 开箱即用</td>
</tr>
</tbody>

View File

@ -1,6 +1,6 @@
<div id="demoTabs3">
<style>
#demoTabsHeader .layui-btn.layui-this{border-color: #eee; color: #000; background: none;}
#demoTabsHeader .layui-btn.layui-this{border-color: #eee; color: unset; background: none;}
#demoTabsBody .test-item{display: none;}
</style>
<div class="layui-btn-container" id="demoTabsHeader">

View File

@ -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() {
}
});
});
</script>

View File

@ -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)
<div id="WS-switch-v"></div>
<h2 id="2.10+" lay-toc="{title: '2.10+'}"></h2>
<h2 id="v2.10.1" class="ws-anchor">
<h2 id="v2.10.1" lay-pid="2.10+" class="ws-anchor">
v2.10.1
<span class="layui-badge-rim">2025-03-19</span>
</h2>
@ -26,7 +28,7 @@ toc: true
---
<h2 id="v2.10.0" class="ws-anchor">
<h2 id="v2.10.0" lay-pid="2.10+" class="ws-anchor">
v2.10.0
<span class="layui-badge-rim">2025-03-13</span>
</h2>
@ -69,7 +71,7 @@ toc: true
<h2 id="2.9.x" lay-toc="{title: '2.9.x'}"></h2>
<h2 id="v2.9.25" class="ws-anchor">
<h2 id="v2.9.25" lay-pid="2.9.x" class="ws-anchor">
v2.9.25
<span class="layui-badge-rim">2025-03-13</span>
<span class="layui-badge-rim" style="color: #16b777;">稳定版</span>
@ -576,7 +578,7 @@ toc: true
---
<h2 id="2.9.0" class="ws-anchor">
<h2 id="2.9.0" lay-pid="2.9.x" class="ws-anchor">
2.9.0
<span class="layui-badge-rim">2023-11-29</span>
</h2>
@ -653,7 +655,7 @@ toc: true
<h2 id="2.8.x" lay-toc="{title: '2.8.x'}"></h2>
<h2 id="2.8.18" class="ws-anchor">
<h2 id="2.8.18" lay-pid="2.8.x" class="ws-anchor">
2.8.18
<span class="layui-badge-rim">2023-10-31</span>
</h2>