vxe-pc-ui 4.17.25 → 4.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 (77) hide show
  1. package/dist/all.esm.js +70 -42
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/icon/style.css +1 -1
  5. package/es/input/src/input.js +12 -8
  6. package/es/input/style.css +13 -2
  7. package/es/input/style.min.css +1 -1
  8. package/es/number-input/src/number-input.js +29 -19
  9. package/es/number-input/style.css +13 -3
  10. package/es/number-input/style.min.css +1 -1
  11. package/es/password-input/src/password-input.js +13 -9
  12. package/es/password-input/style.css +13 -2
  13. package/es/password-input/style.min.css +1 -1
  14. package/es/style.css +1 -1
  15. package/es/style.min.css +1 -1
  16. package/es/tooltip/src/tooltip.js +15 -5
  17. package/es/ui/index.js +1 -1
  18. package/es/ui/src/log.js +1 -1
  19. package/es/vxe-input/style.css +13 -2
  20. package/es/vxe-input/style.min.css +1 -1
  21. package/es/vxe-number-input/style.css +13 -3
  22. package/es/vxe-number-input/style.min.css +1 -1
  23. package/es/vxe-password-input/style.css +13 -2
  24. package/es/vxe-password-input/style.min.css +1 -1
  25. package/lib/icon/style/style.css +1 -1
  26. package/lib/icon/style/style.min.css +1 -1
  27. package/lib/index.umd.js +62 -26
  28. package/lib/index.umd.min.js +1 -1
  29. package/lib/input/src/input.js +9 -4
  30. package/lib/input/src/input.min.js +1 -1
  31. package/lib/input/style/style.css +13 -2
  32. package/lib/input/style/style.min.css +1 -1
  33. package/lib/number-input/src/number-input.js +29 -13
  34. package/lib/number-input/src/number-input.min.js +1 -1
  35. package/lib/number-input/style/style.css +13 -3
  36. package/lib/number-input/style/style.min.css +1 -1
  37. package/lib/password-input/src/password-input.js +9 -4
  38. package/lib/password-input/src/password-input.min.js +1 -1
  39. package/lib/password-input/style/style.css +13 -2
  40. package/lib/password-input/style/style.min.css +1 -1
  41. package/lib/style.css +1 -1
  42. package/lib/style.min.css +1 -1
  43. package/lib/tooltip/src/tooltip.js +13 -3
  44. package/lib/tooltip/src/tooltip.min.js +1 -1
  45. package/lib/ui/index.js +1 -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 +31 -19
  58. package/packages/password-input/src/password-input.ts +13 -9
  59. package/packages/tooltip/src/tooltip.ts +17 -6
  60. package/styles/components/input.scss +20 -2
  61. package/styles/components/number-input.scss +20 -3
  62. package/styles/components/password-input.scss +20 -2
  63. package/types/components/input.d.ts +2 -0
  64. package/types/components/number-input.d.ts +6 -2
  65. package/types/components/password-input.d.ts +3 -1
  66. /package/es/icon/{iconfont.1788311145245.ttf → iconfont.1788319620112.ttf} +0 -0
  67. /package/es/icon/{iconfont.1788311145245.woff → iconfont.1788319620112.woff} +0 -0
  68. /package/es/icon/{iconfont.1788311145245.woff2 → iconfont.1788319620112.woff2} +0 -0
  69. /package/es/{iconfont.1788311145245.ttf → iconfont.1788319620112.ttf} +0 -0
  70. /package/es/{iconfont.1788311145245.woff → iconfont.1788319620112.woff} +0 -0
  71. /package/es/{iconfont.1788311145245.woff2 → iconfont.1788319620112.woff2} +0 -0
  72. /package/lib/icon/style/{iconfont.1788311145245.ttf → iconfont.1788319620112.ttf} +0 -0
  73. /package/lib/icon/style/{iconfont.1788311145245.woff → iconfont.1788319620112.woff} +0 -0
  74. /package/lib/icon/style/{iconfont.1788311145245.woff2 → iconfont.1788319620112.woff2} +0 -0
  75. /package/lib/{iconfont.1788311145245.ttf → iconfont.1788319620112.ttf} +0 -0
  76. /package/lib/{iconfont.1788311145245.woff → iconfont.1788319620112.woff} +0 -0
  77. /package/lib/{iconfont.1788311145245.woff2 → iconfont.1788319620112.woff2} +0 -0
@@ -55,6 +55,10 @@ export default defineVxeComponent({
55
55
  type: String as PropType<VxeInputPropTypes.FloatContent>,
56
56
  default: () => getConfig().input.floatContent
57
57
  },
58
+ floatAlign: {
59
+ type: String as PropType<VxeInputPropTypes.FloatAlign>,
60
+ default: () => getConfig().input.floatAlign
61
+ },
58
62
  maxLength: {
59
63
  type: [String, Number] as PropType<VxeInputPropTypes.MaxLength>,
60
64
  default: () => getConfig().input.maxLength
@@ -2679,7 +2683,7 @@ export default defineVxeComponent({
2679
2683
  }
2680
2684
 
2681
2685
  const renderVN = () => {
2682
- const { className, inputClassName, controls, type, title, floatContent, align, showWordCount, countMethod, name, autoComplete, autocomplete } = props
2686
+ const { className, inputClassName, controls, type, title, floatContent, align, showWordCount, countMethod, name, autoComplete, autocomplete, floatAlign } = props
2683
2687
  const { inputValue, visiblePanel, isActivated } = reactData
2684
2688
  const vSize = computeSize.value
2685
2689
  const isDisabled = computeIsDisabled.value
@@ -2703,7 +2707,7 @@ export default defineVxeComponent({
2703
2707
  const floatSlot = slots.float
2704
2708
  return h('div', {
2705
2709
  ref: refElem,
2706
- class: ['vxe-input', `type--${type}`, className, {
2710
+ class: ['vxe-input', `type--${type}`, floatContent ? (`fla--${floatAlign || 'center'}`) : '', className, {
2707
2711
  [`size--${vSize}`]: vSize,
2708
2712
  [`is--${align}`]: align,
2709
2713
  'is--controls': controls,
@@ -2740,14 +2744,14 @@ export default defineVxeComponent({
2740
2744
  onChange: changeEvent,
2741
2745
  onFocus: focusEvent,
2742
2746
  onBlur: blurEvent
2743
- })
2747
+ }),
2748
+ floatContent || floatSlot
2749
+ ? h('span', {
2750
+ class: 'vxe-input--float-wrapper'
2751
+ }, floatSlot ? floatSlot({}) : getText(floatContent))
2752
+ : renderEmptyElement($xeInput)
2744
2753
  ]),
2745
2754
  suffix || createCommentVNode(),
2746
- floatContent || floatSlot
2747
- ? h('span', {
2748
- class: 'vxe-input--float-wrapper'
2749
- }, floatSlot ? floatSlot({}) : getText(floatContent))
2750
- : renderEmptyElement($xeInput),
2751
2755
  // 下拉面板
2752
2756
  renderPanel(),
2753
2757
  // 字数统计
@@ -42,6 +42,10 @@ export default defineVxeComponent({
42
42
  type: String as PropType<VxeNumberInputPropTypes.FloatContent>,
43
43
  default: () => getConfig().numberInput.floatContent
44
44
  },
45
+ floatAlign: {
46
+ type: String as PropType<VxeNumberInputPropTypes.FloatAlign>,
47
+ default: () => getConfig().numberInput.floatAlign
48
+ },
45
49
  maxLength: {
46
50
  type: [String, Number] as PropType<VxeNumberInputPropTypes.MaxLength>,
47
51
  default: () => getConfig().numberInput.maxLength
@@ -462,7 +466,6 @@ export default defineVxeComponent({
462
466
  reactData.inputValue = eqEmptyValue(inputValue) ? '' : `${XEUtils.toNumber(inputValue)}`
463
467
  reactData.isFocus = true
464
468
  reactData.isActivated = true
465
- handleShowTip()
466
469
  triggerEvent(evnt)
467
470
  }
468
471
  }
@@ -608,13 +611,12 @@ export default defineVxeComponent({
608
611
  }
609
612
  }
610
613
 
614
+ const mouseenterEvent = () => {
615
+ handleShowTip()
616
+ }
617
+
611
618
  const mouseleaveEvent = () => {
612
- const { showTooltip } = props
613
- if (showTooltip) {
614
- if (VxeUI.tooltip) {
615
- VxeUI.tooltip.close()
616
- }
617
- }
619
+ handleHideTip()
618
620
  }
619
621
 
620
622
  // 数值
@@ -679,7 +681,7 @@ export default defineVxeComponent({
679
681
  }
680
682
 
681
683
  const handleShowTip = () => {
682
- const { showTooltip } = props
684
+ const { type, showTooltip } = props
683
685
  const { inputValue } = reactData
684
686
  if (showTooltip) {
685
687
  if (VxeUI.tooltip) {
@@ -689,6 +691,8 @@ export default defineVxeComponent({
689
691
  const inputElem = refInputTarget.value
690
692
  const content = getText(contentMethod
691
693
  ? contentMethod({
694
+ $mumberInput: $xeNumberInput,
695
+ type,
692
696
  inputValue: inputElem.value,
693
697
  value: inputValue || '',
694
698
  label: numLabel
@@ -708,6 +712,15 @@ export default defineVxeComponent({
708
712
  }
709
713
  }
710
714
 
715
+ const handleHideTip = () => {
716
+ const { showTooltip } = props
717
+ if (showTooltip) {
718
+ if (VxeUI.tooltip) {
719
+ VxeUI.tooltip.close()
720
+ }
721
+ }
722
+ }
723
+
711
724
  const keydownEvent = (evnt: KeyboardEvent & { type: 'keydown' }) => {
712
725
  const { type, negative, exponential, controls } = props
713
726
  const controlOpts = computeControlOpts.value
@@ -863,6 +876,7 @@ export default defineVxeComponent({
863
876
  handleChange(value, handleNumberString(inputValue), evnt)
864
877
  }
865
878
  afterCheckValue()
879
+ handleHideTip()
866
880
  }
867
881
  }
868
882
  }
@@ -1036,7 +1050,8 @@ export default defineVxeComponent({
1036
1050
  onChange: changeEvent,
1037
1051
  onFocus: focusEvent,
1038
1052
  onBlur: blurEvent
1039
- })
1053
+ }),
1054
+ renderFloat()
1040
1055
  ]),
1041
1056
  renderSuffixIcon()
1042
1057
  ])
@@ -1104,7 +1119,7 @@ export default defineVxeComponent({
1104
1119
  }
1105
1120
 
1106
1121
  const renderVN = () => {
1107
- const { className, controls, type, align, prefixIcon, suffixIcon } = props
1122
+ const { className, controls, type, align, prefixIcon, suffixIcon, floatContent, floatAlign } = props
1108
1123
  const { inputValue, isActivated } = reactData
1109
1124
  const vSize = computeSize.value
1110
1125
  const controlOpts = computeControlOpts.value
@@ -1125,7 +1140,7 @@ export default defineVxeComponent({
1125
1140
  const isControls = isEnableConf(controlOpts) && (controls === false ? controls : showButton)
1126
1141
  return h('div', {
1127
1142
  ref: refElem,
1128
- class: ['vxe-number-input', `type--${type}`, isControls ? (`ctl--${layout === 'right' || layout === 'left' ? layout : 'default'}`) : '', className, {
1143
+ class: ['vxe-number-input', `type--${type}`, isControls ? (`ctl--${layout === 'right' || layout === 'left' ? layout : 'default'}`) : '', floatContent ? (`fla--${floatAlign || 'center'}`) : '', className, {
1129
1144
  [`size--${vSize}`]: vSize,
1130
1145
  [`is--${align}`]: align,
1131
1146
  'is--controls': isControls && !inputReadonly,
@@ -1136,29 +1151,26 @@ export default defineVxeComponent({
1136
1151
  'show--clear': isClearable && !isDisabled && !(inputValue === '' || XEUtils.eqNull(inputValue))
1137
1152
  }],
1138
1153
  spellcheck: false,
1154
+ onMouseenter: mouseenterEvent,
1139
1155
  onMouseleave: mouseleaveEvent
1140
1156
  }, isControls
1141
1157
  ? (layout === 'right'
1142
1158
  ? [
1143
1159
  renderInput(),
1144
- renderSideControl(),
1145
- renderFloat()
1160
+ renderSideControl()
1146
1161
  ]
1147
1162
  : (layout === 'left'
1148
1163
  ? [
1149
1164
  renderSideControl(),
1150
- renderInput(),
1151
- renderFloat()
1165
+ renderInput()
1152
1166
  ]
1153
1167
  : [
1154
1168
  renderMinusBtn(),
1155
1169
  renderInput(),
1156
- renderPlusBtn(),
1157
- renderFloat()
1170
+ renderPlusBtn()
1158
1171
  ]))
1159
1172
  : [
1160
- renderInput(),
1161
- renderFloat()
1173
+ renderInput()
1162
1174
  ])
1163
1175
  }
1164
1176
 
@@ -28,6 +28,10 @@ export default defineVxeComponent({
28
28
  type: String as PropType<VxePasswordInputPropTypes.FloatContent>,
29
29
  default: () => getConfig().passwordInput.floatContent
30
30
  },
31
+ floatAlign: {
32
+ type: String as PropType<VxePasswordInputPropTypes.FloatAlign>,
33
+ default: () => getConfig().passwordInput.floatAlign
34
+ },
31
35
  autoComplete: {
32
36
  type: String as PropType<VxePasswordInputPropTypes.AutoComplete>,
33
37
  default: 'off'
@@ -372,7 +376,7 @@ export default defineVxeComponent({
372
376
  }
373
377
 
374
378
  const renderVN = () => {
375
- const { className, inputClassName, name, readonly, floatContent, autocomplete, autoComplete, maxLength } = props
379
+ const { className, inputClassName, name, readonly, floatContent, autocomplete, autoComplete, maxLength, floatAlign } = props
376
380
  const { inputValue, isActivated } = reactData
377
381
  const isDisabled = computeIsDisabled.value
378
382
  const formReadonly = computeFormReadonly.value
@@ -392,7 +396,7 @@ export default defineVxeComponent({
392
396
  const floatSlot = slots.float
393
397
  return h('div', {
394
398
  ref: refElem,
395
- class: ['vxe-password-input', className, {
399
+ class: ['vxe-password-input', floatContent ? (`fla--${floatAlign || 'center'}`) : '', className, {
396
400
  [`size--${vSize}`]: vSize,
397
401
  'is--prefix': !!prefix,
398
402
  'is--suffix': !!suffix,
@@ -422,14 +426,14 @@ export default defineVxeComponent({
422
426
  onChange: changeEvent,
423
427
  onFocus: focusEvent,
424
428
  onBlur: blurEvent
425
- })
429
+ }),
430
+ floatContent || floatSlot
431
+ ? h('span', {
432
+ class: 'vxe-password-input--float-wrapper'
433
+ }, floatSlot ? floatSlot({}) : getText(floatContent))
434
+ : renderEmptyElement($xePasswordInput)
426
435
  ]),
427
- suffix || renderEmptyElement($xePasswordInput),
428
- floatContent || floatSlot
429
- ? h('span', {
430
- class: 'vxe-password-input--float-wrapper'
431
- }, floatSlot ? floatSlot({}) : getText(floatContent))
432
- : renderEmptyElement($xePasswordInput)
436
+ suffix || renderEmptyElement($xePasswordInput)
433
437
  ])
434
438
  }
435
439
 
@@ -1,7 +1,7 @@
1
- import { h, ref, nextTick, onBeforeUnmount, onMounted, computed, reactive, watch, PropType, VNode, onUnmounted } from 'vue'
1
+ import { h, ref, nextTick, onBeforeUnmount, onMounted, computed, reactive, watch, PropType, VNode } from 'vue'
2
2
  import { defineVxeComponent } from '../../ui/src/comp'
3
3
  import XEUtils from 'xe-utils'
4
- import { getConfig, createEvent, useSize } from '../../ui'
4
+ import { getConfig, createEvent, useSize, globalEvents } from '../../ui'
5
5
  import { getLastZIndex, nextZIndex } from '../../ui/src/utils'
6
6
  import { getPopupAppendElement, toCssUnit, updatePanelPlacement } from '../../ui/src/dom'
7
7
  import { getSlotVNs } from '../../ui/src/vn'
@@ -251,7 +251,7 @@ export default defineVxeComponent({
251
251
  tipStore.placement = 'top'
252
252
  tipStore.style = { width: 'auto', left: 0, top: 0, zIndex: props.zIndex || reactData.tipZindex }
253
253
  tipStore.arrowStyle = { left: '50%' }
254
- return tooltipMethods.updatePlacement()
254
+ return $xeTooltip.updatePlacement()
255
255
  }
256
256
 
257
257
  const handleDelayFn = () => {
@@ -399,6 +399,16 @@ export default defineVxeComponent({
399
399
  evnt.stopPropagation()
400
400
  }
401
401
 
402
+ const handleGlobalScrollEvent = () => {
403
+ if (reactData.visible) {
404
+ $xeTooltip.updatePlacement()
405
+ }
406
+ }
407
+
408
+ const handleGlobalBlurEvent = () => {
409
+ $xeTooltip.close()
410
+ }
411
+
402
412
  const tooltipPrivateMethods: TooltipPrivateMethods = {
403
413
  handleCloseEvent: targetMouseleaveEvent
404
414
  }
@@ -534,6 +544,8 @@ export default defineVxeComponent({
534
544
  }
535
545
  }
536
546
  })
547
+ globalEvents.on($xeTooltip, 'blur', handleGlobalBlurEvent)
548
+ globalEvents.on($xeTooltip, 'scroll', handleGlobalScrollEvent)
537
549
  })
538
550
 
539
551
  onBeforeUnmount(() => {
@@ -554,9 +566,8 @@ export default defineVxeComponent({
554
566
  parentNode.removeChild(panelElem)
555
567
  }
556
568
  }
557
- })
558
-
559
- onUnmounted(() => {
569
+ globalEvents.off($xeTooltip, 'blur')
570
+ globalEvents.off($xeTooltip, 'scroll')
560
571
  XEUtils.assign(reactData, createReactData())
561
572
  XEUtils.assign(internalData, createInternalData())
562
573
  })
@@ -32,8 +32,8 @@
32
32
  display: inline-flex;
33
33
  }
34
34
  .vxe-input--wrapper {
35
+ position: relative;
35
36
  flex-grow: 1;
36
- overflow: hidden;
37
37
  }
38
38
  .vxe-input--inner {
39
39
  display: block;
@@ -168,13 +168,31 @@
168
168
 
169
169
  .vxe-input--float-wrapper {
170
170
  position: absolute;
171
- left: 1em;
172
171
  top: -0.5em;
173
172
  line-height: 1;
174
173
  padding: 0 0.2em;
174
+ white-space: nowrap;
175
175
  color: var(--vxe-ui-input-placeholder-color);
176
176
  background-color: var(--vxe-ui-layout-background-color);
177
177
  }
178
+ .vxe-input {
179
+ &.fla--left {
180
+ .vxe-input--float-wrapper {
181
+ left: 1em;
182
+ }
183
+ }
184
+ &.fla--center {
185
+ .vxe-input--float-wrapper {
186
+ left: 50%;
187
+ transform: translateX(-50%);
188
+ }
189
+ }
190
+ &.fla--right {
191
+ .vxe-input--float-wrapper {
192
+ right: 1em;
193
+ }
194
+ }
195
+ }
178
196
 
179
197
  .vxe-input--number-btn {
180
198
  height: 50%;
@@ -32,8 +32,8 @@
32
32
  display: inline-flex;
33
33
  }
34
34
  .vxe-number-input--input-inner {
35
+ position: relative;
35
36
  flex-grow: 1;
36
- overflow: hidden;
37
37
  }
38
38
  .vxe-number-input--input {
39
39
  display: block;
@@ -73,7 +73,6 @@
73
73
  .vxe-number-input--input-wrapper {
74
74
  display: flex;
75
75
  flex-grow: 1;
76
- overflow: hidden;
77
76
  }
78
77
 
79
78
  // 禁用
@@ -158,13 +157,31 @@
158
157
 
159
158
  .vxe-number-input--float-wrapper {
160
159
  position: absolute;
161
- left: 1em;
162
160
  top: -0.5em;
163
161
  line-height: 1;
164
162
  padding: 0 0.2em;
163
+ white-space: nowrap;
165
164
  color: var(--vxe-ui-input-placeholder-color);
166
165
  background-color: var(--vxe-ui-layout-background-color);
167
166
  }
167
+ .vxe-number-input {
168
+ &.fla--left {
169
+ .vxe-number-input--float-wrapper {
170
+ left: 1em;
171
+ }
172
+ }
173
+ &.fla--center {
174
+ .vxe-number-input--float-wrapper {
175
+ left: 50%;
176
+ transform: translateX(-50%);
177
+ }
178
+ }
179
+ &.fla--right {
180
+ .vxe-number-input--float-wrapper {
181
+ right: 1em;
182
+ }
183
+ }
184
+ }
168
185
 
169
186
  // 统计字数
170
187
  .vxe-number-input--count {
@@ -31,8 +31,8 @@
31
31
  display: inline-flex;
32
32
  }
33
33
  .vxe-password-input--wrapper {
34
+ position: relative;
34
35
  flex-grow: 1;
35
- overflow: hidden;
36
36
  }
37
37
  .vxe-password-input--inner {
38
38
  display: block;
@@ -144,13 +144,31 @@
144
144
 
145
145
  .vxe-password-input--float-wrapper {
146
146
  position: absolute;
147
- left: 1em;
148
147
  top: -0.5em;
149
148
  line-height: 1;
150
149
  padding: 0 0.2em;
150
+ white-space: nowrap;
151
151
  color: var(--vxe-ui-input-placeholder-color);
152
152
  background-color: var(--vxe-ui-layout-background-color);
153
153
  }
154
+ .vxe-password-input {
155
+ &.fla--left {
156
+ .vxe-password-input--float-wrapper {
157
+ left: 1em;
158
+ }
159
+ }
160
+ &.fla--center {
161
+ .vxe-password-input--float-wrapper {
162
+ left: 50%;
163
+ transform: translateX(-50%);
164
+ }
165
+ }
166
+ &.fla--right {
167
+ .vxe-password-input--float-wrapper {
168
+ right: 1em;
169
+ }
170
+ }
171
+ }
154
172
 
155
173
  .vxe-password-input--number-btn {
156
174
  height: 50%;
@@ -39,6 +39,7 @@ export namespace VxeInputPropTypes {
39
39
  export type Disabled = boolean
40
40
  export type Placeholder = string
41
41
  export type FloatContent = string
42
+ export type FloatAlign = VxeComponentAlignType
42
43
  export type MaxLength = string | number | null
43
44
  export type Multiple = boolean
44
45
  export type ShowWordCount = boolean
@@ -112,6 +113,7 @@ export interface VxeInputProps {
112
113
  disabled?: VxeInputPropTypes.Disabled
113
114
  placeholder?: VxeInputPropTypes.Placeholder
114
115
  floatContent?: VxeInputPropTypes.FloatContent
116
+ floatAlign?: VxeInputPropTypes.FloatAlign
115
117
  maxLength?: VxeInputPropTypes.MaxLength
116
118
  multiple?: VxeInputPropTypes.Multiple
117
119
  /**
@@ -1,5 +1,5 @@
1
1
  import { RenderFunction, SetupContext, Ref, ComputedRef } from 'vue'
2
- import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf, VxeComponentSizeType } from '@vxe-ui/core'
2
+ import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf, VxeComponentSizeType, VxeComponentAlignType } from '@vxe-ui/core'
3
3
  import { VxeTooltipProps } from './tooltip'
4
4
 
5
5
  /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
@@ -36,10 +36,11 @@ export namespace VxeNumberInputPropTypes {
36
36
  export type Disabled = boolean
37
37
  export type Placeholder = string
38
38
  export type FloatContent = string
39
+ export type FloatAlign = VxeComponentAlignType
39
40
  export type MaxLength = string | number | null
40
41
  export type Multiple = boolean
41
42
  export type AutoComplete = string
42
- export type Align = string
43
+ export type Align = VxeComponentAlignType
43
44
  export type Form = string
44
45
  export type Min = string | number | null
45
46
  export type Max = string | number | null
@@ -100,6 +101,8 @@ export namespace VxeNumberInputPropTypes {
100
101
  export type ShowTooltip = boolean
101
102
  export interface TooltipConfig extends Omit<VxeTooltipProps, 'content' | 'transfer' | 'appendTo'> {
102
103
  contentMethod?: (params: {
104
+ $mumberInput: VxeNumberInputConstructor
105
+ type: VxeNumberInputPropTypes.Type
103
106
  value: VxeNumberInputPropTypes.ModelValue
104
107
  label: string
105
108
  inputValue: string
@@ -134,6 +137,7 @@ export interface VxeNumberInputProps {
134
137
  disabled?: VxeNumberInputPropTypes.Disabled
135
138
  placeholder?: VxeNumberInputPropTypes.Placeholder
136
139
  floatContent?: VxeNumberInputPropTypes.FloatContent
140
+ floatAlign?: VxeNumberInputPropTypes.FloatAlign
137
141
  maxLength?: VxeNumberInputPropTypes.MaxLength
138
142
  multiple?: VxeNumberInputPropTypes.Multiple
139
143
  autoComplete?: VxeNumberInputPropTypes.AutoComplete
@@ -1,5 +1,5 @@
1
1
  import { RenderFunction, SetupContext, Ref } from 'vue'
2
- import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf, VxeComponentSizeType } from '@vxe-ui/core'
2
+ import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf, VxeComponentSizeType, VxeComponentAlignType } from '@vxe-ui/core'
3
3
 
4
4
  /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
5
5
 
@@ -35,6 +35,7 @@ export namespace VxePasswordInputPropTypes {
35
35
  export type MaxLength = string | number
36
36
  export type Placeholder = string
37
37
  export type FloatContent = string
38
+ export type FloatAlign = VxeComponentAlignType
38
39
  export type AutoComplete = string
39
40
  export type PrefixIcon = string
40
41
  export type SuffixIcon = string
@@ -61,6 +62,7 @@ export interface VxePasswordInputProps {
61
62
  autoComplete?: VxePasswordInputPropTypes.AutoComplete
62
63
  placeholder?: VxePasswordInputPropTypes.Placeholder
63
64
  floatContent?: VxePasswordInputPropTypes.FloatContent
65
+ floatAlign?: VxePasswordInputPropTypes.FloatAlign
64
66
  prefixIcon?: VxePasswordInputPropTypes.PrefixIcon
65
67
  suffixIcon?: VxePasswordInputPropTypes.SuffixIcon
66
68
  controls?: VxePasswordInputPropTypes.Controls