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
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) {
|
|
@@ -628,7 +628,8 @@ setIcon({
|
|
|
628
628
|
// loading
|
|
629
629
|
LOADING: iconPrefix + 'spinner roll vxe-loading--default-icon',
|
|
630
630
|
// button
|
|
631
|
-
|
|
631
|
+
BUTTON_DROPDOWN_OPEN: iconPrefix + 'arrow-down rotate180',
|
|
632
|
+
BUTTON_DROPDOWN_CLOSE: iconPrefix + 'arrow-down',
|
|
632
633
|
BUTTON_LOADING: iconPrefix + 'spinner roll',
|
|
633
634
|
BUTTON_TOOLTIP_ICON: iconPrefix + 'question-circle-fill',
|
|
634
635
|
// menu
|
|
@@ -3362,6 +3363,14 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3362
3363
|
type: Boolean,
|
|
3363
3364
|
default: () => getConfig$3().button.showDropdownIcon
|
|
3364
3365
|
},
|
|
3366
|
+
dropdownCloseIcon: {
|
|
3367
|
+
type: String,
|
|
3368
|
+
default: () => getConfig$3().button.dropdownCloseIcon
|
|
3369
|
+
},
|
|
3370
|
+
dropdownOpenIcon: {
|
|
3371
|
+
type: String,
|
|
3372
|
+
default: () => getConfig$3().button.dropdownOpenIcon
|
|
3373
|
+
},
|
|
3365
3374
|
/**
|
|
3366
3375
|
* 在下拉面板关闭时销毁内容
|
|
3367
3376
|
*/
|
|
@@ -3819,7 +3828,7 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3819
3828
|
};
|
|
3820
3829
|
Object.assign($xeButton, buttonMethods);
|
|
3821
3830
|
const renderVN = () => {
|
|
3822
|
-
const { className, trigger, title, routerLink, type, destroyOnClose, name, loading, shadow, showDropdownIcon } = props;
|
|
3831
|
+
const { className, trigger, title, routerLink, type, destroyOnClose, name, loading, shadow, dropdownOpenIcon, dropdownCloseIcon, showDropdownIcon } = props;
|
|
3823
3832
|
const { initialized, isAniVisible, visiblePanel } = reactData;
|
|
3824
3833
|
const isFormBtn = computeIsFormBtn.value;
|
|
3825
3834
|
const btnMode = computeBtnMode.value;
|
|
@@ -3873,7 +3882,7 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3873
3882
|
return renderContent().concat(showDropdownIcon
|
|
3874
3883
|
? [
|
|
3875
3884
|
h('i', {
|
|
3876
|
-
class: `vxe-button--dropdown-
|
|
3885
|
+
class: `vxe-button--dropdown-icon ${visiblePanel ? (dropdownOpenIcon || getIcon$2().BUTTON_DROPDOWN_OPEN) : (dropdownCloseIcon || getIcon$2().BUTTON_DROPDOWN_CLOSE)}`
|
|
3877
3886
|
})
|
|
3878
3887
|
]
|
|
3879
3888
|
: []);
|
|
@@ -3891,7 +3900,7 @@ const VxeButtonComponent = defineVxeComponent({
|
|
|
3891
3900
|
name, type: isFormBtn ? type : 'button', disabled: btnDisabled || loading, onClick: clickTargetEvent }, btnOns), renderContent().concat(showDropdownIcon
|
|
3892
3901
|
? [
|
|
3893
3902
|
h('i', {
|
|
3894
|
-
class: `vxe-button--dropdown-
|
|
3903
|
+
class: `vxe-button--dropdown-icon ${visiblePanel ? (dropdownOpenIcon || getIcon$2().BUTTON_DROPDOWN_OPEN) : (dropdownCloseIcon || getIcon$2().BUTTON_DROPDOWN_CLOSE)}`
|
|
3895
3904
|
})
|
|
3896
3905
|
]
|
|
3897
3906
|
: [])),
|
|
@@ -9219,6 +9228,7 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
9219
9228
|
align: String,
|
|
9220
9229
|
form: String,
|
|
9221
9230
|
className: String,
|
|
9231
|
+
width: [String, Number],
|
|
9222
9232
|
inputClassName: {
|
|
9223
9233
|
type: String,
|
|
9224
9234
|
default: () => getConfig$3().input.inputClassName
|
|
@@ -9447,6 +9457,14 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
9447
9457
|
}
|
|
9448
9458
|
return maxLen;
|
|
9449
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
|
+
});
|
|
9450
9468
|
const computeIsDateTimeType = computed(() => {
|
|
9451
9469
|
const { type } = props;
|
|
9452
9470
|
return type === 'time' || type === 'datetime';
|
|
@@ -11744,6 +11762,7 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
11744
11762
|
class: ['vxe-input--readonly', `type--${type}`, className]
|
|
11745
11763
|
}, inputValue);
|
|
11746
11764
|
}
|
|
11765
|
+
const currStyle = computeCurrStyle.value;
|
|
11747
11766
|
const isCountError = computeIsCountError.value;
|
|
11748
11767
|
const inputCount = computeInputCount.value;
|
|
11749
11768
|
const inputReadonly = computeInputReadonly.value;
|
|
@@ -11770,6 +11789,7 @@ var VxeInputComponent = defineVxeComponent({
|
|
|
11770
11789
|
'is--active': isActivated,
|
|
11771
11790
|
'show--clear': isClearable && !isDisabled && !(inputValue === '' || XEUtils.eqNull(inputValue))
|
|
11772
11791
|
}],
|
|
11792
|
+
style: currStyle,
|
|
11773
11793
|
spellcheck: false
|
|
11774
11794
|
}, [
|
|
11775
11795
|
prefix || createCommentVNode(),
|
|
@@ -15330,6 +15350,7 @@ var VxeNumberInputComponent = defineVxeComponent({
|
|
|
15330
15350
|
type: String,
|
|
15331
15351
|
default: () => getConfig$3().numberInput.inputClassName
|
|
15332
15352
|
},
|
|
15353
|
+
width: [String, Number],
|
|
15333
15354
|
size: {
|
|
15334
15355
|
type: String,
|
|
15335
15356
|
default: () => getConfig$3().numberInput.size || getConfig$3().size
|
|
@@ -15597,6 +15618,14 @@ var VxeNumberInputComponent = defineVxeComponent({
|
|
|
15597
15618
|
const { inputClassName } = props;
|
|
15598
15619
|
return 'vxe-number-input--input' + (inputClassName ? (' ' + inputClassName) : '');
|
|
15599
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
|
+
});
|
|
15600
15629
|
const refMaps = {
|
|
15601
15630
|
refElem,
|
|
15602
15631
|
refInput: refInputTarget
|
|
@@ -16338,6 +16367,7 @@ var VxeNumberInputComponent = defineVxeComponent({
|
|
|
16338
16367
|
class: ['vxe-number-input--readonly', `type--${type}`, className]
|
|
16339
16368
|
}, numLabel);
|
|
16340
16369
|
}
|
|
16370
|
+
const currStyle = computeCurrStyle.value;
|
|
16341
16371
|
const inputReadonly = computeInputReadonly.value;
|
|
16342
16372
|
const isClearable = computeIsClearable.value;
|
|
16343
16373
|
const isControls = isEnableConf(controlOpts) && (controls === false ? controls : showButton);
|
|
@@ -16353,6 +16383,7 @@ var VxeNumberInputComponent = defineVxeComponent({
|
|
|
16353
16383
|
'is--active': isActivated,
|
|
16354
16384
|
'show--clear': isClearable && !isDisabled && !(inputValue === '' || XEUtils.eqNull(inputValue))
|
|
16355
16385
|
}],
|
|
16386
|
+
style: currStyle,
|
|
16356
16387
|
spellcheck: false,
|
|
16357
16388
|
onMouseenter: mouseenterEvent,
|
|
16358
16389
|
onMouseleave: mouseleaveEvent
|
|
@@ -16447,6 +16478,7 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
16447
16478
|
type: String,
|
|
16448
16479
|
default: () => getConfig$3().colorPicker.type
|
|
16449
16480
|
},
|
|
16481
|
+
width: [Number, String],
|
|
16450
16482
|
size: {
|
|
16451
16483
|
type: String,
|
|
16452
16484
|
default: () => getConfig$3().colorPicker.size || getConfig$3().size
|
|
@@ -16598,6 +16630,14 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
16598
16630
|
}
|
|
16599
16631
|
return [];
|
|
16600
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
|
+
});
|
|
16601
16641
|
const computePopupOpts = computed(() => {
|
|
16602
16642
|
return Object.assign({}, getConfig$3().colorPicker.popupConfig, props.popupConfig);
|
|
16603
16643
|
});
|
|
@@ -17355,8 +17395,6 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
17355
17395
|
const isDisabled = computeIsDisabled.value;
|
|
17356
17396
|
const btnTransfer = computeBtnTransfer.value;
|
|
17357
17397
|
const formReadonly = computeFormReadonly.value;
|
|
17358
|
-
const popupOpts = computePopupOpts.value;
|
|
17359
|
-
const { appendTo } = popupOpts;
|
|
17360
17398
|
if (formReadonly) {
|
|
17361
17399
|
return h('div', {
|
|
17362
17400
|
ref: refElem,
|
|
@@ -17376,6 +17414,9 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
17376
17414
|
})
|
|
17377
17415
|
]);
|
|
17378
17416
|
}
|
|
17417
|
+
const currStyle = computeCurrStyle.value;
|
|
17418
|
+
const popupOpts = computePopupOpts.value;
|
|
17419
|
+
const { appendTo } = popupOpts;
|
|
17379
17420
|
return h('div', {
|
|
17380
17421
|
ref: refElem,
|
|
17381
17422
|
class: ['vxe-color-picker', className ? (XEUtils.isFunction(className) ? className({ $colorPicker: $xeColorPicker }) : className) : '', {
|
|
@@ -17384,7 +17425,8 @@ var VxeColorPickerComponent = defineVxeComponent({
|
|
|
17384
17425
|
'is--visible': visiblePanel,
|
|
17385
17426
|
'is--disabled': isDisabled,
|
|
17386
17427
|
'is--active': isActivated
|
|
17387
|
-
}]
|
|
17428
|
+
}],
|
|
17429
|
+
style: currStyle
|
|
17388
17430
|
}, [
|
|
17389
17431
|
h('input', {
|
|
17390
17432
|
ref: refInputTarget,
|
|
@@ -20468,6 +20510,7 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
20468
20510
|
type: String,
|
|
20469
20511
|
default: 'date'
|
|
20470
20512
|
},
|
|
20513
|
+
width: [Number, String],
|
|
20471
20514
|
clearable: {
|
|
20472
20515
|
type: Boolean,
|
|
20473
20516
|
default: () => getConfig$3().datePicker.clearable
|
|
@@ -20685,6 +20728,14 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
20685
20728
|
}
|
|
20686
20729
|
return [];
|
|
20687
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
|
+
});
|
|
20688
20739
|
const computeDateStartDate = computed(() => {
|
|
20689
20740
|
return props.startDate ? XEUtils.toStringDate(props.startDate) : null;
|
|
20690
20741
|
});
|
|
@@ -21943,6 +21994,7 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
21943
21994
|
class: ['vxe-date-picker--readonly', `type--${type}`, className]
|
|
21944
21995
|
}, panelLabel);
|
|
21945
21996
|
}
|
|
21997
|
+
const currStyle = computeCurrStyle.value;
|
|
21946
21998
|
const inputReadonly = computeInputReadonly.value;
|
|
21947
21999
|
const inpPlaceholder = computeInpPlaceholder.value;
|
|
21948
22000
|
const isClearable = computeIsClearable.value;
|
|
@@ -21959,6 +22011,7 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
21959
22011
|
'is--active': isActivated,
|
|
21960
22012
|
'show--clear': isClearable && !isDisabled && !(inputValue === '' || XEUtils.eqNull(inputValue))
|
|
21961
22013
|
}],
|
|
22014
|
+
style: currStyle,
|
|
21962
22015
|
spellcheck: false
|
|
21963
22016
|
}, [
|
|
21964
22017
|
prefix || renderEmptyElement($xeDatePicker),
|
|
@@ -22073,6 +22126,7 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
22073
22126
|
type: Boolean,
|
|
22074
22127
|
default: true
|
|
22075
22128
|
},
|
|
22129
|
+
width: [Number, String],
|
|
22076
22130
|
name: String,
|
|
22077
22131
|
type: {
|
|
22078
22132
|
type: String,
|
|
@@ -22288,6 +22342,14 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
22288
22342
|
}
|
|
22289
22343
|
return [];
|
|
22290
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
|
+
});
|
|
22291
22353
|
const computeMVal = computed(() => {
|
|
22292
22354
|
const { startValue, endValue } = props;
|
|
22293
22355
|
return `${startValue || ''}${endValue || ''}`;
|
|
@@ -23452,6 +23514,7 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
23452
23514
|
class: ['vxe-date-range-picker--readonly', `type--${type}`, className]
|
|
23453
23515
|
}, inputLabel);
|
|
23454
23516
|
}
|
|
23517
|
+
const currStyle = computeCurrStyle.value;
|
|
23455
23518
|
const inpPlaceholder = computeInpPlaceholder.value;
|
|
23456
23519
|
const isClearable = computeIsClearable.value;
|
|
23457
23520
|
const prefix = renderPrefixIcon();
|
|
@@ -23467,6 +23530,7 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
23467
23530
|
'is--active': isActivated,
|
|
23468
23531
|
'show--clear': isClearable && !isDisabled && (selectStValue || selectEdValue)
|
|
23469
23532
|
}],
|
|
23533
|
+
style: currStyle,
|
|
23470
23534
|
spellcheck: false
|
|
23471
23535
|
}, [
|
|
23472
23536
|
prefix || renderEmptyElement($xeDateRangePicker),
|
|
@@ -26864,6 +26928,7 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26864
26928
|
* @deprecated
|
|
26865
26929
|
*/
|
|
26866
26930
|
popupClassName: [String, Function],
|
|
26931
|
+
width: [Number, String],
|
|
26867
26932
|
showIconTitle: {
|
|
26868
26933
|
type: Boolean,
|
|
26869
26934
|
default: () => getConfig$3().iconPicker.showIconTitle
|
|
@@ -26969,6 +27034,14 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
26969
27034
|
}
|
|
26970
27035
|
return getI18n$2('vxe.base.pleaseSelect');
|
|
26971
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
|
+
});
|
|
26972
27045
|
const computeWrapperStyle = computed(() => {
|
|
26973
27046
|
const popupOpts = computePopupOpts.value;
|
|
26974
27047
|
const { chunkSize, height, chunkWidth, maxHeight } = popupOpts;
|
|
@@ -27375,11 +27448,6 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27375
27448
|
const isDisabled = computeIsDisabled.value;
|
|
27376
27449
|
const btnTransfer = computeBtnTransfer.value;
|
|
27377
27450
|
const formReadonly = computeFormReadonly.value;
|
|
27378
|
-
const inpPlaceholder = computeInpPlaceholder.value;
|
|
27379
|
-
const wrapperStyle = computeWrapperStyle.value;
|
|
27380
|
-
const popupOpts = computePopupOpts.value;
|
|
27381
|
-
const { appendTo } = popupOpts;
|
|
27382
|
-
const ppClassName = popupOpts.className || props.popupClassName;
|
|
27383
27451
|
if (formReadonly) {
|
|
27384
27452
|
return h('div', {
|
|
27385
27453
|
ref: refElem,
|
|
@@ -27390,6 +27458,12 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27390
27458
|
})
|
|
27391
27459
|
]);
|
|
27392
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;
|
|
27393
27467
|
return h('div', {
|
|
27394
27468
|
ref: refElem,
|
|
27395
27469
|
class: ['vxe-ico-picker', className ? (XEUtils.isFunction(className) ? className({ $iconPicker: $xeIconPicker }) : className) : '', {
|
|
@@ -27398,7 +27472,8 @@ var VxeIconPickerComponent = defineVxeComponent({
|
|
|
27398
27472
|
'is--visible': visiblePanel,
|
|
27399
27473
|
'is--disabled': isDisabled,
|
|
27400
27474
|
'is--active': isActivated
|
|
27401
|
-
}]
|
|
27475
|
+
}],
|
|
27476
|
+
style: currStyle
|
|
27402
27477
|
}, [
|
|
27403
27478
|
h('div', {
|
|
27404
27479
|
class: 'vxe-ico-picker--inner',
|
|
@@ -30725,7 +30800,7 @@ var VxeModalComponent = defineVxeComponent({
|
|
|
30725
30800
|
const handleGlobalKeydownEvent = (evnt) => {
|
|
30726
30801
|
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
30727
30802
|
if (isEsc) {
|
|
30728
|
-
const lastModal = XEUtils.max(allActiveModals, (item) => item.reactData.modalZindex);
|
|
30803
|
+
const lastModal = XEUtils.max(allActiveModals.filter(item => item.reactData.zoomStatus !== 'minimize'), (item) => item.reactData.modalZindex);
|
|
30729
30804
|
// 多个时,只关掉最上层的窗口
|
|
30730
30805
|
if (lastModal) {
|
|
30731
30806
|
setTimeout(() => {
|
|
@@ -31924,6 +31999,7 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
31924
31999
|
* @deprecated
|
|
31925
32000
|
*/
|
|
31926
32001
|
popupClassName: [String, Function],
|
|
32002
|
+
width: [String, Number],
|
|
31927
32003
|
max: {
|
|
31928
32004
|
type: [String, Number],
|
|
31929
32005
|
default: null
|
|
@@ -32149,6 +32225,14 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
32149
32225
|
const computeMultiMaxCharNum = computed(() => {
|
|
32150
32226
|
return XEUtils.toNumber(props.multiCharOverflow);
|
|
32151
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
|
+
});
|
|
32152
32236
|
const computePopupWrapperStyle = computed(() => {
|
|
32153
32237
|
const popupOpts = computePopupOpts.value;
|
|
32154
32238
|
const { height, width } = popupOpts;
|
|
@@ -33330,14 +33414,7 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
33330
33414
|
const btnTransfer = computeBtnTransfer.value;
|
|
33331
33415
|
const formReadonly = computeFormReadonly.value;
|
|
33332
33416
|
const inpPlaceholder = computeInpPlaceholder.value;
|
|
33333
|
-
const popupWrapperStyle = computePopupWrapperStyle.value;
|
|
33334
|
-
const popupOpts = computePopupOpts.value;
|
|
33335
|
-
const { appendTo } = popupOpts;
|
|
33336
33417
|
const defaultSlot = slots.default;
|
|
33337
|
-
const headerSlot = slots.header;
|
|
33338
|
-
const footerSlot = slots.footer;
|
|
33339
|
-
const prefixSlot = slots.prefix;
|
|
33340
|
-
const ppClassName = popupOpts.className || props.popupClassName;
|
|
33341
33418
|
if (formReadonly) {
|
|
33342
33419
|
return h('div', {
|
|
33343
33420
|
ref: refElem,
|
|
@@ -33353,7 +33430,15 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
33353
33430
|
}, selectLabel)
|
|
33354
33431
|
]);
|
|
33355
33432
|
}
|
|
33433
|
+
const currStyle = computeCurrStyle.value;
|
|
33356
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;
|
|
33357
33442
|
return h('div', {
|
|
33358
33443
|
ref: refElem,
|
|
33359
33444
|
class: ['vxe-select', className ? (XEUtils.isFunction(className) ? className({ $select: $xeSelect }) : className) : '', {
|
|
@@ -33363,7 +33448,8 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
33363
33448
|
'is--filter': filterable,
|
|
33364
33449
|
'is--loading': loading,
|
|
33365
33450
|
'is--active': isActivated
|
|
33366
|
-
}]
|
|
33451
|
+
}],
|
|
33452
|
+
style: currStyle
|
|
33367
33453
|
}, [
|
|
33368
33454
|
h('div', {
|
|
33369
33455
|
class: 'vxe-select-slots',
|
|
@@ -34320,6 +34406,7 @@ var VxePasswordInputComponent = defineVxeComponent({
|
|
|
34320
34406
|
type: String,
|
|
34321
34407
|
default: () => getConfig$3().passwordInput.inputClassName
|
|
34322
34408
|
},
|
|
34409
|
+
width: [String, Number],
|
|
34323
34410
|
size: {
|
|
34324
34411
|
type: String,
|
|
34325
34412
|
default: () => getConfig$3().passwordInput.size || getConfig$3().size
|
|
@@ -34434,6 +34521,14 @@ var VxePasswordInputComponent = defineVxeComponent({
|
|
|
34434
34521
|
const { inputValue } = reactData;
|
|
34435
34522
|
return inputValue;
|
|
34436
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
|
+
});
|
|
34437
34532
|
const dispatchEvent = (type, params, evnt) => {
|
|
34438
34533
|
emit(type, createEvent(evnt, { $passwordInput: $xePasswordInput }, params));
|
|
34439
34534
|
};
|
|
@@ -34631,6 +34726,7 @@ var VxePasswordInputComponent = defineVxeComponent({
|
|
|
34631
34726
|
class: ['vxe-password-input--readonly', className]
|
|
34632
34727
|
}, getText(inputValue));
|
|
34633
34728
|
}
|
|
34729
|
+
const currStyle = computeCurrStyle.value;
|
|
34634
34730
|
const vSize = computeSize.value;
|
|
34635
34731
|
const inputType = computeInputType.value;
|
|
34636
34732
|
const inpPlaceholder = computeInpPlaceholder.value;
|
|
@@ -34650,6 +34746,7 @@ var VxePasswordInputComponent = defineVxeComponent({
|
|
|
34650
34746
|
'is--active': isActivated,
|
|
34651
34747
|
'show--clear': isClearable && !isDisabled && !(inputValue === '' || XEUtils.eqNull(inputValue))
|
|
34652
34748
|
}],
|
|
34749
|
+
style: currStyle,
|
|
34653
34750
|
spellcheck: false
|
|
34654
34751
|
}, [
|
|
34655
34752
|
prefix || renderEmptyElement($xePasswordInput),
|
|
@@ -38592,6 +38689,7 @@ var VxeSpaceComponent = defineVxeComponent({
|
|
|
38592
38689
|
type: Boolean,
|
|
38593
38690
|
default: () => getConfig$3().space.wrap
|
|
38594
38691
|
},
|
|
38692
|
+
width: [Number, String],
|
|
38595
38693
|
gap: {
|
|
38596
38694
|
type: [Number, String, Array, Object],
|
|
38597
38695
|
default: () => getConfig$3().space.gap
|
|
@@ -38649,8 +38747,8 @@ var VxeSpaceComponent = defineVxeComponent({
|
|
|
38649
38747
|
const refMaps = {
|
|
38650
38748
|
refElem
|
|
38651
38749
|
};
|
|
38652
|
-
const
|
|
38653
|
-
const { align, gap } = props;
|
|
38750
|
+
const computeCurrStyle = computed(() => {
|
|
38751
|
+
const { align, gap, width } = props;
|
|
38654
38752
|
const stys = {};
|
|
38655
38753
|
let rowGap = '';
|
|
38656
38754
|
let columGap = '';
|
|
@@ -38668,6 +38766,9 @@ var VxeSpaceComponent = defineVxeComponent({
|
|
|
38668
38766
|
columGap = gap.columGap || '';
|
|
38669
38767
|
}
|
|
38670
38768
|
}
|
|
38769
|
+
if (width) {
|
|
38770
|
+
stys.width = toCssUnit(width);
|
|
38771
|
+
}
|
|
38671
38772
|
if (align) {
|
|
38672
38773
|
stys['align-items'] = align;
|
|
38673
38774
|
}
|
|
@@ -38735,7 +38836,7 @@ var VxeSpaceComponent = defineVxeComponent({
|
|
|
38735
38836
|
};
|
|
38736
38837
|
const renderVN = () => {
|
|
38737
38838
|
const { vertical, wrap, className, fill, itemWidth, itemMinWidth, itemMaxWidth } = props;
|
|
38738
|
-
const
|
|
38839
|
+
const currStyle = computeCurrStyle.value;
|
|
38739
38840
|
const vSize = computeSize.value;
|
|
38740
38841
|
return h('div', {
|
|
38741
38842
|
ref: refElem,
|
|
@@ -38746,7 +38847,7 @@ var VxeSpaceComponent = defineVxeComponent({
|
|
|
38746
38847
|
'is--fill': fill,
|
|
38747
38848
|
'is--width': itemWidth || itemMinWidth || itemMaxWidth
|
|
38748
38849
|
}],
|
|
38749
|
-
style:
|
|
38850
|
+
style: currStyle
|
|
38750
38851
|
}, renderItems());
|
|
38751
38852
|
};
|
|
38752
38853
|
$xeSpace.renderVN = renderVN;
|