1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-12-28 02:08:22 +01:00
antd-web-apps/info/views/default/toc/index.ls
2021-01-05 19:12:35 +00:00

18 lines
357 B
Plaintext

<?lua
if HEADER.mobile then return end
if not data then return end
?>
<div class = "cv-toc">
<ul>
<?lua
local active = "toc_active"
for k, v in pairs(data) do
?>
<!--onclick='switchTab("toc<?=v[2]?>", this)'-->
<li class="<?=active?>"><a href=<?='"#toc'..v[2]..'"'?> ><?=v[1]?></a></li>
<?lua
active = ''
end
?>
</ul>
</div>