对接烟台app的h5页面
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

34 lines
1.2 KiB

!(function (e, t) {
if ('object' == typeof exports && 'undefined' != typeof module) {
module.exports = t();
} else {
if ('function' == typeof define && define.amd) {
define(t);
} else {
(e = 'undefined' != typeof globalThis ? globalThis : e || self).dayjs_plugin_calendar = t();
}
}
})(this, function () {
'use strict';
return function (e, t, a) {
var n = 'h:mm A';
var d = {
lastDay: '[Yesterday at] ' + n,
sameDay: '[Today at] ' + n,
nextDay: '[Tomorrow at] ' + n,
nextWeek: 'dddd [at] ' + n,
lastWeek: '[Last] dddd [at] ' + n,
sameElse: 'MM/DD/YYYY'
};
t.prototype.calendar = function (e, t) {
var n = t || this.$locale().calendar || d;
var o = a(e || void 0).startOf('d');
var s = this.diff(o, 'd', true);
var i = 'sameElse';
var f = s < -6 ? i : s < -1 ? 'lastWeek' : s < 0 ? 'lastDay' : s < 1 ? 'sameDay' : s < 2 ? 'nextDay' : s < 7 ? 'nextWeek' : i;
var l = n[f] || d[f];
return 'function' == typeof l ? l.call(this, a()) : this.format(l);
};
};
});