mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-07-26 10:39:46 +02:00
the info page now use the silk framework
This commit is contained in:
17
info/views/default/toc/index.ls
Normal file
17
info/views/default/toc/index.ls
Normal file
@ -0,0 +1,17 @@
|
||||
<?lua
|
||||
if HEADER.mobile then return end
|
||||
local args = {...}
|
||||
local data = args[1].data
|
||||
if not data then return end
|
||||
?>
|
||||
<div class = "cv-toc">
|
||||
<ul>
|
||||
<?lua
|
||||
for k, v in pairs(data) do
|
||||
?>
|
||||
<li><a href=<?='"#toc'..v[2]..'"'?>><?=v[1]?></a></li>
|
||||
<?lua
|
||||
end
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
Reference in New Issue
Block a user