vxe-pc-ui 3.15.6 → 3.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 (36) hide show
  1. package/es/date-panel/src/util.js +3 -3
  2. package/es/date-picker/src/date-picker.js +5 -1
  3. package/es/icon/style.css +1 -1
  4. package/es/style.css +1 -1
  5. package/es/style.min.css +1 -1
  6. package/es/ui/index.js +1 -1
  7. package/es/ui/src/log.js +1 -1
  8. package/lib/date-panel/src/util.js +3 -3
  9. package/lib/date-panel/src/util.min.js +1 -1
  10. package/lib/date-picker/src/date-picker.js +4 -0
  11. package/lib/date-picker/src/date-picker.min.js +1 -1
  12. package/lib/icon/style/style.css +1 -1
  13. package/lib/icon/style/style.min.css +1 -1
  14. package/lib/index.umd.js +9 -5
  15. package/lib/index.umd.min.js +1 -1
  16. package/lib/style.css +1 -1
  17. package/lib/style.min.css +1 -1
  18. package/lib/ui/index.js +1 -1
  19. package/lib/ui/index.min.js +1 -1
  20. package/lib/ui/src/log.js +1 -1
  21. package/lib/ui/src/log.min.js +1 -1
  22. package/package.json +1 -1
  23. package/packages/date-panel/src/util.ts +3 -3
  24. package/packages/date-picker/src/date-picker.ts +5 -1
  25. /package/es/icon/{iconfont.1782111174200.ttf → iconfont.1782112293489.ttf} +0 -0
  26. /package/es/icon/{iconfont.1782111174200.woff → iconfont.1782112293489.woff} +0 -0
  27. /package/es/icon/{iconfont.1782111174200.woff2 → iconfont.1782112293489.woff2} +0 -0
  28. /package/es/{iconfont.1782111174200.ttf → iconfont.1782112293489.ttf} +0 -0
  29. /package/es/{iconfont.1782111174200.woff → iconfont.1782112293489.woff} +0 -0
  30. /package/es/{iconfont.1782111174200.woff2 → iconfont.1782112293489.woff2} +0 -0
  31. /package/lib/icon/style/{iconfont.1782111174200.ttf → iconfont.1782112293489.ttf} +0 -0
  32. /package/lib/icon/style/{iconfont.1782111174200.woff → iconfont.1782112293489.woff} +0 -0
  33. /package/lib/icon/style/{iconfont.1782111174200.woff2 → iconfont.1782112293489.woff2} +0 -0
  34. /package/lib/{iconfont.1782111174200.ttf → iconfont.1782112293489.ttf} +0 -0
  35. /package/lib/{iconfont.1782111174200.woff → iconfont.1782112293489.woff} +0 -0
  36. /package/lib/{iconfont.1782111174200.woff2 → iconfont.1782112293489.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -13215,7 +13215,7 @@ function checkDynamic() {
13215
13215
  ;// ./packages/ui/src/log.ts
13216
13216
 
13217
13217
  var log_log = VxeUI.log;
13218
- var uiVersion = "ui v".concat("3.15.6");
13218
+ var uiVersion = "ui v".concat("3.15.7");
13219
13219
  function createComponentLog(name) {
13220
13220
  var tableVersion = VxeUI.tableVersion ? "table v".concat(VxeUI.tableVersion) : '';
13221
13221
  var ganttVersion = VxeUI.ganttVersion ? "gantt v".concat(VxeUI.ganttVersion) : '';
@@ -13232,7 +13232,7 @@ var errLog = log_log.create('error', uiVersion);
13232
13232
 
13233
13233
 
13234
13234
 
13235
- var ui_version = "3.15.6";
13235
+ var ui_version = "3.15.7";
13236
13236
  VxeUI.uiVersion = ui_version;
13237
13237
  VxeUI.dynamicApp = dynamicApp;
13238
13238
  function config(options) {
@@ -18639,11 +18639,11 @@ function checkDateFormat(numStr, formatKey) {
18639
18639
  var numVal = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(numStr);
18640
18640
  switch (formatKey) {
18641
18641
  case 'yyyy':
18642
- return numVal >= 9999 ? 9999 : numVal < 1 ? 1 : numVal;
18642
+ return numVal >= 9999 ? 9999 : numVal <= 0 ? 0 : numVal;
18643
18643
  case 'MM':
18644
- return numVal >= 12 ? 12 : numVal < 1 ? 1 : numVal;
18644
+ return numVal >= 12 ? 12 : numVal <= 0 ? 0 : numVal;
18645
18645
  case 'dd':
18646
- return numVal >= 31 ? 31 : numVal < 1 ? 1 : numVal;
18646
+ return numVal >= 31 ? 31 : numVal <= 0 ? 0 : numVal;
18647
18647
  case 'HH':
18648
18648
  case 'mm':
18649
18649
  case 'ss':
@@ -35088,6 +35088,10 @@ function date_picker_createInternalData() {
35088
35088
  var fkIndex = dateLabelFormat.indexOf(formatKey);
35089
35089
  if (fkIndex > -1) {
35090
35090
  var val = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(inpVal.slice(fkIndex, formatKey.length).replace(/\D/g, ''));
35091
+ // 自动纠错最小值
35092
+ if (!val && ['MM', 'dd'].includes(formatKey)) {
35093
+ val = 1;
35094
+ }
35091
35095
  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);
35092
35096
  }
35093
35097
  });