media-grid
清單畫面 一般嘅清單畫面:標題、工具列同行,喺桌面同手機都用得。
圖片方塊組成嘅網格。每個框都係 4:3,所以高嘅截圖同闊嘅橫額都可以整齊咁放喺同一個網格入面。
每個例子都真係用得,不過入面啲連結唔會帶你去邊度。 HTML 顯示可以複製嘅標記。
截圖、一個標誌同一個橫額
畀標誌或者橫額加 rst-media-frame="contain"。截圖保持預設,顯示佢嘅頂部。冇描述嘅圖塊會寫「冇描述」。
將呢段放入 <div rst-list> 入面。
<div rst-media >
<div rst-media-tile >
<div rst-media-frame >
<img src ="../assets/sample-checkout.svg" alt ="" loading ="lazy" decoding ="async" width ="1280" height ="3200" >
</div >
<div rst-media-caption >
<div rst-media-name >
<a href ="/images/1" >結帳,第 2 步</a >
<details rst-row-menu name ="rst-menus" >
<summary aria-label ="結帳,第 2 步 嘅操作" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><circle cx ="12" cy ="12" r ="1" /><circle cx ="12" cy ="5" r ="1" /><circle cx ="12" cy ="19" r ="1" /></svg >
</summary >
<div rst-row-menu-panel >
<a href ="/images/1/edit" >編輯</a >
<hr >
<a class ="rst-danger" href ="/images/1/delete" >刪除…</a >
</div >
</details >
</div >
<p rst-media-desc >付款步驟,信用卡表格已經打開。</p >
<p rst-media-meta >1280 × 3200 · 412 KB</p >
</div >
</div >
<div rst-media-tile >
<div rst-media-frame >
<img src ="../assets/sample-pricing.svg" alt ="" loading ="lazy" decoding ="async" width ="1280" height ="2400" >
</div >
<div rst-media-caption >
<div rst-media-name >
<a href ="/images/2" >定價頁面</a >
<details rst-row-menu name ="rst-menus" >
<summary aria-label ="定價頁面 嘅操作" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><circle cx ="12" cy ="12" r ="1" /><circle cx ="12" cy ="5" r ="1" /><circle cx ="12" cy ="19" r ="1" /></svg >
</summary >
<div rst-row-menu-panel >
<a href ="/images/2/edit" >編輯</a >
<hr >
<a class ="rst-danger" href ="/images/2/delete" >刪除…</a >
</div >
</details >
</div >
<p rst-media-desc ="none" >冇描述</p >
<p rst-media-meta >1280 × 2400 · 318 KB</p >
</div >
</div >
<div rst-media-tile >
<div rst-media-frame ="contain" >
<img src ="../assets/sample-logo.svg" alt ="Harbour" loading ="lazy" decoding ="async" width ="240" height ="240" >
</div >
<div rst-media-caption >
<div rst-media-name >
<a href ="/images/3" >Harbour 標誌</a >
<details rst-row-menu name ="rst-menus" >
<summary aria-label ="Harbour 標誌 嘅操作" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><circle cx ="12" cy ="12" r ="1" /><circle cx ="12" cy ="5" r ="1" /><circle cx ="12" cy ="19" r ="1" /></svg >
</summary >
<div rst-row-menu-panel >
<a href ="/images/3/edit" >編輯</a >
<hr >
<a class ="rst-danger" href ="/images/3/delete" >刪除…</a >
</div >
</details >
</div >
<p rst-media-desc >淨係個標誌,適合深色同淺色背景。</p >
<p rst-media-meta >240 × 240 · 3 KB</p >
</div >
</div >
<div rst-media-tile >
<div rst-media-frame ="contain" >
<img src ="../assets/sample-banner.svg" alt ="" loading ="lazy" decoding ="async" width ="1200" height ="200" >
</div >
<div rst-media-caption >
<div rst-media-name >
<a href ="/images/4" >春季橫額</a >
<details rst-row-menu name ="rst-menus" >
<summary aria-label ="春季橫額 嘅操作" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><circle cx ="12" cy ="12" r ="1" /><circle cx ="12" cy ="5" r ="1" /><circle cx ="12" cy ="19" r ="1" /></svg >
</summary >
<div rst-row-menu-panel >
<a href ="/images/4/edit" >編輯</a >
<hr >
<a class ="rst-danger" href ="/images/4/delete" >刪除…</a >
</div >
</details >
</div >
<p rst-media-desc >三月嗰陣商店頂部嘅橫條。</p >
<p rst-media-meta >1200 × 200 · 64 KB</p >
</div >
</div >
</div >
喺應用程式入面,呢個會去到 /images/1, /images/1/delete, /images/1/edit, /images/2, /images/2/delete, /images/2/edit, /images/3, /images/3/delete, /images/3/edit, /images/4, /images/4/delete, /images/4/edit。喺呢度,佢嘅連結同表格都唔會去任何地方。
揀選模式,揀咗一個方塊
將格網同一條 bulk-bar 包喺同一個表格入面。每格嘅多選框會用 "id" 呢個名提交佢嘅值;如果你個應用程式要第二個名就改佢。喺表格入面,選單項目一定要係連結。
將呢段放入 <div rst-list> 入面。
<div rst-media >
<div rst-media-tile >
<div rst-media-frame >
<img src ="../assets/sample-checkout.svg" alt ="" loading ="lazy" decoding ="async" width ="1280" height ="3200" >
<label rst-selbox >
<input type ="checkbox" name ="id" value ="1" checked aria-label ="揀 結帳,第 2 步" >
</label >
</div >
<div rst-media-caption >
<div rst-media-name >
<a href ="/images/1" >結帳,第 2 步</a >
<details rst-row-menu name ="rst-menus" >
<summary aria-label ="結帳,第 2 步 嘅操作" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><circle cx ="12" cy ="12" r ="1" /><circle cx ="12" cy ="5" r ="1" /><circle cx ="12" cy ="19" r ="1" /></svg >
</summary >
<div rst-row-menu-panel >
<a href ="/images/1/edit" >編輯</a >
<hr >
<a class ="rst-danger" href ="/images/1/delete" >刪除…</a >
</div >
</details >
</div >
<p rst-media-desc >付款步驟,信用卡表格已經打開。</p >
<p rst-media-meta >1280 × 3200 · 412 KB</p >
</div >
</div >
<div rst-media-tile >
<div rst-media-frame >
<img src ="../assets/sample-pricing.svg" alt ="" loading ="lazy" decoding ="async" width ="1280" height ="2400" >
<label rst-selbox >
<input type ="checkbox" name ="id" value ="2" aria-label ="揀 定價頁面" >
</label >
</div >
<div rst-media-caption >
<div rst-media-name >
<a href ="/images/2" >定價頁面</a >
<details rst-row-menu name ="rst-menus" >
<summary aria-label ="定價頁面 嘅操作" >
<svg class ="icon" viewBox ="0 0 24 24" fill ="none" stroke ="currentColor" stroke-width ="2" stroke-linecap ="round" stroke-linejoin ="round" aria-hidden ="true" ><circle cx ="12" cy ="12" r ="1" /><circle cx ="12" cy ="5" r ="1" /><circle cx ="12" cy ="19" r ="1" /></svg >
</summary >
<div rst-row-menu-panel >
<a href ="/images/2/edit" >編輯</a >
<hr >
<a class ="rst-danger" href ="/images/2/delete" >刪除…</a >
</div >
</details >
</div >
<p rst-media-desc ="none" >冇描述</p >
<p rst-media-meta >1280 × 2400 · 318 KB</p >
</div >
</div >
</div >
喺應用程式入面,呢個會去到 /images/1, /images/1/delete, /images/1/edit, /images/2, /images/2/delete, /images/2/edit。喺呢度,佢嘅連結同表格都唔會去任何地方。