mirror of
https://gitee.com/layui/layui.git
synced 2026-01-28 19:11:26 +08:00
docs: 修复 tabs 文档示例异常问题
This commit is contained in:
@@ -42,7 +42,9 @@
|
|||||||
|
|
||||||
切换 tabs 标签项后,地址栏同步 `hash` 值,当页面刷新时,tabs 仍保持对应的切换状态。
|
切换 tabs 标签项后,地址栏同步 `hash` 值,当页面刷新时,tabs 仍保持对应的切换状态。
|
||||||
|
|
||||||
<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>
|
<textarea>
|
||||||
{{- d.include("/tabs/examples/hash.md") }}
|
{{- d.include("/tabs/examples/hash.md") }}
|
||||||
</textarea>
|
</textarea>
|
||||||
@@ -50,7 +52,9 @@
|
|||||||
|
|
||||||
<h3 id="demo-nest" lay-toc="{level: 2}">标签嵌套</h3>
|
<h3 id="demo-nest" 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>
|
<textarea>
|
||||||
{{- d.include("/tabs/examples/nest.md") }}
|
{{- d.include("/tabs/examples/nest.md") }}
|
||||||
</textarea>
|
</textarea>
|
||||||
|
|||||||
Reference in New Issue
Block a user