Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
transform(date: any, pattern: any): any {
if (!date) {
return;
}
return formatDate(date, pattern);
}
}
date(item) {
let pattern;
if (this.extraOptions && this.extraOptions.dateFormat) {
pattern = this.extraOptions.dateFormat;
} else {
pattern = this.extraOptions && this.extraOptions.showTime ?
this.devUIConfig.datePickerCN.format.time : this.devUIConfig.datePickerCN.format.date;
}
return item ? formatDate(new Date(item), pattern) : '';
}
emitFilterData(filterData) {