vxe-pc-ui 4.5.31 → 4.5.33

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 (74) hide show
  1. package/es/form/style.css +12 -12
  2. package/es/form/style.min.css +1 -1
  3. package/es/icon/style.css +1 -1
  4. package/es/input/src/input.js +2 -2
  5. package/es/number-input/src/number-input.js +248 -165
  6. package/es/number-input/style.css +74 -770
  7. package/es/number-input/style.min.css +1 -1
  8. package/es/style.css +1 -1
  9. package/es/style.min.css +1 -1
  10. package/es/tooltip/style.css +1 -1
  11. package/es/tooltip/style.min.css +1 -1
  12. package/es/ui/index.js +11 -4
  13. package/es/ui/src/dom.js +1 -1
  14. package/es/ui/src/log.js +1 -1
  15. package/es/vxe-form/style.css +12 -12
  16. package/es/vxe-form/style.min.css +1 -1
  17. package/es/vxe-number-input/style.css +74 -770
  18. package/es/vxe-number-input/style.min.css +1 -1
  19. package/es/vxe-tooltip/style.css +1 -1
  20. package/es/vxe-tooltip/style.min.css +1 -1
  21. package/lib/form/style/style.css +12 -12
  22. package/lib/form/style/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 +255 -160
  26. package/lib/index.umd.min.js +1 -1
  27. package/lib/input/src/input.js +2 -2
  28. package/lib/input/src/input.min.js +1 -1
  29. package/lib/number-input/src/number-input.js +240 -152
  30. package/lib/number-input/src/number-input.min.js +1 -1
  31. package/lib/number-input/style/style.css +74 -770
  32. package/lib/number-input/style/style.min.css +1 -1
  33. package/lib/style.css +1 -1
  34. package/lib/style.min.css +1 -1
  35. package/lib/tooltip/style/style.css +1 -1
  36. package/lib/tooltip/style/style.min.css +1 -1
  37. package/lib/ui/index.js +11 -4
  38. package/lib/ui/index.min.js +1 -1
  39. package/lib/ui/src/dom.js +1 -1
  40. package/lib/ui/src/dom.min.js +1 -1
  41. package/lib/ui/src/log.js +1 -1
  42. package/lib/ui/src/log.min.js +1 -1
  43. package/lib/vxe-form/style/style.css +12 -12
  44. package/lib/vxe-form/style/style.min.css +1 -1
  45. package/lib/vxe-number-input/style/style.css +74 -770
  46. package/lib/vxe-number-input/style/style.min.css +1 -1
  47. package/lib/vxe-tooltip/style/style.css +1 -1
  48. package/lib/vxe-tooltip/style/style.min.css +1 -1
  49. package/package.json +1 -1
  50. package/packages/input/src/input.ts +2 -2
  51. package/packages/number-input/src/number-input.ts +264 -177
  52. package/packages/ui/index.ts +10 -3
  53. package/packages/ui/src/dom.ts +1 -1
  54. package/styles/components/form.scss +12 -12
  55. package/styles/components/number-input.scss +73 -598
  56. package/styles/components/tooltip.scss +1 -1
  57. package/styles/theme/base.scss +4 -4
  58. package/styles/theme/dark.scss +3 -0
  59. package/styles/theme/light.scss +3 -0
  60. package/types/components/number-input.d.ts +80 -6
  61. package/types/components/table.d.ts +4 -1
  62. package/types/ui/global-icon.d.ts +4 -2
  63. /package/es/icon/{iconfont.1745654997780.ttf → iconfont.1745889662360.ttf} +0 -0
  64. /package/es/icon/{iconfont.1745654997780.woff → iconfont.1745889662360.woff} +0 -0
  65. /package/es/icon/{iconfont.1745654997780.woff2 → iconfont.1745889662360.woff2} +0 -0
  66. /package/es/{iconfont.1745654997780.ttf → iconfont.1745889662360.ttf} +0 -0
  67. /package/es/{iconfont.1745654997780.woff → iconfont.1745889662360.woff} +0 -0
  68. /package/es/{iconfont.1745654997780.woff2 → iconfont.1745889662360.woff2} +0 -0
  69. /package/lib/icon/style/{iconfont.1745654997780.ttf → iconfont.1745889662360.ttf} +0 -0
  70. /package/lib/icon/style/{iconfont.1745654997780.woff → iconfont.1745889662360.woff} +0 -0
  71. /package/lib/icon/style/{iconfont.1745654997780.woff2 → iconfont.1745889662360.woff2} +0 -0
  72. /package/lib/{iconfont.1745654997780.ttf → iconfont.1745889662360.ttf} +0 -0
  73. /package/lib/{iconfont.1745654997780.woff → iconfont.1745889662360.woff} +0 -0
  74. /package/lib/{iconfont.1745654997780.woff2 → iconfont.1745889662360.woff2} +0 -0
@@ -60,7 +60,7 @@
60
60
  }
61
61
  }
62
62
  .vxe-tooltip--arrow {
63
- bottom: -12px;
63
+ bottom: -11px;
64
64
  &:before {
65
65
  top: -7px;
66
66
  }
@@ -92,10 +92,10 @@
92
92
  --vxe-ui-tooltip-dark-background-color: #303133;
93
93
 
94
94
  /*form*/
95
- --vxe-ui-form-item-min-height-default: 48px;
96
- --vxe-ui-form-item-min-height-medium: 44px;
97
- --vxe-ui-form-item-min-height-small: 40px;
98
- --vxe-ui-form-item-min-height-mini: 36px;
95
+ --vxe-ui-form-item-min-height-default: 56px;
96
+ --vxe-ui-form-item-min-height-medium: 52px;
97
+ --vxe-ui-form-item-min-height-small: 48px;
98
+ --vxe-ui-form-item-min-height-mini: 44px;
99
99
  --vxe-ui-form-validate-error-color: var(--vxe-ui-status-error-color);
100
100
  --vxe-ui-form-validate-error-background-color: inherit;
101
101
 
@@ -63,6 +63,9 @@
63
63
  --vxe-ui-input-placeholder-color: #3c3d3e;
64
64
  --vxe-ui-input-disabled-background-color: #262727;
65
65
 
66
+ /*number-input*/
67
+ --vxe-ui-number-input-control-button-color: #262727;
68
+
66
69
  /*modal*/
67
70
  --vxe-ui-modal-header-background-color: var(--vxe-ui-layout-background-color);
68
71
 
@@ -61,6 +61,9 @@
61
61
  --vxe-ui-input-border-color: #{light_variable.$vxe-ui-input-border-color};
62
62
  --vxe-ui-input-placeholder-color: #{light_variable.$vxe-ui-input-placeholder-color};
63
63
  --vxe-ui-input-disabled-background-color: #{light_variable.$vxe-ui-input-disabled-background-color};
64
+
65
+ /*number-input*/
66
+ --vxe-ui-number-input-control-button-color: #f5f7fa;
64
67
 
65
68
  /*modal*/
66
69
  --vxe-ui-modal-header-background-color: #{light_variable.$vxe-ui-modal-header-background-color};
@@ -1,4 +1,4 @@
1
- import { RenderFunction, SetupContext, Ref } from 'vue'
1
+ import { RenderFunction, SetupContext, Ref, ComputedRef } from 'vue'
2
2
  import { DefineVxeComponentApp, DefineVxeComponentOptions, DefineVxeComponentInstance, VxeComponentBaseOptions, VxeComponentEventParams, ValueOf, VxeComponentSizeType } from '@vxe-ui/core'
3
3
 
4
4
  /* eslint-disable no-use-before-define,@typescript-eslint/ban-types */
@@ -42,10 +42,33 @@ export namespace VxeNumberInputPropTypes {
42
42
  export type Max = string | number
43
43
  export type Step = string | number
44
44
  export type Exponential = boolean
45
+ /**
46
+ * @deprecated
47
+ */
45
48
  export type Controls = boolean
49
+ export interface ControlConfig {
50
+ /**
51
+ * 是否启用,支持局部/全局启用
52
+ */
53
+ enabled?: boolean
54
+ /**
55
+ * 只对 enabled 启用后有效,是否显示控制按钮
56
+ */
57
+ showButton?: boolean
58
+ /**
59
+ * 只对 enabled 启用后有效,是否启用鼠标滚轮操作
60
+ */
61
+ isWheel?: boolean
62
+ /**
63
+ * 按钮的布局方式
64
+ */
65
+ layout?: 'left' | 'right' | 'default' | ''
66
+ }
46
67
  export type Digits = string | number
47
68
  export type AutoFill = boolean
48
69
  export type Editable = boolean
70
+ export type PlusIcon = string
71
+ export type MinusIcon = string
49
72
  export type PrefixIcon = string
50
73
  export type SuffixIcon = string
51
74
 
@@ -81,21 +104,56 @@ export interface VxeNumberInputProps {
81
104
  align?: VxeNumberInputPropTypes.Align
82
105
  form?: VxeNumberInputPropTypes.Form
83
106
 
84
- // number、integer、float
107
+ /**
108
+ * 最小值
109
+ */
85
110
  min?: VxeNumberInputPropTypes.Min
111
+ /**
112
+ * 最大值
113
+ */
86
114
  max?: VxeNumberInputPropTypes.Max
115
+ /**
116
+ * 数字间隔,当启用控制按钮时有效
117
+ */
87
118
  step?: VxeNumberInputPropTypes.Step
119
+ /**
120
+ * 是否允许输入科学计数
121
+ */
88
122
  exponential?: VxeNumberInputPropTypes.Exponential
89
123
 
90
- // number、integer、float、password
124
+ /**
125
+ * 已废弃,请使用 control-config.showButton
126
+ * @deprecated
127
+ */
91
128
  controls?: VxeNumberInputPropTypes.Controls
129
+ /**
130
+ * 控制按钮配置项
131
+ */
132
+ controlConfig?: VxeNumberInputPropTypes.ControlConfig
92
133
 
93
- // float
134
+ /**
135
+ * 小数位数
136
+ */
94
137
  digits?: VxeNumberInputPropTypes.Digits
138
+ /**
139
+ * 只对 type=float,amount 有效,当输入的小数位数不足时,自动给小数后面补 0
140
+ */
95
141
  autoFill?: VxeNumberInputPropTypes.AutoFill
96
142
 
143
+ /**
144
+ * 文本框是否允许输入
145
+ */
97
146
  editable?: VxeNumberInputPropTypes.Editable
98
147
 
148
+ /**
149
+ * 自定义增加按钮图标
150
+ */
151
+ plusIcon?: VxeNumberInputPropTypes.PlusIcon
152
+ /**
153
+ * 自定义减少按钮图标
154
+ */
155
+ minusIcon?: VxeNumberInputPropTypes.MinusIcon
156
+
99
157
  prefixIcon?: VxeNumberInputPropTypes.PrefixIcon
100
158
  suffixIcon?: VxeNumberInputPropTypes.SuffixIcon
101
159
 
@@ -121,6 +179,7 @@ export interface VxeNumberInputProps {
121
179
  }
122
180
 
123
181
  export interface NumberInputPrivateComputed {
182
+ computeControlOpts: ComputedRef<VxeNumberInputPropTypes.ControlConfig>
124
183
  }
125
184
  export interface VxeNumberInputPrivateComputed extends NumberInputPrivateComputed { }
126
185
 
@@ -132,6 +191,8 @@ export interface NumberInputReactData {
132
191
 
133
192
  export interface NumberInputInternalData {
134
193
  dnTimeout?: undefined | number
194
+ ainTimeout?: undefined | number
195
+ isMouseDown?: boolean
135
196
  isUM?: boolean
136
197
  }
137
198
 
@@ -166,10 +227,14 @@ export type VxeNumberInputEmits = [
166
227
  'focus',
167
228
  'blur',
168
229
  'clear',
230
+ 'plus-number',
231
+ 'minus-number',
232
+ 'prefix-click',
233
+ 'suffix-click',
234
+
235
+ // 已废弃
169
236
  'prev-number',
170
237
  'next-number',
171
- 'prefix-click',
172
- 'suffix-click'
173
238
  ]
174
239
 
175
240
  export namespace VxeNumberInputDefines {
@@ -184,21 +249,30 @@ export namespace VxeNumberInputDefines {
184
249
 
185
250
  export interface ChangeParams extends NumberInputParams {}
186
251
  export interface ChangeEventParams extends NumberInputEventParams, ChangeParams { }
252
+
253
+ export interface PlusNumberEventParams extends NumberInputEventParams, NumberInputParams { }
254
+ export interface MinusNumberEventParams extends NumberInputEventParams, NumberInputParams { }
187
255
  }
188
256
 
189
257
  export type VxeNumberInputEventProps = {
190
258
  onInput?: VxeNumberInputEvents.Input
191
259
  onChange?: VxeNumberInputEvents.Change
260
+ onPlusNumber?: VxeNumberInputEvents.PlusNumber
261
+ onMinusNumber?: VxeNumberInputEvents.MinusNumber
192
262
  }
193
263
 
194
264
  export interface VxeNumberInputListeners {
195
265
  input?: VxeNumberInputEvents.Input
196
266
  change?: VxeNumberInputEvents.Change
267
+ plusNumber?: VxeNumberInputEvents.PlusNumber
268
+ minusNumber?: VxeNumberInputEvents.MinusNumber
197
269
  }
198
270
 
199
271
  export namespace VxeNumberInputEvents {
200
272
  export type Input = (params: VxeNumberInputDefines.InputEventParams) => void
201
273
  export type Change = (params: VxeNumberInputDefines.ChangeEventParams) => void
274
+ export type PlusNumber = (params: VxeNumberInputDefines.PlusNumberEventParams) => void
275
+ export type MinusNumber = (params: VxeNumberInputDefines.MinusNumberEventParams) => void
202
276
  }
203
277
 
204
278
  export namespace VxeNumberInputSlotTypes {
@@ -3530,10 +3530,13 @@ export interface TableInternalData<D = any> {
3530
3530
  // 已删除行
3531
3531
  removeRowMaps: Record<string, D | null>
3532
3532
 
3533
+ // 单元格值缓存
3534
+ cvCacheMaps: Record<string, any>
3535
+
3533
3536
  // 上一个拖动的行
3534
3537
  prevDragRow?: any
3535
3538
  // 上一个拖动的列
3536
- prevDragCol?: VxeTableDefines.ColumnInfo
3539
+ prevDragCol?: VxeTableDefines.ColumnInfo | null
3537
3540
  prevDragToChild?: boolean
3538
3541
  prevDragPos?: 'top' | 'bottom' | 'left' | 'right' | ''
3539
3542
 
@@ -89,10 +89,12 @@ declare module '@vxe-ui/core' {
89
89
  // input
90
90
  INPUT_CLEAR?: string
91
91
  INPUT_SEARCH?: string
92
+ INPUT_PLUS_NUM?: string
93
+ INPUT_MINUS_NUM?: string
92
94
 
93
95
  // number-picker
94
- NUMBER_INPUT_PREV_NUM?: string
95
- NUMBER_INPUT_NEXT_NUM?: string
96
+ NUMBER_INPUT_PLUS_NUM?: string
97
+ NUMBER_INPUT_MINUS_NUM?: string
96
98
 
97
99
  // date-picker
98
100
  DATE_PICKER_DATE?: string