vxe-pc-ui 4.5.29 → 4.5.30

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 (137) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/input/src/input.js +27 -14
  3. package/es/input/style.css +27 -2
  4. package/es/input/style.min.css +1 -1
  5. package/es/number-input/src/number-input.js +5 -3
  6. package/es/number-input/src/util.js +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/vxe-input/style.css +27 -2
  12. package/es/vxe-input/style.min.css +1 -1
  13. package/lib/icon/style/style.css +1 -1
  14. package/lib/icon/style/style.min.css +1 -1
  15. package/lib/index.umd.js +38 -20
  16. package/lib/index.umd.min.js +1 -1
  17. package/lib/input/src/input.js +30 -15
  18. package/lib/input/src/input.min.js +1 -1
  19. package/lib/input/style/style.css +27 -2
  20. package/lib/input/style/style.min.css +1 -1
  21. package/lib/number-input/src/number-input.js +5 -2
  22. package/lib/number-input/src/number-input.min.js +1 -1
  23. package/lib/number-input/src/util.js +1 -1
  24. package/lib/number-input/src/util.min.js +1 -1
  25. package/lib/style.css +1 -1
  26. package/lib/style.min.css +1 -1
  27. package/lib/ui/index.js +1 -1
  28. package/lib/ui/index.min.js +1 -1
  29. package/lib/ui/src/log.js +1 -1
  30. package/lib/ui/src/log.min.js +1 -1
  31. package/lib/vxe-input/style/style.css +27 -2
  32. package/lib/vxe-input/style/style.min.css +1 -1
  33. package/package.json +2 -2
  34. package/packages/input/src/input.ts +26 -14
  35. package/packages/number-input/src/number-input.ts +5 -3
  36. package/packages/number-input/src/util.ts +1 -1
  37. package/styles/components/input.scss +23 -2
  38. package/types/components/alert.d.ts +1 -1
  39. package/types/components/anchor-link.d.ts +1 -1
  40. package/types/components/anchor.d.ts +1 -1
  41. package/types/components/avatar.d.ts +1 -1
  42. package/types/components/badge.d.ts +1 -1
  43. package/types/components/breadcrumb-item.d.ts +1 -1
  44. package/types/components/breadcrumb.d.ts +1 -1
  45. package/types/components/button-group.d.ts +1 -1
  46. package/types/components/button.d.ts +1 -1
  47. package/types/components/calendar.d.ts +1 -1
  48. package/types/components/card.d.ts +1 -1
  49. package/types/components/carousel-item.d.ts +1 -1
  50. package/types/components/carousel.d.ts +1 -1
  51. package/types/components/checkbox-group.d.ts +1 -1
  52. package/types/components/checkbox.d.ts +1 -1
  53. package/types/components/col.d.ts +1 -1
  54. package/types/components/colgroup.d.ts +1 -1
  55. package/types/components/collapse-pane.d.ts +1 -1
  56. package/types/components/collapse.d.ts +1 -1
  57. package/types/components/color-picker.d.ts +1 -1
  58. package/types/components/column.d.ts +1 -1
  59. package/types/components/countdown.d.ts +1 -1
  60. package/types/components/date-picker.d.ts +1 -1
  61. package/types/components/drawer.d.ts +1 -1
  62. package/types/components/empty.d.ts +1 -1
  63. package/types/components/flow-design.d.ts +1 -1
  64. package/types/components/flow-view.d.ts +1 -1
  65. package/types/components/form-design.d.ts +1 -1
  66. package/types/components/form-gather.d.ts +1 -1
  67. package/types/components/form-group.d.ts +1 -1
  68. package/types/components/form-item.d.ts +1 -1
  69. package/types/components/form-view.d.ts +1 -1
  70. package/types/components/form.d.ts +1 -1
  71. package/types/components/grid.d.ts +1 -1
  72. package/types/components/icon-picker.d.ts +1 -1
  73. package/types/components/icon.d.ts +1 -1
  74. package/types/components/image-group.d.ts +1 -1
  75. package/types/components/image-preview.d.ts +1 -1
  76. package/types/components/image.d.ts +1 -1
  77. package/types/components/input.d.ts +1 -1
  78. package/types/components/layout-aside.d.ts +1 -1
  79. package/types/components/layout-body.d.ts +1 -1
  80. package/types/components/layout-container.d.ts +1 -1
  81. package/types/components/layout-footer.d.ts +1 -1
  82. package/types/components/layout-header.d.ts +1 -1
  83. package/types/components/link.d.ts +1 -1
  84. package/types/components/list-design.d.ts +1 -1
  85. package/types/components/list-view.d.ts +1 -1
  86. package/types/components/list.d.ts +1 -1
  87. package/types/components/loading.d.ts +1 -1
  88. package/types/components/menu.d.ts +1 -1
  89. package/types/components/modal.d.ts +1 -1
  90. package/types/components/notice-bar.d.ts +2 -2
  91. package/types/components/number-input.d.ts +1 -1
  92. package/types/components/optgroup.d.ts +1 -1
  93. package/types/components/option.d.ts +1 -1
  94. package/types/components/pager.d.ts +1 -1
  95. package/types/components/password-input.d.ts +1 -1
  96. package/types/components/print-page-break.d.ts +1 -1
  97. package/types/components/print.d.ts +1 -1
  98. package/types/components/pulldown.d.ts +1 -1
  99. package/types/components/radio-button.d.ts +1 -1
  100. package/types/components/radio-group.d.ts +1 -1
  101. package/types/components/radio.d.ts +1 -1
  102. package/types/components/rate.d.ts +1 -1
  103. package/types/components/result.d.ts +1 -1
  104. package/types/components/row.d.ts +1 -1
  105. package/types/components/select.d.ts +1 -1
  106. package/types/components/slider.d.ts +1 -1
  107. package/types/components/split-pane.d.ts +1 -1
  108. package/types/components/split.d.ts +1 -1
  109. package/types/components/steps.d.ts +1 -1
  110. package/types/components/switch.d.ts +1 -1
  111. package/types/components/tab-pane.d.ts +1 -1
  112. package/types/components/table-select.d.ts +1 -1
  113. package/types/components/table.d.ts +1 -1
  114. package/types/components/tabs.d.ts +1 -1
  115. package/types/components/tag.d.ts +1 -1
  116. package/types/components/text-ellipsis.d.ts +1 -1
  117. package/types/components/text.d.ts +1 -1
  118. package/types/components/textarea.d.ts +1 -1
  119. package/types/components/tip.d.ts +1 -1
  120. package/types/components/toolbar.d.ts +1 -1
  121. package/types/components/tooltip.d.ts +1 -1
  122. package/types/components/tree-select.d.ts +1 -1
  123. package/types/components/tree.d.ts +1 -1
  124. package/types/components/upload.d.ts +1 -1
  125. package/types/components/watermark.d.ts +1 -1
  126. /package/es/icon/{iconfont.1745374152588.ttf → iconfont.1745573419941.ttf} +0 -0
  127. /package/es/icon/{iconfont.1745374152588.woff → iconfont.1745573419941.woff} +0 -0
  128. /package/es/icon/{iconfont.1745374152588.woff2 → iconfont.1745573419941.woff2} +0 -0
  129. /package/es/{iconfont.1745374152588.ttf → iconfont.1745573419941.ttf} +0 -0
  130. /package/es/{iconfont.1745374152588.woff → iconfont.1745573419941.woff} +0 -0
  131. /package/es/{iconfont.1745374152588.woff2 → iconfont.1745573419941.woff2} +0 -0
  132. /package/lib/icon/style/{iconfont.1745374152588.ttf → iconfont.1745573419941.ttf} +0 -0
  133. /package/lib/icon/style/{iconfont.1745374152588.woff → iconfont.1745573419941.woff} +0 -0
  134. /package/lib/icon/style/{iconfont.1745374152588.woff2 → iconfont.1745573419941.woff2} +0 -0
  135. /package/lib/{iconfont.1745374152588.ttf → iconfont.1745573419941.ttf} +0 -0
  136. /package/lib/{iconfont.1745374152588.woff → iconfont.1745573419941.woff} +0 -0
  137. /package/lib/{iconfont.1745374152588.woff2 → iconfont.1745573419941.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -4187,14 +4187,14 @@ function checkDynamic() {
4187
4187
  }
4188
4188
  ;// CONCATENATED MODULE: ./packages/ui/src/log.ts
4189
4189
 
4190
- const log_version = `ui v${"4.5.29"}`;
4190
+ const log_version = `ui v${"4.5.30"}`;
4191
4191
  const warnLog = log.create('warn', log_version);
4192
4192
  const errLog = log.create('error', log_version);
4193
4193
  ;// CONCATENATED MODULE: ./packages/ui/index.ts
4194
4194
 
4195
4195
 
4196
4196
 
4197
- const ui_version = "4.5.29";
4197
+ const ui_version = "4.5.30";
4198
4198
  index_esm_VxeUI.uiVersion = ui_version;
4199
4199
  index_esm_VxeUI.dynamicApp = dynamicApp;
4200
4200
  function config(options) {
@@ -10262,7 +10262,7 @@ function hexToRgb(str) {
10262
10262
  ;// CONCATENATED MODULE: ./packages/number-input/src/util.ts
10263
10263
 
10264
10264
  function handleNumber(val) {
10265
- return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(val) ? val.replace(/,/g, '') : val;
10265
+ return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(val) ? val.replace(/[^0-9e.-]/g, '') : val;
10266
10266
  }
10267
10267
  function toFloatValueFixed(inputValue, digitsValue) {
10268
10268
  if (/^-/.test('' + inputValue)) {
@@ -11396,21 +11396,33 @@ function toFloatValueFixed(inputValue, digitsValue) {
11396
11396
  if (!inputReadonly) {
11397
11397
  if (isNumType) {
11398
11398
  if (inputValue) {
11399
- let inpNumVal = type === 'integer' ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toInteger(handleNumber(inputValue)) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(handleNumber(inputValue));
11400
- if (!validMinNum(inpNumVal)) {
11401
- inpNumVal = min;
11402
- } else if (!validMaxNum(inpNumVal)) {
11403
- inpNumVal = max;
11404
- }
11405
- if (exponential) {
11406
- const inpStringVal = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(inputValue).toLowerCase();
11407
- if (inpStringVal === external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(inpNumVal).toExponential()) {
11408
- inpNumVal = inpStringVal;
11399
+ const inpVal = `${handleNumber(inputValue)}`;
11400
+ if (inpVal) {
11401
+ let inpNumVal = type === 'integer' ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toInteger(inpVal) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(inpVal);
11402
+ if (!validMinNum(inpNumVal)) {
11403
+ inpNumVal = min;
11404
+ } else if (!validMaxNum(inpNumVal)) {
11405
+ inpNumVal = max;
11409
11406
  }
11407
+ if (exponential) {
11408
+ const inpStringVal = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(inputValue).toLowerCase();
11409
+ if (inpStringVal === external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(inpNumVal).toExponential()) {
11410
+ inpNumVal = inpStringVal;
11411
+ }
11412
+ }
11413
+ handleChange(getNumberValue(inpNumVal), {
11414
+ type: 'check'
11415
+ });
11416
+ } else {
11417
+ // 输入错误字符,清空
11418
+ let inpValue = '';
11419
+ if (min || min === 0) {
11420
+ inpValue = `${min}`;
11421
+ }
11422
+ handleChange(inpValue, {
11423
+ type: 'check'
11424
+ });
11410
11425
  }
11411
- handleChange(getNumberValue(inpNumVal), {
11412
- type: 'check'
11413
- });
11414
11426
  }
11415
11427
  } else if (isDatePickerType) {
11416
11428
  if (inputValue) {
@@ -11543,6 +11555,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
11543
11555
  };
11544
11556
  const keydownEvent = evnt => {
11545
11557
  const {
11558
+ type,
11546
11559
  exponential,
11547
11560
  controls
11548
11561
  } = props;
@@ -11555,8 +11568,10 @@ function toFloatValueFixed(inputValue, digitsValue) {
11555
11568
  const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
11556
11569
  const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
11557
11570
  const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
11558
- if (!isControlKey && !isShiftKey && !isAltKey && (globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.SPACEBAR) || (!exponential || keyCode !== 69) && keyCode >= 65 && keyCode <= 90 || keyCode >= 186 && keyCode <= 188 || keyCode >= 191)) {
11559
- evnt.preventDefault();
11571
+ if (!isControlKey && !isShiftKey && !isAltKey) {
11572
+ if (globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.SPACEBAR) || type === 'integer' && keyCode === 110 || (!exponential || keyCode !== 69) && keyCode >= 65 && keyCode <= 90 || keyCode >= 186 && keyCode <= 188 || keyCode >= 191) {
11573
+ evnt.preventDefault();
11574
+ }
11560
11575
  }
11561
11576
  if (isEsc) {
11562
11577
  afterCheckValue();
@@ -30513,6 +30528,7 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
30513
30528
  };
30514
30529
  const keydownEvent = evnt => {
30515
30530
  const {
30531
+ type,
30516
30532
  exponential,
30517
30533
  controls
30518
30534
  } = props;
@@ -30524,8 +30540,10 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
30524
30540
  const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
30525
30541
  const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
30526
30542
  const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
30527
- if (!isControlKey && !isShiftKey && !isAltKey && (globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.SPACEBAR) || (!exponential || keyCode !== 69) && keyCode >= 65 && keyCode <= 90 || keyCode >= 186 && keyCode <= 188 || keyCode >= 191)) {
30528
- evnt.preventDefault();
30543
+ if (!isControlKey && !isShiftKey && !isAltKey) {
30544
+ if (globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.SPACEBAR) || type === 'integer' && keyCode === 110 || (!exponential || keyCode !== 69) && keyCode >= 65 && keyCode <= 90 || keyCode >= 186 && keyCode <= 188 || keyCode >= 191) {
30545
+ evnt.preventDefault();
30546
+ }
30529
30547
  }
30530
30548
  if (isEsc) {
30531
30549
  afterCheckValue();