mirror of
https://gitee.com/layui/layui.git
synced 2025-10-07 23:24:32 +08:00
docs: 优化文档细节 (#2594)
This commit is contained in:
@@ -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">
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user