docs: 修复 tabs 文档中自定义事件示例重新点击 Preview 失效的问题

This commit is contained in:
贤心 2025-03-19 13:35:00 +08:00
parent 172957d243
commit 0f0584e2ed

View File

@ -30,7 +30,9 @@
<h3 id="demo-trigger" lay-toc="{level: 2}">自定义事件</h3>
<pre class="layui-code" lay-options="{preview: true, layout: ['preview', 'code'], codeStyle: 'max-height: 520px;', tools: ['full']}">
<pre class="layui-code" lay-options="{preview: true, layout: ['preview', 'code'], codeStyle: 'max-height: 520px;', tools: ['full'], done: function(obj){
obj.render();
}}">
<textarea>
{{- d.include("/tabs/examples/trigger.md") }}
</textarea>