xwt
2025-07-24 6f207fb20c28abd62a16565706007f2f1e0605e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
var camelizeRE = /-(\w)/g;
export function camelize(str) {
  return str.replace(camelizeRE, function (_, c) {
    return c.toUpperCase();
  });
}
export function padZero(num, targetLength) {
  if (targetLength === void 0) {
    targetLength = 2;
  }
 
  var str = num + '';
 
  while (str.length < targetLength) {
    str = '0' + str;
  }
 
  return str;
}