ion-thumbnail
缩略图是通常包裹图片或图标的方形组件。它们可用于更轻松地展示一组大尺寸图片,或提供全尺寸图片的预览。
缩略图可以单独使用,也可以置于任何元素内部。如果放置在 ion-item 内,缩略图将调整大小以适应父组件。若要将缩略图定位在项目的左侧或右侧,请将 slot 属性分别设置为 start 或 end。
基本用法
项目缩略图
主题定制
CSS 自定义属性
属性
No properties available for this component.
事件
No events available for this component.
方法
No public methods available for this component.
CSS Shadow Parts
No CSS shadow parts available for this component.
CSS 自定义属性
| Name | Description |
|---|---|
--border-radius | Border radius of the thumbnail |
--size | Size of the thumbnail |
插槽
No slots available for this component.