vxe-pc-ui 4.15.21 → 4.15.23
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 +42 -16
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/date-range-picker/src/date-range-picker.js +33 -12
- 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 +8 -3
- package/lib/date-range-picker/src/date-range-picker.js +43 -12
- 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/index.umd.js +54 -17
- 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 +9 -3
- package/lib/upload/src/upload.min.js +1 -1
- package/package.json +1 -1
- package/packages/date-panel/src/util.ts +1 -1
- package/packages/date-range-picker/src/date-range-picker.ts +33 -13
- package/packages/upload/src/upload.ts +8 -3
- package/types/components/upload.d.ts +3 -1
- package/types/ui/commands.d.ts +3 -3
- /package/es/icon/{iconfont.1783046335286.ttf → iconfont.1783073813654.ttf} +0 -0
- /package/es/icon/{iconfont.1783046335286.woff → iconfont.1783073813654.woff} +0 -0
- /package/es/icon/{iconfont.1783046335286.woff2 → iconfont.1783073813654.woff2} +0 -0
- /package/es/{iconfont.1783046335286.ttf → iconfont.1783073813654.ttf} +0 -0
- /package/es/{iconfont.1783046335286.woff → iconfont.1783073813654.woff} +0 -0
- /package/es/{iconfont.1783046335286.woff2 → iconfont.1783073813654.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1783046335286.ttf → iconfont.1783073813654.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1783046335286.woff → iconfont.1783073813654.woff} +0 -0
- /package/lib/icon/style/{iconfont.1783046335286.woff2 → iconfont.1783073813654.woff2} +0 -0
- /package/lib/{iconfont.1783046335286.ttf → iconfont.1783073813654.ttf} +0 -0
- /package/lib/{iconfont.1783046335286.woff → iconfont.1783073813654.woff} +0 -0
- /package/lib/{iconfont.1783046335286.woff2 → iconfont.1783073813654.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -4657,7 +4657,7 @@ function checkDynamic() {
|
|
|
4657
4657
|
const {
|
|
4658
4658
|
log: log_log
|
|
4659
4659
|
} = VxeUI;
|
|
4660
|
-
const uiVersion = `ui v${"4.15.
|
|
4660
|
+
const uiVersion = `ui v${"4.15.23"}`;
|
|
4661
4661
|
function createComponentLog(name) {
|
|
4662
4662
|
const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
|
|
4663
4663
|
const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
|
|
@@ -4675,7 +4675,7 @@ const errLog = log_log.create('error', uiVersion);
|
|
|
4675
4675
|
|
|
4676
4676
|
|
|
4677
4677
|
|
|
4678
|
-
const ui_version = "4.15.
|
|
4678
|
+
const ui_version = "4.15.23";
|
|
4679
4679
|
VxeUI.uiVersion = ui_version;
|
|
4680
4680
|
VxeUI.dynamicApp = dynamicApp;
|
|
4681
4681
|
function config(options) {
|
|
@@ -27720,9 +27720,10 @@ const {
|
|
|
27720
27720
|
const getRangeValue = (sValue, eValue) => {
|
|
27721
27721
|
const {
|
|
27722
27722
|
modelValue,
|
|
27723
|
-
valueType
|
|
27723
|
+
valueType,
|
|
27724
|
+
valueFormat
|
|
27724
27725
|
} = props;
|
|
27725
|
-
let isArr = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue);
|
|
27726
|
+
let isArr = valueFormat === 'date' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue);
|
|
27726
27727
|
if (valueType) {
|
|
27727
27728
|
switch (valueType) {
|
|
27728
27729
|
case 'array':
|
|
@@ -27734,7 +27735,7 @@ const {
|
|
|
27734
27735
|
}
|
|
27735
27736
|
}
|
|
27736
27737
|
if (sValue || eValue) {
|
|
27737
|
-
const rest = [sValue ||
|
|
27738
|
+
const rest = [sValue || null, eValue || null];
|
|
27738
27739
|
if (isArr) {
|
|
27739
27740
|
return rest;
|
|
27740
27741
|
}
|
|
@@ -27833,20 +27834,50 @@ const {
|
|
|
27833
27834
|
};
|
|
27834
27835
|
const handleChange = (sValue, eValue, evnt) => {
|
|
27835
27836
|
const {
|
|
27836
|
-
|
|
27837
|
+
type,
|
|
27838
|
+
modelValue,
|
|
27839
|
+
valueFormat
|
|
27837
27840
|
} = props;
|
|
27838
|
-
|
|
27839
|
-
|
|
27840
|
-
|
|
27841
|
-
|
|
27841
|
+
const dateValueFormat = computeDateValueFormat.value;
|
|
27842
|
+
let startRest = sValue;
|
|
27843
|
+
let endRest = eValue;
|
|
27844
|
+
if (hasTimestampValueType(valueFormat)) {
|
|
27845
|
+
if (startRest) {
|
|
27846
|
+
const dateVal = parseDateValue(startRest, type, {
|
|
27847
|
+
valueFormat: dateValueFormat
|
|
27848
|
+
});
|
|
27849
|
+
startRest = dateVal ? dateVal.getTime() : null;
|
|
27850
|
+
}
|
|
27851
|
+
if (endRest) {
|
|
27852
|
+
const dateVal = parseDateValue(endRest, type, {
|
|
27853
|
+
valueFormat: dateValueFormat
|
|
27854
|
+
});
|
|
27855
|
+
endRest = dateVal ? dateVal.getTime() : null;
|
|
27856
|
+
}
|
|
27857
|
+
} else if (hasDateValueType(valueFormat)) {
|
|
27858
|
+
if (startRest) {
|
|
27859
|
+
startRest = parseDateValue(startRest, type, {
|
|
27860
|
+
valueFormat: dateValueFormat
|
|
27861
|
+
});
|
|
27862
|
+
}
|
|
27863
|
+
if (endRest) {
|
|
27864
|
+
endRest = parseDateValue(endRest, type, {
|
|
27865
|
+
valueFormat: dateValueFormat
|
|
27866
|
+
});
|
|
27867
|
+
}
|
|
27868
|
+
}
|
|
27869
|
+
reactData.startValue = startRest;
|
|
27870
|
+
reactData.endValue = endRest;
|
|
27871
|
+
const value = getRangeValue(startRest, endRest);
|
|
27872
|
+
const isFinish = startRest && endRest || !startRest && !endRest;
|
|
27842
27873
|
emit('update:modelValue', value);
|
|
27843
|
-
emit('update:startValue',
|
|
27844
|
-
emit('update:endValue',
|
|
27874
|
+
emit('update:startValue', startRest || '');
|
|
27875
|
+
emit('update:endValue', endRest || '');
|
|
27845
27876
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(modelValue) !== value) {
|
|
27846
27877
|
dispatchEvent('change', {
|
|
27847
27878
|
value,
|
|
27848
|
-
startValue:
|
|
27849
|
-
endValue:
|
|
27879
|
+
startValue: startRest,
|
|
27880
|
+
endValue: endRest,
|
|
27850
27881
|
isFinish
|
|
27851
27882
|
}, evnt);
|
|
27852
27883
|
// 自动更新校验状态
|
|
@@ -54412,8 +54443,14 @@ function upload_createInternalData() {
|
|
|
54412
54443
|
if (cacheItem) {
|
|
54413
54444
|
cacheItem.loading = false;
|
|
54414
54445
|
}
|
|
54446
|
+
const result = {
|
|
54447
|
+
option: item,
|
|
54448
|
+
status: cacheItem ? cacheItem.status : null,
|
|
54449
|
+
response: cacheItem ? cacheItem.response : null
|
|
54450
|
+
};
|
|
54415
54451
|
dispatchEvent('upload-end', {
|
|
54416
|
-
option: item
|
|
54452
|
+
option: item,
|
|
54453
|
+
result
|
|
54417
54454
|
}, null);
|
|
54418
54455
|
});
|
|
54419
54456
|
} else {
|
|
@@ -54590,7 +54627,7 @@ function upload_createInternalData() {
|
|
|
54590
54627
|
fileCacheMaps
|
|
54591
54628
|
} = reactData;
|
|
54592
54629
|
const restFileList = reactData.fileList;
|
|
54593
|
-
const uploadResults =
|
|
54630
|
+
const uploadResults = newFileList.map(option => {
|
|
54594
54631
|
const fileKey = getFieldKey(option);
|
|
54595
54632
|
const cacheItem = fileCacheMaps[fileKey];
|
|
54596
54633
|
return {
|
|
@@ -54608,7 +54645,7 @@ function upload_createInternalData() {
|
|
|
54608
54645
|
}, evnt);
|
|
54609
54646
|
// 自动更新校验状态
|
|
54610
54647
|
if ($xeForm && formItemInfo) {
|
|
54611
|
-
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field,
|
|
54648
|
+
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
|
|
54612
54649
|
}
|
|
54613
54650
|
});
|
|
54614
54651
|
};
|