image 列显示一个图片列,并提供调整输出大小的选项。
avatar:
label: Avatar
type: image以下属性受支持。
| Property | Description |
|---|---|
| sortable | disables sorting of the column. Default: false |
| width | image thumbnail width to use, optional. |
| height | image thumbnail height to use, optional. |
| options | image resizer options. |
| limit | the maximum number of images to display. Default: 3 |
使用 sortable 属性来禁用排序。
avatar:
label: Avatar
type: image
sortable: false使用 width 和 height 属性来指定自定义图片尺寸。
avatar:
label: Avatar
type: image
width: 150
height: 150使用 options 属性来指定尺寸调整器选项。
avatar:
label: Avatar
type: image
options:
quality: 80请参阅图像大小调整文章以获取有关支持哪些选项的更多信息。