vxe-pc-ui 4.15.6 → 4.15.8

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 (44) hide show
  1. package/dist/all.esm.js +12 -8
  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/es/upload/src/upload.js +2 -2
  12. package/lib/date-panel/src/util.js +3 -3
  13. package/lib/date-panel/src/util.min.js +1 -1
  14. package/lib/date-picker/src/date-picker.js +5 -1
  15. package/lib/date-picker/src/date-picker.min.js +1 -1
  16. package/lib/icon/style/style.css +1 -1
  17. package/lib/icon/style/style.min.css +1 -1
  18. package/lib/index.umd.js +11 -8
  19. package/lib/index.umd.min.js +1 -1
  20. package/lib/style.css +1 -1
  21. package/lib/style.min.css +1 -1
  22. package/lib/ui/index.js +1 -1
  23. package/lib/ui/index.min.js +1 -1
  24. package/lib/ui/src/log.js +1 -1
  25. package/lib/ui/src/log.min.js +1 -1
  26. package/lib/upload/src/upload.js +1 -2
  27. package/lib/upload/src/upload.min.js +1 -1
  28. package/package.json +2 -2
  29. package/packages/date-panel/src/util.ts +3 -3
  30. package/packages/date-picker/src/date-picker.ts +5 -1
  31. package/packages/upload/src/upload.ts +3 -2
  32. package/types/components/gantt.d.ts +1 -0
  33. /package/es/icon/{iconfont.1782111198241.ttf → iconfont.1782137184015.ttf} +0 -0
  34. /package/es/icon/{iconfont.1782111198241.woff → iconfont.1782137184015.woff} +0 -0
  35. /package/es/icon/{iconfont.1782111198241.woff2 → iconfont.1782137184015.woff2} +0 -0
  36. /package/es/{iconfont.1782111198241.ttf → iconfont.1782137184015.ttf} +0 -0
  37. /package/es/{iconfont.1782111198241.woff → iconfont.1782137184015.woff} +0 -0
  38. /package/es/{iconfont.1782111198241.woff2 → iconfont.1782137184015.woff2} +0 -0
  39. /package/lib/icon/style/{iconfont.1782111198241.ttf → iconfont.1782137184015.ttf} +0 -0
  40. /package/lib/icon/style/{iconfont.1782111198241.woff → iconfont.1782137184015.woff} +0 -0
  41. /package/lib/icon/style/{iconfont.1782111198241.woff2 → iconfont.1782137184015.woff2} +0 -0
  42. /package/lib/{iconfont.1782111198241.ttf → iconfont.1782137184015.ttf} +0 -0
  43. /package/lib/{iconfont.1782111198241.woff → iconfont.1782137184015.woff} +0 -0
  44. /package/lib/{iconfont.1782111198241.woff2 → iconfont.1782137184015.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.8"}`;
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.8";
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
  });
@@ -51724,7 +51728,6 @@ function upload_createInternalData() {
51724
51728
  const handleUploadFile = (files, evnt) => {
51725
51729
  const {
51726
51730
  multiple,
51727
- urlMode,
51728
51731
  showLimitSize,
51729
51732
  limitSizeText,
51730
51733
  showLimitCount,
@@ -51856,7 +51859,7 @@ function upload_createInternalData() {
51856
51859
  option: item
51857
51860
  }, evnt);
51858
51861
  });
51859
- Promise.all(urlMode ? uploadPromiseRests : []).then(() => {
51862
+ Promise.all(uploadPromiseRests).then(() => {
51860
51863
  const restFileList = reactData.fileList;
51861
51864
  dispatchEvent('upload-queue-end', {
51862
51865
  options: restFileList,