list-row-action
列表页 通用列表页:标题、工具栏和行,桌面和移动端都适用。
一条列表行:记录名称作为主链接、一行附加信息,以及一个次要操作。
每个示例都能真实操作,但其中的链接不会跳转到任何地方。 HTML 显示可复制的标记。
前导标记、状态和一个操作
把这段放进 <div rst-list> 里。
<div rst-row >
<span rst-row-lead data-lead ="accent" aria-hidden ="true" >RN</span >
<span rst-row-main ><a href ="/posts/1" >八月发布说明</a >
<small rst-row-sub >8月2日发布 · 阅读约 4 分钟</small >
</span >
<span rst-status rst-tone ="positive" >已发布</span >
<a rst-row-action href ="/posts/1/edit" aria-label ="编辑“八月发布说明”" >编辑</a >
</div >
在应用里,这会到达 /posts/1, /posts/1/edit。在这里,它的链接和表单哪儿也不去。
只有名称和辅助信息行
把这段放进 <div rst-list> 里。
<div rst-row >
<span rst-row-main ><a href ="/posts/2" >我们为什么弃用旧的运行器</a >
<small rst-row-sub >草稿 · 20 分钟前保存</small >
</span >
</div >
在应用里,这会到达 /posts/2。在这里,它的链接和表单哪儿也不去。
名称旁的简短状态
rst-status="inline" 让手机上的简短状态留在名称那一行。没有它,状态会移到名称下方。
把这段放进 <div rst-list> 里。
<div rst-row >
<span rst-row-lead data-lead ="accent" aria-hidden ="true" >RN</span >
<span rst-row-main ><a href ="/posts/1" >八月发布说明</a >
<small rst-row-sub >8月2日发布 · 阅读约 4 分钟</small >
</span >
<span rst-status ="inline" rst-tone ="positive" >已发布</span >
<a rst-row-action href ="/posts/1/edit" aria-label ="编辑“八月发布说明”" >编辑</a >
</div >
在应用里,这会到达 /posts/1, /posts/1/edit。在这里,它的链接和表单哪儿也不去。