vxe-pc-ui 4.5.32 → 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.
- package/es/form/style.css +12 -12
- package/es/form/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/input/src/input.js +2 -2
- package/es/number-input/src/number-input.js +248 -165
- package/es/number-input/style.css +74 -770
- package/es/number-input/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tooltip/style.css +1 -1
- package/es/tooltip/style.min.css +1 -1
- package/es/ui/index.js +11 -4
- package/es/ui/src/dom.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-form/style.css +12 -12
- package/es/vxe-form/style.min.css +1 -1
- package/es/vxe-number-input/style.css +74 -770
- package/es/vxe-number-input/style.min.css +1 -1
- package/es/vxe-tooltip/style.css +1 -1
- package/es/vxe-tooltip/style.min.css +1 -1
- package/lib/form/style/style.css +12 -12
- package/lib/form/style/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +255 -160
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +2 -2
- package/lib/input/src/input.min.js +1 -1
- package/lib/number-input/src/number-input.js +240 -152
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/number-input/style/style.css +74 -770
- package/lib/number-input/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tooltip/style/style.css +1 -1
- package/lib/tooltip/style/style.min.css +1 -1
- package/lib/ui/index.js +11 -4
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/dom.js +1 -1
- package/lib/ui/src/dom.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-form/style/style.css +12 -12
- package/lib/vxe-form/style/style.min.css +1 -1
- package/lib/vxe-number-input/style/style.css +74 -770
- package/lib/vxe-number-input/style/style.min.css +1 -1
- package/lib/vxe-tooltip/style/style.css +1 -1
- package/lib/vxe-tooltip/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/input/src/input.ts +2 -2
- package/packages/number-input/src/number-input.ts +264 -177
- package/packages/ui/index.ts +10 -3
- package/packages/ui/src/dom.ts +1 -1
- package/styles/components/form.scss +12 -12
- package/styles/components/number-input.scss +73 -598
- package/styles/components/tooltip.scss +1 -1
- package/styles/theme/base.scss +4 -4
- package/styles/theme/dark.scss +3 -0
- package/styles/theme/light.scss +3 -0
- package/types/components/number-input.d.ts +80 -6
- package/types/ui/global-icon.d.ts +4 -2
- /package/es/icon/{iconfont.1745800497803.ttf → iconfont.1745889662360.ttf} +0 -0
- /package/es/icon/{iconfont.1745800497803.woff → iconfont.1745889662360.woff} +0 -0
- /package/es/icon/{iconfont.1745800497803.woff2 → iconfont.1745889662360.woff2} +0 -0
- /package/es/{iconfont.1745800497803.ttf → iconfont.1745889662360.ttf} +0 -0
- /package/es/{iconfont.1745800497803.woff → iconfont.1745889662360.woff} +0 -0
- /package/es/{iconfont.1745800497803.woff2 → iconfont.1745889662360.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1745800497803.ttf → iconfont.1745889662360.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1745800497803.woff → iconfont.1745889662360.woff} +0 -0
- /package/lib/icon/style/{iconfont.1745800497803.woff2 → iconfont.1745889662360.woff2} +0 -0
- /package/lib/{iconfont.1745800497803.ttf → iconfont.1745889662360.ttf} +0 -0
- /package/lib/{iconfont.1745800497803.woff → iconfont.1745889662360.woff} +0 -0
- /package/lib/{iconfont.1745800497803.woff2 → iconfont.1745889662360.woff2} +0 -0
package/styles/theme/base.scss
CHANGED
|
@@ -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:
|
|
96
|
-
--vxe-ui-form-item-min-height-medium:
|
|
97
|
-
--vxe-ui-form-item-min-height-small:
|
|
98
|
-
--vxe-ui-form-item-min-height-mini:
|
|
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
|
|
package/styles/theme/dark.scss
CHANGED
|
@@ -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
|
|
package/styles/theme/light.scss
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
124
|
+
/**
|
|
125
|
+
* 已废弃,请使用 control-config.showButton
|
|
126
|
+
* @deprecated
|
|
127
|
+
*/
|
|
91
128
|
controls?: VxeNumberInputPropTypes.Controls
|
|
129
|
+
/**
|
|
130
|
+
* 控制按钮配置项
|
|
131
|
+
*/
|
|
132
|
+
controlConfig?: VxeNumberInputPropTypes.ControlConfig
|
|
92
133
|
|
|
93
|
-
|
|
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 {
|
|
@@ -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
|
-
|
|
95
|
-
|
|
96
|
+
NUMBER_INPUT_PLUS_NUM?: string
|
|
97
|
+
NUMBER_INPUT_MINUS_NUM?: string
|
|
96
98
|
|
|
97
99
|
// date-picker
|
|
98
100
|
DATE_PICKER_DATE?: string
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|