Tracking de l'application VApp (IHM du jeu)
This commit is contained in:
21
VApp/node_modules/vuetify/lib/components/VDatePicker/util/pad.mjs
generated
vendored
Normal file
21
VApp/node_modules/vuetify/lib/components/VDatePicker/util/pad.mjs
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
// @ts-nocheck
|
||||
/* eslint-disable */
|
||||
|
||||
const padStart = (string, targetLength, padString) => {
|
||||
targetLength = targetLength >> 0;
|
||||
string = String(string);
|
||||
padString = String(padString);
|
||||
if (string.length > targetLength) {
|
||||
return String(string);
|
||||
}
|
||||
targetLength = targetLength - string.length;
|
||||
if (targetLength > padString.length) {
|
||||
padString += padString.repeat(targetLength / padString.length);
|
||||
}
|
||||
return padString.slice(0, targetLength) + String(string);
|
||||
};
|
||||
export default (function (n) {
|
||||
let length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
||||
return padStart(n, length, '0');
|
||||
});
|
||||
//# sourceMappingURL=pad.mjs.map
|
||||
Reference in New Issue
Block a user