vxe-pc-ui 4.15.6 → 4.15.8
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 +12 -8
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/date-panel/src/util.js +3 -3
- package/es/date-picker/src/date-picker.js +5 -1
- package/es/icon/style.css +1 -1
- 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/upload/src/upload.js +2 -2
- package/lib/date-panel/src/util.js +3 -3
- package/lib/date-panel/src/util.min.js +1 -1
- package/lib/date-picker/src/date-picker.js +5 -1
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +11 -8
- package/lib/index.umd.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/upload/src/upload.js +1 -2
- package/lib/upload/src/upload.min.js +1 -1
- package/package.json +2 -2
- package/packages/date-panel/src/util.ts +3 -3
- package/packages/date-picker/src/date-picker.ts +5 -1
- package/packages/upload/src/upload.ts +3 -2
- package/types/components/gantt.d.ts +1 -0
- /package/es/icon/{iconfont.1782111198241.ttf → iconfont.1782137184015.ttf} +0 -0
- /package/es/icon/{iconfont.1782111198241.woff → iconfont.1782137184015.woff} +0 -0
- /package/es/icon/{iconfont.1782111198241.woff2 → iconfont.1782137184015.woff2} +0 -0
- /package/es/{iconfont.1782111198241.ttf → iconfont.1782137184015.ttf} +0 -0
- /package/es/{iconfont.1782111198241.woff → iconfont.1782137184015.woff} +0 -0
- /package/es/{iconfont.1782111198241.woff2 → iconfont.1782137184015.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1782111198241.ttf → iconfont.1782137184015.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1782111198241.woff → iconfont.1782137184015.woff} +0 -0
- /package/lib/icon/style/{iconfont.1782111198241.woff2 → iconfont.1782137184015.woff2} +0 -0
- /package/lib/{iconfont.1782111198241.ttf → iconfont.1782137184015.ttf} +0 -0
- /package/lib/{iconfont.1782111198241.woff → iconfont.1782137184015.woff} +0 -0
- /package/lib/{iconfont.1782111198241.woff2 → iconfont.1782137184015.woff2} +0 -0
package/dist/all.esm.js
CHANGED
|
@@ -81,7 +81,7 @@ function checkDynamic() {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
const { log } = VxeUI;
|
|
84
|
-
const uiVersion = `ui v${"4.15.
|
|
84
|
+
const uiVersion = `ui v${"4.15.8"}`;
|
|
85
85
|
function createComponentLog(name) {
|
|
86
86
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
87
87
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -94,7 +94,7 @@ function createComponentLog(name) {
|
|
|
94
94
|
const warnLog$b = log.create('warn', uiVersion);
|
|
95
95
|
log.create('error', uiVersion);
|
|
96
96
|
|
|
97
|
-
const version = "4.15.
|
|
97
|
+
const version = "4.15.8";
|
|
98
98
|
VxeUI.uiVersion = version;
|
|
99
99
|
VxeUI.dynamicApp = dynamicApp;
|
|
100
100
|
function config(options) {
|
|
@@ -4674,11 +4674,11 @@ function checkDateFormat(numStr, formatKey) {
|
|
|
4674
4674
|
const numVal = XEUtils.toNumber(numStr);
|
|
4675
4675
|
switch (formatKey) {
|
|
4676
4676
|
case 'yyyy':
|
|
4677
|
-
return (numVal >= 9999 ? 9999 : (numVal
|
|
4677
|
+
return (numVal >= 9999 ? 9999 : (numVal <= 0 ? 0 : numVal));
|
|
4678
4678
|
case 'MM':
|
|
4679
|
-
return (numVal >= 12 ? 12 : (numVal
|
|
4679
|
+
return (numVal >= 12 ? 12 : (numVal <= 0 ? 0 : numVal));
|
|
4680
4680
|
case 'dd':
|
|
4681
|
-
return (numVal >= 31 ? 31 : (numVal
|
|
4681
|
+
return (numVal >= 31 ? 31 : (numVal <= 0 ? 0 : numVal));
|
|
4682
4682
|
case 'HH':
|
|
4683
4683
|
case 'mm':
|
|
4684
4684
|
case 'ss':
|
|
@@ -18291,7 +18291,11 @@ var VxeDatePickerComponent = defineVxeComponent({
|
|
|
18291
18291
|
allMaskedKeys.forEach(formatKey => {
|
|
18292
18292
|
const fkIndex = dateLabelFormat.indexOf(formatKey);
|
|
18293
18293
|
if (fkIndex > -1) {
|
|
18294
|
-
|
|
18294
|
+
let val = XEUtils.toNumber(inpVal.slice(fkIndex, formatKey.length).replace(/\D/g, ''));
|
|
18295
|
+
// 自动纠错最小值
|
|
18296
|
+
if (!val && ['MM', 'dd'].includes(formatKey)) {
|
|
18297
|
+
val = 1;
|
|
18298
|
+
}
|
|
18295
18299
|
inpVal = inpVal.slice(0, fkIndex) + XEUtils.padStart(checkDateFormat(val, formatKey), formatKey.length, '0') + inpVal.slice(fkIndex + formatKey.length);
|
|
18296
18300
|
}
|
|
18297
18301
|
});
|
|
@@ -42345,7 +42349,7 @@ var VxeUploadComponent = defineVxeComponent({
|
|
|
42345
42349
|
}
|
|
42346
42350
|
};
|
|
42347
42351
|
const handleUploadFile = (files, evnt) => {
|
|
42348
|
-
const { multiple,
|
|
42352
|
+
const { multiple, showLimitSize, limitSizeText, showLimitCount, limitCountText, autoSubmit } = props;
|
|
42349
42353
|
const { fileList } = reactData;
|
|
42350
42354
|
const beforeSelectFn = props.beforeSelectMethod || getConfig$3().upload.beforeSelectMethod;
|
|
42351
42355
|
const uploadFn = props.uploadMethod || getConfig$3().upload.uploadMethod;
|
|
@@ -42458,7 +42462,7 @@ var VxeUploadComponent = defineVxeComponent({
|
|
|
42458
42462
|
newFileList.forEach(item => {
|
|
42459
42463
|
dispatchEvent('add', { option: item }, evnt);
|
|
42460
42464
|
});
|
|
42461
|
-
Promise.all(
|
|
42465
|
+
Promise.all(uploadPromiseRests).then(() => {
|
|
42462
42466
|
const restFileList = reactData.fileList;
|
|
42463
42467
|
dispatchEvent('upload-queue-end', { options: restFileList, files: selectFiles }, evnt);
|
|
42464
42468
|
handleChange(restFileList);
|