此 图像 列显示一个具有调整输出大小选项的图像列。
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请参阅 图像重设大小文章 了解支持哪些选项的更多信息。