vxe-pc-ui 4.18.3 → 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 +115 -23
- package/dist/style.css +1 -1
- package/dist/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/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 +1 -1
- package/es/ui/src/log.js +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 +137 -27
- 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/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 +1 -1
- 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/package.json +1 -1
- 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/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/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/es/icon/{iconfont.1788745459463.ttf → iconfont.1788753701809.ttf} +0 -0
- /package/es/icon/{iconfont.1788745459463.woff → iconfont.1788753701809.woff} +0 -0
- /package/es/icon/{iconfont.1788745459463.woff2 → iconfont.1788753701809.woff2} +0 -0
- /package/es/{iconfont.1788745459463.ttf → iconfont.1788753701809.ttf} +0 -0
- /package/es/{iconfont.1788745459463.woff → iconfont.1788753701809.woff} +0 -0
- /package/es/{iconfont.1788745459463.woff2 → iconfont.1788753701809.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1788745459463.ttf → iconfont.1788753701809.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1788745459463.woff → iconfont.1788753701809.woff} +0 -0
- /package/lib/icon/style/{iconfont.1788745459463.woff2 → iconfont.1788753701809.woff2} +0 -0
- /package/lib/{iconfont.1788745459463.ttf → iconfont.1788753701809.ttf} +0 -0
- /package/lib/{iconfont.1788745459463.woff → iconfont.1788753701809.woff} +0 -0
- /package/lib/{iconfont.1788745459463.woff2 → iconfont.1788753701809.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -101,7 +101,7 @@ function checkDynamic() {
|
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
const { log } = VxeUI;
|
|
104
|
-
const uiVersion = `ui v${"4.18.
|
|
104
|
+
const uiVersion = `ui v${"4.18.4"}`;
|
|
105
105
|
function createComponentLog(name) {
|
|
106
106
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
107
107
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -115,7 +115,7 @@ function createComponentLog(name) {
|
|
|
115
115
|
const warnLog$i = log.create('warn', uiVersion);
|
|
116
116
|
log.create('error', uiVersion);
|
|
117
117
|
|
|
118
|
-
const version = "4.18.
|
|
118
|
+
const version = "4.18.4";
|
|
119
119
|
VxeUI.uiVersion = version;
|
|
120
120
|
VxeUI.dynamicApp = dynamicApp;
|
|
121
121
|
function config(options) {
|
|
@@ -9228,6 +9228,7 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
9228
9228
|
align: String,
|
|
9229
9229
|
form: String,
|
|
9230
9230
|
className: String,
|
|
9231
|
+
width: [String, Number],
|
|
9231
9232
|
inputClassName: {
|
|
9232
9233
|
type: String,
|
|
9233
9234
|
default: () => getConfig$3().input.inputClassName
|
|
@@ -9456,6 +9457,14 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
9456
9457
|
}
|
|
9457
9458
|
return maxLen;
|
|
9458
9459
|
});
|
|
9460
|
+
const computeCurrStyle = computed(() => {
|
|
9461
|
+
const { width } = props;
|
|
9462
|
+
const stys = {};
|
|
9463
|
+
if (width) {
|
|
9464
|
+
stys.width = toCssUnit(width);
|
|
9465
|
+
}
|
|
9466
|
+
return stys;
|
|
9467
|
+
});
|
|
9459
9468
|
const computeIsDateTimeType = computed(() => {
|
|
9460
9469
|
const { type } = props;
|
|
9461
9470
|
return type === 'time' || type === 'datetime';
|
|
@@ -11753,6 +11762,7 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
11753
11762
|
class: ['vxe-input--readonly', `type--${type}`, className]
|
|
11754
11763
|
}, inputValue);
|
|
11755
11764
|
}
|
|
11765
|
+
const currStyle = computeCurrStyle.value;
|
|
11756
11766
|
const isCountError = computeIsCountError.value;
|
|
11757
11767
|
const inputCount = computeInputCount.value;
|
|
11758
11768
|
const inputReadonly = computeInputReadonly.value;
|
|
@@ -11779,6 +11789,7 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
11779
11789
|
'is--active': isActivated,
|
|
11780
11790
|
'show--clear': isClearable && !isDisabled && !(inputValue === '' || XEUtils.eqNull(inputValue))
|
|
11781
11791
|
}],
|
|
11792
|
+
style: currStyle,
|
|
11782
11793
|
spellcheck: false
|
|
11783
11794
|
}, [
|
|
11784
11795
|
prefix || createCommentVNode(),
|
|
@@ -15339,6 +15350,7 @@ var VxeNumberInputComponent = defineVxeComponent({
|
|
|
15339
15350
|
type: String,
|
|
15340
15351
|
default: () => getConfig$3().numberInput.inputClassName
|
|
15341
15352
|
},
|
|
15353
|
+
width: [String, Number],
|
|
15342
15354
|
size: {
|
|
15343
15355
|
type: String,
|
|
15344
15356
|
default: () => getConfig$3().numberInput.size || getConfig$3().size
|
|
@@ -15606,6 +15618,14 @@ var VxeNumberInputComponent = defineVxeComponent({
|
|
|
15606
15618
|
const { inputClassName } = props;
|
|
15607
15619
|
return 'vxe-number-input--input' + (inputClassName ? (' ' + inputClassName) : '');
|
|
15608
15620
|
});
|
|
15621
|
+
const computeCurrStyle = computed(() => {
|
|
15622
|
+
const { width } = props;
|
|
15623
|
+
const stys = {};
|
|
15624
|
+
if (width) {
|
|
15625
|
+
stys.width = toCssUnit(width);
|
|
15626
|
+
}
|
|
15627
|
+
return stys;
|
|
15628
|
+
});
|
|
15609
15629
|
const refMaps = {
|
|
15610
15630
|
refElem,
|
|
15611
15631
|
refInput: refInputTarget
|
|
@@ -16347,6 +16367,7 @@ var VxeNumberInputComponent = defineVxeComponent({
|
|
|
16347
16367
|
class: ['vxe-number-input--readonly', `type--${type}`, className]
|
|
16348
16368
|
}, numLabel);
|
|
16349
16369
|
}
|
|
16370
|
+
const currStyle = computeCurrStyle.value;
|
|
16350
16371
|
const inputReadonly = computeInputReadonly.value;
|
|
16351
16372
|
const isClearable = computeIsClearable.value;
|
|
16352
16373
|
const isControls = isEnableConf(controlOpts) && (controls === false ? controls : showButton);
|
|
@@ -16362,6 +16383,7 @@ var VxeNumberInputComponent = defineVxeComponent({
|
|
|
16362
16383
|
'is--active': isActivated,
|
|
16363
16384
|
'show--clear': isClearable && !isDisabled && !(inputValue === '' || XEUtils.eqNull(inputValue))
|
|
16364
16385
|
}],
|
|
16386
|
+
style: currStyle,
|
|
16365
16387
|
spellcheck: false,
|
|
16366
16388
|
onMouseenter: mouseenterEvent,
|
|
16367
16389
|
onMouseleave: mouseleaveEvent
|
|
@@ -16456,6 +16478,7 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
16456
16478
|
type: String,
|
|
16457
16479
|
default: () => getConfig$3().colorPicker.type
|
|
16458
16480
|
},
|
|
16481
|
+
width: [Number, String],
|
|
16459
16482
|
size: {
|
|
16460
16483
|
type: String,
|
|
16461
16484
|
default: () => getConfig$3().colorPicker.size || getConfig$3().size
|
|
@@ -16607,6 +16630,14 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
16607
16630
|
}
|
|
16608
16631
|
return [];
|
|
16609
16632
|
});
|
|
16633
|
+
const computeCurrStyle = computed(() => {
|
|
16634
|
+
const { width } = props;
|
|
16635
|
+
const stys = {};
|
|
16636
|
+
if (width) {
|
|
16637
|
+
stys.width = toCssUnit(width);
|
|
16638
|
+
}
|
|
16639
|
+
return stys;
|
|
16640
|
+
});
|
|
16610
16641
|
const computePopupOpts = computed(() => {
|
|
16611
16642
|
return Object.assign({}, getConfig$3().colorPicker.popupConfig, props.popupConfig);
|
|
16612
16643
|
});
|
|
@@ -17364,8 +17395,6 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
17364
17395
|
const isDisabled = computeIsDisabled.value;
|
|
17365
17396
|
const btnTransfer = computeBtnTransfer.value;
|
|
17366
17397
|
const formReadonly = computeFormReadonly.value;
|
|
17367
|
-
const popupOpts = computePopupOpts.value;
|
|
17368
|
-
const { appendTo } = popupOpts;
|
|
17369
17398
|
if (formReadonly) {
|
|
17370
17399
|
return h('div', {
|
|
17371
17400
|
ref: refElem,
|
|
@@ -17385,6 +17414,9 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
17385
17414
|
})
|
|
17386
17415
|
]);
|
|
17387
17416
|
}
|
|
17417
|
+
const currStyle = computeCurrStyle.value;
|
|
17418
|
+
const popupOpts = computePopupOpts.value;
|
|
17419
|
+
const { appendTo } = popupOpts;
|
|
17388
17420
|
return h('div', {
|
|
17389
17421
|
ref: refElem,
|
|
17390
17422
|
class: ['vxe-color-picker', className ? (XEUtils.isFunction(className) ? className({ $colorPicker: $xeColorPicker }) : className) : '', {
|
|
@@ -17393,7 +17425,8 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
17393
17425
|
'is--visible': visiblePanel,
|
|
17394
17426
|
'is--disabled': isDisabled,
|
|
17395
17427
|
'is--active': isActivated
|
|
17396
|
-
}]
|
|
17428
|
+
}],
|
|
17429
|
+
style: currStyle
|
|
17397
17430
|
}, [
|
|
17398
17431
|
h('input', {
|
|
17399
17432
|
ref: refInputTarget,
|
|
@@ -20477,6 +20510,7 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
20477
20510
|
type: String,
|
|
20478
20511
|
default: 'date'
|
|
20479
20512
|
},
|
|
20513
|
+
width: [Number, String],
|
|
20480
20514
|
clearable: {
|
|
20481
20515
|
type: Boolean,
|
|
20482
20516
|
default: () => getConfig$3().datePicker.clearable
|
|
@@ -20694,6 +20728,14 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
20694
20728
|
}
|
|
20695
20729
|
return [];
|
|
20696
20730
|
});
|
|
20731
|
+
const computeCurrStyle = computed(() => {
|
|
20732
|
+
const { width } = props;
|
|
20733
|
+
const stys = {};
|
|
20734
|
+
if (width) {
|
|
20735
|
+
stys.width = toCssUnit(width);
|
|
20736
|
+
}
|
|
20737
|
+
return stys;
|
|
20738
|
+
});
|
|
20697
20739
|
const computeDateStartDate = computed(() => {
|
|
20698
20740
|
return props.startDate ? XEUtils.toStringDate(props.startDate) : null;
|
|
20699
20741
|
});
|
|
@@ -21952,6 +21994,7 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
21952
21994
|
class: ['vxe-date-picker--readonly', `type--${type}`, className]
|
|
21953
21995
|
}, panelLabel);
|
|
21954
21996
|
}
|
|
21997
|
+
const currStyle = computeCurrStyle.value;
|
|
21955
21998
|
const inputReadonly = computeInputReadonly.value;
|
|
21956
21999
|
const inpPlaceholder = computeInpPlaceholder.value;
|
|
21957
22000
|
const isClearable = computeIsClearable.value;
|
|
@@ -21968,6 +22011,7 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
21968
22011
|
'is--active': isActivated,
|
|
21969
22012
|
'show--clear': isClearable && !isDisabled && !(inputValue === '' || XEUtils.eqNull(inputValue))
|
|
21970
22013
|
}],
|
|
22014
|
+
style: currStyle,
|
|
21971
22015
|
spellcheck: false
|
|
21972
22016
|
}, [
|
|
21973
22017
|
prefix || renderEmptyElement($xeDatePicker),
|
|
@@ -22082,6 +22126,7 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
22082
22126
|
type: Boolean,
|
|
22083
22127
|
default: true
|
|
22084
22128
|
},
|
|
22129
|
+
width: [Number, String],
|
|
22085
22130
|
name: String,
|
|
22086
22131
|
type: {
|
|
22087
22132
|
type: String,
|
|
@@ -22297,6 +22342,14 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
22297
22342
|
}
|
|
22298
22343
|
return [];
|
|
22299
22344
|
});
|
|
22345
|
+
const computeCurrStyle = computed(() => {
|
|
22346
|
+
const { width } = props;
|
|
22347
|
+
const stys = {};
|
|
22348
|
+
if (width) {
|
|
22349
|
+
stys.width = toCssUnit(width);
|
|
22350
|
+
}
|
|
22351
|
+
return stys;
|
|
22352
|
+
});
|
|
22300
22353
|
const computeMVal = computed(() => {
|
|
22301
22354
|
const { startValue, endValue } = props;
|
|
22302
22355
|
return `${startValue || ''}${endValue || ''}`;
|
|
@@ -23461,6 +23514,7 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
23461
23514
|
class: ['vxe-date-range-picker--readonly', `type--${type}`, className]
|
|
23462
23515
|
}, inputLabel);
|
|
23463
23516
|
}
|
|
23517
|
+
const currStyle = computeCurrStyle.value;
|
|
23464
23518
|
const inpPlaceholder = computeInpPlaceholder.value;
|
|
23465
23519
|
const isClearable = computeIsClearable.value;
|
|
23466
23520
|
const prefix = renderPrefixIcon();
|
|
@@ -23476,6 +23530,7 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
23476
23530
|
'is--active': isActivated,
|
|
23477
23531
|
'show--clear': isClearable && !isDisabled && (selectStValue || selectEdValue)
|
|
23478
23532
|
}],
|
|
23533
|
+
style: currStyle,
|
|
23479
23534
|
spellcheck: false
|
|
23480
23535
|
}, [
|
|
23481
23536
|
prefix || renderEmptyElement($xeDateRangePicker),
|
|
@@ -26873,6 +26928,7 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26873
26928
|
* @deprecated
|
|
26874
26929
|
*/
|
|
26875
26930
|
popupClassName: [String, Function],
|
|
26931
|
+
width: [Number, String],
|
|
26876
26932
|
showIconTitle: {
|
|
26877
26933
|
type: Boolean,
|
|
26878
26934
|
default: () => getConfig$3().iconPicker.showIconTitle
|
|
@@ -26978,6 +27034,14 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26978
27034
|
}
|
|
26979
27035
|
return getI18n$2('vxe.base.pleaseSelect');
|
|
26980
27036
|
});
|
|
27037
|
+
const computeCurrStyle = computed(() => {
|
|
27038
|
+
const { width } = props;
|
|
27039
|
+
const stys = {};
|
|
27040
|
+
if (width) {
|
|
27041
|
+
stys.width = toCssUnit(width);
|
|
27042
|
+
}
|
|
27043
|
+
return stys;
|
|
27044
|
+
});
|
|
26981
27045
|
const computeWrapperStyle = computed(() => {
|
|
26982
27046
|
const popupOpts = computePopupOpts.value;
|
|
26983
27047
|
const { chunkSize, height, chunkWidth, maxHeight } = popupOpts;
|
|
@@ -27384,11 +27448,6 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27384
27448
|
const isDisabled = computeIsDisabled.value;
|
|
27385
27449
|
const btnTransfer = computeBtnTransfer.value;
|
|
27386
27450
|
const formReadonly = computeFormReadonly.value;
|
|
27387
|
-
const inpPlaceholder = computeInpPlaceholder.value;
|
|
27388
|
-
const wrapperStyle = computeWrapperStyle.value;
|
|
27389
|
-
const popupOpts = computePopupOpts.value;
|
|
27390
|
-
const { appendTo } = popupOpts;
|
|
27391
|
-
const ppClassName = popupOpts.className || props.popupClassName;
|
|
27392
27451
|
if (formReadonly) {
|
|
27393
27452
|
return h('div', {
|
|
27394
27453
|
ref: refElem,
|
|
@@ -27399,6 +27458,12 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27399
27458
|
})
|
|
27400
27459
|
]);
|
|
27401
27460
|
}
|
|
27461
|
+
const currStyle = computeCurrStyle.value;
|
|
27462
|
+
const inpPlaceholder = computeInpPlaceholder.value;
|
|
27463
|
+
const wrapperStyle = computeWrapperStyle.value;
|
|
27464
|
+
const popupOpts = computePopupOpts.value;
|
|
27465
|
+
const { appendTo } = popupOpts;
|
|
27466
|
+
const ppClassName = popupOpts.className || props.popupClassName;
|
|
27402
27467
|
return h('div', {
|
|
27403
27468
|
ref: refElem,
|
|
27404
27469
|
class: ['vxe-ico-picker', className ? (XEUtils.isFunction(className) ? className({ $iconPicker: $xeIconPicker }) : className) : '', {
|
|
@@ -27407,7 +27472,8 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27407
27472
|
'is--visible': visiblePanel,
|
|
27408
27473
|
'is--disabled': isDisabled,
|
|
27409
27474
|
'is--active': isActivated
|
|
27410
|
-
}]
|
|
27475
|
+
}],
|
|
27476
|
+
style: currStyle
|
|
27411
27477
|
}, [
|
|
27412
27478
|
h('div', {
|
|
27413
27479
|
class: 'vxe-ico-picker--inner',
|
|
@@ -31933,6 +31999,7 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
31933
31999
|
* @deprecated
|
|
31934
32000
|
*/
|
|
31935
32001
|
popupClassName: [String, Function],
|
|
32002
|
+
width: [String, Number],
|
|
31936
32003
|
max: {
|
|
31937
32004
|
type: [String, Number],
|
|
31938
32005
|
default: null
|
|
@@ -32158,6 +32225,14 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
32158
32225
|
const computeMultiMaxCharNum = computed(() => {
|
|
32159
32226
|
return XEUtils.toNumber(props.multiCharOverflow);
|
|
32160
32227
|
});
|
|
32228
|
+
const computeCurrStyle = computed(() => {
|
|
32229
|
+
const { width } = props;
|
|
32230
|
+
const stys = {};
|
|
32231
|
+
if (width) {
|
|
32232
|
+
stys.width = toCssUnit(width);
|
|
32233
|
+
}
|
|
32234
|
+
return stys;
|
|
32235
|
+
});
|
|
32161
32236
|
const computePopupWrapperStyle = computed(() => {
|
|
32162
32237
|
const popupOpts = computePopupOpts.value;
|
|
32163
32238
|
const { height, width } = popupOpts;
|
|
@@ -33339,14 +33414,7 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
33339
33414
|
const btnTransfer = computeBtnTransfer.value;
|
|
33340
33415
|
const formReadonly = computeFormReadonly.value;
|
|
33341
33416
|
const inpPlaceholder = computeInpPlaceholder.value;
|
|
33342
|
-
const popupWrapperStyle = computePopupWrapperStyle.value;
|
|
33343
|
-
const popupOpts = computePopupOpts.value;
|
|
33344
|
-
const { appendTo } = popupOpts;
|
|
33345
33417
|
const defaultSlot = slots.default;
|
|
33346
|
-
const headerSlot = slots.header;
|
|
33347
|
-
const footerSlot = slots.footer;
|
|
33348
|
-
const prefixSlot = slots.prefix;
|
|
33349
|
-
const ppClassName = popupOpts.className || props.popupClassName;
|
|
33350
33418
|
if (formReadonly) {
|
|
33351
33419
|
return h('div', {
|
|
33352
33420
|
ref: refElem,
|
|
@@ -33362,7 +33430,15 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
33362
33430
|
}, selectLabel)
|
|
33363
33431
|
]);
|
|
33364
33432
|
}
|
|
33433
|
+
const currStyle = computeCurrStyle.value;
|
|
33365
33434
|
const selectVals = computeSelectVals.value;
|
|
33435
|
+
const popupWrapperStyle = computePopupWrapperStyle.value;
|
|
33436
|
+
const popupOpts = computePopupOpts.value;
|
|
33437
|
+
const headerSlot = slots.header;
|
|
33438
|
+
const footerSlot = slots.footer;
|
|
33439
|
+
const prefixSlot = slots.prefix;
|
|
33440
|
+
const { appendTo } = popupOpts;
|
|
33441
|
+
const ppClassName = popupOpts.className || props.popupClassName;
|
|
33366
33442
|
return h('div', {
|
|
33367
33443
|
ref: refElem,
|
|
33368
33444
|
class: ['vxe-select', className ? (XEUtils.isFunction(className) ? className({ $select: $xeSelect }) : className) : '', {
|
|
@@ -33372,7 +33448,8 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
33372
33448
|
'is--filter': filterable,
|
|
33373
33449
|
'is--loading': loading,
|
|
33374
33450
|
'is--active': isActivated
|
|
33375
|
-
}]
|
|
33451
|
+
}],
|
|
33452
|
+
style: currStyle
|
|
33376
33453
|
}, [
|
|
33377
33454
|
h('div', {
|
|
33378
33455
|
class: 'vxe-select-slots',
|
|
@@ -34329,6 +34406,7 @@ var VxePasswordInputComponent = defineVxeComponent({
|
|
|
34329
34406
|
type: String,
|
|
34330
34407
|
default: () => getConfig$3().passwordInput.inputClassName
|
|
34331
34408
|
},
|
|
34409
|
+
width: [String, Number],
|
|
34332
34410
|
size: {
|
|
34333
34411
|
type: String,
|
|
34334
34412
|
default: () => getConfig$3().passwordInput.size || getConfig$3().size
|
|
@@ -34443,6 +34521,14 @@ var VxePasswordInputComponent = defineVxeComponent({
|
|
|
34443
34521
|
const { inputValue } = reactData;
|
|
34444
34522
|
return inputValue;
|
|
34445
34523
|
});
|
|
34524
|
+
const computeCurrStyle = computed(() => {
|
|
34525
|
+
const { width } = props;
|
|
34526
|
+
const stys = {};
|
|
34527
|
+
if (width) {
|
|
34528
|
+
stys.width = toCssUnit(width);
|
|
34529
|
+
}
|
|
34530
|
+
return stys;
|
|
34531
|
+
});
|
|
34446
34532
|
const dispatchEvent = (type, params, evnt) => {
|
|
34447
34533
|
emit(type, createEvent(evnt, { $passwordInput: $xePasswordInput }, params));
|
|
34448
34534
|
};
|
|
@@ -34640,6 +34726,7 @@ var VxePasswordInputComponent = defineVxeComponent({
|
|
|
34640
34726
|
class: ['vxe-password-input--readonly', className]
|
|
34641
34727
|
}, getText(inputValue));
|
|
34642
34728
|
}
|
|
34729
|
+
const currStyle = computeCurrStyle.value;
|
|
34643
34730
|
const vSize = computeSize.value;
|
|
34644
34731
|
const inputType = computeInputType.value;
|
|
34645
34732
|
const inpPlaceholder = computeInpPlaceholder.value;
|
|
@@ -34659,6 +34746,7 @@ var VxePasswordInputComponent = defineVxeComponent({
|
|
|
34659
34746
|
'is--active': isActivated,
|
|
34660
34747
|
'show--clear': isClearable && !isDisabled && !(inputValue === '' || XEUtils.eqNull(inputValue))
|
|
34661
34748
|
}],
|
|
34749
|
+
style: currStyle,
|
|
34662
34750
|
spellcheck: false
|
|
34663
34751
|
}, [
|
|
34664
34752
|
prefix || renderEmptyElement($xePasswordInput),
|
|
@@ -38601,6 +38689,7 @@ var VxeSpaceComponent = defineVxeComponent({
|
|
|
38601
38689
|
type: Boolean,
|
|
38602
38690
|
default: () => getConfig$3().space.wrap
|
|
38603
38691
|
},
|
|
38692
|
+
width: [Number, String],
|
|
38604
38693
|
gap: {
|
|
38605
38694
|
type: [Number, String, Array, Object],
|
|
38606
38695
|
default: () => getConfig$3().space.gap
|
|
@@ -38658,8 +38747,8 @@ var VxeSpaceComponent = defineVxeComponent({
|
|
|
38658
38747
|
const refMaps = {
|
|
38659
38748
|
refElem
|
|
38660
38749
|
};
|
|
38661
|
-
const
|
|
38662
|
-
const { align, gap } = props;
|
|
38750
|
+
const computeCurrStyle = computed(() => {
|
|
38751
|
+
const { align, gap, width } = props;
|
|
38663
38752
|
const stys = {};
|
|
38664
38753
|
let rowGap = '';
|
|
38665
38754
|
let columGap = '';
|
|
@@ -38677,6 +38766,9 @@ var VxeSpaceComponent = defineVxeComponent({
|
|
|
38677
38766
|
columGap = gap.columGap || '';
|
|
38678
38767
|
}
|
|
38679
38768
|
}
|
|
38769
|
+
if (width) {
|
|
38770
|
+
stys.width = toCssUnit(width);
|
|
38771
|
+
}
|
|
38680
38772
|
if (align) {
|
|
38681
38773
|
stys['align-items'] = align;
|
|
38682
38774
|
}
|
|
@@ -38744,7 +38836,7 @@ var VxeSpaceComponent = defineVxeComponent({
|
|
|
38744
38836
|
};
|
|
38745
38837
|
const renderVN = () => {
|
|
38746
38838
|
const { vertical, wrap, className, fill, itemWidth, itemMinWidth, itemMaxWidth } = props;
|
|
38747
|
-
const
|
|
38839
|
+
const currStyle = computeCurrStyle.value;
|
|
38748
38840
|
const vSize = computeSize.value;
|
|
38749
38841
|
return h('div', {
|
|
38750
38842
|
ref: refElem,
|
|
@@ -38755,7 +38847,7 @@ var VxeSpaceComponent = defineVxeComponent({
|
|
|
38755
38847
|
'is--fill': fill,
|
|
38756
38848
|
'is--width': itemWidth || itemMinWidth || itemMaxWidth
|
|
38757
38849
|
}],
|
|
38758
|
-
style:
|
|
38850
|
+
style: currStyle
|
|
38759
38851
|
}, renderItems());
|
|
38760
38852
|
};
|
|
38761
38853
|
$xeSpace.renderVN = renderVN;
|