vxe-pc-ui 4.15.6 → 4.15.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/all.esm.js +10 -6
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/date-panel/src/util.js +3 -3
  5. package/es/date-picker/src/date-picker.js +5 -1
  6. package/es/icon/style.css +1 -1
  7. package/es/style.css +1 -1
  8. package/es/style.min.css +1 -1
  9. package/es/ui/index.js +1 -1
  10. package/es/ui/src/log.js +1 -1
  11. package/lib/date-panel/src/util.js +3 -3
  12. package/lib/date-panel/src/util.min.js +1 -1
  13. package/lib/date-picker/src/date-picker.js +5 -1
  14. package/lib/date-picker/src/date-picker.min.js +1 -1
  15. package/lib/icon/style/style.css +1 -1
  16. package/lib/icon/style/style.min.css +1 -1
  17. package/lib/index.umd.js +10 -6
  18. package/lib/index.umd.min.js +1 -1
  19. package/lib/style.css +1 -1
  20. package/lib/style.min.css +1 -1
  21. package/lib/ui/index.js +1 -1
  22. package/lib/ui/index.min.js +1 -1
  23. package/lib/ui/src/log.js +1 -1
  24. package/lib/ui/src/log.min.js +1 -1
  25. package/package.json +1 -1
  26. package/packages/date-panel/src/util.ts +3 -3
  27. package/packages/date-picker/src/date-picker.ts +5 -1
  28. /package/es/icon/{iconfont.1782111198241.ttf → iconfont.1782112308661.ttf} +0 -0
  29. /package/es/icon/{iconfont.1782111198241.woff → iconfont.1782112308661.woff} +0 -0
  30. /package/es/icon/{iconfont.1782111198241.woff2 → iconfont.1782112308661.woff2} +0 -0
  31. /package/es/{iconfont.1782111198241.ttf → iconfont.1782112308661.ttf} +0 -0
  32. /package/es/{iconfont.1782111198241.woff → iconfont.1782112308661.woff} +0 -0
  33. /package/es/{iconfont.1782111198241.woff2 → iconfont.1782112308661.woff2} +0 -0
  34. /package/lib/icon/style/{iconfont.1782111198241.ttf → iconfont.1782112308661.ttf} +0 -0
  35. /package/lib/icon/style/{iconfont.1782111198241.woff → iconfont.1782112308661.woff} +0 -0
  36. /package/lib/icon/style/{iconfont.1782111198241.woff2 → iconfont.1782112308661.woff2} +0 -0
  37. /package/lib/{iconfont.1782111198241.ttf → iconfont.1782112308661.ttf} +0 -0
  38. /package/lib/{iconfont.1782111198241.woff → iconfont.1782112308661.woff} +0 -0
  39. /package/lib/{iconfont.1782111198241.woff2 → iconfont.1782112308661.woff2} +0 -0
package/dist/all.esm.js CHANGED
@@ -81,7 +81,7 @@ function checkDynamic() {
81
81
  }
82
82
 
83
83
  const { log } = VxeUI;
84
- const uiVersion = `ui v${"4.15.6"}`;
84
+ const uiVersion = `ui v${"4.15.7"}`;
85
85
  function createComponentLog(name) {
86
86
  const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
87
87
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
@@ -94,7 +94,7 @@ function createComponentLog(name) {
94
94
  const warnLog$b = log.create('warn', uiVersion);
95
95
  log.create('error', uiVersion);
96
96
 
97
- const version = "4.15.6";
97
+ const version = "4.15.7";
98
98
  VxeUI.uiVersion = version;
99
99
  VxeUI.dynamicApp = dynamicApp;
100
100
  function config(options) {
@@ -4674,11 +4674,11 @@ function checkDateFormat(numStr, formatKey) {
4674
4674
  const numVal = XEUtils.toNumber(numStr);
4675
4675
  switch (formatKey) {
4676
4676
  case 'yyyy':
4677
- return (numVal >= 9999 ? 9999 : (numVal < 1 ? 1 : numVal));
4677
+ return (numVal >= 9999 ? 9999 : (numVal <= 0 ? 0 : numVal));
4678
4678
  case 'MM':
4679
- return (numVal >= 12 ? 12 : (numVal < 1 ? 1 : numVal));
4679
+ return (numVal >= 12 ? 12 : (numVal <= 0 ? 0 : numVal));
4680
4680
  case 'dd':
4681
- return (numVal >= 31 ? 31 : (numVal < 1 ? 1 : numVal));
4681
+ return (numVal >= 31 ? 31 : (numVal <= 0 ? 0 : numVal));
4682
4682
  case 'HH':
4683
4683
  case 'mm':
4684
4684
  case 'ss':
@@ -18291,7 +18291,11 @@ var VxeDatePickerComponent = defineVxeComponent({
18291
18291
  allMaskedKeys.forEach(formatKey => {
18292
18292
  const fkIndex = dateLabelFormat.indexOf(formatKey);
18293
18293
  if (fkIndex > -1) {
18294
- const val = XEUtils.toNumber(inpVal.slice(fkIndex, formatKey.length).replace(/\D/g, ''));
18294
+ let val = XEUtils.toNumber(inpVal.slice(fkIndex, formatKey.length).replace(/\D/g, ''));
18295
+ // 自动纠错最小值
18296
+ if (!val && ['MM', 'dd'].includes(formatKey)) {
18297
+ val = 1;
18298
+ }
18295
18299
  inpVal = inpVal.slice(0, fkIndex) + XEUtils.padStart(checkDateFormat(val, formatKey), formatKey.length, '0') + inpVal.slice(fkIndex + formatKey.length);
18296
18300
  }
18297
18301
  });