mirror of https://github.com/layui/layui
docs: 修复 tabs 文档示例异常问题
parent
0f0584e2ed
commit
a0f533f0fd
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue