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/lib/index.umd.js CHANGED
@@ -4649,7 +4649,7 @@ function checkDynamic() {
4649
4649
  const {
4650
4650
  log: log_log
4651
4651
  } = VxeUI;
4652
- const uiVersion = `ui v${"4.15.6"}`;
4652
+ const uiVersion = `ui v${"4.15.7"}`;
4653
4653
  function createComponentLog(name) {
4654
4654
  const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
4655
4655
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
@@ -4666,7 +4666,7 @@ const errLog = log_log.create('error', uiVersion);
4666
4666
 
4667
4667
 
4668
4668
 
4669
- const ui_version = "4.15.6";
4669
+ const ui_version = "4.15.7";
4670
4670
  VxeUI.uiVersion = ui_version;
4671
4671
  VxeUI.dynamicApp = dynamicApp;
4672
4672
  function config(options) {
@@ -9667,11 +9667,11 @@ function checkDateFormat(numStr, formatKey) {
9667
9667
  const numVal = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(numStr);
9668
9668
  switch (formatKey) {
9669
9669
  case 'yyyy':
9670
- return numVal >= 9999 ? 9999 : numVal < 1 ? 1 : numVal;
9670
+ return numVal >= 9999 ? 9999 : numVal <= 0 ? 0 : numVal;
9671
9671
  case 'MM':
9672
- return numVal >= 12 ? 12 : numVal < 1 ? 1 : numVal;
9672
+ return numVal >= 12 ? 12 : numVal <= 0 ? 0 : numVal;
9673
9673
  case 'dd':
9674
- return numVal >= 31 ? 31 : numVal < 1 ? 1 : numVal;
9674
+ return numVal >= 31 ? 31 : numVal <= 0 ? 0 : numVal;
9675
9675
  case 'HH':
9676
9676
  case 'mm':
9677
9677
  case 'ss':
@@ -24592,7 +24592,11 @@ function date_picker_createInternalData() {
24592
24592
  allMaskedKeys.forEach(formatKey => {
24593
24593
  const fkIndex = dateLabelFormat.indexOf(formatKey);
24594
24594
  if (fkIndex > -1) {
24595
- const val = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(inpVal.slice(fkIndex, formatKey.length).replace(/\D/g, ''));
24595
+ let val = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(inpVal.slice(fkIndex, formatKey.length).replace(/\D/g, ''));
24596
+ // 自动纠错最小值
24597
+ if (!val && ['MM', 'dd'].includes(formatKey)) {
24598
+ val = 1;
24599
+ }
24596
24600
  inpVal = inpVal.slice(0, fkIndex) + external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().padStart(checkDateFormat(val, formatKey), formatKey.length, '0') + inpVal.slice(fkIndex + formatKey.length);
24597
24601
  }
24598
24602
  });