vxe-pc-ui 3.15.22 → 3.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/es/date-range-picker/src/date-range-picker.js +34 -13
- 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 +44 -13
- 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 +46 -15
- 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 +34 -14
- package/types/ui/commands.d.ts +3 -3
- /package/es/icon/{iconfont.1783065884505.ttf → iconfont.1783073807010.ttf} +0 -0
- /package/es/icon/{iconfont.1783065884505.woff → iconfont.1783073807010.woff} +0 -0
- /package/es/icon/{iconfont.1783065884505.woff2 → iconfont.1783073807010.woff2} +0 -0
- /package/es/{iconfont.1783065884505.ttf → iconfont.1783073807010.ttf} +0 -0
- /package/es/{iconfont.1783065884505.woff → iconfont.1783073807010.woff} +0 -0
- /package/es/{iconfont.1783065884505.woff2 → iconfont.1783073807010.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1783065884505.ttf → iconfont.1783073807010.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1783065884505.woff → iconfont.1783073807010.woff} +0 -0
- /package/lib/icon/style/{iconfont.1783065884505.woff2 → iconfont.1783073807010.woff2} +0 -0
- /package/lib/{iconfont.1783065884505.ttf → iconfont.1783073807010.ttf} +0 -0
- /package/lib/{iconfont.1783065884505.woff → iconfont.1783073807010.woff} +0 -0
- /package/lib/{iconfont.1783065884505.woff2 → iconfont.1783073807010.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -13226,7 +13226,7 @@ var es_array_join = __webpack_require__(8598);
|
|
|
13226
13226
|
|
|
13227
13227
|
|
|
13228
13228
|
var log_log = VxeUI.log;
|
|
13229
|
-
var uiVersion = "ui v".concat("3.15.
|
|
13229
|
+
var uiVersion = "ui v".concat("3.15.23");
|
|
13230
13230
|
function createComponentLog(name) {
|
|
13231
13231
|
var tableVersion = VxeUI.tableVersion ? "table v".concat(VxeUI.tableVersion) : '';
|
|
13232
13232
|
var ganttVersion = VxeUI.ganttVersion ? "gantt v".concat(VxeUI.ganttVersion) : '';
|
|
@@ -13244,7 +13244,7 @@ var errLog = log_log.create('error', uiVersion);
|
|
|
13244
13244
|
|
|
13245
13245
|
|
|
13246
13246
|
|
|
13247
|
-
var ui_version = "3.15.
|
|
13247
|
+
var ui_version = "3.15.23";
|
|
13248
13248
|
VxeUI.uiVersion = ui_version;
|
|
13249
13249
|
VxeUI.dynamicApp = dynamicApp;
|
|
13250
13250
|
function config(options) {
|
|
@@ -38353,8 +38353,9 @@ var date_range_picker_createComponentLog = createComponentLog('date-range-picker
|
|
|
38353
38353
|
var $xeDateRangePicker = this;
|
|
38354
38354
|
var props = $xeDateRangePicker;
|
|
38355
38355
|
var modelValue = props.value,
|
|
38356
|
-
valueType = props.valueType
|
|
38357
|
-
|
|
38356
|
+
valueType = props.valueType,
|
|
38357
|
+
valueFormat = props.valueFormat;
|
|
38358
|
+
var isArr = valueFormat === 'date' || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(modelValue);
|
|
38358
38359
|
if (valueType) {
|
|
38359
38360
|
switch (valueType) {
|
|
38360
38361
|
case 'array':
|
|
@@ -38366,7 +38367,7 @@ var date_range_picker_createComponentLog = createComponentLog('date-range-picker
|
|
|
38366
38367
|
}
|
|
38367
38368
|
}
|
|
38368
38369
|
if (sValue || eValue) {
|
|
38369
|
-
var rest = [sValue ||
|
|
38370
|
+
var rest = [sValue || null, eValue || null];
|
|
38370
38371
|
if (isArr) {
|
|
38371
38372
|
return rest;
|
|
38372
38373
|
}
|
|
@@ -38470,19 +38471,49 @@ var date_range_picker_createComponentLog = createComponentLog('date-range-picker
|
|
|
38470
38471
|
var reactData = $xeDateRangePicker.reactData;
|
|
38471
38472
|
var $xeForm = $xeDateRangePicker.$xeForm;
|
|
38472
38473
|
var formItemInfo = $xeDateRangePicker.formItemInfo;
|
|
38473
|
-
var
|
|
38474
|
-
|
|
38475
|
-
|
|
38476
|
-
var
|
|
38477
|
-
var
|
|
38478
|
-
|
|
38479
|
-
|
|
38480
|
-
|
|
38474
|
+
var type = props.type,
|
|
38475
|
+
modelValue = props.value,
|
|
38476
|
+
valueFormat = props.valueFormat;
|
|
38477
|
+
var dateValueFormat = $xeDateRangePicker.computeDateValueFormat;
|
|
38478
|
+
var startRest = sValue;
|
|
38479
|
+
var endRest = eValue;
|
|
38480
|
+
if (hasTimestampValueType(valueFormat)) {
|
|
38481
|
+
if (startRest) {
|
|
38482
|
+
var dateVal = parseDateValue(startRest, type, {
|
|
38483
|
+
valueFormat: dateValueFormat
|
|
38484
|
+
});
|
|
38485
|
+
startRest = dateVal ? dateVal.getTime() : null;
|
|
38486
|
+
}
|
|
38487
|
+
if (endRest) {
|
|
38488
|
+
var _dateVal = parseDateValue(endRest, type, {
|
|
38489
|
+
valueFormat: dateValueFormat
|
|
38490
|
+
});
|
|
38491
|
+
endRest = _dateVal ? _dateVal.getTime() : null;
|
|
38492
|
+
}
|
|
38493
|
+
} else if (hasDateValueType(valueFormat)) {
|
|
38494
|
+
if (startRest) {
|
|
38495
|
+
startRest = parseDateValue(startRest, type, {
|
|
38496
|
+
valueFormat: dateValueFormat
|
|
38497
|
+
});
|
|
38498
|
+
}
|
|
38499
|
+
if (endRest) {
|
|
38500
|
+
endRest = parseDateValue(endRest, type, {
|
|
38501
|
+
valueFormat: dateValueFormat
|
|
38502
|
+
});
|
|
38503
|
+
}
|
|
38504
|
+
}
|
|
38505
|
+
reactData.startValue = startRest;
|
|
38506
|
+
reactData.endValue = endRest;
|
|
38507
|
+
var value = $xeDateRangePicker.getRangeValue(startRest, endRest);
|
|
38508
|
+
var isFinish = startRest && endRest || !startRest && !endRest;
|
|
38509
|
+
$xeDateRangePicker.$emit('update:modelValue', value);
|
|
38510
|
+
$xeDateRangePicker.$emit('update:startValue', startRest || '');
|
|
38511
|
+
$xeDateRangePicker.$emit('update:endValue', endRest || '');
|
|
38481
38512
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(modelValue) !== value) {
|
|
38482
38513
|
$xeDateRangePicker.dispatchEvent('change', {
|
|
38483
38514
|
value: value,
|
|
38484
|
-
startValue:
|
|
38485
|
-
endValue:
|
|
38515
|
+
startValue: startRest,
|
|
38516
|
+
endValue: endRest,
|
|
38486
38517
|
isFinish: isFinish
|
|
38487
38518
|
}, evnt);
|
|
38488
38519
|
// 自动更新校验状态
|