feat: dashOrCurrency filter
This commit is contained in:
parent
532d60130d
commit
f9fa68b0b1
|
@ -0,0 +1,6 @@
|
|||
import toCurrency from './toCurrency';
|
||||
|
||||
export default function (value) {
|
||||
if (value == null || value === '') return () => '-';
|
||||
return toCurrency;
|
||||
}
|
|
@ -10,6 +10,7 @@ import toLowerCamel from './toLowerCamel';
|
|||
import dashIfEmpty from './dashIfEmpty';
|
||||
import dateRange from './dateRange';
|
||||
import toHour from './toHour';
|
||||
import dashOrCurrency from './dashOrCurrency';
|
||||
|
||||
export {
|
||||
toLowerCase,
|
||||
|
@ -17,6 +18,7 @@ export {
|
|||
toDate,
|
||||
toHour,
|
||||
toDateString,
|
||||
dashOrCurrency,
|
||||
toDateHourMin,
|
||||
toDateHourMinSec,
|
||||
toRelativeDate,
|
||||
|
|
Loading…
Reference in New Issue