fastadmin后台列表中字段内容截取
2023-02-14 本文已影响0人
知码客
{
field: 'title', title: __('标题'),
formatter: function(value){
if(value.length > 20){
return value.toString().substr(0, 20) + '...';
}else{
return value;
}
}
},