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/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.23"}`;
|
|
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}` : '';
|
|
@@ -95,7 +95,7 @@ function createComponentLog(name) {
|
|
|
95
95
|
const warnLog$g = log.create('warn', uiVersion);
|
|
96
96
|
log.create('error', uiVersion);
|
|
97
97
|
|
|
98
|
-
const version = "4.15.
|
|
98
|
+
const version = "4.15.23";
|
|
99
99
|
VxeUI.uiVersion = version;
|
|
100
100
|
VxeUI.dynamicApp = dynamicApp;
|
|
101
101
|
function config(options) {
|
|
@@ -21094,8 +21094,8 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
21094
21094
|
};
|
|
21095
21095
|
};
|
|
21096
21096
|
const getRangeValue = (sValue, eValue) => {
|
|
21097
|
-
const { modelValue, valueType } = props;
|
|
21098
|
-
let isArr = XEUtils.isArray(modelValue);
|
|
21097
|
+
const { modelValue, valueType, valueFormat } = props;
|
|
21098
|
+
let isArr = valueFormat === 'date' || XEUtils.isArray(modelValue);
|
|
21099
21099
|
if (valueType) {
|
|
21100
21100
|
switch (valueType) {
|
|
21101
21101
|
case 'array':
|
|
@@ -21107,7 +21107,7 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
21107
21107
|
}
|
|
21108
21108
|
}
|
|
21109
21109
|
if (sValue || eValue) {
|
|
21110
|
-
const rest = [sValue ||
|
|
21110
|
+
const rest = [sValue || null, eValue || null];
|
|
21111
21111
|
if (isArr) {
|
|
21112
21112
|
return rest;
|
|
21113
21113
|
}
|
|
@@ -21183,16 +21183,37 @@ var VxeDateRangePickerComponent = defineVxeComponent({
|
|
|
21183
21183
|
dispatchEvent(evnt.type, { value, startValue, endValue }, evnt);
|
|
21184
21184
|
};
|
|
21185
21185
|
const handleChange = (sValue, eValue, evnt) => {
|
|
21186
|
-
const { modelValue } = props;
|
|
21187
|
-
|
|
21188
|
-
|
|
21189
|
-
|
|
21190
|
-
|
|
21186
|
+
const { type, modelValue, valueFormat } = props;
|
|
21187
|
+
const dateValueFormat = computeDateValueFormat.value;
|
|
21188
|
+
let startRest = sValue;
|
|
21189
|
+
let endRest = eValue;
|
|
21190
|
+
if (hasTimestampValueType(valueFormat)) {
|
|
21191
|
+
if (startRest) {
|
|
21192
|
+
const dateVal = parseDateValue(startRest, type, { valueFormat: dateValueFormat });
|
|
21193
|
+
startRest = dateVal ? dateVal.getTime() : null;
|
|
21194
|
+
}
|
|
21195
|
+
if (endRest) {
|
|
21196
|
+
const dateVal = parseDateValue(endRest, type, { valueFormat: dateValueFormat });
|
|
21197
|
+
endRest = dateVal ? dateVal.getTime() : null;
|
|
21198
|
+
}
|
|
21199
|
+
}
|
|
21200
|
+
else if (hasDateValueType(valueFormat)) {
|
|
21201
|
+
if (startRest) {
|
|
21202
|
+
startRest = parseDateValue(startRest, type, { valueFormat: dateValueFormat });
|
|
21203
|
+
}
|
|
21204
|
+
if (endRest) {
|
|
21205
|
+
endRest = parseDateValue(endRest, type, { valueFormat: dateValueFormat });
|
|
21206
|
+
}
|
|
21207
|
+
}
|
|
21208
|
+
reactData.startValue = startRest;
|
|
21209
|
+
reactData.endValue = endRest;
|
|
21210
|
+
const value = getRangeValue(startRest, endRest);
|
|
21211
|
+
const isFinish = (startRest && endRest) || (!startRest && !endRest);
|
|
21191
21212
|
emit('update:modelValue', value);
|
|
21192
|
-
emit('update:startValue',
|
|
21193
|
-
emit('update:endValue',
|
|
21213
|
+
emit('update:startValue', startRest || '');
|
|
21214
|
+
emit('update:endValue', endRest || '');
|
|
21194
21215
|
if (XEUtils.toValueString(modelValue) !== value) {
|
|
21195
|
-
dispatchEvent('change', { value, startValue:
|
|
21216
|
+
dispatchEvent('change', { value, startValue: startRest, endValue: endRest, isFinish }, evnt);
|
|
21196
21217
|
// 自动更新校验状态
|
|
21197
21218
|
if ($xeForm && formItemInfo) {
|
|
21198
21219
|
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
|
|
@@ -44710,7 +44731,12 @@ var VxeUploadComponent = defineVxeComponent({
|
|
|
44710
44731
|
if (cacheItem) {
|
|
44711
44732
|
cacheItem.loading = false;
|
|
44712
44733
|
}
|
|
44713
|
-
|
|
44734
|
+
const result = {
|
|
44735
|
+
option: item,
|
|
44736
|
+
status: cacheItem ? cacheItem.status : null,
|
|
44737
|
+
response: cacheItem ? cacheItem.response : null
|
|
44738
|
+
};
|
|
44739
|
+
dispatchEvent('upload-end', { option: item, result }, null);
|
|
44714
44740
|
});
|
|
44715
44741
|
}
|
|
44716
44742
|
else {
|
|
@@ -44858,7 +44884,7 @@ var VxeUploadComponent = defineVxeComponent({
|
|
|
44858
44884
|
Promise.all(uploadPromiseRests).then(() => {
|
|
44859
44885
|
const { fileCacheMaps } = reactData;
|
|
44860
44886
|
const restFileList = reactData.fileList;
|
|
44861
|
-
const uploadResults =
|
|
44887
|
+
const uploadResults = newFileList.map(option => {
|
|
44862
44888
|
const fileKey = getFieldKey(option);
|
|
44863
44889
|
const cacheItem = fileCacheMaps[fileKey];
|
|
44864
44890
|
return {
|
|
@@ -44871,7 +44897,7 @@ var VxeUploadComponent = defineVxeComponent({
|
|
|
44871
44897
|
dispatchEvent('upload-queue-end', { value, options: restFileList, results: uploadResults, files: selectFiles }, evnt);
|
|
44872
44898
|
// 自动更新校验状态
|
|
44873
44899
|
if ($xeForm && formItemInfo) {
|
|
44874
|
-
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field,
|
|
44900
|
+
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
|
|
44875
44901
|
}
|
|
44876
44902
|
});
|
|
44877
44903
|
};
|