UNPKG

ant-design-vue

Version:

An enterprise-class UI design language and Vue-based implementation

22 lines (17 loc) 348 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.formatDate = formatDate; function formatDate(value, format) { if (!value) { return ''; } if (Array.isArray(format)) { format = format[0]; } if (typeof format === 'function') { return format(value); } return value.format(format); }