Tracking de l'application VApp (IHM du jeu)
This commit is contained in:
18
VApp/node_modules/vuetify/lib/components/VDatePicker/util/monthChange.mjs
generated
vendored
Normal file
18
VApp/node_modules/vuetify/lib/components/VDatePicker/util/monthChange.mjs
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
// @ts-nocheck
|
||||
/* eslint-disable */
|
||||
import pad from "./pad.mjs";
|
||||
/**
|
||||
* @param {String} value YYYY-MM format
|
||||
* @param {Number} sign -1 or +1
|
||||
*/
|
||||
export default ((value, sign) => {
|
||||
const [year, month] = value.split('-').map(Number);
|
||||
if (month + sign === 0) {
|
||||
return `${year - 1}-12`;
|
||||
} else if (month + sign === 13) {
|
||||
return `${year + 1}-01`;
|
||||
} else {
|
||||
return `${year}-${pad(month + sign)}`;
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=monthChange.mjs.map
|
||||
Reference in New Issue
Block a user