vxe-pc-ui 4.15.22 → 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 +34 -13
- 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/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 +45 -14
- 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/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/types/ui/commands.d.ts +3 -3
- /package/es/icon/{iconfont.1783065896433.ttf → iconfont.1783073813654.ttf} +0 -0
- /package/es/icon/{iconfont.1783065896433.woff → iconfont.1783073813654.woff} +0 -0
- /package/es/icon/{iconfont.1783065896433.woff2 → iconfont.1783073813654.woff2} +0 -0
- /package/es/{iconfont.1783065896433.ttf → iconfont.1783073813654.ttf} +0 -0
- /package/es/{iconfont.1783065896433.woff → iconfont.1783073813654.woff} +0 -0
- /package/es/{iconfont.1783065896433.woff2 → iconfont.1783073813654.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1783065896433.ttf → iconfont.1783073813654.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1783065896433.woff → iconfont.1783073813654.woff} +0 -0
- /package/lib/icon/style/{iconfont.1783065896433.woff2 → iconfont.1783073813654.woff2} +0 -0
- /package/lib/{iconfont.1783065896433.ttf → iconfont.1783073813654.ttf} +0 -0
- /package/lib/{iconfont.1783065896433.woff → iconfont.1783073813654.woff} +0 -0
- /package/lib/{iconfont.1783065896433.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);
|