vxe-pc-ui 4.5.28 → 4.5.30
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/icon/style.css +1 -1
- package/es/input/src/input.js +27 -14
- package/es/input/style.css +27 -2
- package/es/input/style.min.css +1 -1
- package/es/number-input/src/number-input.js +5 -3
- package/es/number-input/src/util.js +1 -1
- package/es/split/src/split.js +14 -7
- 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/es/vxe-input/style.css +27 -2
- package/es/vxe-input/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +54 -27
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +30 -15
- package/lib/input/src/input.min.js +1 -1
- package/lib/input/style/style.css +27 -2
- package/lib/input/style/style.min.css +1 -1
- package/lib/number-input/src/number-input.js +5 -2
- package/lib/number-input/src/number-input.min.js +1 -1
- package/lib/number-input/src/util.js +1 -1
- package/lib/number-input/src/util.min.js +1 -1
- package/lib/split/src/split.js +16 -7
- package/lib/split/src/split.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/lib/vxe-input/style/style.css +27 -2
- package/lib/vxe-input/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/input/src/input.ts +26 -14
- package/packages/number-input/src/number-input.ts +5 -3
- package/packages/number-input/src/util.ts +1 -1
- package/packages/split/src/split.ts +15 -7
- package/styles/components/input.scss +23 -2
- package/types/components/alert.d.ts +1 -1
- package/types/components/anchor-link.d.ts +1 -1
- package/types/components/anchor.d.ts +1 -1
- package/types/components/avatar.d.ts +1 -1
- package/types/components/badge.d.ts +1 -1
- package/types/components/breadcrumb-item.d.ts +1 -1
- package/types/components/breadcrumb.d.ts +1 -1
- package/types/components/button-group.d.ts +1 -1
- package/types/components/button.d.ts +1 -1
- package/types/components/calendar.d.ts +1 -1
- package/types/components/card.d.ts +1 -1
- package/types/components/carousel-item.d.ts +1 -1
- package/types/components/carousel.d.ts +1 -1
- package/types/components/checkbox-group.d.ts +1 -1
- package/types/components/checkbox.d.ts +1 -1
- package/types/components/col.d.ts +1 -1
- package/types/components/colgroup.d.ts +1 -1
- package/types/components/collapse-pane.d.ts +1 -1
- package/types/components/collapse.d.ts +1 -1
- package/types/components/color-picker.d.ts +1 -1
- package/types/components/column.d.ts +1 -1
- package/types/components/countdown.d.ts +1 -1
- package/types/components/date-picker.d.ts +1 -1
- package/types/components/drawer.d.ts +1 -1
- package/types/components/empty.d.ts +1 -1
- package/types/components/flow-design.d.ts +1 -1
- package/types/components/flow-view.d.ts +1 -1
- package/types/components/form-design.d.ts +1 -1
- package/types/components/form-gather.d.ts +1 -1
- package/types/components/form-group.d.ts +1 -1
- package/types/components/form-item.d.ts +1 -1
- package/types/components/form-view.d.ts +1 -1
- package/types/components/form.d.ts +1 -1
- package/types/components/grid.d.ts +1 -1
- package/types/components/icon-picker.d.ts +1 -1
- package/types/components/icon.d.ts +1 -1
- package/types/components/image-group.d.ts +1 -1
- package/types/components/image-preview.d.ts +1 -1
- package/types/components/image.d.ts +1 -1
- package/types/components/input.d.ts +1 -1
- package/types/components/layout-aside.d.ts +1 -1
- package/types/components/layout-body.d.ts +1 -1
- package/types/components/layout-container.d.ts +1 -1
- package/types/components/layout-footer.d.ts +1 -1
- package/types/components/layout-header.d.ts +1 -1
- package/types/components/link.d.ts +1 -1
- package/types/components/list-design.d.ts +1 -1
- package/types/components/list-view.d.ts +1 -1
- package/types/components/list.d.ts +1 -1
- package/types/components/loading.d.ts +1 -1
- package/types/components/menu.d.ts +1 -1
- package/types/components/modal.d.ts +1 -1
- package/types/components/notice-bar.d.ts +2 -2
- package/types/components/number-input.d.ts +1 -1
- package/types/components/optgroup.d.ts +1 -1
- package/types/components/option.d.ts +1 -1
- package/types/components/pager.d.ts +1 -1
- package/types/components/password-input.d.ts +1 -1
- package/types/components/print-page-break.d.ts +1 -1
- package/types/components/print.d.ts +1 -1
- package/types/components/pulldown.d.ts +1 -1
- package/types/components/radio-button.d.ts +1 -1
- package/types/components/radio-group.d.ts +1 -1
- package/types/components/radio.d.ts +1 -1
- package/types/components/rate.d.ts +1 -1
- package/types/components/result.d.ts +1 -1
- package/types/components/row.d.ts +1 -1
- package/types/components/select.d.ts +1 -1
- package/types/components/slider.d.ts +1 -1
- package/types/components/split-pane.d.ts +1 -1
- package/types/components/split.d.ts +1 -1
- package/types/components/steps.d.ts +1 -1
- package/types/components/switch.d.ts +1 -1
- package/types/components/tab-pane.d.ts +1 -1
- package/types/components/table-select.d.ts +1 -1
- package/types/components/table.d.ts +1 -1
- package/types/components/tabs.d.ts +1 -1
- package/types/components/tag.d.ts +1 -1
- package/types/components/text-ellipsis.d.ts +1 -1
- package/types/components/text.d.ts +1 -1
- package/types/components/textarea.d.ts +1 -1
- package/types/components/tip.d.ts +1 -1
- package/types/components/toolbar.d.ts +1 -1
- package/types/components/tooltip.d.ts +1 -1
- package/types/components/tree-select.d.ts +1 -1
- package/types/components/tree.d.ts +1 -1
- package/types/components/upload.d.ts +1 -1
- package/types/components/watermark.d.ts +1 -1
- /package/es/icon/{iconfont.1745373065084.ttf → iconfont.1745573419941.ttf} +0 -0
- /package/es/icon/{iconfont.1745373065084.woff → iconfont.1745573419941.woff} +0 -0
- /package/es/icon/{iconfont.1745373065084.woff2 → iconfont.1745573419941.woff2} +0 -0
- /package/es/{iconfont.1745373065084.ttf → iconfont.1745573419941.ttf} +0 -0
- /package/es/{iconfont.1745373065084.woff → iconfont.1745573419941.woff} +0 -0
- /package/es/{iconfont.1745373065084.woff2 → iconfont.1745573419941.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1745373065084.ttf → iconfont.1745573419941.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1745373065084.woff → iconfont.1745573419941.woff} +0 -0
- /package/lib/icon/style/{iconfont.1745373065084.woff2 → iconfont.1745573419941.woff2} +0 -0
- /package/lib/{iconfont.1745373065084.ttf → iconfont.1745573419941.ttf} +0 -0
- /package/lib/{iconfont.1745373065084.woff → iconfont.1745573419941.woff} +0 -0
- /package/lib/{iconfont.1745373065084.woff2 → iconfont.1745573419941.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -4187,14 +4187,14 @@ function checkDynamic() {
|
|
|
4187
4187
|
}
|
|
4188
4188
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
4189
4189
|
|
|
4190
|
-
const log_version = `ui v${"4.5.
|
|
4190
|
+
const log_version = `ui v${"4.5.30"}`;
|
|
4191
4191
|
const warnLog = log.create('warn', log_version);
|
|
4192
4192
|
const errLog = log.create('error', log_version);
|
|
4193
4193
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
4194
4194
|
|
|
4195
4195
|
|
|
4196
4196
|
|
|
4197
|
-
const ui_version = "4.5.
|
|
4197
|
+
const ui_version = "4.5.30";
|
|
4198
4198
|
index_esm_VxeUI.uiVersion = ui_version;
|
|
4199
4199
|
index_esm_VxeUI.dynamicApp = dynamicApp;
|
|
4200
4200
|
function config(options) {
|
|
@@ -10262,7 +10262,7 @@ function hexToRgb(str) {
|
|
|
10262
10262
|
;// CONCATENATED MODULE: ./packages/number-input/src/util.ts
|
|
10263
10263
|
|
|
10264
10264
|
function handleNumber(val) {
|
|
10265
|
-
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(val) ? val.replace(
|
|
10265
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(val) ? val.replace(/[^0-9e.-]/g, '') : val;
|
|
10266
10266
|
}
|
|
10267
10267
|
function toFloatValueFixed(inputValue, digitsValue) {
|
|
10268
10268
|
if (/^-/.test('' + inputValue)) {
|
|
@@ -11396,21 +11396,33 @@ function toFloatValueFixed(inputValue, digitsValue) {
|
|
|
11396
11396
|
if (!inputReadonly) {
|
|
11397
11397
|
if (isNumType) {
|
|
11398
11398
|
if (inputValue) {
|
|
11399
|
-
|
|
11400
|
-
if (
|
|
11401
|
-
inpNumVal =
|
|
11402
|
-
|
|
11403
|
-
|
|
11404
|
-
|
|
11405
|
-
|
|
11406
|
-
const inpStringVal = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(inputValue).toLowerCase();
|
|
11407
|
-
if (inpStringVal === external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(inpNumVal).toExponential()) {
|
|
11408
|
-
inpNumVal = inpStringVal;
|
|
11399
|
+
const inpVal = `${handleNumber(inputValue)}`;
|
|
11400
|
+
if (inpVal) {
|
|
11401
|
+
let inpNumVal = type === 'integer' ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toInteger(inpVal) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(inpVal);
|
|
11402
|
+
if (!validMinNum(inpNumVal)) {
|
|
11403
|
+
inpNumVal = min;
|
|
11404
|
+
} else if (!validMaxNum(inpNumVal)) {
|
|
11405
|
+
inpNumVal = max;
|
|
11409
11406
|
}
|
|
11407
|
+
if (exponential) {
|
|
11408
|
+
const inpStringVal = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(inputValue).toLowerCase();
|
|
11409
|
+
if (inpStringVal === external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(inpNumVal).toExponential()) {
|
|
11410
|
+
inpNumVal = inpStringVal;
|
|
11411
|
+
}
|
|
11412
|
+
}
|
|
11413
|
+
handleChange(getNumberValue(inpNumVal), {
|
|
11414
|
+
type: 'check'
|
|
11415
|
+
});
|
|
11416
|
+
} else {
|
|
11417
|
+
// 输入错误字符,清空
|
|
11418
|
+
let inpValue = '';
|
|
11419
|
+
if (min || min === 0) {
|
|
11420
|
+
inpValue = `${min}`;
|
|
11421
|
+
}
|
|
11422
|
+
handleChange(inpValue, {
|
|
11423
|
+
type: 'check'
|
|
11424
|
+
});
|
|
11410
11425
|
}
|
|
11411
|
-
handleChange(getNumberValue(inpNumVal), {
|
|
11412
|
-
type: 'check'
|
|
11413
|
-
});
|
|
11414
11426
|
}
|
|
11415
11427
|
} else if (isDatePickerType) {
|
|
11416
11428
|
if (inputValue) {
|
|
@@ -11543,6 +11555,7 @@ function toFloatValueFixed(inputValue, digitsValue) {
|
|
|
11543
11555
|
};
|
|
11544
11556
|
const keydownEvent = evnt => {
|
|
11545
11557
|
const {
|
|
11558
|
+
type,
|
|
11546
11559
|
exponential,
|
|
11547
11560
|
controls
|
|
11548
11561
|
} = props;
|
|
@@ -11555,8 +11568,10 @@ function toFloatValueFixed(inputValue, digitsValue) {
|
|
|
11555
11568
|
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
11556
11569
|
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
11557
11570
|
const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
11558
|
-
if (!isControlKey && !isShiftKey && !isAltKey
|
|
11559
|
-
evnt.
|
|
11571
|
+
if (!isControlKey && !isShiftKey && !isAltKey) {
|
|
11572
|
+
if (globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.SPACEBAR) || type === 'integer' && keyCode === 110 || (!exponential || keyCode !== 69) && keyCode >= 65 && keyCode <= 90 || keyCode >= 186 && keyCode <= 188 || keyCode >= 191) {
|
|
11573
|
+
evnt.preventDefault();
|
|
11574
|
+
}
|
|
11560
11575
|
}
|
|
11561
11576
|
if (isEsc) {
|
|
11562
11577
|
afterCheckValue();
|
|
@@ -30513,6 +30528,7 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
|
|
|
30513
30528
|
};
|
|
30514
30529
|
const keydownEvent = evnt => {
|
|
30515
30530
|
const {
|
|
30531
|
+
type,
|
|
30516
30532
|
exponential,
|
|
30517
30533
|
controls
|
|
30518
30534
|
} = props;
|
|
@@ -30524,8 +30540,10 @@ const WidgetVxeNumberInputFormComponent = (0,external_commonjs_vue_commonjs2_vue
|
|
|
30524
30540
|
const isEsc = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ESCAPE);
|
|
30525
30541
|
const isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
30526
30542
|
const isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
30527
|
-
if (!isControlKey && !isShiftKey && !isAltKey
|
|
30528
|
-
evnt.
|
|
30543
|
+
if (!isControlKey && !isShiftKey && !isAltKey) {
|
|
30544
|
+
if (globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.SPACEBAR) || type === 'integer' && keyCode === 110 || (!exponential || keyCode !== 69) && keyCode >= 65 && keyCode <= 90 || keyCode >= 186 && keyCode <= 188 || keyCode >= 191) {
|
|
30545
|
+
evnt.preventDefault();
|
|
30546
|
+
}
|
|
30529
30547
|
}
|
|
30530
30548
|
if (isEsc) {
|
|
30531
30549
|
afterCheckValue();
|
|
@@ -45279,6 +45297,12 @@ const Select = VxeSelect;
|
|
|
45279
45297
|
const computeVisibleItems = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
45280
45298
|
return reactData.itemList.filter(item => item.isVisible);
|
|
45281
45299
|
});
|
|
45300
|
+
const computeAutoItems = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
45301
|
+
const {
|
|
45302
|
+
vertical
|
|
45303
|
+
} = props;
|
|
45304
|
+
return reactData.itemList.filter(item => vertical ? !item.height : !item.width);
|
|
45305
|
+
});
|
|
45282
45306
|
const computeBarStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
45283
45307
|
const barOpts = computeBarOpts.value;
|
|
45284
45308
|
const {
|
|
@@ -45760,6 +45784,7 @@ const Select = VxeSelect;
|
|
|
45760
45784
|
itemList
|
|
45761
45785
|
} = reactData;
|
|
45762
45786
|
const visibleItems = computeVisibleItems.value;
|
|
45787
|
+
const autoItems = computeAutoItems.value;
|
|
45763
45788
|
const isFoldNext = computeIsFoldNext.value;
|
|
45764
45789
|
const itemVNs = [];
|
|
45765
45790
|
itemList.forEach((item, index) => {
|
|
@@ -45781,13 +45806,15 @@ const Select = VxeSelect;
|
|
|
45781
45806
|
let itemWidth = isVisible ? foldWidth || resizeWidth || renderWidth : 0;
|
|
45782
45807
|
let itemHeight = isVisible ? foldHeight || resizeHeight || renderHeight : 0;
|
|
45783
45808
|
// 至少存在一个自适应
|
|
45784
|
-
if (
|
|
45785
|
-
if (
|
|
45786
|
-
|
|
45787
|
-
|
|
45788
|
-
|
|
45789
|
-
|
|
45790
|
-
|
|
45809
|
+
if (autoItems.length === 1) {
|
|
45810
|
+
if (vertical) {
|
|
45811
|
+
if (!item.height) {
|
|
45812
|
+
itemHeight = 0;
|
|
45813
|
+
}
|
|
45814
|
+
} else {
|
|
45815
|
+
if (!item.width) {
|
|
45816
|
+
itemWidth = 0;
|
|
45817
|
+
}
|
|
45791
45818
|
}
|
|
45792
45819
|
}
|
|
45793
45820
|
// 当只剩下一个可视区自动占用 100%
|