vxe-pc-ui 3.17.24 → 3.17.26

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 (80) hide show
  1. package/es/icon/style.css +1 -1
  2. package/es/input/src/input.js +12 -8
  3. package/es/input/style.css +13 -2
  4. package/es/input/style.min.css +1 -1
  5. package/es/number-input/src/number-input.js +87 -3
  6. package/es/number-input/style.css +13 -3
  7. package/es/number-input/style.min.css +1 -1
  8. package/es/password-input/src/password-input.js +11 -7
  9. package/es/password-input/style.css +13 -2
  10. package/es/password-input/style.min.css +1 -1
  11. package/es/style.css +1 -1
  12. package/es/style.min.css +1 -1
  13. package/es/tooltip/index.js +8 -1
  14. package/es/tooltip/src/tooltip.js +24 -8
  15. package/es/ui/index.js +5 -1
  16. package/es/ui/src/log.js +1 -1
  17. package/es/vxe-input/style.css +13 -2
  18. package/es/vxe-input/style.min.css +1 -1
  19. package/es/vxe-number-input/style.css +13 -3
  20. package/es/vxe-number-input/style.min.css +1 -1
  21. package/es/vxe-password-input/style.css +13 -2
  22. package/es/vxe-password-input/style.min.css +1 -1
  23. package/lib/icon/style/style.css +1 -1
  24. package/lib/icon/style/style.min.css +1 -1
  25. package/lib/index.umd.js +149 -18
  26. package/lib/index.umd.min.js +1 -1
  27. package/lib/input/src/input.js +11 -4
  28. package/lib/input/src/input.min.js +1 -1
  29. package/lib/input/style/style.css +13 -2
  30. package/lib/input/style/style.min.css +1 -1
  31. package/lib/number-input/src/number-input.js +93 -2
  32. package/lib/number-input/src/number-input.min.js +1 -1
  33. package/lib/number-input/style/style.css +13 -3
  34. package/lib/number-input/style/style.min.css +1 -1
  35. package/lib/password-input/src/password-input.js +8 -2
  36. package/lib/password-input/src/password-input.min.js +1 -1
  37. package/lib/password-input/style/style.css +13 -2
  38. package/lib/password-input/style/style.min.css +1 -1
  39. package/lib/style.css +1 -1
  40. package/lib/style.min.css +1 -1
  41. package/lib/tooltip/index.js +8 -1
  42. package/lib/tooltip/index.min.js +1 -1
  43. package/lib/tooltip/src/tooltip.js +23 -7
  44. package/lib/tooltip/src/tooltip.min.js +1 -1
  45. package/lib/ui/index.js +5 -1
  46. package/lib/ui/index.min.js +1 -1
  47. package/lib/ui/src/log.js +1 -1
  48. package/lib/ui/src/log.min.js +1 -1
  49. package/lib/vxe-input/style/style.css +13 -2
  50. package/lib/vxe-input/style/style.min.css +1 -1
  51. package/lib/vxe-number-input/style/style.css +13 -3
  52. package/lib/vxe-number-input/style/style.min.css +1 -1
  53. package/lib/vxe-password-input/style/style.css +13 -2
  54. package/lib/vxe-password-input/style/style.min.css +1 -1
  55. package/package.json +1 -1
  56. package/packages/input/src/input.ts +12 -8
  57. package/packages/number-input/src/number-input.ts +96 -3
  58. package/packages/password-input/src/password-input.ts +11 -7
  59. package/packages/tooltip/index.ts +8 -1
  60. package/packages/tooltip/src/tooltip.ts +26 -8
  61. package/packages/ui/index.ts +4 -0
  62. package/styles/components/input.scss +20 -2
  63. package/styles/components/number-input.scss +20 -3
  64. package/styles/components/password-input.scss +20 -2
  65. package/types/components/input.d.ts +2 -0
  66. package/types/components/number-input.d.ts +21 -1
  67. package/types/components/password-input.d.ts +3 -1
  68. package/types/components/tooltip.d.ts +15 -1
  69. /package/es/icon/{iconfont.1788249693859.ttf → iconfont.1788319610241.ttf} +0 -0
  70. /package/es/icon/{iconfont.1788249693859.woff → iconfont.1788319610241.woff} +0 -0
  71. /package/es/icon/{iconfont.1788249693859.woff2 → iconfont.1788319610241.woff2} +0 -0
  72. /package/es/{iconfont.1788249693859.ttf → iconfont.1788319610241.ttf} +0 -0
  73. /package/es/{iconfont.1788249693859.woff → iconfont.1788319610241.woff} +0 -0
  74. /package/es/{iconfont.1788249693859.woff2 → iconfont.1788319610241.woff2} +0 -0
  75. /package/lib/icon/style/{iconfont.1788249693859.ttf → iconfont.1788319610241.ttf} +0 -0
  76. /package/lib/icon/style/{iconfont.1788249693859.woff → iconfont.1788319610241.woff} +0 -0
  77. /package/lib/icon/style/{iconfont.1788249693859.woff2 → iconfont.1788319610241.woff2} +0 -0
  78. /package/lib/{iconfont.1788249693859.ttf → iconfont.1788319610241.ttf} +0 -0
  79. /package/lib/{iconfont.1788249693859.woff → iconfont.1788319610241.woff} +0 -0
  80. /package/lib/{iconfont.1788249693859.woff2 → iconfont.1788319610241.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -13284,7 +13284,7 @@ var es_array_join = __webpack_require__(8598);
13284
13284
 
13285
13285
 
13286
13286
  var log_log = VxeUI.log;
13287
- var uiVersion = "ui v".concat("3.17.24");
13287
+ var uiVersion = "ui v".concat("3.17.26");
13288
13288
  function createComponentLog(name) {
13289
13289
  var tableVersion = VxeUI.tableVersion ? "table v".concat(VxeUI.tableVersion) : '';
13290
13290
  var ganttVersion = VxeUI.ganttVersion ? "gantt v".concat(VxeUI.ganttVersion) : '';
@@ -13304,7 +13304,7 @@ var errLog = log_log.create('error', uiVersion);
13304
13304
 
13305
13305
 
13306
13306
 
13307
- var ui_version = "3.17.24";
13307
+ var ui_version = "3.17.26";
13308
13308
  VxeUI.uiVersion = ui_version;
13309
13309
  VxeUI.dynamicApp = dynamicApp;
13310
13310
  function config(options) {
@@ -13598,6 +13598,10 @@ setConfig({
13598
13598
  showButton: true,
13599
13599
  isWheel: true,
13600
13600
  isArrow: true
13601
+ },
13602
+ tooltipConfig: {
13603
+ enterable: true,
13604
+ enterDelay: 0
13601
13605
  }
13602
13606
  },
13603
13607
  optgroup: {},
@@ -16451,6 +16455,7 @@ function createInternalData() {
16451
16455
  arrowStyle: null
16452
16456
  });
16453
16457
  $xeTooltip.updateValue(false);
16458
+ $xeTooltip.dispatchEvent('hide', {}, null);
16454
16459
  return $xeTooltip.$nextTick();
16455
16460
  },
16456
16461
  toVisible: function toVisible(target, content) {
@@ -16496,6 +16501,7 @@ function createInternalData() {
16496
16501
  defaultLeft: left,
16497
16502
  placement: placement,
16498
16503
  defaultPlacement: defaultPlacement,
16504
+ isMinWidth: false,
16499
16505
  teleportTo: true
16500
16506
  });
16501
16507
  var panelStyle = Object.assign(ppObj.style, {
@@ -16503,7 +16509,7 @@ function createInternalData() {
16503
16509
  });
16504
16510
  tipStore.placement = ppObj.placement;
16505
16511
  tipStore.style = panelStyle;
16506
- tipStore.arrowStyle.left = "".concat(ppObj.arrowLeft, "px");
16512
+ tipStore.arrowStyle.left = ppObj.arrowLeft ? "".concat(ppObj.arrowLeft, "px") : '';
16507
16513
  },
16508
16514
  updatePlacement: function updatePlacement() {
16509
16515
  var $xeTooltip = this;
@@ -16672,8 +16678,11 @@ function createInternalData() {
16672
16678
  if (showDelayTip) {
16673
16679
  showDelayTip();
16674
16680
  }
16681
+ $xeTooltip.dispatchEvent('show', {}, evnt || null);
16675
16682
  } else {
16676
- return $xeTooltip.showTip();
16683
+ var rest = $xeTooltip.showTip();
16684
+ $xeTooltip.dispatchEvent('show', {}, evnt || null);
16685
+ return rest;
16677
16686
  }
16678
16687
  }
16679
16688
  return $xeTooltip.$nextTick();
@@ -16681,6 +16690,17 @@ function createInternalData() {
16681
16690
  wheelEvent: function wheelEvent(evnt) {
16682
16691
  evnt.stopPropagation();
16683
16692
  },
16693
+ handleGlobalScrollEvent: function handleGlobalScrollEvent() {
16694
+ var $xeTooltip = this;
16695
+ var reactData = $xeTooltip.reactData;
16696
+ if (reactData.visible) {
16697
+ $xeTooltip.updatePlacement();
16698
+ }
16699
+ },
16700
+ handleGlobalBlurEvent: function handleGlobalBlurEvent() {
16701
+ var $xeTooltip = this;
16702
+ $xeTooltip.close();
16703
+ },
16684
16704
  // pooltipPrivateMethods
16685
16705
  handleCloseEvent: function handleCloseEvent() {
16686
16706
  var $xeTooltip = this;
@@ -16788,6 +16808,8 @@ function createInternalData() {
16788
16808
  var $xeTooltip = this;
16789
16809
  $xeTooltip.internalData = createInternalData();
16790
16810
  $xeTooltip.handleDelayFn();
16811
+ globalEvents.on($xeTooltip, 'blur', $xeTooltip.handleGlobalBlurEvent);
16812
+ globalEvents.on($xeTooltip, 'scroll', $xeTooltip.handleGlobalScrollEvent);
16791
16813
  },
16792
16814
  mounted: function mounted() {
16793
16815
  var $xeTooltip = this;
@@ -16836,6 +16858,7 @@ function createInternalData() {
16836
16858
  beforeDestroy: function beforeDestroy() {
16837
16859
  var $xeTooltip = this;
16838
16860
  var reactData = $xeTooltip.reactData;
16861
+ var internalData = $xeTooltip.internalData;
16839
16862
  var target = reactData.target;
16840
16863
  var panelElem = $xeTooltip.$refs.refElem;
16841
16864
  if (target) {
@@ -16853,11 +16876,8 @@ function createInternalData() {
16853
16876
  parentNode.removeChild(panelElem);
16854
16877
  }
16855
16878
  }
16856
- },
16857
- destroyed: function destroyed() {
16858
- var $xeTooltip = this;
16859
- var reactData = $xeTooltip.reactData;
16860
- var internalData = $xeTooltip.internalData;
16879
+ globalEvents.off($xeTooltip, 'blur');
16880
+ globalEvents.off($xeTooltip, 'scroll');
16861
16881
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(reactData, createReactData());
16862
16882
  external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, createInternalData());
16863
16883
  },
@@ -16898,11 +16918,14 @@ var TooltipController = {
16898
16918
  return Promise.resolve();
16899
16919
  },
16900
16920
  close: function close() {
16921
+ var globalTooltip = dynamicStore.globalTooltip;
16922
+ if (!globalTooltip || !globalTooltip.value) {
16923
+ return Promise.resolve();
16924
+ }
16901
16925
  var $tooltip = dynamicStore.$refs.refTooltip;
16902
16926
  if ($tooltip) {
16903
16927
  $tooltip.handleCloseEvent();
16904
16928
  } else {
16905
- var globalTooltip = dynamicStore.globalTooltip;
16906
16929
  if (globalTooltip) {
16907
16930
  globalTooltip.value = false;
16908
16931
  }
@@ -16910,6 +16933,10 @@ var TooltipController = {
16910
16933
  return Promise.resolve();
16911
16934
  },
16912
16935
  destroy: function destroy() {
16936
+ var globalTooltip = dynamicStore.globalTooltip;
16937
+ if (!globalTooltip || !globalTooltip.value) {
16938
+ return Promise.resolve();
16939
+ }
16913
16940
  var $tooltip = dynamicStore.$refs.refTooltip;
16914
16941
  if ($tooltip) {
16915
16942
  return $tooltip.close().then(function () {
@@ -24141,6 +24168,12 @@ var input_createComponentLog = createComponentLog('input'),
24141
24168
  return getConfig().input.floatContent;
24142
24169
  }
24143
24170
  },
24171
+ floatAlign: {
24172
+ type: String,
24173
+ default: function _default() {
24174
+ return getConfig().input.floatAlign;
24175
+ }
24176
+ },
24144
24177
  maxLength: {
24145
24178
  type: [String, Number],
24146
24179
  default: function _default() {
@@ -27041,7 +27074,8 @@ var input_createComponentLog = createComponentLog('input'),
27041
27074
  countMethod = props.countMethod,
27042
27075
  name = props.name,
27043
27076
  autoComplete = props.autoComplete,
27044
- autocomplete = props.autocomplete;
27077
+ autocomplete = props.autocomplete,
27078
+ floatAlign = props.floatAlign;
27045
27079
  var inputValue = reactData.inputValue,
27046
27080
  visiblePanel = reactData.visiblePanel,
27047
27081
  isActivated = reactData.isActivated;
@@ -27067,7 +27101,7 @@ var input_createComponentLog = createComponentLog('input'),
27067
27101
  var floatSlot = slots.float;
27068
27102
  return h('div', {
27069
27103
  ref: 'refElem',
27070
- class: ['vxe-input', "type--".concat(type), className, (_ref2 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref2, "size--".concat(vSize), vSize), "is--".concat(align), align), 'is--controls', controls), 'is--prefix', !!prefix), 'is--suffix', !!suffix), 'is--visible', visiblePanel), 'is--clear', isClearable), 'is--count', isWordCount), 'is--disabled', isDisabled), 'is--active', isActivated), _defineProperty(_ref2, 'show--clear', isClearable && !isDisabled && !(inputValue === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(inputValue))))],
27104
+ class: ['vxe-input', "type--".concat(type), floatContent ? "fla--".concat(floatAlign || 'center') : '', className, (_ref2 = {}, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_ref2, "size--".concat(vSize), vSize), "is--".concat(align), align), 'is--controls', controls), 'is--prefix', !!prefix), 'is--suffix', !!suffix), 'is--visible', visiblePanel), 'is--clear', isClearable), 'is--count', isWordCount), 'is--disabled', isDisabled), 'is--active', isActivated), _defineProperty(_ref2, 'show--clear', isClearable && !isDisabled && !(inputValue === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(inputValue))))],
27071
27105
  attrs: {
27072
27106
  spellcheck: false
27073
27107
  }
@@ -27100,9 +27134,9 @@ var input_createComponentLog = createComponentLog('input'),
27100
27134
  focus: $xeInput.focusEvent,
27101
27135
  blur: $xeInput.blurEvent
27102
27136
  }
27103
- })]), suffix || renderEmptyElement($xeInput), floatContent || floatSlot ? h('span', {
27137
+ }), floatContent || floatSlot ? h('span', {
27104
27138
  class: 'vxe-input--float-wrapper'
27105
- }, floatSlot ? floatSlot({}) : getText(floatContent)) : renderEmptyElement($xeInput),
27139
+ }, floatSlot ? floatSlot({}) : getText(floatContent)) : renderEmptyElement($xeInput)]), suffix || renderEmptyElement($xeInput),
27106
27140
  // 下拉面板
27107
27141
  $xeInput.renderPanel(h),
27108
27142
  // 字数统计
@@ -31404,6 +31438,9 @@ function hexToRgb(str) {
31404
31438
 
31405
31439
 
31406
31440
 
31441
+
31442
+ var number_input_createComponentLog = createComponentLog('number-input'),
31443
+ number_input_errLog = number_input_createComponentLog.errLog;
31407
31444
  var handleNumberString = function handleNumberString(val) {
31408
31445
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(val)) {
31409
31446
  return '';
@@ -31449,6 +31486,12 @@ var handleNumberString = function handleNumberString(val) {
31449
31486
  return getConfig().numberInput.floatContent;
31450
31487
  }
31451
31488
  },
31489
+ floatAlign: {
31490
+ type: String,
31491
+ default: function _default() {
31492
+ return getConfig().numberInput.floatAlign;
31493
+ }
31494
+ },
31452
31495
  maxLength: {
31453
31496
  type: [String, Number],
31454
31497
  default: function _default() {
@@ -31536,6 +31579,13 @@ var handleNumberString = function handleNumberString(val) {
31536
31579
  prefixConfig: Object,
31537
31580
  suffixIcon: String,
31538
31581
  suffixConfig: Object,
31582
+ showTooltip: {
31583
+ type: Boolean,
31584
+ default: function _default() {
31585
+ return getConfig().numberInput.showTooltip;
31586
+ }
31587
+ },
31588
+ tooltipConfig: Object,
31539
31589
  // 已废弃
31540
31590
  controls: {
31541
31591
  type: Boolean,
@@ -31632,6 +31682,11 @@ var handleNumberString = function handleNumberString(val) {
31632
31682
  var props = $xeNumberInput;
31633
31683
  return Object.assign({}, getConfig().numberInput.suffixConfig, props.suffixConfig);
31634
31684
  },
31685
+ computeTooltipOpts: function computeTooltipOpts() {
31686
+ var $xeNumberInput = this;
31687
+ var props = $xeNumberInput;
31688
+ return Object.assign({}, getConfig().numberInput.tooltipConfig, props.tooltipConfig);
31689
+ },
31635
31690
  computeDecimalsType: function computeDecimalsType() {
31636
31691
  var $xeNumberInput = this;
31637
31692
  var props = $xeNumberInput;
@@ -31963,6 +32018,9 @@ var handleNumberString = function handleNumberString(val) {
31963
32018
  $xeNumberInput.dispatchEvent('lazy-change', {
31964
32019
  value: value
31965
32020
  }, evnt);
32021
+ $xeNumberInput.$nextTick(function () {
32022
+ $xeNumberInput.handleShowTip();
32023
+ });
31966
32024
  },
31967
32025
  clickSuffixEvent: function clickSuffixEvent(evnt) {
31968
32026
  var $xeNumberInput = this;
@@ -32120,6 +32178,14 @@ var handleNumberString = function handleNumberString(val) {
32120
32178
  $xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
32121
32179
  }
32122
32180
  },
32181
+ mouseenterEvent: function mouseenterEvent() {
32182
+ var $xeNumberInput = this;
32183
+ $xeNumberInput.handleShowTip();
32184
+ },
32185
+ mouseleaveEvent: function mouseleaveEvent() {
32186
+ var $xeNumberInput = this;
32187
+ $xeNumberInput.handleHideTip();
32188
+ },
32123
32189
  // 数值
32124
32190
  numberChange: function numberChange(isPlus, evnt) {
32125
32191
  var $xeNumberInput = this;
@@ -32152,6 +32218,7 @@ var handleNumberString = function handleNumberString(val) {
32152
32218
  $xeNumberInput.numberChange(true, evnt);
32153
32219
  }
32154
32220
  reactData.isActivated = true;
32221
+ $xeNumberInput.handleShowTip();
32155
32222
  $xeNumberInput.dispatchEvent('plus-number', {
32156
32223
  value: reactData.inputValue
32157
32224
  }, evnt);
@@ -32173,6 +32240,7 @@ var handleNumberString = function handleNumberString(val) {
32173
32240
  $xeNumberInput.numberChange(false, evnt);
32174
32241
  }
32175
32242
  reactData.isActivated = true;
32243
+ $xeNumberInput.handleShowTip();
32176
32244
  $xeNumberInput.dispatchEvent('minus-number', {
32177
32245
  value: reactData.inputValue
32178
32246
  }, evnt);
@@ -32197,6 +32265,48 @@ var handleNumberString = function handleNumberString(val) {
32197
32265
  }
32198
32266
  }
32199
32267
  },
32268
+ handleShowTip: function handleShowTip() {
32269
+ var $xeNumberInput = this;
32270
+ var props = $xeNumberInput;
32271
+ var reactData = $xeNumberInput.reactData;
32272
+ var type = props.type,
32273
+ showTooltip = props.showTooltip;
32274
+ var inputValue = reactData.inputValue;
32275
+ if (showTooltip) {
32276
+ if (VxeUI.tooltip) {
32277
+ var numLabel = $xeNumberInput.computeNumLabel;
32278
+ var tooltipOpts = $xeNumberInput.computeTooltipOpts;
32279
+ var contentMethod = tooltipOpts.contentMethod;
32280
+ var inputElem = $xeNumberInput.$refs.refInputTarget;
32281
+ var content = getText(contentMethod ? contentMethod({
32282
+ $mumberInput: $xeNumberInput,
32283
+ type: type,
32284
+ inputValue: inputElem.value,
32285
+ value: inputValue || '',
32286
+ label: numLabel
32287
+ }) : numLabel);
32288
+ if (content) {
32289
+ VxeUI.tooltip.open(inputElem, Object.assign({}, _objectSpread2(_objectSpread2({}, tooltipOpts), {}, {
32290
+ content: content
32291
+ }), {
32292
+ contentMethod: undefined
32293
+ }));
32294
+ } else {
32295
+ VxeUI.tooltip.close();
32296
+ }
32297
+ }
32298
+ }
32299
+ },
32300
+ handleHideTip: function handleHideTip() {
32301
+ var $xeNumberInput = this;
32302
+ var props = $xeNumberInput;
32303
+ var showTooltip = props.showTooltip;
32304
+ if (showTooltip) {
32305
+ if (VxeUI.tooltip) {
32306
+ VxeUI.tooltip.close();
32307
+ }
32308
+ }
32309
+ },
32200
32310
  keydownEvent: function keydownEvent(evnt) {
32201
32311
  var $xeNumberInput = this;
32202
32312
  var props = $xeNumberInput;
@@ -32231,6 +32341,7 @@ var handleNumberString = function handleNumberString(val) {
32231
32341
  },
32232
32342
  keyupEvent: function keyupEvent(evnt) {
32233
32343
  var $xeNumberInput = this;
32344
+ $xeNumberInput.handleShowTip();
32234
32345
  $xeNumberInput.triggerEvent(evnt);
32235
32346
  },
32236
32347
  // 数值
@@ -32337,6 +32448,7 @@ var handleNumberString = function handleNumberString(val) {
32337
32448
  },
32338
32449
  clickEvent: function clickEvent(evnt) {
32339
32450
  var $xeNumberInput = this;
32451
+ $xeNumberInput.handleShowTip();
32340
32452
  $xeNumberInput.triggerEvent(evnt);
32341
32453
  },
32342
32454
  // 全局事件
@@ -32358,6 +32470,7 @@ var handleNumberString = function handleNumberString(val) {
32358
32470
  $xeNumberInput.handleChange(value, handleNumberString(inputValue), evnt);
32359
32471
  }
32360
32472
  $xeNumberInput.afterCheckValue();
32473
+ $xeNumberInput.handleHideTip();
32361
32474
  }
32362
32475
  }
32363
32476
  },
@@ -32577,7 +32690,9 @@ var handleNumberString = function handleNumberString(val) {
32577
32690
  type = props.type,
32578
32691
  align = props.align,
32579
32692
  prefixIcon = props.prefixIcon,
32580
- suffixIcon = props.suffixIcon;
32693
+ suffixIcon = props.suffixIcon,
32694
+ floatContent = props.floatContent,
32695
+ floatAlign = props.floatAlign;
32581
32696
  var inputValue = reactData.inputValue,
32582
32697
  isActivated = reactData.isActivated;
32583
32698
  var vSize = $xeNumberInput.computeSize;
@@ -32600,9 +32715,13 @@ var handleNumberString = function handleNumberString(val) {
32600
32715
  var isControls = isEnableConf(controlOpts) && (controls === false ? controls : showButton);
32601
32716
  return h('div', {
32602
32717
  ref: 'refElem',
32603
- class: ['vxe-number-input', "type--".concat(type), isControls ? "ctl--".concat(layout === 'right' || layout === 'left' ? layout : 'default') : '', className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), "is--".concat(align), align), 'is--controls', isControls && !inputReadonly), 'is--prefix', !!prefixSlot || prefixIcon), 'is--suffix', !!suffixSlot || suffixIcon), 'is--disabled', isDisabled), 'is--active', isActivated), 'show--clear', isClearable && !isDisabled && !(inputValue === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(inputValue)))],
32718
+ class: ['vxe-number-input', "type--".concat(type), isControls ? "ctl--".concat(layout === 'right' || layout === 'left' ? layout : 'default') : '', floatContent ? "fla--".concat(floatAlign || 'center') : '', className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), "is--".concat(align), align), 'is--controls', isControls && !inputReadonly), 'is--prefix', !!prefixSlot || prefixIcon), 'is--suffix', !!suffixSlot || suffixIcon), 'is--disabled', isDisabled), 'is--active', isActivated), 'show--clear', isClearable && !isDisabled && !(inputValue === '' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eqNull(inputValue)))],
32604
32719
  attrs: {
32605
32720
  spellcheck: false
32721
+ },
32722
+ on: {
32723
+ mouseenter: $xeNumberInput.mouseenterEvent,
32724
+ mouseleave: $xeNumberInput.mouseleaveEvent
32606
32725
  }
32607
32726
  }, isControls ? layout === 'right' ? [$xeNumberInput.renderInput(h), $xeNumberInput.renderSideControl(h), $xeNumberInput.renderFloat(h)] : layout === 'left' ? [$xeNumberInput.renderSideControl(h), $xeNumberInput.renderInput(h), $xeNumberInput.renderFloat(h)] : [$xeNumberInput.renderMinusBtn(h), $xeNumberInput.renderInput(h), $xeNumberInput.renderPlusBtn(h), $xeNumberInput.renderFloat(h)] : [$xeNumberInput.renderInput(h), $xeNumberInput.renderFloat(h)]);
32608
32727
  }
@@ -32635,6 +32754,12 @@ var handleNumberString = function handleNumberString(val) {
32635
32754
  },
32636
32755
  mounted: function mounted() {
32637
32756
  var $xeNumberInput = this;
32757
+ var props = $xeNumberInput;
32758
+ if (props.showTooltip) {
32759
+ if (!VxeUI.tooltip) {
32760
+ number_input_errLog('vxe.error.reqComp', ['vxe-tooltip']);
32761
+ }
32762
+ }
32638
32763
  var targetElem = $xeNumberInput.$refs.refInputTarget;
32639
32764
  if (targetElem) {
32640
32765
  targetElem.addEventListener('wheel', $xeNumberInput.wheelEvent, {
@@ -54110,6 +54235,12 @@ var Pager = VxePager;
54110
54235
  return getConfig().passwordInput.floatContent;
54111
54236
  }
54112
54237
  },
54238
+ floatAlign: {
54239
+ type: String,
54240
+ default: function _default() {
54241
+ return getConfig().passwordInput.floatAlign;
54242
+ }
54243
+ },
54113
54244
  autoComplete: {
54114
54245
  type: String,
54115
54246
  default: 'off'
@@ -54538,9 +54669,9 @@ var Pager = VxePager;
54538
54669
  focus: $xePasswordInput.focusEvent,
54539
54670
  blur: $xePasswordInput.blurEvent
54540
54671
  }
54541
- })]), suffix || renderEmptyElement($xePasswordInput), floatContent || floatSlot ? h('span', {
54672
+ }), floatContent || floatSlot ? h('span', {
54542
54673
  class: 'vxe-password-input--float-wrapper'
54543
- }, floatSlot ? floatSlot({}) : getText(floatContent)) : renderEmptyElement($xePasswordInput)]);
54674
+ }, floatSlot ? floatSlot({}) : getText(floatContent)) : renderEmptyElement($xePasswordInput)]), suffix || renderEmptyElement($xePasswordInput)]);
54544
54675
  }
54545
54676
  },
54546
54677
  watch: {