vxe-pc-ui 3.18.2 → 3.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/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 -1
- package/es/date-picker/src/date-picker.js +14 -1
- package/es/date-range-picker/src/date-range-picker.js +14 -1
- package/es/icon/style.css +1 -1
- package/es/icon-picker/src/icon-picker.js +18 -5
- package/es/input/src/input.js +14 -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 +14 -0
- package/es/select/src/select.js +20 -7
- 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 +16 -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 +14 -1
- 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 +18 -5
- package/lib/icon-picker/src/icon-picker.min.js +1 -1
- package/lib/index.umd.js +150 -23
- 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 +3 -1
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/number-input/src/number-input.js +11 -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 +20 -7
- 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 -2
- package/packages/date-picker/src/date-picker.ts +16 -2
- package/packages/date-range-picker/src/date-range-picker.ts +16 -2
- package/packages/icon-picker/src/icon-picker.ts +19 -5
- package/packages/input/src/input.ts +15 -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 +16 -1
- package/packages/select/src/select.ts +21 -7
- 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.1788693899721.ttf → iconfont.1788753692225.ttf} +0 -0
- /package/es/icon/{iconfont.1788693899721.woff → iconfont.1788753692225.woff} +0 -0
- /package/es/icon/{iconfont.1788693899721.woff2 → iconfont.1788753692225.woff2} +0 -0
- /package/es/{iconfont.1788693899721.ttf → iconfont.1788753692225.ttf} +0 -0
- /package/es/{iconfont.1788693899721.woff → iconfont.1788753692225.woff} +0 -0
- /package/es/{iconfont.1788693899721.woff2 → iconfont.1788753692225.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1788693899721.ttf → iconfont.1788753692225.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1788693899721.woff → iconfont.1788753692225.woff} +0 -0
- /package/lib/icon/style/{iconfont.1788693899721.woff2 → iconfont.1788753692225.woff2} +0 -0
- /package/lib/{iconfont.1788693899721.ttf → iconfont.1788753692225.ttf} +0 -0
- /package/lib/{iconfont.1788693899721.woff → iconfont.1788753692225.woff} +0 -0
- /package/lib/{iconfont.1788693899721.woff2 → iconfont.1788753692225.woff2} +0 -0
|
@@ -4,8 +4,9 @@ import XEUtils from 'xe-utils'
|
|
|
4
4
|
import { getConfig, getIcon, getI18n, createEvent, globalMixins, 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 { VxePasswordInputEmits, VxeComponentSizeType, PasswordInputReactData, ValueOf, VxePasswordInputPropTypes, VxeFormConstructor, VxeFormPrivateMethods, VxeFormDefines } from '../../../types'
|
|
9
|
+
import type { VxePasswordInputEmits, VxeComponentSizeType, PasswordInputReactData, ValueOf, VxePasswordInputPropTypes, VxeFormConstructor, VxeFormPrivateMethods, VxeFormDefines, VxeComponentStyleType } from '../../../types'
|
|
9
10
|
|
|
10
11
|
export default /* define-vxe-component start */ defineVxeComponent({
|
|
11
12
|
name: 'VxePasswordInput',
|
|
@@ -48,6 +49,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
48
49
|
type: String as PropType<VxePasswordInputPropTypes.InputClassName>,
|
|
49
50
|
default: () => getConfig().passwordInput.inputClassName
|
|
50
51
|
},
|
|
52
|
+
width: [String, Number] as PropType<VxePasswordInputPropTypes.Width>,
|
|
51
53
|
size: {
|
|
52
54
|
type: String as PropType<VxePasswordInputPropTypes.Size>,
|
|
53
55
|
default: () => getConfig().passwordInput.size || getConfig().size
|
|
@@ -171,6 +173,17 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
171
173
|
const { editable } = props
|
|
172
174
|
const formReadonly = $xePasswordInput.computeFormReadonly
|
|
173
175
|
return formReadonly || !editable
|
|
176
|
+
},
|
|
177
|
+
computeCurrStyle () {
|
|
178
|
+
const $xePasswordInput = this
|
|
179
|
+
const props = $xePasswordInput
|
|
180
|
+
|
|
181
|
+
const { width } = props
|
|
182
|
+
const stys: VxeComponentStyleType = {}
|
|
183
|
+
if (width) {
|
|
184
|
+
stys.width = toCssUnit(width)
|
|
185
|
+
}
|
|
186
|
+
return stys
|
|
174
187
|
}
|
|
175
188
|
},
|
|
176
189
|
methods: {
|
|
@@ -451,6 +464,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
451
464
|
class: ['vxe-password-input--readonly', className]
|
|
452
465
|
}, getText(inputValue))
|
|
453
466
|
}
|
|
467
|
+
const currStyle = $xePasswordInput.computeCurrStyle
|
|
454
468
|
const vSize = $xePasswordInput.computeSize
|
|
455
469
|
const inputType = $xePasswordInput.computeInputType
|
|
456
470
|
const inpPlaceholder = $xePasswordInput.computeInpPlaceholder
|
|
@@ -470,6 +484,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
470
484
|
'is--active': isActivated,
|
|
471
485
|
'show--clear': isClearable && !isDisabled && !(inputValue === '' || XEUtils.eqNull(inputValue))
|
|
472
486
|
}],
|
|
487
|
+
style: currStyle,
|
|
473
488
|
attrs: {
|
|
474
489
|
spellcheck: false
|
|
475
490
|
}
|
|
@@ -125,6 +125,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
125
125
|
* @deprecated
|
|
126
126
|
*/
|
|
127
127
|
popupClassName: [String, Function] as PropType<VxeSelectPropTypes.PopupClassName>,
|
|
128
|
+
width: [String, Number] as PropType<VxeSelectPropTypes.Width>,
|
|
128
129
|
max: {
|
|
129
130
|
type: [String, Number] as PropType<VxeSelectPropTypes.Max>,
|
|
130
131
|
default: null
|
|
@@ -424,6 +425,17 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
424
425
|
|
|
425
426
|
return XEUtils.toNumber(props.multiCharOverflow)
|
|
426
427
|
},
|
|
428
|
+
computeCurrStyle () {
|
|
429
|
+
const $xeSelect = this
|
|
430
|
+
const props = $xeSelect
|
|
431
|
+
|
|
432
|
+
const { width } = props
|
|
433
|
+
const stys: VxeComponentStyleType = {}
|
|
434
|
+
if (width) {
|
|
435
|
+
stys.width = toCssUnit(width)
|
|
436
|
+
}
|
|
437
|
+
return stys
|
|
438
|
+
},
|
|
427
439
|
computePopupWrapperStyle () {
|
|
428
440
|
const $xeSelect = this
|
|
429
441
|
|
|
@@ -1904,13 +1916,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1904
1916
|
const btnTransfer = $xeSelect.computeBtnTransfer
|
|
1905
1917
|
const formReadonly = $xeSelect.computeFormReadonly
|
|
1906
1918
|
const inpPlaceholder = $xeSelect.computeInpPlaceholder
|
|
1907
|
-
const popupOpts = $xeSelect.computePopupOpts
|
|
1908
|
-
const popupWrapperStyle = $xeSelect.computePopupWrapperStyle
|
|
1909
1919
|
const defaultSlot = slots.default
|
|
1910
|
-
const headerSlot = slots.header
|
|
1911
|
-
const footerSlot = slots.footer
|
|
1912
|
-
const prefixSlot = slots.prefix
|
|
1913
|
-
const ppClassName = popupOpts.className || props.popupClassName
|
|
1914
1920
|
if (formReadonly) {
|
|
1915
1921
|
return h('div', {
|
|
1916
1922
|
ref: 'refElem',
|
|
@@ -1928,7 +1934,14 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1928
1934
|
}, selectLabel)
|
|
1929
1935
|
])
|
|
1930
1936
|
}
|
|
1937
|
+
const currStyle = $xeSelect.computeCurrStyle
|
|
1931
1938
|
const selectVals = $xeSelect.computeSelectVals
|
|
1939
|
+
const popupOpts = $xeSelect.computePopupOpts
|
|
1940
|
+
const popupWrapperStyle = $xeSelect.computePopupWrapperStyle
|
|
1941
|
+
const headerSlot = slots.header
|
|
1942
|
+
const footerSlot = slots.footer
|
|
1943
|
+
const prefixSlot = slots.prefix
|
|
1944
|
+
const ppClassName = popupOpts.className || props.popupClassName
|
|
1932
1945
|
return h('div', {
|
|
1933
1946
|
ref: 'refElem',
|
|
1934
1947
|
class: ['vxe-select', className ? (XEUtils.isFunction(className) ? className({ $select: $xeSelect }) : className) : '', {
|
|
@@ -1938,7 +1951,8 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1938
1951
|
'is--filter': filterable,
|
|
1939
1952
|
'is--loading': loading,
|
|
1940
1953
|
'is--active': isActivated
|
|
1941
|
-
}]
|
|
1954
|
+
}],
|
|
1955
|
+
style: currStyle
|
|
1942
1956
|
}, [
|
|
1943
1957
|
h('div', {
|
|
1944
1958
|
class: 'vxe-select-slots',
|
|
@@ -22,6 +22,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
22
22
|
type: Boolean as PropType<VxeSpacePropTypes.Wrap>,
|
|
23
23
|
default: () => getConfig().space.wrap
|
|
24
24
|
},
|
|
25
|
+
width: [Number, String] as PropType<VxeSpacePropTypes.Width>,
|
|
25
26
|
gap: {
|
|
26
27
|
type: [Number, String, Array, Object] as PropType<VxeSpacePropTypes.Gap>,
|
|
27
28
|
default: () => getConfig().space.gap
|
|
@@ -82,11 +83,11 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
82
83
|
computePermissionInfo(): VxeComponentPermissionInfo
|
|
83
84
|
computeSize(): VxeComponentSizeType
|
|
84
85
|
}),
|
|
85
|
-
|
|
86
|
+
computeCurrStyle () {
|
|
86
87
|
const $xeSpace = this
|
|
87
88
|
const props = $xeSpace
|
|
88
89
|
|
|
89
|
-
const { align, gap } = props
|
|
90
|
+
const { align, gap, width } = props
|
|
90
91
|
const stys: VxeComponentStyleType = {}
|
|
91
92
|
let rowGap: string | number = ''
|
|
92
93
|
let columGap: string | number = ''
|
|
@@ -102,6 +103,9 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
102
103
|
columGap = gap.columGap || ''
|
|
103
104
|
}
|
|
104
105
|
}
|
|
106
|
+
if (width) {
|
|
107
|
+
stys.width = toCssUnit(width)
|
|
108
|
+
}
|
|
105
109
|
if (align) {
|
|
106
110
|
stys['align-items'] = align
|
|
107
111
|
}
|
|
@@ -174,7 +178,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
174
178
|
const props = $xeSpace
|
|
175
179
|
|
|
176
180
|
const { vertical, wrap, className, fill, itemWidth, itemMinWidth, itemMaxWidth } = props
|
|
177
|
-
const
|
|
181
|
+
const currStyle = $xeSpace.computeCurrStyle
|
|
178
182
|
const vSize = $xeSpace.computeSize
|
|
179
183
|
return h('div', {
|
|
180
184
|
ref: 'refElem',
|
|
@@ -185,7 +189,7 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
185
189
|
'is--fill': fill,
|
|
186
190
|
'is--width': itemWidth || itemMinWidth || itemMaxWidth
|
|
187
191
|
}],
|
|
188
|
-
style:
|
|
192
|
+
style: currStyle
|
|
189
193
|
}, $xeSpace.renderItems(h))
|
|
190
194
|
}
|
|
191
195
|
},
|
package/packages/ui/index.ts
CHANGED
|
@@ -528,7 +528,8 @@ setIcon({
|
|
|
528
528
|
LOADING: iconPrefix + 'spinner roll vxe-loading--default-icon',
|
|
529
529
|
|
|
530
530
|
// button
|
|
531
|
-
|
|
531
|
+
BUTTON_DROPDOWN_OPEN: iconPrefix + 'arrow-down rotate180',
|
|
532
|
+
BUTTON_DROPDOWN_CLOSE: iconPrefix + 'arrow-down',
|
|
532
533
|
BUTTON_LOADING: iconPrefix + 'spinner roll',
|
|
533
534
|
BUTTON_TOOLTIP_ICON: iconPrefix + 'question-circle-fill',
|
|
534
535
|
|
|
@@ -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;
|
|
@@ -81,6 +81,9 @@ export namespace VxeButtonPropTypes {
|
|
|
81
81
|
export type SuffixTooltip = VxeTooltipDefines.TooltipHelperOption
|
|
82
82
|
|
|
83
83
|
export type ShowDropdownIcon = boolean
|
|
84
|
+
export type DropdownOpenIcon = string
|
|
85
|
+
export type DropdownCloseIcon = string
|
|
86
|
+
|
|
84
87
|
export type DestroyOnClose = boolean
|
|
85
88
|
export interface PopupConfig {
|
|
86
89
|
/**
|
|
@@ -179,6 +182,8 @@ export interface VxeButtonProps {
|
|
|
179
182
|
prefixTooltip?: VxeButtonPropTypes.PrefixTooltip
|
|
180
183
|
suffixTooltip?: VxeButtonPropTypes.SuffixTooltip
|
|
181
184
|
showDropdownIcon?: VxeButtonPropTypes.ShowDropdownIcon
|
|
185
|
+
dropdownOpenIcon?: VxeButtonPropTypes.DropdownOpenIcon
|
|
186
|
+
dropdownCloseIcon?: VxeButtonPropTypes.DropdownCloseIcon
|
|
182
187
|
/**
|
|
183
188
|
* 在下拉面板关闭时销毁内容
|
|
184
189
|
*/
|
|
@@ -21,6 +21,7 @@ export namespace VxeColorPickerPropTypes {
|
|
|
21
21
|
export type Type = 'rgb' | 'hex'
|
|
22
22
|
export type ClassName = string | ((params: { $colorPicker: VxeColorPickerConstructor }) => string)
|
|
23
23
|
export type PopupClassName = string | ((params: {$colorPicker: VxeColorPickerConstructor }) => string)
|
|
24
|
+
export type Width = string | number
|
|
24
25
|
export type Colors = string[] | {
|
|
25
26
|
label?: string
|
|
26
27
|
value: string
|
|
@@ -83,6 +84,7 @@ export interface VxeColorPickerProps {
|
|
|
83
84
|
type?: VxeColorPickerPropTypes.Type
|
|
84
85
|
className?: VxeColorPickerPropTypes.ClassName
|
|
85
86
|
popupClassName?: VxeColorPickerPropTypes.PopupClassName
|
|
87
|
+
width?: VxeColorPickerPropTypes.Width
|
|
86
88
|
colors?: VxeColorPickerPropTypes.Colors
|
|
87
89
|
showAlpha?: VxeColorPickerPropTypes.ShowAlpha
|
|
88
90
|
showEyeDropper?: VxeColorPickerPropTypes.ShowEyeDropper
|
|
@@ -23,6 +23,7 @@ export namespace VxeDatePickerPropTypes {
|
|
|
23
23
|
export type ModelValue = string | number | Date | null
|
|
24
24
|
export type ClassName = string
|
|
25
25
|
export type InputClassName = string
|
|
26
|
+
export type Width = string | number
|
|
26
27
|
export type Immediate = boolean
|
|
27
28
|
export type Name = string
|
|
28
29
|
export type Type = VxeDatePanelPropTypes.Type
|
|
@@ -142,6 +143,7 @@ export interface VxeDatePickerProps {
|
|
|
142
143
|
value?: VxeDatePickerPropTypes.ModelValue
|
|
143
144
|
className?: VxeDatePickerPropTypes.ClassName
|
|
144
145
|
inputClassName?: VxeDatePickerPropTypes.InputClassName
|
|
146
|
+
width?: VxeDatePickerPropTypes.Width
|
|
145
147
|
immediate?: VxeDatePickerPropTypes.Immediate
|
|
146
148
|
name?: VxeDatePickerPropTypes.Name
|
|
147
149
|
type?: VxeDatePickerPropTypes.Type
|
|
@@ -25,6 +25,7 @@ export namespace VxeDateRangePickerPropTypes {
|
|
|
25
25
|
export type EndValue = string | number | Date | null
|
|
26
26
|
export type ClassName = string
|
|
27
27
|
export type InputClassName = string
|
|
28
|
+
export type Width = string | number
|
|
28
29
|
export type Immediate = boolean
|
|
29
30
|
export type Name = string
|
|
30
31
|
export type Type = VxeDatePanelPropTypes.Type
|
|
@@ -127,6 +128,7 @@ export interface VxeDateRangePickerProps {
|
|
|
127
128
|
endValue?: VxeDateRangePickerPropTypes.EndValue
|
|
128
129
|
className?: VxeDateRangePickerPropTypes.ClassName
|
|
129
130
|
inputClassName?: VxeDateRangePickerPropTypes.InputClassName
|
|
131
|
+
width?: VxeDateRangePickerPropTypes.Width
|
|
130
132
|
immediate?: VxeDateRangePickerPropTypes.Immediate
|
|
131
133
|
name?: VxeDateRangePickerPropTypes.Name
|
|
132
134
|
type?: VxeDateRangePickerPropTypes.Type
|
|
@@ -20,6 +20,7 @@ export namespace VxeIconPickerPropTypes {
|
|
|
20
20
|
export type ModelValue = string | null
|
|
21
21
|
export type Placeholder = string
|
|
22
22
|
export type Size = VxeComponentSizeType
|
|
23
|
+
export type Width = string | number
|
|
23
24
|
export type ClassName = string | ((params: { $iconPicker: VxeIconPickerConstructor }) => string)
|
|
24
25
|
/**
|
|
25
26
|
* 已废弃,请使用 PopupConfig.className
|
|
@@ -100,6 +101,7 @@ export interface VxeIconPickerProps {
|
|
|
100
101
|
* @deprecated
|
|
101
102
|
*/
|
|
102
103
|
popupClassName?: VxeIconPickerPropTypes.PopupClassName
|
|
104
|
+
width?: VxeIconPickerPropTypes.Width
|
|
103
105
|
readonly?: VxeIconPickerPropTypes.Readonly
|
|
104
106
|
disabled?: VxeIconPickerPropTypes.Disabled
|
|
105
107
|
icons?: VxeIconPickerPropTypes.Icons
|
|
@@ -20,6 +20,7 @@ export namespace VxeInputPropTypes {
|
|
|
20
20
|
export type ModelValue = string | number | Date | undefined | null
|
|
21
21
|
export type ClassName = string
|
|
22
22
|
export type InputClassName = string
|
|
23
|
+
export type Width = string | number
|
|
23
24
|
export type Immediate = boolean
|
|
24
25
|
export type Name = string
|
|
25
26
|
export type Title = string
|
|
@@ -91,6 +92,10 @@ export interface VxeInputProps {
|
|
|
91
92
|
value?: VxeInputPropTypes.ModelValue
|
|
92
93
|
className?: VxeInputPropTypes.ClassName
|
|
93
94
|
inputClassName?: VxeInputPropTypes.InputClassName
|
|
95
|
+
/**
|
|
96
|
+
* 宽度
|
|
97
|
+
*/
|
|
98
|
+
width?: VxeInputPropTypes.Width
|
|
94
99
|
immediate?: VxeInputPropTypes.Immediate
|
|
95
100
|
name?: VxeInputPropTypes.Name
|
|
96
101
|
title?: VxeInputPropTypes.Title
|
|
@@ -21,6 +21,7 @@ export namespace VxeNumberInputPropTypes {
|
|
|
21
21
|
export type ModelValue = string | number | null
|
|
22
22
|
export type ClassName = string
|
|
23
23
|
export type InputClassName = string
|
|
24
|
+
export type Width = string | number
|
|
24
25
|
export type Immediate = boolean
|
|
25
26
|
export type Name = string
|
|
26
27
|
export type Type = 'number' | 'integer' | 'float' | 'amount'
|
|
@@ -122,6 +123,10 @@ export interface VxeNumberInputProps {
|
|
|
122
123
|
value?: VxeNumberInputPropTypes.ModelValue
|
|
123
124
|
className?: VxeNumberInputPropTypes.ClassName
|
|
124
125
|
inputClassName?: VxeNumberInputPropTypes.InputClassName
|
|
126
|
+
/**
|
|
127
|
+
* 宽度
|
|
128
|
+
*/
|
|
129
|
+
width?: VxeNumberInputPropTypes.Width
|
|
125
130
|
immediate?: VxeNumberInputPropTypes.Immediate
|
|
126
131
|
name?: VxeNumberInputPropTypes.Name
|
|
127
132
|
type?: VxeNumberInputPropTypes.Type
|
|
@@ -21,6 +21,7 @@ export namespace VxePasswordInputPropTypes {
|
|
|
21
21
|
export type Immediate = boolean
|
|
22
22
|
export type InputClassName = string
|
|
23
23
|
export type ClassName = string
|
|
24
|
+
export type Width = string | number
|
|
24
25
|
export type Name = string
|
|
25
26
|
export type Clearable = boolean
|
|
26
27
|
export type Readonly = boolean
|
|
@@ -47,6 +48,10 @@ export interface VxePasswordInputProps {
|
|
|
47
48
|
immediate?: VxePasswordInputPropTypes.Immediate
|
|
48
49
|
className?: VxePasswordInputPropTypes.ClassName
|
|
49
50
|
inputClassName?: VxePasswordInputPropTypes.InputClassName
|
|
51
|
+
/**
|
|
52
|
+
* 宽度
|
|
53
|
+
*/
|
|
54
|
+
width?: VxePasswordInputPropTypes.Width
|
|
50
55
|
name?: VxePasswordInputPropTypes.Name
|
|
51
56
|
clearable?: VxePasswordInputPropTypes.Clearable
|
|
52
57
|
readonly?: VxePasswordInputPropTypes.Readonly
|
|
@@ -44,6 +44,7 @@ export namespace VxeSelectPropTypes {
|
|
|
44
44
|
export type ShowCheckedButton = boolean
|
|
45
45
|
export type ShowClearButton = boolean
|
|
46
46
|
export type ClassName = string | ((params: { $select: VxeSelectConstructor }) => string)
|
|
47
|
+
export type Width = string | number
|
|
47
48
|
/**
|
|
48
49
|
* 已废弃,请使用 PopupConfig.className
|
|
49
50
|
* @deprecated
|
|
@@ -216,6 +217,10 @@ export interface VxeSelectProps {
|
|
|
216
217
|
showCheckedButton?: VxeSelectPropTypes.ShowCheckedButton
|
|
217
218
|
showClearButton?: VxeSelectPropTypes.ShowClearButton
|
|
218
219
|
className?: VxeSelectPropTypes.ClassName
|
|
220
|
+
/**
|
|
221
|
+
* 宽度
|
|
222
|
+
*/
|
|
223
|
+
width?: VxeSelectPropTypes.Width
|
|
219
224
|
/**
|
|
220
225
|
* 已废弃,请使用 popup-config.className
|
|
221
226
|
* @deprecated
|
|
@@ -18,6 +18,7 @@ export interface VxeSpacePrivateRef extends SpacePrivateRef { }
|
|
|
18
18
|
export namespace VxeSpacePropTypes {
|
|
19
19
|
export type Size = VxeComponentSizeType
|
|
20
20
|
export type Wrap = boolean
|
|
21
|
+
export type Width = string | number
|
|
21
22
|
export type Gap = number | string | number[] | VxeSpaceDefines.GapObj
|
|
22
23
|
export type Vertical = boolean
|
|
23
24
|
export type ClassName = string
|
|
@@ -37,6 +38,10 @@ export interface VxeSpaceProps {
|
|
|
37
38
|
* 是否自动换行
|
|
38
39
|
*/
|
|
39
40
|
wrap?: VxeSpacePropTypes.Wrap
|
|
41
|
+
/**
|
|
42
|
+
* 宽度
|
|
43
|
+
*/
|
|
44
|
+
width?: VxeSpacePropTypes.Width
|
|
40
45
|
/**
|
|
41
46
|
* 自定义间距
|
|
42
47
|
*/
|
|
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
|