我使用 ng2 智能表,我的问题是过滤器,因为我从 ng2 智能表的 valueprepareFunction 返回了自定义数据,
我有这个....
columns: {
id: {
title: 'Id',
type: 'string'
},
surname: {
title: 'surname',
type: 'string'
},
name: {
title: 'name',
type: 'string'
},
date: {
title: 'date',
valuePrepareFunction: (value) => {
if (!value) return '';
return moment(value).format('DD/MM/YYYY');
},
}
Run Code Online (Sandbox Code Playgroud)
}
该值是从数据库中获取的 timeStamp,当我尝试从表中进行过滤时,她通过时间戳进行过滤,但我想要使用这种格式的“DD/MM/YYYY”进行过滤。
如何在过滤器之前更改时间戳中的搜索输入?