vxe-pc-ui 4.18.2 → 4.18.4
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/dist/all.esm.js +129 -28
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/button/src/button.js +11 -3
- package/es/button/style.css +1 -4
- package/es/button/style.min.css +1 -1
- package/es/color-picker/src/color-picker.js +14 -3
- package/es/date-picker/src/date-picker.js +12 -1
- package/es/date-range-picker/src/date-range-picker.js +12 -1
- package/es/icon/style.css +1 -1
- package/es/icon-picker/src/icon-picker.js +17 -6
- package/es/input/src/input.js +12 -1
- package/es/modal/src/modal.js +1 -1
- package/es/number-input/src/number-input.js +12 -1
- package/es/password-input/src/password-input.js +12 -0
- package/es/select/src/select.js +19 -8
- package/es/space/src/space.js +8 -4
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +3 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-button/style.css +1 -4
- package/es/vxe-button/style.min.css +1 -1
- package/lib/button/src/button.js +12 -2
- package/lib/button/src/button.min.js +1 -1
- package/lib/button/style/style.css +1 -4
- package/lib/button/style/style.min.css +1 -1
- package/lib/color-picker/src/color-picker.js +18 -5
- package/lib/color-picker/src/color-picker.min.js +1 -1
- package/lib/date-picker/src/date-picker.js +13 -0
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/date-range-picker/src/date-range-picker.js +13 -0
- package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/icon-picker/src/icon-picker.js +21 -8
- package/lib/icon-picker/src/icon-picker.min.js +1 -1
- package/lib/index.umd.js +154 -33
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +13 -0
- package/lib/input/src/input.min.js +1 -1
- package/lib/modal/src/modal.js +1 -1
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/number-input/src/number-input.js +13 -0
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/password-input/src/password-input.js +14 -0
- package/lib/password-input/src/password-input.min.js +1 -1
- package/lib/select/src/select.js +23 -10
- package/lib/select/src/select.min.js +1 -1
- package/lib/space/src/space.js +9 -4
- package/lib/space/src/space.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +3 -2
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-button/style/style.css +1 -4
- package/lib/vxe-button/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/button/src/button.ts +12 -4
- package/packages/color-picker/src/color-picker.ts +16 -4
- package/packages/date-picker/src/date-picker.ts +14 -2
- package/packages/date-range-picker/src/date-range-picker.ts +14 -2
- package/packages/icon-picker/src/icon-picker.ts +18 -6
- package/packages/input/src/input.ts +13 -1
- package/packages/modal/src/modal.ts +1 -1
- package/packages/number-input/src/number-input.ts +14 -2
- package/packages/password-input/src/password-input.ts +14 -1
- package/packages/select/src/select.ts +20 -8
- package/packages/space/src/space.ts +8 -4
- package/packages/ui/index.ts +2 -1
- package/styles/components/button.scss +1 -4
- package/types/components/button.d.ts +5 -0
- package/types/components/color-picker.d.ts +2 -0
- package/types/components/date-picker.d.ts +2 -0
- package/types/components/date-range-picker.d.ts +2 -0
- package/types/components/icon-picker.d.ts +2 -0
- package/types/components/input.d.ts +5 -0
- package/types/components/number-input.d.ts +5 -0
- package/types/components/password-input.d.ts +5 -0
- package/types/components/select.d.ts +5 -0
- package/types/components/space.d.ts +5 -0
- package/types/ui/global-icon.d.ts +2 -1
- /package/es/icon/{iconfont.1788693917694.ttf → iconfont.1788753701809.ttf} +0 -0
- /package/es/icon/{iconfont.1788693917694.woff → iconfont.1788753701809.woff} +0 -0
- /package/es/icon/{iconfont.1788693917694.woff2 → iconfont.1788753701809.woff2} +0 -0
- /package/es/{iconfont.1788693917694.ttf → iconfont.1788753701809.ttf} +0 -0
- /package/es/{iconfont.1788693917694.woff → iconfont.1788753701809.woff} +0 -0
- /package/es/{iconfont.1788693917694.woff2 → iconfont.1788753701809.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1788693917694.ttf → iconfont.1788753701809.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1788693917694.woff → iconfont.1788753701809.woff} +0 -0
- /package/lib/icon/style/{iconfont.1788693917694.woff2 → iconfont.1788753701809.woff2} +0 -0
- /package/lib/{iconfont.1788693917694.ttf → iconfont.1788753701809.ttf} +0 -0
- /package/lib/{iconfont.1788693917694.woff → iconfont.1788753701809.woff} +0 -0
- /package/lib/{iconfont.1788693917694.woff2 → iconfont.1788753701809.woff2} +0 -0
|
@@ -4,8 +4,9 @@ import XEUtils from 'xe-utils'
|
|
|
4
4
|
import { getConfig, getIcon, getI18n, createEvent, useSize, renderEmptyElement } from '../../ui'
|
|
5
5
|
import { getFuncText, getText } from '../../ui/src/utils'
|
|
6
6
|
import { getSlotVNs } from '../../ui/src/vn'
|
|
7
|
+
import { toCssUnit } from '../../ui/src/dom'
|
|
7
8
|
|
|
8
|
-
import type { VxePasswordInputConstructor, VxePasswordInputEmits, PasswordInputReactData, PasswordInputMethods, VxePasswordInputPropTypes, InputPrivateRef, VxeFormConstructor, VxeFormPrivateMethods, VxeFormDefines, ValueOf } from '../../../types'
|
|
9
|
+
import type { VxePasswordInputConstructor, VxePasswordInputEmits, PasswordInputReactData, PasswordInputMethods, VxePasswordInputPropTypes, InputPrivateRef, VxeFormConstructor, VxeFormPrivateMethods, VxeFormDefines, ValueOf, VxeComponentStyleType } from '../../../types'
|
|
9
10
|
|
|
10
11
|
export default defineVxeComponent({
|
|
11
12
|
name: 'VxePasswordInput',
|
|
@@ -41,6 +42,7 @@ export default defineVxeComponent({
|
|
|
41
42
|
type: String as PropType<VxePasswordInputPropTypes.InputClassName>,
|
|
42
43
|
default: () => getConfig().passwordInput.inputClassName
|
|
43
44
|
},
|
|
45
|
+
width: [String, Number] as PropType<VxePasswordInputPropTypes.Width>,
|
|
44
46
|
size: {
|
|
45
47
|
type: String as PropType<VxePasswordInputPropTypes.Size>,
|
|
46
48
|
default: () => getConfig().passwordInput.size || getConfig().size
|
|
@@ -171,6 +173,15 @@ export default defineVxeComponent({
|
|
|
171
173
|
return inputValue
|
|
172
174
|
})
|
|
173
175
|
|
|
176
|
+
const computeCurrStyle = computed(() => {
|
|
177
|
+
const { width } = props
|
|
178
|
+
const stys: VxeComponentStyleType = {}
|
|
179
|
+
if (width) {
|
|
180
|
+
stys.width = toCssUnit(width)
|
|
181
|
+
}
|
|
182
|
+
return stys
|
|
183
|
+
})
|
|
184
|
+
|
|
174
185
|
const dispatchEvent = (type: ValueOf<VxePasswordInputEmits>, params: Record<string, any>, evnt: Event | null) => {
|
|
175
186
|
emit(type, createEvent(evnt, { $passwordInput: $xePasswordInput }, params))
|
|
176
187
|
}
|
|
@@ -386,6 +397,7 @@ export default defineVxeComponent({
|
|
|
386
397
|
class: ['vxe-password-input--readonly', className]
|
|
387
398
|
}, getText(inputValue))
|
|
388
399
|
}
|
|
400
|
+
const currStyle = computeCurrStyle.value
|
|
389
401
|
const vSize = computeSize.value
|
|
390
402
|
const inputType = computeInputType.value
|
|
391
403
|
const inpPlaceholder = computeInpPlaceholder.value
|
|
@@ -405,6 +417,7 @@ export default defineVxeComponent({
|
|
|
405
417
|
'is--active': isActivated,
|
|
406
418
|
'show--clear': isClearable && !isDisabled && !(inputValue === '' || XEUtils.eqNull(inputValue))
|
|
407
419
|
}],
|
|
420
|
+
style: currStyle,
|
|
408
421
|
spellcheck: false
|
|
409
422
|
}, [
|
|
410
423
|
prefix || renderEmptyElement($xePasswordInput),
|
|
@@ -118,6 +118,7 @@ export default defineVxeComponent({
|
|
|
118
118
|
* @deprecated
|
|
119
119
|
*/
|
|
120
120
|
popupClassName: [String, Function] as PropType<VxeSelectPropTypes.PopupClassName>,
|
|
121
|
+
width: [String, Number] as PropType<VxeSelectPropTypes.Width>,
|
|
121
122
|
max: {
|
|
122
123
|
type: [String, Number] as PropType<VxeSelectPropTypes.Max>,
|
|
123
124
|
default: null
|
|
@@ -372,6 +373,15 @@ export default defineVxeComponent({
|
|
|
372
373
|
return XEUtils.toNumber(props.multiCharOverflow)
|
|
373
374
|
})
|
|
374
375
|
|
|
376
|
+
const computeCurrStyle = computed(() => {
|
|
377
|
+
const { width } = props
|
|
378
|
+
const stys: VxeComponentStyleType = {}
|
|
379
|
+
if (width) {
|
|
380
|
+
stys.width = toCssUnit(width)
|
|
381
|
+
}
|
|
382
|
+
return stys
|
|
383
|
+
})
|
|
384
|
+
|
|
375
385
|
const computePopupWrapperStyle = computed(() => {
|
|
376
386
|
const popupOpts = computePopupOpts.value
|
|
377
387
|
const { height, width } = popupOpts
|
|
@@ -1617,14 +1627,7 @@ export default defineVxeComponent({
|
|
|
1617
1627
|
const btnTransfer = computeBtnTransfer.value
|
|
1618
1628
|
const formReadonly = computeFormReadonly.value
|
|
1619
1629
|
const inpPlaceholder = computeInpPlaceholder.value
|
|
1620
|
-
const popupWrapperStyle = computePopupWrapperStyle.value
|
|
1621
|
-
const popupOpts = computePopupOpts.value
|
|
1622
|
-
const { appendTo } = popupOpts
|
|
1623
1630
|
const defaultSlot = slots.default
|
|
1624
|
-
const headerSlot = slots.header
|
|
1625
|
-
const footerSlot = slots.footer
|
|
1626
|
-
const prefixSlot = slots.prefix
|
|
1627
|
-
const ppClassName = popupOpts.className || props.popupClassName
|
|
1628
1631
|
if (formReadonly) {
|
|
1629
1632
|
return h('div', {
|
|
1630
1633
|
ref: refElem,
|
|
@@ -1640,7 +1643,15 @@ export default defineVxeComponent({
|
|
|
1640
1643
|
}, selectLabel)
|
|
1641
1644
|
])
|
|
1642
1645
|
}
|
|
1646
|
+
const currStyle = computeCurrStyle.value
|
|
1643
1647
|
const selectVals = computeSelectVals.value
|
|
1648
|
+
const popupWrapperStyle = computePopupWrapperStyle.value
|
|
1649
|
+
const popupOpts = computePopupOpts.value
|
|
1650
|
+
const headerSlot = slots.header
|
|
1651
|
+
const footerSlot = slots.footer
|
|
1652
|
+
const prefixSlot = slots.prefix
|
|
1653
|
+
const { appendTo } = popupOpts
|
|
1654
|
+
const ppClassName = popupOpts.className || props.popupClassName
|
|
1644
1655
|
return h('div', {
|
|
1645
1656
|
ref: refElem,
|
|
1646
1657
|
class: ['vxe-select', className ? (XEUtils.isFunction(className) ? className({ $select: $xeSelect }) : className) : '', {
|
|
@@ -1650,7 +1661,8 @@ export default defineVxeComponent({
|
|
|
1650
1661
|
'is--filter': filterable,
|
|
1651
1662
|
'is--loading': loading,
|
|
1652
1663
|
'is--active': isActivated
|
|
1653
|
-
}]
|
|
1664
|
+
}],
|
|
1665
|
+
style: currStyle
|
|
1654
1666
|
}, [
|
|
1655
1667
|
h('div', {
|
|
1656
1668
|
class: 'vxe-select-slots',
|
|
@@ -18,6 +18,7 @@ export default defineVxeComponent({
|
|
|
18
18
|
type: Boolean as PropType<VxeSpacePropTypes.Wrap>,
|
|
19
19
|
default: () => getConfig().space.wrap
|
|
20
20
|
},
|
|
21
|
+
width: [Number, String] as PropType<VxeSpacePropTypes.Width>,
|
|
21
22
|
gap: {
|
|
22
23
|
type: [Number, String, Array, Object] as PropType<VxeSpacePropTypes.Gap>,
|
|
23
24
|
default: () => getConfig().space.gap
|
|
@@ -81,8 +82,8 @@ export default defineVxeComponent({
|
|
|
81
82
|
refElem
|
|
82
83
|
}
|
|
83
84
|
|
|
84
|
-
const
|
|
85
|
-
const { align, gap } = props
|
|
85
|
+
const computeCurrStyle = computed(() => {
|
|
86
|
+
const { align, gap, width } = props
|
|
86
87
|
const stys: VxeComponentStyleType = {}
|
|
87
88
|
let rowGap: string | number = ''
|
|
88
89
|
let columGap: string | number = ''
|
|
@@ -98,6 +99,9 @@ export default defineVxeComponent({
|
|
|
98
99
|
columGap = gap.columGap || ''
|
|
99
100
|
}
|
|
100
101
|
}
|
|
102
|
+
if (width) {
|
|
103
|
+
stys.width = toCssUnit(width)
|
|
104
|
+
}
|
|
101
105
|
if (align) {
|
|
102
106
|
stys['align-items'] = align
|
|
103
107
|
}
|
|
@@ -180,7 +184,7 @@ export default defineVxeComponent({
|
|
|
180
184
|
|
|
181
185
|
const renderVN = () => {
|
|
182
186
|
const { vertical, wrap, className, fill, itemWidth, itemMinWidth, itemMaxWidth } = props
|
|
183
|
-
const
|
|
187
|
+
const currStyle = computeCurrStyle.value
|
|
184
188
|
const vSize = computeSize.value
|
|
185
189
|
return h('div', {
|
|
186
190
|
ref: refElem,
|
|
@@ -191,7 +195,7 @@ export default defineVxeComponent({
|
|
|
191
195
|
'is--fill': fill,
|
|
192
196
|
'is--width': itemWidth || itemMinWidth || itemMaxWidth
|
|
193
197
|
}],
|
|
194
|
-
style:
|
|
198
|
+
style: currStyle
|
|
195
199
|
}, renderItems())
|
|
196
200
|
}
|
|
197
201
|
|
package/packages/ui/index.ts
CHANGED
|
@@ -529,7 +529,8 @@ setIcon({
|
|
|
529
529
|
LOADING: iconPrefix + 'spinner roll vxe-loading--default-icon',
|
|
530
530
|
|
|
531
531
|
// button
|
|
532
|
-
|
|
532
|
+
BUTTON_DROPDOWN_OPEN: iconPrefix + 'arrow-down rotate180',
|
|
533
|
+
BUTTON_DROPDOWN_CLOSE: iconPrefix + 'arrow-down',
|
|
533
534
|
BUTTON_LOADING: iconPrefix + 'spinner roll',
|
|
534
535
|
BUTTON_TOOLTIP_ICON: iconPrefix + 'question-circle-fill',
|
|
535
536
|
|
|
@@ -291,13 +291,10 @@
|
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
.vxe-button--dropdown-arrow {
|
|
295
|
-
transform: rotate(180deg);
|
|
296
|
-
}
|
|
297
294
|
}
|
|
298
295
|
}
|
|
299
296
|
|
|
300
|
-
.vxe-button--dropdown-
|
|
297
|
+
.vxe-button--dropdown-icon {
|
|
301
298
|
display: inline-block;
|
|
302
299
|
font-size: 12px;
|
|
303
300
|
margin-left: 4px;
|
|
@@ -89,6 +89,9 @@ export namespace VxeButtonPropTypes {
|
|
|
89
89
|
export type SuffixTooltip = VxeTooltipDefines.TooltipHelperOption
|
|
90
90
|
|
|
91
91
|
export type ShowDropdownIcon = boolean
|
|
92
|
+
export type DropdownOpenIcon = string
|
|
93
|
+
export type DropdownCloseIcon = string
|
|
94
|
+
|
|
92
95
|
export type DestroyOnClose = boolean
|
|
93
96
|
export interface PopupConfig {
|
|
94
97
|
/**
|
|
@@ -187,6 +190,8 @@ export interface VxeButtonProps {
|
|
|
187
190
|
prefixTooltip?: VxeButtonPropTypes.PrefixTooltip
|
|
188
191
|
suffixTooltip?: VxeButtonPropTypes.SuffixTooltip
|
|
189
192
|
showDropdownIcon?: VxeButtonPropTypes.ShowDropdownIcon
|
|
193
|
+
dropdownOpenIcon?: VxeButtonPropTypes.DropdownOpenIcon
|
|
194
|
+
dropdownCloseIcon?: VxeButtonPropTypes.DropdownCloseIcon
|
|
190
195
|
/**
|
|
191
196
|
* 在下拉面板关闭时销毁内容
|
|
192
197
|
*/
|
|
@@ -28,6 +28,7 @@ export namespace VxeColorPickerPropTypes {
|
|
|
28
28
|
export type Type = 'rgb' | 'hex'
|
|
29
29
|
export type ClassName = string | ((params: { $colorPicker: VxeColorPickerConstructor }) => string)
|
|
30
30
|
export type PopupClassName = string | ((params: {$colorPicker: VxeColorPickerConstructor }) => string)
|
|
31
|
+
export type Width = string | number
|
|
31
32
|
export type Colors = string[] | {
|
|
32
33
|
label?: string
|
|
33
34
|
value: string
|
|
@@ -90,6 +91,7 @@ export interface VxeColorPickerProps {
|
|
|
90
91
|
type?: VxeColorPickerPropTypes.Type
|
|
91
92
|
className?: VxeColorPickerPropTypes.ClassName
|
|
92
93
|
popupClassName?: VxeColorPickerPropTypes.PopupClassName
|
|
94
|
+
width?: VxeColorPickerPropTypes.Width
|
|
93
95
|
colors?: VxeColorPickerPropTypes.Colors
|
|
94
96
|
showAlpha?: VxeColorPickerPropTypes.ShowAlpha
|
|
95
97
|
showEyeDropper?: VxeColorPickerPropTypes.ShowEyeDropper
|
|
@@ -31,6 +31,7 @@ export namespace VxeDatePickerPropTypes {
|
|
|
31
31
|
export type ModelValue = string | number | Date | null
|
|
32
32
|
export type ClassName = string
|
|
33
33
|
export type InputClassName = string
|
|
34
|
+
export type Width = string | number
|
|
34
35
|
export type Immediate = boolean
|
|
35
36
|
export type Name = string
|
|
36
37
|
export type Type = VxeDatePanelPropTypes.Type
|
|
@@ -150,6 +151,7 @@ export interface VxeDatePickerProps {
|
|
|
150
151
|
modelValue?: VxeDatePickerPropTypes.ModelValue
|
|
151
152
|
className?: VxeDatePickerPropTypes.ClassName
|
|
152
153
|
inputClassName?: VxeDatePickerPropTypes.InputClassName
|
|
154
|
+
width?: VxeDatePickerPropTypes.Width
|
|
153
155
|
immediate?: VxeDatePickerPropTypes.Immediate
|
|
154
156
|
name?: VxeDatePickerPropTypes.Name
|
|
155
157
|
type?: VxeDatePickerPropTypes.Type
|
|
@@ -33,6 +33,7 @@ export namespace VxeDateRangePickerPropTypes {
|
|
|
33
33
|
export type EndValue = string | number | Date | null
|
|
34
34
|
export type ClassName = string
|
|
35
35
|
export type InputClassName = string
|
|
36
|
+
export type Width = string | number
|
|
36
37
|
export type Immediate = boolean
|
|
37
38
|
export type Name = string
|
|
38
39
|
export type Type = VxeDatePanelPropTypes.Type
|
|
@@ -135,6 +136,7 @@ export interface VxeDateRangePickerProps {
|
|
|
135
136
|
endValue?: VxeDateRangePickerPropTypes.EndValue
|
|
136
137
|
className?: VxeDateRangePickerPropTypes.ClassName
|
|
137
138
|
inputClassName?: VxeDateRangePickerPropTypes.InputClassName
|
|
139
|
+
width?: VxeDateRangePickerPropTypes.Width
|
|
138
140
|
immediate?: VxeDateRangePickerPropTypes.Immediate
|
|
139
141
|
name?: VxeDateRangePickerPropTypes.Name
|
|
140
142
|
type?: VxeDateRangePickerPropTypes.Type
|
|
@@ -27,6 +27,7 @@ export namespace VxeIconPickerPropTypes {
|
|
|
27
27
|
export type ModelValue = string | null
|
|
28
28
|
export type Placeholder = string
|
|
29
29
|
export type Size = VxeComponentSizeType
|
|
30
|
+
export type Width = string | number
|
|
30
31
|
export type ClassName = string | ((params: { $iconPicker: VxeIconPickerConstructor }) => string)
|
|
31
32
|
/**
|
|
32
33
|
* 已废弃,请使用 PopupConfig.className
|
|
@@ -107,6 +108,7 @@ export type VxeIconPickerProps = {
|
|
|
107
108
|
* @deprecated
|
|
108
109
|
*/
|
|
109
110
|
popupClassName?: VxeIconPickerPropTypes.PopupClassName
|
|
111
|
+
width?: VxeIconPickerPropTypes.Width
|
|
110
112
|
readonly?: VxeIconPickerPropTypes.Readonly
|
|
111
113
|
disabled?: VxeIconPickerPropTypes.Disabled
|
|
112
114
|
icons?: VxeIconPickerPropTypes.Icons
|
|
@@ -28,6 +28,7 @@ export namespace VxeInputPropTypes {
|
|
|
28
28
|
export type ModelValue = string | number | Date | undefined | null
|
|
29
29
|
export type ClassName = string
|
|
30
30
|
export type InputClassName = string
|
|
31
|
+
export type Width = string | number
|
|
31
32
|
export type Immediate = boolean
|
|
32
33
|
export type Name = string
|
|
33
34
|
export type Title = string
|
|
@@ -99,6 +100,10 @@ export interface VxeInputProps {
|
|
|
99
100
|
modelValue?: VxeInputPropTypes.ModelValue
|
|
100
101
|
className?: VxeInputPropTypes.ClassName
|
|
101
102
|
inputClassName?: VxeInputPropTypes.InputClassName
|
|
103
|
+
/**
|
|
104
|
+
* 宽度
|
|
105
|
+
*/
|
|
106
|
+
width?: VxeInputPropTypes.Width
|
|
102
107
|
immediate?: VxeInputPropTypes.Immediate
|
|
103
108
|
name?: VxeInputPropTypes.Name
|
|
104
109
|
title?: VxeInputPropTypes.Title
|
|
@@ -28,6 +28,7 @@ export namespace VxeNumberInputPropTypes {
|
|
|
28
28
|
export type ModelValue = string | number | null
|
|
29
29
|
export type ClassName = string
|
|
30
30
|
export type InputClassName = string
|
|
31
|
+
export type Width = string | number
|
|
31
32
|
export type Immediate = boolean
|
|
32
33
|
export type Name = string
|
|
33
34
|
export type Type = 'number' | 'integer' | 'float' | 'amount'
|
|
@@ -129,6 +130,10 @@ export interface VxeNumberInputProps {
|
|
|
129
130
|
modelValue?: VxeNumberInputPropTypes.ModelValue
|
|
130
131
|
className?: VxeNumberInputPropTypes.ClassName
|
|
131
132
|
inputClassName?: VxeNumberInputPropTypes.InputClassName
|
|
133
|
+
/**
|
|
134
|
+
* 宽度
|
|
135
|
+
*/
|
|
136
|
+
width?: VxeNumberInputPropTypes.Width
|
|
132
137
|
immediate?: VxeNumberInputPropTypes.Immediate
|
|
133
138
|
name?: VxeNumberInputPropTypes.Name
|
|
134
139
|
type?: VxeNumberInputPropTypes.Type
|
|
@@ -28,6 +28,7 @@ export namespace VxePasswordInputPropTypes {
|
|
|
28
28
|
export type Immediate = boolean
|
|
29
29
|
export type ClassName = string
|
|
30
30
|
export type InputClassName = string
|
|
31
|
+
export type Width = string | number
|
|
31
32
|
export type Name = string
|
|
32
33
|
export type Clearable = boolean
|
|
33
34
|
export type Readonly = boolean
|
|
@@ -54,6 +55,10 @@ export interface VxePasswordInputProps {
|
|
|
54
55
|
immediate?: VxePasswordInputPropTypes.Immediate
|
|
55
56
|
className?: VxePasswordInputPropTypes.ClassName
|
|
56
57
|
inputClassName?: VxePasswordInputPropTypes.InputClassName
|
|
58
|
+
/**
|
|
59
|
+
* 宽度
|
|
60
|
+
*/
|
|
61
|
+
width?: VxePasswordInputPropTypes.Width
|
|
57
62
|
name?: VxePasswordInputPropTypes.Name
|
|
58
63
|
clearable?: VxePasswordInputPropTypes.Clearable
|
|
59
64
|
readonly?: VxePasswordInputPropTypes.Readonly
|
|
@@ -51,6 +51,7 @@ export namespace VxeSelectPropTypes {
|
|
|
51
51
|
export type ShowCheckedButton = boolean
|
|
52
52
|
export type ShowClearButton = boolean
|
|
53
53
|
export type ClassName = string | ((params: { $select: VxeSelectConstructor }) => string)
|
|
54
|
+
export type Width = string | number
|
|
54
55
|
/**
|
|
55
56
|
* 已废弃,请使用 PopupConfig.className
|
|
56
57
|
* @deprecated
|
|
@@ -223,6 +224,10 @@ export interface VxeSelectProps {
|
|
|
223
224
|
showCheckedButton?: VxeSelectPropTypes.ShowCheckedButton
|
|
224
225
|
showClearButton?: VxeSelectPropTypes.ShowClearButton
|
|
225
226
|
className?: VxeSelectPropTypes.ClassName
|
|
227
|
+
/**
|
|
228
|
+
* 宽度
|
|
229
|
+
*/
|
|
230
|
+
width?: VxeSelectPropTypes.Width
|
|
226
231
|
/**
|
|
227
232
|
* 已废弃,请使用 popup-config.className
|
|
228
233
|
* @deprecated
|
|
@@ -25,6 +25,7 @@ export interface VxeSpacePrivateRef extends SpacePrivateRef { }
|
|
|
25
25
|
export namespace VxeSpacePropTypes {
|
|
26
26
|
export type Size = VxeComponentSizeType
|
|
27
27
|
export type Wrap = boolean
|
|
28
|
+
export type Width = string | number
|
|
28
29
|
export type Gap = number | string | number[] | VxeSpaceDefines.GapObj
|
|
29
30
|
export type Vertical = boolean
|
|
30
31
|
export type ClassName = string
|
|
@@ -44,6 +45,10 @@ export interface VxeSpaceProps {
|
|
|
44
45
|
* 是否自动换行
|
|
45
46
|
*/
|
|
46
47
|
wrap?: VxeSpacePropTypes.Wrap
|
|
48
|
+
/**
|
|
49
|
+
* 宽度
|
|
50
|
+
*/
|
|
51
|
+
width?: VxeSpacePropTypes.Width
|
|
47
52
|
/**
|
|
48
53
|
* 自定义间距
|
|
49
54
|
*/
|
|
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
|