vxe-pc-ui 3.15.2 → 3.15.3
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/backtop/src/backtop.js +8 -7
- package/es/button/src/button.js +3 -2
- package/es/calendar/src/calendar.js +2 -1
- package/es/cascader/src/cascader.js +5 -7
- package/es/checkbox/src/group.js +16 -7
- package/es/context-menu/src/context-menu.js +2 -6
- package/es/date-panel/src/util.js +27 -16
- package/es/date-picker/src/date-picker.js +616 -88
- package/es/date-range-picker/src/date-range-picker.js +7 -4
- package/es/drawer/src/drawer.js +3 -0
- package/es/form/render/index.js +3 -2
- package/es/form/src/form.js +11 -12
- package/es/form/src/itemInfo.js +6 -5
- package/es/image/src/image.js +5 -6
- package/es/input/src/input.js +2 -1
- package/es/layout-body/src/layout-body.js +13 -6
- package/es/list/src/list.js +3 -6
- package/es/menu/src/menu.js +2 -1
- package/es/modal/src/modal.js +5 -1
- package/es/pager/src/pager.js +4 -3
- package/es/radio/src/group.js +11 -8
- package/es/select/src/select.js +34 -30
- package/es/splitter/src/splitter.js +6 -5
- package/es/table-select/src/table-select.js +27 -22
- package/es/tabs/src/tabs.js +4 -3
- package/es/textarea/src/textarea.js +2 -1
- package/es/tree/src/tree.js +6 -11
- package/es/tree-select/src/tree-select.js +5 -7
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +7 -1
- package/es/upload/src/upload.js +11 -9
- package/lib/backtop/src/backtop.js +10 -6
- package/lib/backtop/src/backtop.min.js +1 -1
- package/lib/button/src/button.js +3 -1
- package/lib/button/src/button.min.js +1 -1
- package/lib/calendar/src/calendar.js +3 -1
- package/lib/calendar/src/calendar.min.js +1 -1
- package/lib/cascader/src/cascader.js +7 -6
- package/lib/cascader/src/cascader.min.js +1 -1
- package/lib/checkbox/src/group.js +18 -6
- package/lib/checkbox/src/group.min.js +1 -1
- package/lib/context-menu/src/context-menu.js +3 -4
- package/lib/context-menu/src/context-menu.min.js +1 -1
- package/lib/date-panel/src/util.js +37 -18
- package/lib/date-panel/src/util.min.js +1 -1
- package/lib/date-picker/src/date-picker.js +659 -86
- package/lib/date-picker/src/date-picker.min.js +1 -1
- package/lib/date-range-picker/src/date-range-picker.js +7 -3
- package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
- package/lib/drawer/src/drawer.js +3 -0
- package/lib/drawer/src/drawer.min.js +1 -1
- package/lib/form/render/index.js +3 -1
- package/lib/form/render/index.min.js +1 -1
- package/lib/form/src/form.js +12 -8
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/itemInfo.js +6 -4
- package/lib/form/src/itemInfo.min.js +1 -1
- package/lib/image/src/image.js +7 -5
- package/lib/image/src/image.min.js +1 -1
- package/lib/index.umd.js +990 -252
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +5 -3
- package/lib/input/src/input.min.js +1 -1
- package/lib/layout-body/src/layout-body.js +13 -4
- package/lib/layout-body/src/layout-body.min.js +1 -1
- package/lib/list/src/list.js +4 -5
- package/lib/list/src/list.min.js +1 -1
- package/lib/menu/src/menu.js +3 -1
- package/lib/menu/src/menu.min.js +1 -1
- package/lib/modal/src/modal.js +8 -2
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/pager/src/pager.js +5 -2
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/radio/src/group.js +13 -6
- package/lib/radio/src/group.min.js +1 -1
- package/lib/select/src/select.js +36 -29
- package/lib/select/src/select.min.js +1 -1
- package/lib/splitter/src/splitter.js +9 -6
- package/lib/splitter/src/splitter.min.js +1 -1
- package/lib/table-select/src/table-select.js +27 -19
- package/lib/table-select/src/table-select.min.js +1 -1
- package/lib/tabs/src/tabs.js +6 -3
- package/lib/tabs/src/tabs.min.js +1 -1
- package/lib/textarea/src/textarea.js +3 -1
- package/lib/textarea/src/textarea.min.js +1 -1
- package/lib/tree/src/tree.js +9 -8
- package/lib/tree/src/tree.min.js +1 -1
- package/lib/tree-select/src/tree-select.js +10 -8
- package/lib/tree-select/src/tree-select.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +8 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/upload/src/upload.js +22 -7
- package/lib/upload/src/upload.min.js +1 -1
- package/package.json +1 -1
- package/packages/backtop/src/backtop.ts +11 -3
- package/packages/button/src/button.ts +4 -2
- package/packages/calendar/src/calendar.ts +3 -1
- package/packages/cascader/src/cascader.ts +9 -4
- package/packages/checkbox/src/group.ts +22 -5
- package/packages/context-menu/src/context-menu.ts +5 -2
- package/packages/date-panel/src/util.ts +28 -16
- package/packages/date-picker/src/date-picker.ts +630 -89
- package/packages/date-range-picker/src/date-range-picker.ts +8 -4
- package/packages/drawer/src/drawer.ts +3 -0
- package/packages/form/render/index.ts +4 -2
- package/packages/form/src/form.ts +14 -7
- package/packages/form/src/itemInfo.ts +7 -5
- package/packages/image/src/image.ts +9 -3
- package/packages/input/src/input.ts +3 -1
- package/packages/layout-body/src/layout-body.ts +16 -2
- package/packages/list/src/list.ts +6 -3
- package/packages/menu/src/menu.ts +3 -1
- package/packages/modal/src/modal.ts +6 -1
- package/packages/pager/src/pager.ts +5 -3
- package/packages/radio/src/group.ts +16 -5
- package/packages/select/src/select.ts +41 -29
- package/packages/splitter/src/splitter.ts +7 -5
- package/packages/table-select/src/table-select.ts +31 -20
- package/packages/tabs/src/tabs.ts +5 -3
- package/packages/textarea/src/textarea.ts +3 -1
- package/packages/tree/src/tree.ts +9 -4
- package/packages/tree-select/src/tree-select.ts +9 -4
- package/packages/ui/src/log.ts +7 -0
- package/packages/upload/src/upload.ts +16 -6
- package/types/components/date-picker.d.ts +14 -6
- package/types/components/drawer.d.ts +2 -0
- package/types/components/modal.d.ts +2 -0
- package/types/components/upload.d.ts +28 -1
- /package/es/icon/{iconfont.1781753586592.ttf → iconfont.1781852732213.ttf} +0 -0
- /package/es/icon/{iconfont.1781753586592.woff → iconfont.1781852732213.woff} +0 -0
- /package/es/icon/{iconfont.1781753586592.woff2 → iconfont.1781852732213.woff2} +0 -0
- /package/es/{iconfont.1781753586592.ttf → iconfont.1781852732213.ttf} +0 -0
- /package/es/{iconfont.1781753586592.woff → iconfont.1781852732213.woff} +0 -0
- /package/es/{iconfont.1781753586592.woff2 → iconfont.1781852732213.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1781753586592.ttf → iconfont.1781852732213.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1781753586592.woff → iconfont.1781852732213.woff} +0 -0
- /package/lib/icon/style/{iconfont.1781753586592.woff2 → iconfont.1781852732213.woff2} +0 -0
- /package/lib/{iconfont.1781753586592.ttf → iconfont.1781852732213.ttf} +0 -0
- /package/lib/{iconfont.1781753586592.woff → iconfont.1781852732213.woff} +0 -0
- /package/lib/{iconfont.1781753586592.woff2 → iconfont.1781852732213.woff2} +0 -0
package/lib/index.umd.js
CHANGED
|
@@ -8430,6 +8430,26 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
|
|
|
8430
8430
|
});
|
|
8431
8431
|
|
|
8432
8432
|
|
|
8433
|
+
/***/ }),
|
|
8434
|
+
|
|
8435
|
+
/***/ 5701:
|
|
8436
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
|
8437
|
+
|
|
8438
|
+
"use strict";
|
|
8439
|
+
|
|
8440
|
+
var $ = __webpack_require__(6518);
|
|
8441
|
+
var $padEnd = (__webpack_require__(533).end);
|
|
8442
|
+
var WEBKIT_BUG = __webpack_require__(3063);
|
|
8443
|
+
|
|
8444
|
+
// `String.prototype.padEnd` method
|
|
8445
|
+
// https://tc39.es/ecma262/#sec-string.prototype.padend
|
|
8446
|
+
$({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
|
|
8447
|
+
padEnd: function padEnd(maxLength /* , fillString = ' ' */) {
|
|
8448
|
+
return $padEnd(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
|
|
8449
|
+
}
|
|
8450
|
+
});
|
|
8451
|
+
|
|
8452
|
+
|
|
8433
8453
|
/***/ }),
|
|
8434
8454
|
|
|
8435
8455
|
/***/ 8156:
|
|
@@ -13214,7 +13234,14 @@ function checkDynamic() {
|
|
|
13214
13234
|
}
|
|
13215
13235
|
;// ./packages/ui/src/log.ts
|
|
13216
13236
|
|
|
13217
|
-
|
|
13237
|
+
|
|
13238
|
+
var log_version = "ui v".concat("3.15.3");
|
|
13239
|
+
function createComponentLog(name) {
|
|
13240
|
+
return {
|
|
13241
|
+
warnLog: log.create('warn', "".concat(log_version, " ").concat(name)),
|
|
13242
|
+
errLog: log.create('error', "".concat(log_version, " ").concat(name))
|
|
13243
|
+
};
|
|
13244
|
+
}
|
|
13218
13245
|
var warnLog = log.create('warn', log_version);
|
|
13219
13246
|
var errLog = log.create('error', log_version);
|
|
13220
13247
|
;// ./packages/ui/index.ts
|
|
@@ -13222,7 +13249,7 @@ var errLog = log.create('error', log_version);
|
|
|
13222
13249
|
|
|
13223
13250
|
|
|
13224
13251
|
|
|
13225
|
-
var ui_version = "3.15.
|
|
13252
|
+
var ui_version = "3.15.3";
|
|
13226
13253
|
VxeUI.uiVersion = ui_version;
|
|
13227
13254
|
VxeUI.dynamicApp = dynamicApp;
|
|
13228
13255
|
function config(options) {
|
|
@@ -16706,6 +16733,8 @@ var Tooltip = VxeTooltip;
|
|
|
16706
16733
|
|
|
16707
16734
|
|
|
16708
16735
|
|
|
16736
|
+
var _createComponentLog = createComponentLog('button'),
|
|
16737
|
+
button_warnLog = _createComponentLog.warnLog;
|
|
16709
16738
|
/* harmony default export */ var src_button = (/* define-vxe-component start */defineVxeComponent({
|
|
16710
16739
|
name: 'VxeButton',
|
|
16711
16740
|
mixins: [globalMixins.sizeMixin, globalMixins.permissionMixin],
|
|
@@ -17535,7 +17564,7 @@ var Tooltip = VxeTooltip;
|
|
|
17535
17564
|
var $xeButton = this;
|
|
17536
17565
|
var props = $xeButton;
|
|
17537
17566
|
if (props.type === 'text') {
|
|
17538
|
-
|
|
17567
|
+
button_warnLog('vxe.error.delProp', ['type=text', 'mode=text']);
|
|
17539
17568
|
}
|
|
17540
17569
|
globalEvents.on($xeButton, 'mousewheel', $xeButton.handleGlobalMousewheelEvent);
|
|
17541
17570
|
globalEvents.on($xeButton, 'mousedown', $xeButton.handleGlobalMousedownEvent);
|
|
@@ -17584,6 +17613,8 @@ var Button = VxeButton;
|
|
|
17584
17613
|
|
|
17585
17614
|
|
|
17586
17615
|
|
|
17616
|
+
var backtop_createComponentLog = createComponentLog('backtop'),
|
|
17617
|
+
backtop_errLog = backtop_createComponentLog.errLog;
|
|
17587
17618
|
function createInternalData() {
|
|
17588
17619
|
return {
|
|
17589
17620
|
targetEl: null
|
|
@@ -17693,13 +17724,11 @@ function createReactData() {
|
|
|
17693
17724
|
},
|
|
17694
17725
|
data: function data() {
|
|
17695
17726
|
var xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
17696
|
-
var internalData = createInternalData();
|
|
17697
17727
|
var reactData = createReactData();
|
|
17698
|
-
return {
|
|
17728
|
+
return _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
17699
17729
|
xID: xID,
|
|
17700
|
-
internalData: internalData,
|
|
17701
17730
|
reactData: reactData
|
|
17702
|
-
};
|
|
17731
|
+
});
|
|
17703
17732
|
},
|
|
17704
17733
|
computed: _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
17705
17734
|
computeWrapperStyle: function computeWrapperStyle() {
|
|
@@ -17817,13 +17846,13 @@ function createReactData() {
|
|
|
17817
17846
|
var target = props.target;
|
|
17818
17847
|
if (!target) {
|
|
17819
17848
|
$xeBacktop.removeScrollEvent();
|
|
17820
|
-
|
|
17849
|
+
backtop_errLog('vxe.error.reqProp', ['target']);
|
|
17821
17850
|
return;
|
|
17822
17851
|
}
|
|
17823
17852
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(target)) {
|
|
17824
17853
|
var tEl = document.querySelector(target);
|
|
17825
17854
|
if (!tEl) {
|
|
17826
|
-
|
|
17855
|
+
backtop_errLog('vxe.error.errProp', ["target=".concat(target), 'body']);
|
|
17827
17856
|
}
|
|
17828
17857
|
var targetEl = internalData.targetEl;
|
|
17829
17858
|
if (targetEl !== tEl) {
|
|
@@ -17887,6 +17916,10 @@ function createReactData() {
|
|
|
17887
17916
|
}, bottomSlot({})) : renderEmptyElement($xeBacktop)]);
|
|
17888
17917
|
}
|
|
17889
17918
|
},
|
|
17919
|
+
created: function created() {
|
|
17920
|
+
var $xeBacktop = this;
|
|
17921
|
+
$xeBacktop.internalData = createInternalData();
|
|
17922
|
+
},
|
|
17890
17923
|
mounted: function mounted() {
|
|
17891
17924
|
var $xeBacktop = this;
|
|
17892
17925
|
var props = $xeBacktop;
|
|
@@ -18361,6 +18394,24 @@ var ButtonGroup = VxeButtonGroup;
|
|
|
18361
18394
|
|
|
18362
18395
|
|
|
18363
18396
|
|
|
18397
|
+
function getChunkDefaultNum(selectKey) {
|
|
18398
|
+
var currDate = new Date();
|
|
18399
|
+
switch (selectKey) {
|
|
18400
|
+
case 'y':
|
|
18401
|
+
return currDate.getFullYear();
|
|
18402
|
+
case 'M':
|
|
18403
|
+
return currDate.getMonth() + 1;
|
|
18404
|
+
case 'd':
|
|
18405
|
+
return currDate.getDate();
|
|
18406
|
+
case 'H':
|
|
18407
|
+
return currDate.getHours();
|
|
18408
|
+
case 'm':
|
|
18409
|
+
return currDate.getMinutes();
|
|
18410
|
+
case 's':
|
|
18411
|
+
return currDate.getSeconds();
|
|
18412
|
+
}
|
|
18413
|
+
return 0;
|
|
18414
|
+
}
|
|
18364
18415
|
function hasTimestampValueType(valueFormat) {
|
|
18365
18416
|
return valueFormat === 'timestamp';
|
|
18366
18417
|
}
|
|
@@ -18381,18 +18432,6 @@ function handleValueFormat(type, valueFormat) {
|
|
|
18381
18432
|
}
|
|
18382
18433
|
return 'yyyy-MM-dd';
|
|
18383
18434
|
}
|
|
18384
|
-
function handleInputFormat(type, inputFormat) {
|
|
18385
|
-
if (inputFormat) {
|
|
18386
|
-
return inputFormat;
|
|
18387
|
-
}
|
|
18388
|
-
if (type === 'time') {
|
|
18389
|
-
return 'HH:mm:ss';
|
|
18390
|
-
}
|
|
18391
|
-
if (type === 'datetime') {
|
|
18392
|
-
return 'yyyy-MM-dd HH:mm:ss';
|
|
18393
|
-
}
|
|
18394
|
-
return 'yyyy-MM-dd';
|
|
18395
|
-
}
|
|
18396
18435
|
function toStringTimeDate(str) {
|
|
18397
18436
|
var rest = new Date(2e3, 0, 1);
|
|
18398
18437
|
if (str) {
|
|
@@ -18449,10 +18488,10 @@ var parseDateValue = function parseDateValue(val, type, options) {
|
|
|
18449
18488
|
}
|
|
18450
18489
|
return null;
|
|
18451
18490
|
};
|
|
18452
|
-
|
|
18491
|
+
function parseDateString(val, type, options) {
|
|
18453
18492
|
var dValue = parseDateValue(val, type, options);
|
|
18454
18493
|
return dValue ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(dValue, options.valueFormat) : '';
|
|
18455
|
-
}
|
|
18494
|
+
}
|
|
18456
18495
|
function parseDateObj(val, type, options) {
|
|
18457
18496
|
var labelFormat = options.labelFormat,
|
|
18458
18497
|
firstDay = options.firstDay;
|
|
@@ -18594,9 +18633,20 @@ function getRangeDateByCode(code, val, type, options) {
|
|
|
18594
18633
|
/**
|
|
18595
18634
|
* 判断周的年份是否跨年
|
|
18596
18635
|
*/
|
|
18597
|
-
|
|
18636
|
+
function checkWeekOfsetYear(W, M) {
|
|
18598
18637
|
return "".concat(W) === '1' && "".concat(M) === '12';
|
|
18599
|
-
}
|
|
18638
|
+
}
|
|
18639
|
+
function isAllSameChar(str, char) {
|
|
18640
|
+
if (str.length === 0) {
|
|
18641
|
+
return false;
|
|
18642
|
+
}
|
|
18643
|
+
for (var i = 0; i < str.length; i++) {
|
|
18644
|
+
if (str[i] !== char) {
|
|
18645
|
+
return false;
|
|
18646
|
+
}
|
|
18647
|
+
}
|
|
18648
|
+
return true;
|
|
18649
|
+
}
|
|
18600
18650
|
;// ./packages/calendar/src/calendar.ts
|
|
18601
18651
|
|
|
18602
18652
|
|
|
@@ -18625,6 +18675,8 @@ var checkWeekOfsetYear = function checkWeekOfsetYear(W, M) {
|
|
|
18625
18675
|
|
|
18626
18676
|
|
|
18627
18677
|
|
|
18678
|
+
var calendar_createComponentLog = createComponentLog('calendar'),
|
|
18679
|
+
calendar_errLog = calendar_createComponentLog.errLog;
|
|
18628
18680
|
var calendar_menus = VxeUI.menus,
|
|
18629
18681
|
calendar_getConfig = VxeUI.getConfig,
|
|
18630
18682
|
calendar_getI18n = VxeUI.getI18n;
|
|
@@ -20158,7 +20210,7 @@ var calendar_menus = VxeUI.menus,
|
|
|
20158
20210
|
var menuConfig = props.menuConfig;
|
|
20159
20211
|
var VxeUIContextMenu = VxeUI.getComponent('VxeContextMenu');
|
|
20160
20212
|
if (menuConfig && !VxeUIContextMenu) {
|
|
20161
|
-
|
|
20213
|
+
calendar_errLog('vxe.error.reqComp', ['vxe-context-menu']);
|
|
20162
20214
|
}
|
|
20163
20215
|
$xeCalendar.dateOpenPanel();
|
|
20164
20216
|
},
|
|
@@ -21171,12 +21223,10 @@ function list_createInternalData() {
|
|
|
21171
21223
|
data: function data() {
|
|
21172
21224
|
var xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
21173
21225
|
var reactData = list_createReactData();
|
|
21174
|
-
|
|
21175
|
-
return {
|
|
21226
|
+
return _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
21176
21227
|
xID: xID,
|
|
21177
|
-
reactData: reactData
|
|
21178
|
-
|
|
21179
|
-
};
|
|
21228
|
+
reactData: reactData
|
|
21229
|
+
});
|
|
21180
21230
|
},
|
|
21181
21231
|
computed: _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
21182
21232
|
computeSYOpts: function computeSYOpts() {
|
|
@@ -21547,6 +21597,7 @@ function list_createInternalData() {
|
|
|
21547
21597
|
created: function created() {
|
|
21548
21598
|
var $xeList = this;
|
|
21549
21599
|
var props = $xeList;
|
|
21600
|
+
$xeList.internalData = list_createInternalData();
|
|
21550
21601
|
$xeList.loadData(props.data || []);
|
|
21551
21602
|
},
|
|
21552
21603
|
mounted: function mounted() {
|
|
@@ -21661,6 +21712,8 @@ function toFloatValueFixed(inputValue, type, digitsValue, roundingMode) {
|
|
|
21661
21712
|
|
|
21662
21713
|
|
|
21663
21714
|
|
|
21715
|
+
var input_createComponentLog = createComponentLog('input'),
|
|
21716
|
+
input_warnLog = input_createComponentLog.warnLog;
|
|
21664
21717
|
/* harmony default export */ var input = (/* define-vxe-component start */defineVxeComponent({
|
|
21665
21718
|
name: 'VxeInput',
|
|
21666
21719
|
mixins: [globalMixins.sizeMixin],
|
|
@@ -24692,11 +24745,11 @@ function toFloatValueFixed(inputValue, type, digitsValue, roundingMode) {
|
|
|
24692
24745
|
var props = $xeInput;
|
|
24693
24746
|
var type = props.type;
|
|
24694
24747
|
if (['date', 'time', 'datetime', 'week', 'month', 'quarter', 'year'].includes(type)) {
|
|
24695
|
-
|
|
24748
|
+
input_warnLog('vxe.error.useNew', ["<vxe-input type=\"".concat(type, "\" ... />"), "<vxe-date-picker type=\"".concat(type, "\" ... />")]);
|
|
24696
24749
|
} else if (['number', 'integer', 'float'].includes(type)) {
|
|
24697
|
-
|
|
24750
|
+
input_warnLog('vxe.error.useNew', ["<vxe-input type=\"".concat(type, "\" ... />"), "<vxe-number-input type=\"".concat(type, "\" ... />")]);
|
|
24698
24751
|
} else if (['password'].includes(type)) {
|
|
24699
|
-
|
|
24752
|
+
input_warnLog('vxe.error.useNew', ["<vxe-input type=\"".concat(type, "\" ... />"), '<vxe-password-input ... />']);
|
|
24700
24753
|
}
|
|
24701
24754
|
var inputElem = $xeInput.$refs.refInputTarget;
|
|
24702
24755
|
if (inputElem) {
|
|
@@ -24764,6 +24817,8 @@ function toFloatValueFixed(inputValue, type, digitsValue, roundingMode) {
|
|
|
24764
24817
|
|
|
24765
24818
|
|
|
24766
24819
|
|
|
24820
|
+
var cascader_createComponentLog = createComponentLog('cascader'),
|
|
24821
|
+
cascader_errLog = cascader_createComponentLog.errLog;
|
|
24767
24822
|
/**
|
|
24768
24823
|
* 生成节点的唯一主键
|
|
24769
24824
|
*/
|
|
@@ -24952,12 +25007,10 @@ function cascader_createInternalData() {
|
|
|
24952
25007
|
data: function data() {
|
|
24953
25008
|
var xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
24954
25009
|
var reactData = cascader_createReactData();
|
|
24955
|
-
|
|
24956
|
-
return {
|
|
25010
|
+
return _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
24957
25011
|
xID: xID,
|
|
24958
|
-
reactData: reactData
|
|
24959
|
-
|
|
24960
|
-
};
|
|
25012
|
+
reactData: reactData
|
|
25013
|
+
});
|
|
24961
25014
|
},
|
|
24962
25015
|
computed: _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
24963
25016
|
computeFormReadonly: function computeFormReadonly() {
|
|
@@ -26749,6 +26802,7 @@ function cascader_createInternalData() {
|
|
|
26749
26802
|
var $xeCascader = this;
|
|
26750
26803
|
var props = $xeCascader;
|
|
26751
26804
|
var reactData = $xeCascader.reactData;
|
|
26805
|
+
$xeCascader.internalData = cascader_createInternalData();
|
|
26752
26806
|
if (!props.multiple) {
|
|
26753
26807
|
reactData.selectRadioKey = enNodeValue(props.value);
|
|
26754
26808
|
}
|
|
@@ -26758,7 +26812,7 @@ function cascader_createInternalData() {
|
|
|
26758
26812
|
var $xeCascader = this;
|
|
26759
26813
|
var props = $xeCascader;
|
|
26760
26814
|
if (props.filterable) {
|
|
26761
|
-
|
|
26815
|
+
cascader_errLog('vxe.error.notProp', ['filterable']);
|
|
26762
26816
|
}
|
|
26763
26817
|
globalEvents.on($xeCascader, 'mousewheel', $xeCascader.handleGlobalMousewheelEvent);
|
|
26764
26818
|
globalEvents.on($xeCascader, 'mousedown', $xeCascader.handleGlobalMousedownEvent);
|
|
@@ -27225,6 +27279,9 @@ var CheckboxButton = VxeCheckboxButton;
|
|
|
27225
27279
|
|
|
27226
27280
|
|
|
27227
27281
|
|
|
27282
|
+
function group_createReactData() {
|
|
27283
|
+
return {};
|
|
27284
|
+
}
|
|
27228
27285
|
function group_createInternalData() {
|
|
27229
27286
|
return {
|
|
27230
27287
|
// isLoaded: false
|
|
@@ -27273,13 +27330,11 @@ function group_createInternalData() {
|
|
|
27273
27330
|
};
|
|
27274
27331
|
},
|
|
27275
27332
|
data: function data() {
|
|
27276
|
-
var reactData =
|
|
27277
|
-
|
|
27278
|
-
return {
|
|
27333
|
+
var reactData = group_createReactData();
|
|
27334
|
+
return _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
27279
27335
|
xID: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId(),
|
|
27280
|
-
reactData: reactData
|
|
27281
|
-
|
|
27282
|
-
};
|
|
27336
|
+
reactData: reactData
|
|
27337
|
+
});
|
|
27283
27338
|
},
|
|
27284
27339
|
computed: _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
27285
27340
|
computeIsReadonly: function computeIsReadonly() {
|
|
@@ -27465,6 +27520,10 @@ function group_createInternalData() {
|
|
|
27465
27520
|
$xeCheckboxGroup.loadData(val);
|
|
27466
27521
|
}
|
|
27467
27522
|
},
|
|
27523
|
+
created: function created() {
|
|
27524
|
+
var $xeCheckboxGroup = this;
|
|
27525
|
+
$xeCheckboxGroup.internalData = group_createInternalData();
|
|
27526
|
+
},
|
|
27468
27527
|
mounted: function mounted() {
|
|
27469
27528
|
var $xeCheckboxGroup = this;
|
|
27470
27529
|
var props = $xeCheckboxGroup;
|
|
@@ -27475,6 +27534,13 @@ function group_createInternalData() {
|
|
|
27475
27534
|
}
|
|
27476
27535
|
});
|
|
27477
27536
|
},
|
|
27537
|
+
beforeDestroy: function beforeDestroy() {
|
|
27538
|
+
var $xeCheckboxGroup = this;
|
|
27539
|
+
var reactData = $xeCheckboxGroup.reactData;
|
|
27540
|
+
var internalData = $xeCheckboxGroup.internalData;
|
|
27541
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(reactData, group_createReactData());
|
|
27542
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, group_createInternalData());
|
|
27543
|
+
},
|
|
27478
27544
|
render: function render(h) {
|
|
27479
27545
|
return this.renderVN(h);
|
|
27480
27546
|
}
|
|
@@ -30973,13 +31039,11 @@ function closeMenu($xeContextMenu) {
|
|
|
30973
31039
|
}
|
|
30974
31040
|
},
|
|
30975
31041
|
data: function data() {
|
|
30976
|
-
var internalData = context_menu_createInternalData();
|
|
30977
31042
|
var reactData = context_menu_createReactData();
|
|
30978
|
-
return {
|
|
31043
|
+
return _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
30979
31044
|
xID: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId(),
|
|
30980
|
-
internalData: internalData,
|
|
30981
31045
|
reactData: reactData
|
|
30982
|
-
};
|
|
31046
|
+
});
|
|
30983
31047
|
},
|
|
30984
31048
|
computed: _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
30985
31049
|
computeMenuGroups: function computeMenuGroups() {
|
|
@@ -31418,6 +31482,7 @@ function closeMenu($xeContextMenu) {
|
|
|
31418
31482
|
},
|
|
31419
31483
|
created: function created() {
|
|
31420
31484
|
var $xeContextMenu = this;
|
|
31485
|
+
$xeContextMenu.internalData = context_menu_createInternalData();
|
|
31421
31486
|
$xeContextMenu.handleVisible();
|
|
31422
31487
|
globalEvents.on($xeContextMenu, 'mousewheel', $xeContextMenu.handleGlobalMousewheelEvent);
|
|
31423
31488
|
globalEvents.on($xeContextMenu, 'keydown', $xeContextMenu.handleGlobalKeydownEvent);
|
|
@@ -34091,6 +34156,8 @@ dynamicApp.use(VxeDatePanel);
|
|
|
34091
34156
|
VxeUI.component(date_panel);
|
|
34092
34157
|
var DatePanel = VxeDatePanel;
|
|
34093
34158
|
/* harmony default export */ var packages_date_panel = (VxeDatePanel);
|
|
34159
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.pad-end.js
|
|
34160
|
+
var es_string_pad_end = __webpack_require__(5701);
|
|
34094
34161
|
;// ./packages/date-picker/src/date-picker.ts
|
|
34095
34162
|
|
|
34096
34163
|
|
|
@@ -34116,6 +34183,54 @@ var DatePanel = VxeDatePanel;
|
|
|
34116
34183
|
|
|
34117
34184
|
|
|
34118
34185
|
|
|
34186
|
+
|
|
34187
|
+
|
|
34188
|
+
|
|
34189
|
+
|
|
34190
|
+
|
|
34191
|
+
|
|
34192
|
+
|
|
34193
|
+
|
|
34194
|
+
|
|
34195
|
+
|
|
34196
|
+
|
|
34197
|
+
|
|
34198
|
+
|
|
34199
|
+
|
|
34200
|
+
|
|
34201
|
+
|
|
34202
|
+
|
|
34203
|
+
|
|
34204
|
+
|
|
34205
|
+
var date_picker_createComponentLog = createComponentLog('date-picker'),
|
|
34206
|
+
date_picker_warnLog = date_picker_createComponentLog.warnLog,
|
|
34207
|
+
date_picker_errLog = date_picker_createComponentLog.errLog;
|
|
34208
|
+
var maskedTypes = ['year', 'month', 'date', 'datetime', 'time'];
|
|
34209
|
+
var inputMaskedKeys = ['y', 'M', 'd', 'H', 'm', 'n', 's'];
|
|
34210
|
+
var parseInputKayMaps = {};
|
|
34211
|
+
inputMaskedKeys.forEach(function (key) {
|
|
34212
|
+
parseInputKayMaps[key] = true;
|
|
34213
|
+
});
|
|
34214
|
+
function date_picker_createReactData() {
|
|
34215
|
+
return {
|
|
34216
|
+
initialized: false,
|
|
34217
|
+
panelIndex: 0,
|
|
34218
|
+
visiblePanel: false,
|
|
34219
|
+
isAniVisible: false,
|
|
34220
|
+
panelStyle: {},
|
|
34221
|
+
panelPlacement: '',
|
|
34222
|
+
isActivated: false,
|
|
34223
|
+
inputValue: '',
|
|
34224
|
+
labelFlag: 0
|
|
34225
|
+
};
|
|
34226
|
+
}
|
|
34227
|
+
function date_picker_createInternalData() {
|
|
34228
|
+
return {
|
|
34229
|
+
// hpTimeout: undefined,
|
|
34230
|
+
inputLabel: '',
|
|
34231
|
+
laseFocusMasked: 0
|
|
34232
|
+
};
|
|
34233
|
+
}
|
|
34119
34234
|
/* harmony default export */ var date_picker = (/* define-vxe-component start */defineVxeComponent({
|
|
34120
34235
|
name: 'VxeDatePicker',
|
|
34121
34236
|
mixins: [globalMixins.sizeMixin],
|
|
@@ -34195,7 +34310,6 @@ var DatePanel = VxeDatePanel;
|
|
|
34195
34310
|
labelFormat: String,
|
|
34196
34311
|
valueFormat: String,
|
|
34197
34312
|
timeFormat: String,
|
|
34198
|
-
inputFormat: String,
|
|
34199
34313
|
editable: {
|
|
34200
34314
|
type: Boolean,
|
|
34201
34315
|
default: true
|
|
@@ -34237,7 +34351,7 @@ var DatePanel = VxeDatePanel;
|
|
|
34237
34351
|
return getConfig().datePicker.autoClose;
|
|
34238
34352
|
}
|
|
34239
34353
|
},
|
|
34240
|
-
|
|
34354
|
+
maskedConfig: Object,
|
|
34241
34355
|
prefixIcon: String,
|
|
34242
34356
|
suffixIcon: String,
|
|
34243
34357
|
placement: String,
|
|
@@ -34277,26 +34391,11 @@ var DatePanel = VxeDatePanel;
|
|
|
34277
34391
|
},
|
|
34278
34392
|
data: function data() {
|
|
34279
34393
|
var xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
34280
|
-
var reactData =
|
|
34281
|
-
|
|
34282
|
-
panelIndex: 0,
|
|
34283
|
-
visiblePanel: false,
|
|
34284
|
-
isAniVisible: false,
|
|
34285
|
-
panelStyle: {},
|
|
34286
|
-
panelPlacement: '',
|
|
34287
|
-
isActivated: false,
|
|
34288
|
-
inputValue: '',
|
|
34289
|
-
inputLabel: ''
|
|
34290
|
-
};
|
|
34291
|
-
var internalData = {
|
|
34292
|
-
// hpTimeout: undefined,
|
|
34293
|
-
parseInputKayMaps: {}
|
|
34294
|
-
};
|
|
34295
|
-
return {
|
|
34394
|
+
var reactData = date_picker_createReactData();
|
|
34395
|
+
return _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
34296
34396
|
xID: xID,
|
|
34297
|
-
reactData: reactData
|
|
34298
|
-
|
|
34299
|
-
};
|
|
34397
|
+
reactData: reactData
|
|
34398
|
+
});
|
|
34300
34399
|
},
|
|
34301
34400
|
computed: _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
34302
34401
|
computeBtnTransfer: function computeBtnTransfer() {
|
|
@@ -34365,6 +34464,57 @@ var DatePanel = VxeDatePanel;
|
|
|
34365
34464
|
var props = $xeDatePicker;
|
|
34366
34465
|
return props.clearable;
|
|
34367
34466
|
},
|
|
34467
|
+
computeIsDatePanelType: function computeIsDatePanelType() {
|
|
34468
|
+
var $xeDatePicker = this;
|
|
34469
|
+
var props = $xeDatePicker;
|
|
34470
|
+
var isDateTimeType = $xeDatePicker.computeIsDateTimeType;
|
|
34471
|
+
return isDateTimeType || ['date', 'week', 'month', 'quarter', 'year'].indexOf(props.type) > -1;
|
|
34472
|
+
},
|
|
34473
|
+
computeDateListValue: function computeDateListValue() {
|
|
34474
|
+
var $xeDatePicker = this;
|
|
34475
|
+
var props = $xeDatePicker;
|
|
34476
|
+
var modelValue = props.value,
|
|
34477
|
+
type = props.type,
|
|
34478
|
+
multiple = props.multiple;
|
|
34479
|
+
var isDatePanelType = $xeDatePicker.computeIsDatePanelType;
|
|
34480
|
+
var dateValueFormat = $xeDatePicker.computeDateValueFormat;
|
|
34481
|
+
if (multiple && modelValue && isDatePanelType) {
|
|
34482
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(modelValue).split(',').map(function (item) {
|
|
34483
|
+
var date = parseDateValue(item, type, {
|
|
34484
|
+
valueFormat: dateValueFormat
|
|
34485
|
+
});
|
|
34486
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isValidDate(date)) {
|
|
34487
|
+
return date;
|
|
34488
|
+
}
|
|
34489
|
+
return date;
|
|
34490
|
+
});
|
|
34491
|
+
}
|
|
34492
|
+
return [];
|
|
34493
|
+
},
|
|
34494
|
+
computeLimitMaxCount: function computeLimitMaxCount() {
|
|
34495
|
+
var $xeDatePicker = this;
|
|
34496
|
+
var props = $xeDatePicker;
|
|
34497
|
+
return props.multiple ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.limitCount) : 0;
|
|
34498
|
+
},
|
|
34499
|
+
computeDateMultipleValue: function computeDateMultipleValue() {
|
|
34500
|
+
var $xeDatePicker = this;
|
|
34501
|
+
var dateListValue = $xeDatePicker.computeDateListValue;
|
|
34502
|
+
var dateValueFormat = $xeDatePicker.computeDateValueFormat;
|
|
34503
|
+
return dateListValue.map(function (date) {
|
|
34504
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(date, dateValueFormat);
|
|
34505
|
+
});
|
|
34506
|
+
},
|
|
34507
|
+
computeOverCount: function computeOverCount() {
|
|
34508
|
+
var $xeDatePicker = this;
|
|
34509
|
+
var props = $xeDatePicker;
|
|
34510
|
+
var multiple = props.multiple;
|
|
34511
|
+
var limitMaxCount = $xeDatePicker.computeLimitMaxCount;
|
|
34512
|
+
var dateMultipleValue = $xeDatePicker.computeDateMultipleValue;
|
|
34513
|
+
if (multiple && limitMaxCount) {
|
|
34514
|
+
return dateMultipleValue.length >= limitMaxCount;
|
|
34515
|
+
}
|
|
34516
|
+
return false;
|
|
34517
|
+
},
|
|
34368
34518
|
computeInputReadonly: function computeInputReadonly() {
|
|
34369
34519
|
var $xeDatePicker = this;
|
|
34370
34520
|
var props = $xeDatePicker;
|
|
@@ -34434,12 +34584,10 @@ var DatePanel = VxeDatePanel;
|
|
|
34434
34584
|
valueFormat = props.valueFormat;
|
|
34435
34585
|
return handleValueFormat(type, valueFormat);
|
|
34436
34586
|
},
|
|
34437
|
-
|
|
34587
|
+
computeDateMaskedFormat: function computeDateMaskedFormat() {
|
|
34438
34588
|
var $xeDatePicker = this;
|
|
34439
|
-
var
|
|
34440
|
-
|
|
34441
|
-
inputFormat = props.inputFormat;
|
|
34442
|
-
return handleInputFormat(type, inputFormat);
|
|
34589
|
+
var dateLabelFormat = $xeDatePicker.computeDateLabelFormat;
|
|
34590
|
+
return dateLabelFormat;
|
|
34443
34591
|
},
|
|
34444
34592
|
computeFirstDayOfWeek: function computeFirstDayOfWeek() {
|
|
34445
34593
|
var $xeDatePicker = this;
|
|
@@ -34467,10 +34615,16 @@ var DatePanel = VxeDatePanel;
|
|
|
34467
34615
|
return dateObj.label;
|
|
34468
34616
|
}).join(', ');
|
|
34469
34617
|
},
|
|
34470
|
-
|
|
34618
|
+
computeMaskedOpts: function computeMaskedOpts() {
|
|
34471
34619
|
var $xeDatePicker = this;
|
|
34472
34620
|
var props = $xeDatePicker;
|
|
34473
|
-
return Object.assign({}, getConfig().datePicker.
|
|
34621
|
+
return Object.assign({}, getConfig().datePicker.maskedConfig, props.maskedConfig);
|
|
34622
|
+
},
|
|
34623
|
+
computeMaskChar: function computeMaskChar() {
|
|
34624
|
+
var $xeDatePicker = this;
|
|
34625
|
+
var maskedOpts = $xeDatePicker.computeMaskedOpts;
|
|
34626
|
+
var maskPlaceholder = maskedOpts.maskPlaceholder;
|
|
34627
|
+
return (maskPlaceholder ? ('' + maskPlaceholder)[0] : '') || '*';
|
|
34474
34628
|
}
|
|
34475
34629
|
}),
|
|
34476
34630
|
methods: {
|
|
@@ -34507,6 +34661,15 @@ var DatePanel = VxeDatePanel;
|
|
|
34507
34661
|
}
|
|
34508
34662
|
reactData.inputValue = val;
|
|
34509
34663
|
},
|
|
34664
|
+
handleInputLabel: function handleInputLabel(text, isUpdate) {
|
|
34665
|
+
var $xeDatePicker = this;
|
|
34666
|
+
var reactData = $xeDatePicker.reactData;
|
|
34667
|
+
var internalData = $xeDatePicker.internalData;
|
|
34668
|
+
internalData.inputLabel = text;
|
|
34669
|
+
if (isUpdate) {
|
|
34670
|
+
reactData.labelFlag++;
|
|
34671
|
+
}
|
|
34672
|
+
},
|
|
34510
34673
|
triggerEvent: function triggerEvent(evnt) {
|
|
34511
34674
|
var $xeDatePicker = this;
|
|
34512
34675
|
var reactData = $xeDatePicker.reactData;
|
|
@@ -34570,10 +34733,9 @@ var DatePanel = VxeDatePanel;
|
|
|
34570
34733
|
},
|
|
34571
34734
|
inputEvent: function inputEvent(evnt) {
|
|
34572
34735
|
var $xeDatePicker = this;
|
|
34573
|
-
var reactData = $xeDatePicker.reactData;
|
|
34574
34736
|
var inputElem = evnt.target;
|
|
34575
34737
|
var value = inputElem.value;
|
|
34576
|
-
|
|
34738
|
+
$xeDatePicker.handleInputLabel(value, true);
|
|
34577
34739
|
$xeDatePicker.dispatchEvent('input', {
|
|
34578
34740
|
value: value
|
|
34579
34741
|
}, evnt);
|
|
@@ -34585,19 +34747,6 @@ var DatePanel = VxeDatePanel;
|
|
|
34585
34747
|
$xeDatePicker.triggerEvent(evnt);
|
|
34586
34748
|
}
|
|
34587
34749
|
},
|
|
34588
|
-
focusEvent: function focusEvent(evnt) {
|
|
34589
|
-
var $xeDatePicker = this;
|
|
34590
|
-
var reactData = $xeDatePicker.reactData;
|
|
34591
|
-
var popupOpts = $xeDatePicker.computePopupOpts;
|
|
34592
|
-
var trigger = popupOpts.trigger;
|
|
34593
|
-
reactData.isActivated = true;
|
|
34594
|
-
if (!trigger || trigger === 'default') {
|
|
34595
|
-
$xeDatePicker.datePickerOpenEvent(evnt);
|
|
34596
|
-
} else if (trigger === 'icon') {
|
|
34597
|
-
$xeDatePicker.hidePanel();
|
|
34598
|
-
}
|
|
34599
|
-
$xeDatePicker.triggerEvent(evnt);
|
|
34600
|
-
},
|
|
34601
34750
|
clickPrefixEvent: function clickPrefixEvent(evnt) {
|
|
34602
34751
|
var $xeDatePicker = this;
|
|
34603
34752
|
var reactData = $xeDatePicker.reactData;
|
|
@@ -34621,6 +34770,134 @@ var DatePanel = VxeDatePanel;
|
|
|
34621
34770
|
}, 350);
|
|
34622
34771
|
});
|
|
34623
34772
|
},
|
|
34773
|
+
dateChange: function dateChange(date, isReload) {
|
|
34774
|
+
var $xeDatePicker = this;
|
|
34775
|
+
var props = $xeDatePicker;
|
|
34776
|
+
var modelValue = props.value,
|
|
34777
|
+
multiple = props.multiple;
|
|
34778
|
+
var isDateTimeType = $xeDatePicker.computeIsDateTimeType;
|
|
34779
|
+
var dateValueFormat = $xeDatePicker.computeDateValueFormat;
|
|
34780
|
+
var firstDayOfWeek = $xeDatePicker.computeFirstDayOfWeek;
|
|
34781
|
+
if (props.type === 'week') {
|
|
34782
|
+
var sWeek = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(props.selectDay);
|
|
34783
|
+
date = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().getWhatWeek(date, 0, sWeek, firstDayOfWeek);
|
|
34784
|
+
}
|
|
34785
|
+
var inpVal = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(date, dateValueFormat, {
|
|
34786
|
+
firstDay: firstDayOfWeek
|
|
34787
|
+
});
|
|
34788
|
+
if (multiple) {
|
|
34789
|
+
var overCount = $xeDatePicker.computeOverCount;
|
|
34790
|
+
// 如果为多选
|
|
34791
|
+
if (isDateTimeType) {
|
|
34792
|
+
// 如果是datetime特殊类型
|
|
34793
|
+
var dateListValue = isReload ? [] : _toConsumableArray($xeDatePicker.computeDateListValue);
|
|
34794
|
+
var datetimeRest = [];
|
|
34795
|
+
var eqIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(dateListValue, function (val) {
|
|
34796
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isDateSame(date, val, 'yyyyMMdd');
|
|
34797
|
+
});
|
|
34798
|
+
if (eqIndex === -1) {
|
|
34799
|
+
if (overCount) {
|
|
34800
|
+
// 如果超出最大多选数量
|
|
34801
|
+
return;
|
|
34802
|
+
}
|
|
34803
|
+
dateListValue.push(date);
|
|
34804
|
+
} else {
|
|
34805
|
+
dateListValue.splice(eqIndex, 1);
|
|
34806
|
+
}
|
|
34807
|
+
dateListValue.forEach(function (item) {
|
|
34808
|
+
if (item) {
|
|
34809
|
+
datetimeRest.push(item);
|
|
34810
|
+
}
|
|
34811
|
+
});
|
|
34812
|
+
$xeDatePicker.handleChange(datetimeRest.map(function (date) {
|
|
34813
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(date, dateValueFormat);
|
|
34814
|
+
}).join(','), {
|
|
34815
|
+
type: 'update'
|
|
34816
|
+
});
|
|
34817
|
+
} else {
|
|
34818
|
+
var dateMultipleValue = isReload ? [] : $xeDatePicker.computeDateMultipleValue;
|
|
34819
|
+
// 如果是日期类型
|
|
34820
|
+
if (dateMultipleValue.some(function (val) {
|
|
34821
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(val, inpVal);
|
|
34822
|
+
})) {
|
|
34823
|
+
$xeDatePicker.handleChange(dateMultipleValue.filter(function (val) {
|
|
34824
|
+
return !external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(val, inpVal);
|
|
34825
|
+
}).join(','), {
|
|
34826
|
+
type: 'update'
|
|
34827
|
+
});
|
|
34828
|
+
} else {
|
|
34829
|
+
if (overCount) {
|
|
34830
|
+
// 如果超出最大多选数量
|
|
34831
|
+
return;
|
|
34832
|
+
}
|
|
34833
|
+
$xeDatePicker.handleChange(dateMultipleValue.concat([inpVal]).join(','), {
|
|
34834
|
+
type: 'update'
|
|
34835
|
+
});
|
|
34836
|
+
}
|
|
34837
|
+
}
|
|
34838
|
+
} else {
|
|
34839
|
+
// 如果为单选
|
|
34840
|
+
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isEqual(modelValue, inpVal)) {
|
|
34841
|
+
$xeDatePicker.handleChange(inpVal, {
|
|
34842
|
+
type: 'update'
|
|
34843
|
+
});
|
|
34844
|
+
}
|
|
34845
|
+
}
|
|
34846
|
+
},
|
|
34847
|
+
dateRevert: function dateRevert() {
|
|
34848
|
+
var $xeDatePicker = this;
|
|
34849
|
+
var panelLabel = $xeDatePicker.computePanelLabel;
|
|
34850
|
+
$xeDatePicker.handleInputLabel(panelLabel, true);
|
|
34851
|
+
},
|
|
34852
|
+
afterCheckValue: function afterCheckValue(inpVal) {
|
|
34853
|
+
var $xeDatePicker = this;
|
|
34854
|
+
var props = $xeDatePicker;
|
|
34855
|
+
var reactData = $xeDatePicker.reactData;
|
|
34856
|
+
var internalData = $xeDatePicker.internalData;
|
|
34857
|
+
var type = props.type;
|
|
34858
|
+
var inputLabel = internalData.inputLabel;
|
|
34859
|
+
var dateLabelFormat = $xeDatePicker.computeDateLabelFormat;
|
|
34860
|
+
if (!inpVal) {
|
|
34861
|
+
$xeDatePicker.handleChange('', {
|
|
34862
|
+
type: 'check'
|
|
34863
|
+
});
|
|
34864
|
+
return;
|
|
34865
|
+
}
|
|
34866
|
+
var inpDateVal = parseDateValue(inpVal, type, {
|
|
34867
|
+
valueFormat: dateLabelFormat
|
|
34868
|
+
});
|
|
34869
|
+
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isValidDate(inpDateVal)) {
|
|
34870
|
+
$xeDatePicker.dateRevert();
|
|
34871
|
+
return;
|
|
34872
|
+
}
|
|
34873
|
+
if (type === 'time') {
|
|
34874
|
+
inpDateVal = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(inpDateVal, dateLabelFormat);
|
|
34875
|
+
if (inputLabel !== inpDateVal) {
|
|
34876
|
+
$xeDatePicker.handleChange(inpDateVal, {
|
|
34877
|
+
type: 'check'
|
|
34878
|
+
});
|
|
34879
|
+
}
|
|
34880
|
+
$xeDatePicker.handleInputLabel(inpDateVal, true);
|
|
34881
|
+
return;
|
|
34882
|
+
}
|
|
34883
|
+
var isChange = false;
|
|
34884
|
+
var firstDayOfWeek = $xeDatePicker.computeFirstDayOfWeek;
|
|
34885
|
+
if (type === 'datetime') {
|
|
34886
|
+
var dateValue = reactData.inputValue;
|
|
34887
|
+
if (inpVal !== external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(dateValue, dateLabelFormat) || inpVal !== external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(inpDateVal, dateLabelFormat)) {
|
|
34888
|
+
isChange = true;
|
|
34889
|
+
}
|
|
34890
|
+
} else {
|
|
34891
|
+
isChange = true;
|
|
34892
|
+
}
|
|
34893
|
+
var label = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(inpDateVal, dateLabelFormat, {
|
|
34894
|
+
firstDay: firstDayOfWeek
|
|
34895
|
+
});
|
|
34896
|
+
$xeDatePicker.handleInputLabel(label, true);
|
|
34897
|
+
if (isChange) {
|
|
34898
|
+
$xeDatePicker.dateChange(inpDateVal);
|
|
34899
|
+
}
|
|
34900
|
+
},
|
|
34624
34901
|
clearValueEvent: function clearValueEvent(evnt, value) {
|
|
34625
34902
|
var $xeDatePicker = this;
|
|
34626
34903
|
var isDatePickerType = $xeDatePicker.computeIsDatePickerType;
|
|
@@ -34643,38 +34920,322 @@ var DatePanel = VxeDatePanel;
|
|
|
34643
34920
|
}, evnt);
|
|
34644
34921
|
}
|
|
34645
34922
|
},
|
|
34646
|
-
handleArrowInputDate: function handleArrowInputDate(evnt, isUpArrow) {
|
|
34923
|
+
handleArrowInputDate: function handleArrowInputDate(evnt, isUpArrow, isDwArrow, isLtArrow, isRtArrow) {
|
|
34924
|
+
var $xeDatePicker = this;
|
|
34925
|
+
var props = $xeDatePicker;
|
|
34926
|
+
var internalData = $xeDatePicker.internalData;
|
|
34927
|
+
var type = props.type,
|
|
34928
|
+
multiple = props.multiple;
|
|
34929
|
+
if (multiple) {
|
|
34930
|
+
return;
|
|
34931
|
+
}
|
|
34932
|
+
var targetElem = $xeDatePicker.$refs.refInputTarget;
|
|
34933
|
+
if (!targetElem) {
|
|
34934
|
+
return;
|
|
34935
|
+
}
|
|
34936
|
+
var inpValue = targetElem.value;
|
|
34937
|
+
if (!inpValue) {
|
|
34938
|
+
return;
|
|
34939
|
+
}
|
|
34940
|
+
var dateMaskedFormat = $xeDatePicker.computeDateMaskedFormat;
|
|
34941
|
+
var dateLabelFormat = $xeDatePicker.computeDateLabelFormat;
|
|
34942
|
+
var firstDayOfWeek = $xeDatePicker.computeFirstDayOfWeek;
|
|
34943
|
+
var maskChar = $xeDatePicker.computeMaskChar;
|
|
34944
|
+
var selectionStart = targetElem.selectionStart || 0;
|
|
34945
|
+
var selectKey = dateMaskedFormat[selectionStart];
|
|
34946
|
+
if (!parseInputKayMaps[selectKey]) {
|
|
34947
|
+
selectKey = dateMaskedFormat[selectionStart - 1];
|
|
34948
|
+
}
|
|
34949
|
+
var skRest = dateMaskedFormat.match(new RegExp(selectKey + '+'));
|
|
34950
|
+
if (!skRest) {
|
|
34951
|
+
return;
|
|
34952
|
+
}
|
|
34953
|
+
if (isUpArrow || isDwArrow) {
|
|
34954
|
+
var chunkFormat = skRest[0] || '';
|
|
34955
|
+
var chunkStartIndex = skRest.index || 0;
|
|
34956
|
+
var chunkEndIndex = chunkStartIndex + chunkFormat.length;
|
|
34957
|
+
var chunkValue = inpValue.slice(chunkStartIndex, chunkEndIndex);
|
|
34958
|
+
if (parseInputKayMaps[selectKey]) {
|
|
34959
|
+
var chunkNum = (isAllSameChar(chunkValue, maskChar) ? getChunkDefaultNum(selectKey) : external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(chunkValue)) + (isUpArrow ? 1 : -1);
|
|
34960
|
+
var restValue = inpValue.slice(0, chunkStartIndex) + external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().padStart(chunkNum, chunkFormat.length, '0') + inpValue.slice(chunkEndIndex);
|
|
34961
|
+
evnt.preventDefault();
|
|
34962
|
+
if (restValue.indexOf(maskChar) === -1) {
|
|
34963
|
+
// 解析日期
|
|
34964
|
+
var inpDateVal = parseDateValue(restValue, type, {
|
|
34965
|
+
valueFormat: dateLabelFormat
|
|
34966
|
+
});
|
|
34967
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isValidDate(inpDateVal)) {
|
|
34968
|
+
var label = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toDateString(inpDateVal, dateLabelFormat, {
|
|
34969
|
+
firstDay: firstDayOfWeek
|
|
34970
|
+
});
|
|
34971
|
+
targetElem.value = label;
|
|
34972
|
+
$xeDatePicker.handleInputLabel(label, false);
|
|
34973
|
+
}
|
|
34974
|
+
} else {
|
|
34975
|
+
targetElem.value = restValue;
|
|
34976
|
+
$xeDatePicker.handleInputLabel(restValue, false);
|
|
34977
|
+
}
|
|
34978
|
+
}
|
|
34979
|
+
targetElem.setSelectionRange(chunkStartIndex, chunkEndIndex);
|
|
34980
|
+
} else if (isLtArrow || isRtArrow) {
|
|
34981
|
+
var currKeyIndex = inputMaskedKeys.indexOf(selectKey);
|
|
34982
|
+
if (currKeyIndex > -1) {
|
|
34983
|
+
var allMaskedKeys = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().map(dateMaskedFormat.match(new RegExp("(".concat(inputMaskedKeys.join('|'), ")+"), 'g')) || [], function (fullKey) {
|
|
34984
|
+
return fullKey[0];
|
|
34985
|
+
});
|
|
34986
|
+
var currIndex = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(allMaskedKeys, function (key) {
|
|
34987
|
+
return selectKey === key[0];
|
|
34988
|
+
});
|
|
34989
|
+
var targetFormatKey = isLtArrow ? allMaskedKeys[currIndex - 1] || allMaskedKeys[0] : allMaskedKeys[currIndex + 1] || allMaskedKeys[allMaskedKeys.length - 1];
|
|
34990
|
+
var targetKey = targetFormatKey ? targetFormatKey[0] : '';
|
|
34991
|
+
var sktRest = dateMaskedFormat.match(new RegExp(targetKey + '+'));
|
|
34992
|
+
if (sktRest) {
|
|
34993
|
+
evnt.preventDefault();
|
|
34994
|
+
var mtStartIndex = sktRest.index || 0;
|
|
34995
|
+
var mtEndIndex = mtStartIndex + sktRest[0].length;
|
|
34996
|
+
targetElem.setSelectionRange(mtStartIndex, mtEndIndex);
|
|
34997
|
+
}
|
|
34998
|
+
}
|
|
34999
|
+
}
|
|
35000
|
+
internalData.isTriggerMasked = true;
|
|
35001
|
+
},
|
|
35002
|
+
handleMaskedInputDate: function handleMaskedInputDate(evnt) {
|
|
34647
35003
|
var $xeDatePicker = this;
|
|
34648
35004
|
var props = $xeDatePicker;
|
|
34649
|
-
var reactData = $xeDatePicker.reactData;
|
|
34650
35005
|
var internalData = $xeDatePicker.internalData;
|
|
34651
35006
|
var multiple = props.multiple;
|
|
34652
35007
|
if (multiple) {
|
|
34653
35008
|
return;
|
|
34654
35009
|
}
|
|
34655
|
-
var
|
|
34656
|
-
if (!
|
|
35010
|
+
var targetElem = $xeDatePicker.$refs.refInputTarget;
|
|
35011
|
+
if (!targetElem) {
|
|
35012
|
+
return;
|
|
35013
|
+
}
|
|
35014
|
+
var isControlKey = hasControlKey(evnt);
|
|
35015
|
+
if (isControlKey) {
|
|
35016
|
+
return;
|
|
35017
|
+
}
|
|
35018
|
+
evnt.preventDefault();
|
|
35019
|
+
var eKey = evnt.key;
|
|
35020
|
+
var isDeleleKey = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.DELETE);
|
|
35021
|
+
var isBackspaceKey = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.BACKSPACE);
|
|
35022
|
+
var isNumKey = eKey >= '0' && eKey <= '9';
|
|
35023
|
+
var numKey = isNumKey ? evnt.key : '';
|
|
35024
|
+
if (!(isDeleleKey || isBackspaceKey || isNumKey)) {
|
|
35025
|
+
return;
|
|
35026
|
+
}
|
|
35027
|
+
var isTriggerMasked = internalData.isTriggerMasked;
|
|
35028
|
+
var dateMaskedFormat = $xeDatePicker.computeDateMaskedFormat;
|
|
35029
|
+
var maskChar = $xeDatePicker.computeMaskChar;
|
|
35030
|
+
var inpValue = targetElem.value || dateMaskedFormat;
|
|
35031
|
+
var selectionStart = targetElem.selectionStart || 0;
|
|
35032
|
+
var selectionEnd = targetElem.selectionEnd || 0;
|
|
35033
|
+
var selectKey = dateMaskedFormat[selectionStart];
|
|
35034
|
+
if (!parseInputKayMaps[selectKey]) {
|
|
35035
|
+
selectKey = dateMaskedFormat[selectionStart - 1];
|
|
35036
|
+
}
|
|
35037
|
+
var skRest = dateMaskedFormat.match(new RegExp(selectKey + '+'));
|
|
35038
|
+
if (!skRest) {
|
|
35039
|
+
return;
|
|
35040
|
+
}
|
|
35041
|
+
var allMaskedKeys = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().map(dateMaskedFormat.match(new RegExp("(".concat(inputMaskedKeys.join('|'), ")+"), 'g')) || [], function (fullKey) {
|
|
35042
|
+
return fullKey[0];
|
|
35043
|
+
});
|
|
35044
|
+
var chunkFormat = skRest[0] || '';
|
|
35045
|
+
var chunkStartIndex = skRest.index || 0;
|
|
35046
|
+
var chunkEndIndex = chunkStartIndex + chunkFormat.length;
|
|
35047
|
+
var currKeyIndex = allMaskedKeys.indexOf(selectKey);
|
|
35048
|
+
// 全选 | 如果无效字符
|
|
35049
|
+
var isAllSelected = !selectionStart && selectionEnd === inpValue.length;
|
|
35050
|
+
var isNotMasked = inpValue && inpValue.length !== dateMaskedFormat.length;
|
|
35051
|
+
if (isAllSelected || isNotMasked) {
|
|
35052
|
+
inpValue = dateMaskedFormat;
|
|
35053
|
+
}
|
|
35054
|
+
var chunkValue = isDeleleKey ? '' : inpValue.slice(chunkStartIndex, chunkEndIndex);
|
|
35055
|
+
var chunkNums = chunkValue.match(/\d/g) || [];
|
|
35056
|
+
var chunkNumList = isTriggerMasked && !isBackspaceKey ? [] : chunkNums.slice(0);
|
|
35057
|
+
if (isNumKey) {
|
|
35058
|
+
chunkNumList.push(numKey);
|
|
35059
|
+
} else if (isBackspaceKey) {
|
|
35060
|
+
chunkNumList.pop();
|
|
35061
|
+
}
|
|
35062
|
+
chunkValue = chunkNumList.join('').padEnd(chunkFormat.length, maskChar);
|
|
35063
|
+
var restValue = inpValue.slice(0, chunkStartIndex) + chunkValue + inpValue.slice(chunkEndIndex);
|
|
35064
|
+
restValue = restValue.replace(new RegExp("(".concat(inputMaskedKeys.join('|'), ")"), 'g'), maskChar);
|
|
35065
|
+
targetElem.value = restValue;
|
|
35066
|
+
$xeDatePicker.handleInputLabel(restValue, false);
|
|
35067
|
+
// 如果是全选/删除
|
|
35068
|
+
if (isAllSelected) {
|
|
35069
|
+
if (isBackspaceKey || isDeleleKey) {
|
|
35070
|
+
var firstMaskedKeys = allMaskedKeys[0];
|
|
35071
|
+
var firstSkRest = dateMaskedFormat.match(new RegExp("".concat(firstMaskedKeys, "+")));
|
|
35072
|
+
if (firstSkRest) {
|
|
35073
|
+
var firstChunkFormat = firstSkRest[0];
|
|
35074
|
+
targetElem.setSelectionRange(0, firstChunkFormat.length);
|
|
35075
|
+
internalData.isTriggerMasked = true;
|
|
35076
|
+
return;
|
|
35077
|
+
}
|
|
35078
|
+
}
|
|
35079
|
+
} else {
|
|
35080
|
+
if (isBackspaceKey && !chunkNums.length) {
|
|
35081
|
+
// 回退到上一个数字块
|
|
35082
|
+
for (var i = currKeyIndex - 1; i >= 0; i--) {
|
|
35083
|
+
var prveChunkKey = allMaskedKeys[i];
|
|
35084
|
+
var prveSkRest = dateMaskedFormat.match(new RegExp("".concat(prveChunkKey, "+")));
|
|
35085
|
+
if (prveSkRest) {
|
|
35086
|
+
var prveChunkFormat = prveSkRest[0];
|
|
35087
|
+
var prveChunkStartIndex = prveSkRest.index || 0;
|
|
35088
|
+
var prveChunkEndIndex = prveChunkStartIndex + prveChunkFormat.length;
|
|
35089
|
+
var prveChunkValue = restValue.slice(prveChunkStartIndex, prveChunkEndIndex);
|
|
35090
|
+
var prveChunkNums = prveChunkValue.match(/\d/g) || [];
|
|
35091
|
+
if (prveChunkNums.length) {
|
|
35092
|
+
prveChunkNums.pop();
|
|
35093
|
+
prveChunkValue = prveChunkNums.join('').padEnd(prveChunkFormat.length, maskChar);
|
|
35094
|
+
restValue = restValue.slice(0, prveChunkStartIndex) + prveChunkValue + restValue.slice(prveChunkEndIndex);
|
|
35095
|
+
targetElem.value = restValue;
|
|
35096
|
+
$xeDatePicker.handleInputLabel(restValue, false);
|
|
35097
|
+
targetElem.setSelectionRange(prveChunkStartIndex, prveChunkEndIndex);
|
|
35098
|
+
return;
|
|
35099
|
+
}
|
|
35100
|
+
}
|
|
35101
|
+
}
|
|
35102
|
+
var _firstMaskedKeys = allMaskedKeys[0];
|
|
35103
|
+
var _firstSkRest = dateMaskedFormat.match(new RegExp("".concat(_firstMaskedKeys, "+")));
|
|
35104
|
+
if (_firstSkRest) {
|
|
35105
|
+
var _firstChunkFormat = _firstSkRest[0];
|
|
35106
|
+
restValue = dateMaskedFormat.replace(new RegExp("(".concat(inputMaskedKeys.join('|'), ")"), 'g'), maskChar);
|
|
35107
|
+
targetElem.value = restValue;
|
|
35108
|
+
$xeDatePicker.handleInputLabel(restValue, false);
|
|
35109
|
+
targetElem.setSelectionRange(0, _firstChunkFormat.length);
|
|
35110
|
+
internalData.isTriggerMasked = true;
|
|
35111
|
+
return;
|
|
35112
|
+
}
|
|
35113
|
+
return;
|
|
35114
|
+
}
|
|
35115
|
+
}
|
|
35116
|
+
var maskStartIndex = skRest.index || 0;
|
|
35117
|
+
var maskEndIndex = maskStartIndex + skRest[0].length;
|
|
35118
|
+
// 如果输入完成,跳转下一个
|
|
35119
|
+
if (chunkNumList.length >= chunkValue.length) {
|
|
35120
|
+
var nextKeys = allMaskedKeys.slice(currKeyIndex + 1);
|
|
35121
|
+
if (currKeyIndex > -1) {
|
|
35122
|
+
var nextRest = nextKeys.length ? dateMaskedFormat.match(new RegExp("(".concat(nextKeys.join('|'), ")+"))) : null;
|
|
35123
|
+
// 如果当前数字块已输入,则跳转下一个数字块
|
|
35124
|
+
if (nextRest) {
|
|
35125
|
+
maskStartIndex = nextRest.index || 0;
|
|
35126
|
+
maskEndIndex = maskStartIndex + nextRest[0].length;
|
|
35127
|
+
targetElem.setSelectionRange(maskStartIndex, maskEndIndex);
|
|
35128
|
+
} else {
|
|
35129
|
+
targetElem.setSelectionRange(maskStartIndex, maskEndIndex);
|
|
35130
|
+
}
|
|
35131
|
+
}
|
|
35132
|
+
internalData.isTriggerMasked = true;
|
|
35133
|
+
return;
|
|
35134
|
+
}
|
|
35135
|
+
targetElem.setSelectionRange(maskStartIndex, maskEndIndex);
|
|
35136
|
+
internalData.isTriggerMasked = false;
|
|
35137
|
+
},
|
|
35138
|
+
handleMaskedSelectedDate: function handleMaskedSelectedDate(evnt, isFocus) {
|
|
35139
|
+
var $xeDatePicker = this;
|
|
35140
|
+
var props = $xeDatePicker;
|
|
35141
|
+
var internalData = $xeDatePicker.internalData;
|
|
35142
|
+
var type = props.type,
|
|
35143
|
+
multiple = props.multiple,
|
|
35144
|
+
modelValue = props.value;
|
|
35145
|
+
if (multiple) {
|
|
35146
|
+
return;
|
|
35147
|
+
}
|
|
35148
|
+
if (!maskedTypes.includes(type)) {
|
|
34657
35149
|
return;
|
|
34658
35150
|
}
|
|
34659
35151
|
var targetElem = $xeDatePicker.$refs.refInputTarget;
|
|
34660
35152
|
if (!targetElem) {
|
|
34661
35153
|
return;
|
|
34662
35154
|
}
|
|
34663
|
-
var
|
|
34664
|
-
|
|
35155
|
+
var laseFocusMasked = internalData.laseFocusMasked;
|
|
35156
|
+
if (laseFocusMasked && Date.now() - laseFocusMasked < 100) {
|
|
35157
|
+
return;
|
|
35158
|
+
}
|
|
35159
|
+
var dateMaskedFormat = $xeDatePicker.computeDateMaskedFormat;
|
|
35160
|
+
var maskChar = $xeDatePicker.computeMaskChar;
|
|
34665
35161
|
var selectionStart = targetElem.selectionStart || 0;
|
|
34666
|
-
var
|
|
35162
|
+
var selectionEnd = targetElem.selectionEnd || 0;
|
|
35163
|
+
var inpValue = targetElem.value;
|
|
35164
|
+
var allMaskedKeys = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().map(dateMaskedFormat.match(new RegExp("(".concat(inputMaskedKeys.join('|'), ")+"), 'g')) || [], function (fullKey) {
|
|
35165
|
+
return fullKey[0];
|
|
35166
|
+
});
|
|
35167
|
+
// 如果为空
|
|
35168
|
+
if (!inpValue) {
|
|
35169
|
+
var restValue = dateMaskedFormat.replace(new RegExp("(".concat(inputMaskedKeys.join('|'), ")"), 'g'), maskChar);
|
|
35170
|
+
// 还原值
|
|
35171
|
+
if (isFocus && modelValue) {
|
|
35172
|
+
var chunkNums = ('' + external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(modelValue)).match(/\d/g) || [];
|
|
35173
|
+
var useNumIndex = 0;
|
|
35174
|
+
restValue = dateMaskedFormat.replace(new RegExp("(".concat(inputMaskedKeys.join('|'), ")"), 'g'), function (txt) {
|
|
35175
|
+
return chunkNums[useNumIndex++] || txt;
|
|
35176
|
+
});
|
|
35177
|
+
}
|
|
35178
|
+
var firstMaskedKeys = allMaskedKeys[0];
|
|
35179
|
+
var firstSkRest = dateMaskedFormat.match(new RegExp("".concat(firstMaskedKeys, "+")));
|
|
35180
|
+
if (firstSkRest) {
|
|
35181
|
+
evnt.preventDefault();
|
|
35182
|
+
var firstChunkFormat = firstSkRest[0];
|
|
35183
|
+
targetElem.value = restValue;
|
|
35184
|
+
$xeDatePicker.handleInputLabel(restValue, false);
|
|
35185
|
+
targetElem.setSelectionRange(0, firstChunkFormat.length);
|
|
35186
|
+
internalData.laseFocusMasked = Date.now();
|
|
35187
|
+
return;
|
|
35188
|
+
}
|
|
35189
|
+
}
|
|
35190
|
+
// 全选 | 如果无效字符
|
|
35191
|
+
var isAllSelected = !selectionStart && selectionEnd === inpValue.length;
|
|
35192
|
+
var isNotMasked = inpValue && inpValue.length !== dateMaskedFormat.length;
|
|
35193
|
+
if (isAllSelected || isNotMasked) {
|
|
35194
|
+
var _restValue = '';
|
|
35195
|
+
// 还原值
|
|
35196
|
+
if (isNotMasked && inpValue) {
|
|
35197
|
+
var _chunkNums = inpValue.match(/\d/g) || [];
|
|
35198
|
+
var _useNumIndex = 0;
|
|
35199
|
+
_restValue = dateMaskedFormat.replace(new RegExp("(".concat(inputMaskedKeys.join('|'), ")"), 'g'), function () {
|
|
35200
|
+
return _chunkNums[_useNumIndex++] || maskChar;
|
|
35201
|
+
});
|
|
35202
|
+
} else {
|
|
35203
|
+
dateMaskedFormat.replace(new RegExp("(".concat(inputMaskedKeys.join('|'), ")"), 'g'), maskChar);
|
|
35204
|
+
}
|
|
35205
|
+
var _firstMaskedKeys2 = allMaskedKeys[0];
|
|
35206
|
+
var _firstSkRest2 = dateMaskedFormat.match(new RegExp("".concat(_firstMaskedKeys2, "+")));
|
|
35207
|
+
if (_firstSkRest2) {
|
|
35208
|
+
evnt.preventDefault();
|
|
35209
|
+
var _firstChunkFormat2 = _firstSkRest2[0];
|
|
35210
|
+
targetElem.value = _restValue;
|
|
35211
|
+
$xeDatePicker.handleInputLabel(_restValue, false);
|
|
35212
|
+
targetElem.setSelectionRange(0, _firstChunkFormat2.length);
|
|
35213
|
+
internalData.laseFocusMasked = Date.now();
|
|
35214
|
+
return;
|
|
35215
|
+
}
|
|
35216
|
+
}
|
|
35217
|
+
// 是否选择数字块
|
|
35218
|
+
var selectKey = dateMaskedFormat[selectionStart];
|
|
34667
35219
|
if (!parseInputKayMaps[selectKey]) {
|
|
34668
|
-
selectKey =
|
|
35220
|
+
selectKey = dateMaskedFormat[selectionStart - 1];
|
|
34669
35221
|
}
|
|
34670
|
-
|
|
34671
|
-
|
|
34672
|
-
|
|
35222
|
+
if (selectKey) {
|
|
35223
|
+
evnt.preventDefault();
|
|
35224
|
+
var skRest = dateMaskedFormat.match(new RegExp(selectKey + '+'));
|
|
35225
|
+
if (skRest) {
|
|
35226
|
+
var chunkFormat = skRest[0] || '';
|
|
35227
|
+
var chunkStartIndex = skRest.index || 0;
|
|
35228
|
+
var chunkEndIndex = chunkStartIndex + chunkFormat.length;
|
|
35229
|
+
targetElem.setSelectionRange(chunkStartIndex, chunkEndIndex);
|
|
35230
|
+
internalData.isTriggerMasked = true;
|
|
35231
|
+
internalData.laseFocusMasked = Date.now();
|
|
35232
|
+
}
|
|
34673
35233
|
}
|
|
34674
35234
|
},
|
|
34675
35235
|
blurEvent: function blurEvent(evnt) {
|
|
34676
35236
|
var $xeDatePicker = this;
|
|
34677
35237
|
var reactData = $xeDatePicker.reactData;
|
|
35238
|
+
var internalData = $xeDatePicker.internalData;
|
|
34678
35239
|
var $xeForm = $xeDatePicker.$xeForm;
|
|
34679
35240
|
var formItemInfo = $xeDatePicker.formItemInfo;
|
|
34680
35241
|
var $datePanel = $xeDatePicker.$refs.refDatePanel;
|
|
@@ -34685,10 +35246,13 @@ var DatePanel = VxeDatePanel;
|
|
|
34685
35246
|
$xeDatePicker.handleChange(value, evnt);
|
|
34686
35247
|
}
|
|
34687
35248
|
if (!reactData.visiblePanel) {
|
|
35249
|
+
var inputLabel = internalData.inputLabel;
|
|
34688
35250
|
reactData.isActivated = false;
|
|
34689
35251
|
// 未打开面板时才校验
|
|
34690
35252
|
if ($datePanel) {
|
|
34691
|
-
$datePanel.checkValue(
|
|
35253
|
+
$datePanel.checkValue(inputLabel);
|
|
35254
|
+
} else {
|
|
35255
|
+
$xeDatePicker.afterCheckValue(inputLabel);
|
|
34692
35256
|
}
|
|
34693
35257
|
}
|
|
34694
35258
|
$xeDatePicker.dispatchEvent('blur', {
|
|
@@ -34699,15 +35263,89 @@ var DatePanel = VxeDatePanel;
|
|
|
34699
35263
|
$xeForm.triggerItemEvent(evnt, formItemInfo.itemConfig.field, value);
|
|
34700
35264
|
}
|
|
34701
35265
|
},
|
|
35266
|
+
focusEvent: function focusEvent(evnt) {
|
|
35267
|
+
var $xeDatePicker = this;
|
|
35268
|
+
var props = $xeDatePicker;
|
|
35269
|
+
var reactData = $xeDatePicker.reactData;
|
|
35270
|
+
var multiple = props.multiple,
|
|
35271
|
+
editable = props.editable,
|
|
35272
|
+
maskedConfig = props.maskedConfig;
|
|
35273
|
+
var maskedOpts = $xeDatePicker.computeMaskedOpts;
|
|
35274
|
+
var popupOpts = $xeDatePicker.computePopupOpts;
|
|
35275
|
+
var trigger = popupOpts.trigger;
|
|
35276
|
+
reactData.isActivated = true;
|
|
35277
|
+
if (!trigger || trigger === 'default') {
|
|
35278
|
+
$xeDatePicker.datePickerOpenEvent(evnt);
|
|
35279
|
+
setTimeout(function () {
|
|
35280
|
+
if (editable && !multiple && (isEnableConf(maskedConfig) || maskedOpts.enabled)) {
|
|
35281
|
+
$xeDatePicker.handleMaskedSelectedDate(evnt, true);
|
|
35282
|
+
}
|
|
35283
|
+
}, 15);
|
|
35284
|
+
} else if (trigger === 'icon') {
|
|
35285
|
+
$xeDatePicker.hidePanel();
|
|
35286
|
+
setTimeout(function () {
|
|
35287
|
+
if (editable && !multiple && (isEnableConf(maskedConfig) || maskedOpts.enabled)) {
|
|
35288
|
+
$xeDatePicker.handleMaskedSelectedDate(evnt, true);
|
|
35289
|
+
}
|
|
35290
|
+
}, 15);
|
|
35291
|
+
} else {
|
|
35292
|
+
if (editable && !multiple && (isEnableConf(maskedConfig) || maskedOpts.enabled)) {
|
|
35293
|
+
$xeDatePicker.handleMaskedSelectedDate(evnt, true);
|
|
35294
|
+
}
|
|
35295
|
+
}
|
|
35296
|
+
$xeDatePicker.triggerEvent(evnt);
|
|
35297
|
+
},
|
|
35298
|
+
clickEvent: function clickEvent(evnt) {
|
|
35299
|
+
var $xeDatePicker = this;
|
|
35300
|
+
var props = $xeDatePicker;
|
|
35301
|
+
var editable = props.editable,
|
|
35302
|
+
maskedConfig = props.maskedConfig;
|
|
35303
|
+
var maskedOpts = $xeDatePicker.computeMaskedOpts;
|
|
35304
|
+
if (editable && (isEnableConf(maskedConfig) || maskedOpts.enabled)) {
|
|
35305
|
+
$xeDatePicker.handleMaskedSelectedDate(evnt);
|
|
35306
|
+
}
|
|
35307
|
+
$xeDatePicker.triggerEvent(evnt);
|
|
35308
|
+
},
|
|
34702
35309
|
keydownEvent: function keydownEvent(evnt) {
|
|
34703
35310
|
var $xeDatePicker = this;
|
|
34704
35311
|
var props = $xeDatePicker;
|
|
34705
|
-
var
|
|
34706
|
-
var
|
|
35312
|
+
var reactData = $xeDatePicker.reactData;
|
|
35313
|
+
var internalData = $xeDatePicker.internalData;
|
|
35314
|
+
var type = props.type,
|
|
35315
|
+
editable = props.editable,
|
|
35316
|
+
maskedConfig = props.maskedConfig;
|
|
35317
|
+
var visiblePanel = reactData.visiblePanel;
|
|
35318
|
+
var maskedOpts = $xeDatePicker.computeMaskedOpts;
|
|
34707
35319
|
var isUpArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_UP);
|
|
34708
35320
|
var isDwArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_DOWN);
|
|
34709
|
-
|
|
34710
|
-
|
|
35321
|
+
var isLtArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_LEFT);
|
|
35322
|
+
var isRtArrow = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ARROW_RIGHT);
|
|
35323
|
+
var isEnter = globalEvents.hasKey(evnt, GLOBAL_EVENT_KEYS.ENTER);
|
|
35324
|
+
if (editable) {
|
|
35325
|
+
if (isEnter) {
|
|
35326
|
+
var $datePanel = $xeDatePicker.$refs.refDatePanel;
|
|
35327
|
+
var inputLabel = internalData.inputLabel;
|
|
35328
|
+
var targetElem = $xeDatePicker.$refs.refInputTarget;
|
|
35329
|
+
if (visiblePanel) {
|
|
35330
|
+
$xeDatePicker.hidePanel();
|
|
35331
|
+
}
|
|
35332
|
+
if ($datePanel) {
|
|
35333
|
+
$datePanel.checkValue(inputLabel);
|
|
35334
|
+
} else {
|
|
35335
|
+
$xeDatePicker.afterCheckValue(inputLabel);
|
|
35336
|
+
}
|
|
35337
|
+
if (targetElem) {
|
|
35338
|
+
targetElem.blur();
|
|
35339
|
+
}
|
|
35340
|
+
} else if (maskedTypes.includes(type)) {
|
|
35341
|
+
if (isEnableConf(maskedConfig) || maskedOpts.enabled) {
|
|
35342
|
+
if (maskedOpts.isArrow && (isUpArrow || isDwArrow || isLtArrow || isRtArrow)) {
|
|
35343
|
+
$xeDatePicker.handleArrowInputDate(evnt, isUpArrow, isDwArrow, isLtArrow, isRtArrow);
|
|
35344
|
+
} else if (maskedOpts.isMasked) {
|
|
35345
|
+
$xeDatePicker.handleMaskedInputDate(evnt);
|
|
35346
|
+
}
|
|
35347
|
+
}
|
|
35348
|
+
}
|
|
34711
35349
|
}
|
|
34712
35350
|
$xeDatePicker.triggerEvent(evnt);
|
|
34713
35351
|
},
|
|
@@ -34744,13 +35382,13 @@ var DatePanel = VxeDatePanel;
|
|
|
34744
35382
|
},
|
|
34745
35383
|
panelRevertEvent: function panelRevertEvent(params) {
|
|
34746
35384
|
var $xeDatePicker = this;
|
|
34747
|
-
|
|
34748
|
-
reactData.inputLabel = params.label;
|
|
35385
|
+
$xeDatePicker.handleInputLabel(params.label, true);
|
|
34749
35386
|
},
|
|
34750
35387
|
// 全局事件
|
|
34751
35388
|
handleGlobalMousedownEvent: function handleGlobalMousedownEvent(evnt) {
|
|
34752
35389
|
var $xeDatePicker = this;
|
|
34753
35390
|
var reactData = $xeDatePicker.reactData;
|
|
35391
|
+
var internalData = $xeDatePicker.internalData;
|
|
34754
35392
|
var $datePanel = $xeDatePicker.$refs.refDatePanel;
|
|
34755
35393
|
var visiblePanel = reactData.visiblePanel,
|
|
34756
35394
|
isActivated = reactData.isActivated;
|
|
@@ -34758,12 +35396,18 @@ var DatePanel = VxeDatePanel;
|
|
|
34758
35396
|
var panelWrapperElem = $xeDatePicker.$refs.refPanelWrapper;
|
|
34759
35397
|
var isDisabled = $xeDatePicker.computeIsDisabled;
|
|
34760
35398
|
if (!isDisabled && isActivated) {
|
|
34761
|
-
|
|
34762
|
-
if (
|
|
35399
|
+
var currActivated = getEventTargetNode(evnt, el).flag || getEventTargetNode(evnt, panelWrapperElem).flag;
|
|
35400
|
+
if (currActivated !== isActivated) {
|
|
35401
|
+
reactData.isActivated = currActivated;
|
|
35402
|
+
}
|
|
35403
|
+
if (!currActivated) {
|
|
34763
35404
|
if (visiblePanel) {
|
|
34764
35405
|
$xeDatePicker.hidePanel();
|
|
35406
|
+
var inputLabel = internalData.inputLabel;
|
|
34765
35407
|
if ($datePanel) {
|
|
34766
|
-
$datePanel.checkValue(
|
|
35408
|
+
$datePanel.checkValue(inputLabel);
|
|
35409
|
+
} else {
|
|
35410
|
+
$xeDatePicker.afterCheckValue(inputLabel);
|
|
34767
35411
|
}
|
|
34768
35412
|
}
|
|
34769
35413
|
}
|
|
@@ -34806,6 +35450,7 @@ var DatePanel = VxeDatePanel;
|
|
|
34806
35450
|
handleGlobalBlurEvent: function handleGlobalBlurEvent() {
|
|
34807
35451
|
var $xeDatePicker = this;
|
|
34808
35452
|
var reactData = $xeDatePicker.reactData;
|
|
35453
|
+
var internalData = $xeDatePicker.internalData;
|
|
34809
35454
|
var $datePanel = $xeDatePicker.$refs.refDatePanel;
|
|
34810
35455
|
var isActivated = reactData.isActivated,
|
|
34811
35456
|
visiblePanel = reactData.visiblePanel;
|
|
@@ -34817,7 +35462,7 @@ var DatePanel = VxeDatePanel;
|
|
|
34817
35462
|
}
|
|
34818
35463
|
if (visiblePanel || isActivated) {
|
|
34819
35464
|
if ($datePanel) {
|
|
34820
|
-
$datePanel.checkValue(
|
|
35465
|
+
$datePanel.checkValue(internalData.inputLabel);
|
|
34821
35466
|
}
|
|
34822
35467
|
var targetElem = $xeDatePicker.$refs.refInputTarget;
|
|
34823
35468
|
if (targetElem) {
|
|
@@ -34883,9 +35528,11 @@ var DatePanel = VxeDatePanel;
|
|
|
34883
35528
|
var btnTransfer = $xeDatePicker.computeBtnTransfer;
|
|
34884
35529
|
var panelElem = $xeDatePicker.$refs.refInputPanel;
|
|
34885
35530
|
if (!isDisabled && !visiblePanel) {
|
|
34886
|
-
if (!reactData.initialized
|
|
35531
|
+
if (!reactData.initialized) {
|
|
34887
35532
|
reactData.initialized = true;
|
|
34888
|
-
|
|
35533
|
+
if (btnTransfer && panelElem) {
|
|
35534
|
+
document.body.appendChild(panelElem);
|
|
35535
|
+
}
|
|
34889
35536
|
}
|
|
34890
35537
|
if (internalData.hpTimeout) {
|
|
34891
35538
|
clearTimeout(internalData.hpTimeout);
|
|
@@ -34924,10 +35571,6 @@ var DatePanel = VxeDatePanel;
|
|
|
34924
35571
|
}
|
|
34925
35572
|
}
|
|
34926
35573
|
},
|
|
34927
|
-
clickEvent: function clickEvent(evnt) {
|
|
34928
|
-
var $xeDatePicker = this;
|
|
34929
|
-
$xeDatePicker.triggerEvent(evnt);
|
|
34930
|
-
},
|
|
34931
35574
|
handleShortcutEvent: function handleShortcutEvent(_ref) {
|
|
34932
35575
|
var option = _ref.option,
|
|
34933
35576
|
$event = _ref.$event;
|
|
@@ -34972,7 +35615,7 @@ var DatePanel = VxeDatePanel;
|
|
|
34972
35615
|
break;
|
|
34973
35616
|
}
|
|
34974
35617
|
default:
|
|
34975
|
-
|
|
35618
|
+
date_picker_errLog('vxe.error.notCommands', [code]);
|
|
34976
35619
|
break;
|
|
34977
35620
|
}
|
|
34978
35621
|
}
|
|
@@ -35229,14 +35872,16 @@ var DatePanel = VxeDatePanel;
|
|
|
35229
35872
|
var $xeDatePicker = this;
|
|
35230
35873
|
var props = $xeDatePicker;
|
|
35231
35874
|
var reactData = $xeDatePicker.reactData;
|
|
35875
|
+
var internalData = $xeDatePicker.internalData;
|
|
35232
35876
|
var className = props.className,
|
|
35233
35877
|
type = props.type,
|
|
35234
35878
|
name = props.name,
|
|
35235
35879
|
autoComplete = props.autoComplete;
|
|
35236
35880
|
var inputValue = reactData.inputValue,
|
|
35237
|
-
inputLabel = reactData.inputLabel,
|
|
35238
35881
|
visiblePanel = reactData.visiblePanel,
|
|
35239
|
-
isActivated = reactData.isActivated
|
|
35882
|
+
isActivated = reactData.isActivated,
|
|
35883
|
+
labelFlag = reactData.labelFlag;
|
|
35884
|
+
var inputLabel = internalData.inputLabel;
|
|
35240
35885
|
var vSize = $xeDatePicker.computeSize;
|
|
35241
35886
|
var isDisabled = $xeDatePicker.computeIsDisabled;
|
|
35242
35887
|
var formReadonly = $xeDatePicker.computeFormReadonly;
|
|
@@ -35264,7 +35909,7 @@ var DatePanel = VxeDatePanel;
|
|
|
35264
35909
|
ref: 'refInputTarget',
|
|
35265
35910
|
class: 'vxe-date-picker--inner',
|
|
35266
35911
|
domProps: {
|
|
35267
|
-
value: inputLabel
|
|
35912
|
+
value: labelFlag ? inputLabel : ''
|
|
35268
35913
|
},
|
|
35269
35914
|
attrs: {
|
|
35270
35915
|
name: name,
|
|
@@ -35291,8 +35936,7 @@ var DatePanel = VxeDatePanel;
|
|
|
35291
35936
|
watch: {
|
|
35292
35937
|
computePanelLabel: function computePanelLabel(val) {
|
|
35293
35938
|
var $xeDatePicker = this;
|
|
35294
|
-
|
|
35295
|
-
reactData.inputLabel = val;
|
|
35939
|
+
$xeDatePicker.handleInputLabel(val, true);
|
|
35296
35940
|
},
|
|
35297
35941
|
value: function value() {
|
|
35298
35942
|
var $xeDatePicker = this;
|
|
@@ -35301,14 +35945,19 @@ var DatePanel = VxeDatePanel;
|
|
|
35301
35945
|
},
|
|
35302
35946
|
created: function created() {
|
|
35303
35947
|
var $xeDatePicker = this;
|
|
35304
|
-
var
|
|
35305
|
-
|
|
35306
|
-
var
|
|
35307
|
-
|
|
35308
|
-
|
|
35309
|
-
|
|
35310
|
-
|
|
35311
|
-
|
|
35948
|
+
var props = $xeDatePicker;
|
|
35949
|
+
$xeDatePicker.internalData = date_picker_createInternalData();
|
|
35950
|
+
var type = props.type,
|
|
35951
|
+
multiple = props.multiple,
|
|
35952
|
+
maskedConfig = props.maskedConfig;
|
|
35953
|
+
if (isEnableConf(maskedConfig)) {
|
|
35954
|
+
if (multiple) {
|
|
35955
|
+
date_picker_errLog('vxe.error.notSupportProp', ['multiple', 'control-config.enabled=true', 'control-config.enabled=false']);
|
|
35956
|
+
}
|
|
35957
|
+
if (!maskedTypes.includes(type)) {
|
|
35958
|
+
date_picker_warnLog('vxe.error.notSupportProp', ['control-config.enabled=true', "type=".concat(type), "type=".concat(maskedTypes.join('|'))]);
|
|
35959
|
+
}
|
|
35960
|
+
}
|
|
35312
35961
|
$xeDatePicker.updateModelValue();
|
|
35313
35962
|
globalEvents.on($xeDatePicker, 'mousewheel', $xeDatePicker.handleGlobalMousewheelEvent);
|
|
35314
35963
|
globalEvents.on($xeDatePicker, 'mousedown', $xeDatePicker.handleGlobalMousedownEvent);
|
|
@@ -35318,6 +35967,8 @@ var DatePanel = VxeDatePanel;
|
|
|
35318
35967
|
},
|
|
35319
35968
|
beforeDestroy: function beforeDestroy() {
|
|
35320
35969
|
var $xeDatePicker = this;
|
|
35970
|
+
var reactData = $xeDatePicker.reactData;
|
|
35971
|
+
var internalData = $xeDatePicker.internalData;
|
|
35321
35972
|
var panelElem = $xeDatePicker.$refs.refInputPanel;
|
|
35322
35973
|
if (panelElem && panelElem.parentNode) {
|
|
35323
35974
|
panelElem.parentNode.removeChild(panelElem);
|
|
@@ -35326,6 +35977,8 @@ var DatePanel = VxeDatePanel;
|
|
|
35326
35977
|
globalEvents.off($xeDatePicker, 'mousedown');
|
|
35327
35978
|
globalEvents.off($xeDatePicker, 'blur');
|
|
35328
35979
|
globalEvents.off($xeDatePicker, 'resize');
|
|
35980
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(reactData, date_picker_createReactData());
|
|
35981
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, date_picker_createInternalData());
|
|
35329
35982
|
},
|
|
35330
35983
|
render: function render(h) {
|
|
35331
35984
|
return this.renderVN(h);
|
|
@@ -35372,6 +36025,8 @@ var DatePicker = VxeDatePicker;
|
|
|
35372
36025
|
|
|
35373
36026
|
|
|
35374
36027
|
|
|
36028
|
+
var date_range_picker_createComponentLog = createComponentLog('date-range-picker'),
|
|
36029
|
+
date_range_picker_errLog = date_range_picker_createComponentLog.errLog;
|
|
35375
36030
|
/* harmony default export */ var date_range_picker = (/* define-vxe-component start */defineVxeComponent({
|
|
35376
36031
|
name: 'VxeDateRangePicker',
|
|
35377
36032
|
mixins: [globalMixins.sizeMixin],
|
|
@@ -36355,9 +37010,11 @@ var DatePicker = VxeDatePicker;
|
|
|
36355
37010
|
var btnTransfer = $xeDateRangePicker.computeBtnTransfer;
|
|
36356
37011
|
var panelElem = $xeDateRangePicker.$refs.refInputPanel;
|
|
36357
37012
|
if (!isDisabled && !visiblePanel) {
|
|
36358
|
-
if (!reactData.initialized
|
|
37013
|
+
if (!reactData.initialized) {
|
|
36359
37014
|
reactData.initialized = true;
|
|
36360
|
-
|
|
37015
|
+
if (btnTransfer && panelElem) {
|
|
37016
|
+
document.body.appendChild(panelElem);
|
|
37017
|
+
}
|
|
36361
37018
|
}
|
|
36362
37019
|
if (internalData.hpTimeout) {
|
|
36363
37020
|
clearTimeout(internalData.hpTimeout);
|
|
@@ -36454,7 +37111,7 @@ var DatePicker = VxeDatePicker;
|
|
|
36454
37111
|
break;
|
|
36455
37112
|
}
|
|
36456
37113
|
default:
|
|
36457
|
-
|
|
37114
|
+
date_range_picker_errLog('vxe.error.notCommands', [code]);
|
|
36458
37115
|
break;
|
|
36459
37116
|
}
|
|
36460
37117
|
}
|
|
@@ -37028,6 +37685,7 @@ var allActiveDrawers = [];
|
|
|
37028
37685
|
return getConfig().drawer.showTitleOverflow;
|
|
37029
37686
|
}
|
|
37030
37687
|
},
|
|
37688
|
+
preload: Boolean,
|
|
37031
37689
|
width: [Number, String],
|
|
37032
37690
|
height: [Number, String],
|
|
37033
37691
|
resize: {
|
|
@@ -37669,6 +38327,8 @@ var allActiveDrawers = [];
|
|
|
37669
38327
|
mounted: function mounted() {
|
|
37670
38328
|
var $xeDrawer = this;
|
|
37671
38329
|
var props = $xeDrawer;
|
|
38330
|
+
var reactData = $xeDrawer.reactData;
|
|
38331
|
+
reactData.initialized = !!props.preload;
|
|
37672
38332
|
$xeDrawer.$nextTick(function () {
|
|
37673
38333
|
if (props.value) {
|
|
37674
38334
|
$xeDrawer.openDrawer();
|
|
@@ -37875,6 +38535,8 @@ var empty_empty = Vxeempty;
|
|
|
37875
38535
|
|
|
37876
38536
|
|
|
37877
38537
|
|
|
38538
|
+
var itemInfo_createComponentLog = createComponentLog('form'),
|
|
38539
|
+
itemInfo_errLog = itemInfo_createComponentLog.errLog;
|
|
37878
38540
|
var ItemInfo = /*#__PURE__*/function () {
|
|
37879
38541
|
function ItemInfo($xeForm, item) {
|
|
37880
38542
|
_classCallCheck(this, ItemInfo);
|
|
@@ -37885,21 +38547,21 @@ var ItemInfo = /*#__PURE__*/function () {
|
|
|
37885
38547
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isString(formatter)) {
|
|
37886
38548
|
var gFormatOpts = formats.get(formatter);
|
|
37887
38549
|
if (!gFormatOpts || !gFormatOpts.formItemFormatMethod) {
|
|
37888
|
-
|
|
38550
|
+
itemInfo_errLog('vxe.error.notFormats', [formatter]);
|
|
37889
38551
|
}
|
|
37890
38552
|
} else if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(formatter)) {
|
|
37891
38553
|
var _gFormatOpts = formats.get(formatter[0]);
|
|
37892
38554
|
if (!_gFormatOpts || !_gFormatOpts.formItemFormatMethod) {
|
|
37893
|
-
|
|
38555
|
+
itemInfo_errLog('vxe.error.notFormats', [formatter[0]]);
|
|
37894
38556
|
}
|
|
37895
38557
|
}
|
|
37896
38558
|
}
|
|
37897
38559
|
if (field && itemRender) {
|
|
37898
38560
|
if (itemRender.startField && "".concat(itemRender.startField).indexOf(field) >= 0) {
|
|
37899
|
-
|
|
38561
|
+
itemInfo_errLog('vxe.error.modelConflicts', ["field=".concat(field), "item-render.startField=".concat(itemRender.startField)]);
|
|
37900
38562
|
}
|
|
37901
38563
|
if (itemRender.endField && "".concat(itemRender.endField).indexOf(field) >= 0) {
|
|
37902
|
-
|
|
38564
|
+
itemInfo_errLog('vxe.error.modelConflicts', ["field=".concat(field), "item-render.endField=".concat(itemRender.endField)]);
|
|
37903
38565
|
}
|
|
37904
38566
|
}
|
|
37905
38567
|
Object.assign(this, {
|
|
@@ -38621,6 +39283,8 @@ function renderItemContent(h, $xeForm, item) {
|
|
|
38621
39283
|
|
|
38622
39284
|
|
|
38623
39285
|
|
|
39286
|
+
var render_createComponentLog = createComponentLog('form'),
|
|
39287
|
+
render_errLog = render_createComponentLog.errLog;
|
|
38624
39288
|
var componentDefaultModelProp = 'value';
|
|
38625
39289
|
/**
|
|
38626
39290
|
* 已废弃
|
|
@@ -38719,7 +39383,7 @@ function getComponentOns(renderOpts, params, eFns, eventOns) {
|
|
|
38719
39383
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().objectEach(events, function (func, key) {
|
|
38720
39384
|
ons[getOnName(key)] = function () {
|
|
38721
39385
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
38722
|
-
|
|
39386
|
+
render_errLog('vxe.error.errFunc', [func]);
|
|
38723
39387
|
}
|
|
38724
39388
|
for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
|
38725
39389
|
args[_key3] = arguments[_key3];
|
|
@@ -39299,6 +39963,9 @@ renderer.mixin({
|
|
|
39299
39963
|
|
|
39300
39964
|
|
|
39301
39965
|
|
|
39966
|
+
var form_createComponentLog = createComponentLog('form'),
|
|
39967
|
+
form_warnLog = form_createComponentLog.warnLog,
|
|
39968
|
+
form_errLog = form_createComponentLog.errLog;
|
|
39302
39969
|
var Rule = /*#__PURE__*/function () {
|
|
39303
39970
|
function Rule(rule) {
|
|
39304
39971
|
_classCallCheck(this, Rule);
|
|
@@ -39592,13 +40259,11 @@ function form_createInternalData() {
|
|
|
39592
40259
|
data: function data() {
|
|
39593
40260
|
var xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
39594
40261
|
var reactData = form_createReactData();
|
|
39595
|
-
|
|
39596
|
-
return {
|
|
40262
|
+
return _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
39597
40263
|
xID: xID,
|
|
39598
40264
|
reactData: reactData,
|
|
39599
|
-
internalData: internalData,
|
|
39600
40265
|
recalcFlag: 0
|
|
39601
|
-
};
|
|
40266
|
+
});
|
|
39602
40267
|
},
|
|
39603
40268
|
computed: _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
39604
40269
|
computeValidOpts: function computeValidOpts() {
|
|
@@ -39676,7 +40341,7 @@ function form_createInternalData() {
|
|
|
39676
40341
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(item.slots, function (func) {
|
|
39677
40342
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
39678
40343
|
if (!slots[func]) {
|
|
39679
|
-
|
|
40344
|
+
form_errLog('vxe.error.notSlot', [func]);
|
|
39680
40345
|
}
|
|
39681
40346
|
}
|
|
39682
40347
|
});
|
|
@@ -39971,10 +40636,10 @@ function form_createInternalData() {
|
|
|
39971
40636
|
if (validatorMethod) {
|
|
39972
40637
|
customValid = validatorMethod(validParams);
|
|
39973
40638
|
} else {
|
|
39974
|
-
|
|
40639
|
+
form_warnLog('vxe.error.notValidators', [validator]);
|
|
39975
40640
|
}
|
|
39976
40641
|
} else {
|
|
39977
|
-
|
|
40642
|
+
form_errLog('vxe.error.notValidators', [validator]);
|
|
39978
40643
|
}
|
|
39979
40644
|
} else {
|
|
39980
40645
|
customValid = validator(validParams);
|
|
@@ -40372,6 +41037,7 @@ function form_createInternalData() {
|
|
|
40372
41037
|
var $xeForm = this;
|
|
40373
41038
|
var props = $xeForm;
|
|
40374
41039
|
var reactData = $xeForm.reactData;
|
|
41040
|
+
$xeForm.internalData = form_createInternalData();
|
|
40375
41041
|
reactData.collapseAll = !!props.collapseStatus;
|
|
40376
41042
|
},
|
|
40377
41043
|
mounted: function mounted() {
|
|
@@ -40382,15 +41048,17 @@ function form_createInternalData() {
|
|
|
40382
41048
|
}
|
|
40383
41049
|
$xeForm.$nextTick(function () {
|
|
40384
41050
|
if (props.customLayout && props.items) {
|
|
40385
|
-
|
|
41051
|
+
form_errLog('vxe.error.errConflicts', ['custom-layout', 'items']);
|
|
40386
41052
|
}
|
|
40387
41053
|
});
|
|
40388
41054
|
globalEvents.on($xeForm, 'resize', $xeForm.handleGlobalResizeEvent);
|
|
40389
41055
|
},
|
|
40390
41056
|
destroyed: function destroyed() {
|
|
40391
41057
|
var $xeForm = this;
|
|
41058
|
+
var reactData = $xeForm.reactData;
|
|
40392
41059
|
var internalData = $xeForm.internalData;
|
|
40393
41060
|
globalEvents.off($xeForm, 'resize');
|
|
41061
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(reactData, form_createReactData());
|
|
40394
41062
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, form_createInternalData());
|
|
40395
41063
|
},
|
|
40396
41064
|
render: function render(h) {
|
|
@@ -42339,13 +43007,11 @@ function image_createReactData() {
|
|
|
42339
43007
|
getThumbnailUrlMethod: Function
|
|
42340
43008
|
},
|
|
42341
43009
|
data: function data() {
|
|
42342
|
-
var internalData = image_createInternalData();
|
|
42343
43010
|
var reactData = image_createReactData();
|
|
42344
|
-
return {
|
|
43011
|
+
return _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
42345
43012
|
xID: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId(),
|
|
42346
|
-
reactData: reactData
|
|
42347
|
-
|
|
42348
|
-
};
|
|
43013
|
+
reactData: reactData
|
|
43014
|
+
});
|
|
42349
43015
|
},
|
|
42350
43016
|
computed: _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
42351
43017
|
computeWrapperStyle: function computeWrapperStyle() {
|
|
@@ -42561,6 +43227,10 @@ function image_createReactData() {
|
|
|
42561
43227
|
})]);
|
|
42562
43228
|
}
|
|
42563
43229
|
},
|
|
43230
|
+
created: function created() {
|
|
43231
|
+
var $xeImage = this;
|
|
43232
|
+
$xeImage.internalData = image_createInternalData();
|
|
43233
|
+
},
|
|
42564
43234
|
beforeDestroy: function beforeDestroy() {
|
|
42565
43235
|
var $xeImage = this;
|
|
42566
43236
|
var reactData = $xeImage.reactData;
|
|
@@ -42968,14 +43638,12 @@ function layout_body_createReactData() {
|
|
|
42968
43638
|
data: function data() {
|
|
42969
43639
|
var xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
42970
43640
|
var backtopId = "vxe_layout_body_backtop_".concat(xID);
|
|
42971
|
-
var internalData = layout_body_createInternalData();
|
|
42972
43641
|
var reactData = layout_body_createReactData();
|
|
42973
|
-
return {
|
|
43642
|
+
return _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
42974
43643
|
xID: xID,
|
|
42975
43644
|
backtopId: backtopId,
|
|
42976
|
-
internalData: internalData,
|
|
42977
43645
|
reactData: reactData
|
|
42978
|
-
};
|
|
43646
|
+
});
|
|
42979
43647
|
},
|
|
42980
43648
|
computed: _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
42981
43649
|
computeBacktopOpts: function computeBacktopOpts() {
|
|
@@ -43050,6 +43718,17 @@ function layout_body_createReactData() {
|
|
|
43050
43718
|
}) : renderEmptyElement($xeLayoutBody)]);
|
|
43051
43719
|
}
|
|
43052
43720
|
},
|
|
43721
|
+
created: function created() {
|
|
43722
|
+
var $xeLayoutBody = this;
|
|
43723
|
+
$xeLayoutBody.internalData = layout_body_createInternalData();
|
|
43724
|
+
},
|
|
43725
|
+
beforeDestroy: function beforeDestroy() {
|
|
43726
|
+
var $xeLayoutBody = this;
|
|
43727
|
+
var reactData = $xeLayoutBody.reactData;
|
|
43728
|
+
var internalData = $xeLayoutBody.internalData;
|
|
43729
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(reactData, layout_body_createReactData());
|
|
43730
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, layout_body_createInternalData());
|
|
43731
|
+
},
|
|
43053
43732
|
render: function render(h) {
|
|
43054
43733
|
return this.renderVN(h);
|
|
43055
43734
|
}
|
|
@@ -43454,6 +44133,8 @@ var List = VxeList;
|
|
|
43454
44133
|
|
|
43455
44134
|
|
|
43456
44135
|
|
|
44136
|
+
var menu_createComponentLog = createComponentLog('menu'),
|
|
44137
|
+
menu_errLog = menu_createComponentLog.errLog;
|
|
43457
44138
|
var menu_menus = VxeUI.menus,
|
|
43458
44139
|
menu_getConfig = VxeUI.getConfig,
|
|
43459
44140
|
menu_getIcon = VxeUI.getIcon;
|
|
@@ -44016,7 +44697,7 @@ var menu_menus = VxeUI.menus,
|
|
|
44016
44697
|
var menuConfig = props.menuConfig;
|
|
44017
44698
|
var VxeUIContextMenu = VxeUI.getComponent('VxeContextMenu');
|
|
44018
44699
|
if (menuConfig && !VxeUIContextMenu) {
|
|
44019
|
-
|
|
44700
|
+
menu_errLog('vxe.error.reqComp', ['vxe-context-menu']);
|
|
44020
44701
|
}
|
|
44021
44702
|
globalEvents.on($xeMenu, 'resize', $xeMenu.updateCollapseStyle);
|
|
44022
44703
|
$xeMenu.updateCollapseStyle();
|
|
@@ -44089,6 +44770,9 @@ var Menu = VxeMenu;
|
|
|
44089
44770
|
|
|
44090
44771
|
|
|
44091
44772
|
|
|
44773
|
+
var modal_createComponentLog = createComponentLog('modal'),
|
|
44774
|
+
modal_warnLog = modal_createComponentLog.warnLog,
|
|
44775
|
+
modal_errLog = modal_createComponentLog.errLog;
|
|
44092
44776
|
var allActiveModals = [];
|
|
44093
44777
|
var msgQueue = [];
|
|
44094
44778
|
var notifyQueue = [];
|
|
@@ -44204,6 +44888,7 @@ var lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
44204
44888
|
return getConfig().modal.showFooter;
|
|
44205
44889
|
}
|
|
44206
44890
|
},
|
|
44891
|
+
preload: Boolean,
|
|
44207
44892
|
showZoom: Boolean,
|
|
44208
44893
|
zoomConfig: Object,
|
|
44209
44894
|
showMaximize: {
|
|
@@ -45755,12 +46440,14 @@ var lockScrollCssWidthKey = '--vxe-ui-modal-lock-scroll-view-width';
|
|
|
45755
46440
|
var $xeModal = this;
|
|
45756
46441
|
var slots = $xeModal.$scopedSlots;
|
|
45757
46442
|
var props = $xeModal;
|
|
46443
|
+
var reactData = $xeModal.reactData;
|
|
45758
46444
|
if (props.type === 'modal' && props.showFooter && !(props.showConfirmButton || props.showCancelButton || slots.footer)) {
|
|
45759
|
-
|
|
46445
|
+
modal_warnLog('vxe.modal.footPropErr');
|
|
45760
46446
|
}
|
|
46447
|
+
reactData.initialized = !!props.preload;
|
|
45761
46448
|
$xeModal.$nextTick(function () {
|
|
45762
46449
|
if (props.storage && !props.id) {
|
|
45763
|
-
|
|
46450
|
+
modal_errLog('vxe.error.reqProp', ['[modal] id']);
|
|
45764
46451
|
}
|
|
45765
46452
|
if (props.value) {
|
|
45766
46453
|
$xeModal.openModal();
|
|
@@ -46452,12 +47139,35 @@ var Option = VxeOption;
|
|
|
46452
47139
|
|
|
46453
47140
|
|
|
46454
47141
|
|
|
47142
|
+
var select_createComponentLog = createComponentLog('select'),
|
|
47143
|
+
select_errLog = select_createComponentLog.errLog;
|
|
46455
47144
|
function isOptionVisible(option) {
|
|
46456
47145
|
return option.visible !== false;
|
|
46457
47146
|
}
|
|
46458
47147
|
function getOptUniqueId() {
|
|
46459
47148
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId('opt_');
|
|
46460
47149
|
}
|
|
47150
|
+
function select_createReactData() {
|
|
47151
|
+
return {
|
|
47152
|
+
initialized: false,
|
|
47153
|
+
scrollYLoad: false,
|
|
47154
|
+
bodyHeight: 0,
|
|
47155
|
+
topSpaceHeight: 0,
|
|
47156
|
+
optList: [],
|
|
47157
|
+
staticOptions: [],
|
|
47158
|
+
reactFlag: 0,
|
|
47159
|
+
currentOption: null,
|
|
47160
|
+
searchValue: '',
|
|
47161
|
+
searchLoading: false,
|
|
47162
|
+
panelIndex: 0,
|
|
47163
|
+
panelStyle: {},
|
|
47164
|
+
panelPlacement: null,
|
|
47165
|
+
triggerFocusPanel: false,
|
|
47166
|
+
visiblePanel: false,
|
|
47167
|
+
isAniVisible: false,
|
|
47168
|
+
isActivated: false
|
|
47169
|
+
};
|
|
47170
|
+
}
|
|
46461
47171
|
function select_createInternalData() {
|
|
46462
47172
|
return {
|
|
46463
47173
|
// isLoaded: false,
|
|
@@ -46663,31 +47373,11 @@ function select_createInternalData() {
|
|
|
46663
47373
|
},
|
|
46664
47374
|
data: function data() {
|
|
46665
47375
|
var xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
46666
|
-
var reactData =
|
|
46667
|
-
|
|
46668
|
-
scrollYLoad: false,
|
|
46669
|
-
bodyHeight: 0,
|
|
46670
|
-
topSpaceHeight: 0,
|
|
46671
|
-
optList: [],
|
|
46672
|
-
staticOptions: [],
|
|
46673
|
-
reactFlag: 1,
|
|
46674
|
-
currentOption: null,
|
|
46675
|
-
searchValue: '',
|
|
46676
|
-
searchLoading: false,
|
|
46677
|
-
panelIndex: 0,
|
|
46678
|
-
panelStyle: {},
|
|
46679
|
-
panelPlacement: null,
|
|
46680
|
-
triggerFocusPanel: false,
|
|
46681
|
-
visiblePanel: false,
|
|
46682
|
-
isAniVisible: false,
|
|
46683
|
-
isActivated: false
|
|
46684
|
-
};
|
|
46685
|
-
var internalData = select_createInternalData();
|
|
46686
|
-
return {
|
|
47376
|
+
var reactData = select_createReactData();
|
|
47377
|
+
return _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
46687
47378
|
xID: xID,
|
|
46688
|
-
reactData: reactData
|
|
46689
|
-
|
|
46690
|
-
};
|
|
47379
|
+
reactData: reactData
|
|
47380
|
+
});
|
|
46691
47381
|
},
|
|
46692
47382
|
computed: _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
46693
47383
|
computeFormReadonly: function computeFormReadonly() {
|
|
@@ -47287,10 +47977,8 @@ function select_createInternalData() {
|
|
|
47287
47977
|
reactData.initialized = true;
|
|
47288
47978
|
var btnTransfer = $xeSelect.computeBtnTransfer;
|
|
47289
47979
|
var panelElem = $xeSelect.$refs.refOptionPanel;
|
|
47290
|
-
if (btnTransfer) {
|
|
47291
|
-
|
|
47292
|
-
document.body.appendChild(panelElem);
|
|
47293
|
-
}
|
|
47980
|
+
if (btnTransfer && panelElem) {
|
|
47981
|
+
document.body.appendChild(panelElem);
|
|
47294
47982
|
}
|
|
47295
47983
|
}
|
|
47296
47984
|
reactData.isActivated = true;
|
|
@@ -48077,7 +48765,7 @@ function select_createInternalData() {
|
|
|
48077
48765
|
}));
|
|
48078
48766
|
});
|
|
48079
48767
|
} else {
|
|
48080
|
-
|
|
48768
|
+
select_errLog('vxe.error.notConflictProp', ['default-config.selectMode=all', 'multiple=true']);
|
|
48081
48769
|
}
|
|
48082
48770
|
} else if (selectMode === 'first' || selectMode === 'last') {
|
|
48083
48771
|
var selectItem = (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default())[selectMode](datas);
|
|
@@ -48497,6 +49185,10 @@ function select_createInternalData() {
|
|
|
48497
49185
|
$xeSelect.loadData(val);
|
|
48498
49186
|
}
|
|
48499
49187
|
},
|
|
49188
|
+
created: function created() {
|
|
49189
|
+
var $xeSelect = this;
|
|
49190
|
+
$xeSelect.internalData = select_createInternalData();
|
|
49191
|
+
},
|
|
48500
49192
|
mounted: function mounted() {
|
|
48501
49193
|
var $xeSelect = this;
|
|
48502
49194
|
var props = $xeSelect;
|
|
@@ -48529,7 +49221,9 @@ function select_createInternalData() {
|
|
|
48529
49221
|
},
|
|
48530
49222
|
destroyed: function destroyed() {
|
|
48531
49223
|
var $xeSelect = this;
|
|
49224
|
+
var reactData = $xeSelect.reactData;
|
|
48532
49225
|
var internalData = $xeSelect.internalData;
|
|
49226
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(reactData, select_createReactData());
|
|
48533
49227
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, select_createInternalData());
|
|
48534
49228
|
},
|
|
48535
49229
|
render: function render(h) {
|
|
@@ -48553,6 +49247,9 @@ function select_createInternalData() {
|
|
|
48553
49247
|
|
|
48554
49248
|
|
|
48555
49249
|
|
|
49250
|
+
var pager_createComponentLog = createComponentLog('pager'),
|
|
49251
|
+
pager_warnLog = pager_createComponentLog.warnLog,
|
|
49252
|
+
pager_errLog = pager_createComponentLog.errLog;
|
|
48556
49253
|
/* harmony default export */ var pager = (/* define-vxe-component start */defineVxeComponent({
|
|
48557
49254
|
name: 'VxePager',
|
|
48558
49255
|
mixins: [globalMixins.sizeMixin],
|
|
@@ -48814,7 +49511,7 @@ function select_createInternalData() {
|
|
|
48814
49511
|
*/
|
|
48815
49512
|
jumpPage: function jumpPage(currentPage) {
|
|
48816
49513
|
var $xePager = this;
|
|
48817
|
-
|
|
49514
|
+
pager_warnLog('vxe.error.delFunc', ['jumpPage', 'setCurrentPage']);
|
|
48818
49515
|
return $xePager.setCurrentPage(currentPage);
|
|
48819
49516
|
},
|
|
48820
49517
|
getPageCount: function getPageCount(total, size) {
|
|
@@ -49446,7 +50143,7 @@ function select_createInternalData() {
|
|
|
49446
50143
|
if (renderFn) {
|
|
49447
50144
|
childNodes.push(renderFn(h));
|
|
49448
50145
|
} else {
|
|
49449
|
-
|
|
50146
|
+
pager_errLog('vxe.error.notProp', ["layouts -> ".concat(name)]);
|
|
49450
50147
|
}
|
|
49451
50148
|
});
|
|
49452
50149
|
if (slots.right) {
|
|
@@ -51602,6 +52299,9 @@ var RadioButton = VxeRadioButton;
|
|
|
51602
52299
|
|
|
51603
52300
|
|
|
51604
52301
|
|
|
52302
|
+
function src_group_createReactData() {
|
|
52303
|
+
return {};
|
|
52304
|
+
}
|
|
51605
52305
|
function src_group_createInternalData() {
|
|
51606
52306
|
return {
|
|
51607
52307
|
// isLoaded: false
|
|
@@ -51653,14 +52353,12 @@ function src_group_createInternalData() {
|
|
|
51653
52353
|
};
|
|
51654
52354
|
},
|
|
51655
52355
|
data: function data() {
|
|
51656
|
-
var reactData =
|
|
51657
|
-
|
|
51658
|
-
return {
|
|
52356
|
+
var reactData = src_group_createReactData();
|
|
52357
|
+
return _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
51659
52358
|
xID: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId(),
|
|
51660
52359
|
name: external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId('xe_group_'),
|
|
51661
|
-
reactData: reactData
|
|
51662
|
-
|
|
51663
|
-
};
|
|
52360
|
+
reactData: reactData
|
|
52361
|
+
});
|
|
51664
52362
|
},
|
|
51665
52363
|
computed: _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
51666
52364
|
computeIsReadonly: function computeIsReadonly() {
|
|
@@ -51821,6 +52519,10 @@ function src_group_createInternalData() {
|
|
|
51821
52519
|
$xeRadioGroup.loadData(val);
|
|
51822
52520
|
}
|
|
51823
52521
|
},
|
|
52522
|
+
created: function created() {
|
|
52523
|
+
var $xeRadioGroup = this;
|
|
52524
|
+
$xeRadioGroup.internalData = src_group_createInternalData();
|
|
52525
|
+
},
|
|
51824
52526
|
mounted: function mounted() {
|
|
51825
52527
|
var $xeRadioGroup = this;
|
|
51826
52528
|
var props = $xeRadioGroup;
|
|
@@ -51833,8 +52535,10 @@ function src_group_createInternalData() {
|
|
|
51833
52535
|
},
|
|
51834
52536
|
beforeDestroy: function beforeDestroy() {
|
|
51835
52537
|
var $xeRadioGroup = this;
|
|
52538
|
+
var reactData = $xeRadioGroup.reactData;
|
|
51836
52539
|
var internalData = $xeRadioGroup.internalData;
|
|
51837
52540
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, src_group_createInternalData());
|
|
52541
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(reactData, src_group_createReactData());
|
|
51838
52542
|
},
|
|
51839
52543
|
render: function render(h) {
|
|
51840
52544
|
return this.renderVN(h);
|
|
@@ -52587,6 +53291,9 @@ var Select = VxeSelect;
|
|
|
52587
53291
|
|
|
52588
53292
|
|
|
52589
53293
|
|
|
53294
|
+
var splitter_createComponentLog = createComponentLog('splitter'),
|
|
53295
|
+
splitter_warnLog = splitter_createComponentLog.warnLog,
|
|
53296
|
+
splitter_errLog = splitter_createComponentLog.errLog;
|
|
52590
53297
|
/* harmony default export */ var splitter = (/* define-vxe-component start */defineVxeComponent({
|
|
52591
53298
|
name: 'VxeSplitter',
|
|
52592
53299
|
mixins: [globalMixins.sizeMixin],
|
|
@@ -52740,15 +53447,15 @@ var Select = VxeSelect;
|
|
|
52740
53447
|
var showPrevButton = actionOpts.showPrevButton,
|
|
52741
53448
|
showNextButton = actionOpts.showNextButton;
|
|
52742
53449
|
if (props.items && props.items.length) {
|
|
52743
|
-
|
|
53450
|
+
splitter_errLog('vxe.error.errConflicts', ['<vxe-splitter-panel ...>', 'items']);
|
|
52744
53451
|
}
|
|
52745
53452
|
reactData.itemList = reactData.staticItems || [];
|
|
52746
53453
|
if ((showPrevButton || showNextButton) && reactData.itemList.length > 2) {
|
|
52747
|
-
|
|
53454
|
+
splitter_errLog('vxe.error.modelConflicts', ['action-config.showPrevButton | action-config.showNextButton', '<vxe-splitter-panel ...> Only supports 2 panel']);
|
|
52748
53455
|
}
|
|
52749
53456
|
reactData.itemList.forEach(function (item) {
|
|
52750
53457
|
if (item.showAction) {
|
|
52751
|
-
|
|
53458
|
+
splitter_warnLog('vxe.error.removeProp', ['show-action']);
|
|
52752
53459
|
}
|
|
52753
53460
|
});
|
|
52754
53461
|
$xeSplitter.recalculate();
|
|
@@ -52809,7 +53516,7 @@ var Select = VxeSelect;
|
|
|
52809
53516
|
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().each(item.slots, function (func) {
|
|
52810
53517
|
if (!external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(func)) {
|
|
52811
53518
|
if (!slots[func]) {
|
|
52812
|
-
|
|
53519
|
+
splitter_errLog('vxe.error.notSlot', [func]);
|
|
52813
53520
|
}
|
|
52814
53521
|
}
|
|
52815
53522
|
});
|
|
@@ -52819,7 +53526,7 @@ var Select = VxeSelect;
|
|
|
52819
53526
|
});
|
|
52820
53527
|
});
|
|
52821
53528
|
if (staticItems.length) {
|
|
52822
|
-
|
|
53529
|
+
splitter_errLog('vxe.error.errConflicts', ['<vxe-splitter-panel ...>', 'items']);
|
|
52823
53530
|
}
|
|
52824
53531
|
return $xeSplitter.recalculate();
|
|
52825
53532
|
},
|
|
@@ -53584,7 +54291,7 @@ var Select = VxeSelect;
|
|
|
53584
54291
|
}
|
|
53585
54292
|
var actionOpts = $xeSplitter.computeActionOpts;
|
|
53586
54293
|
if (actionOpts.direction) {
|
|
53587
|
-
|
|
54294
|
+
splitter_errLog('vxe.error.delProp', ['action-config.direction', 'action-config.showPrevButton | action-config.showNextButton']);
|
|
53588
54295
|
}
|
|
53589
54296
|
$xeSplitter.$nextTick(function () {
|
|
53590
54297
|
$xeSplitter.recalculate();
|
|
@@ -54700,9 +55407,25 @@ var TabPane = VxeTabPane;
|
|
|
54700
55407
|
|
|
54701
55408
|
|
|
54702
55409
|
|
|
55410
|
+
var table_select_createComponentLog = createComponentLog('table-select'),
|
|
55411
|
+
table_select_errLog = table_select_createComponentLog.errLog;
|
|
54703
55412
|
function getRowUniqueId() {
|
|
54704
55413
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId('row_');
|
|
54705
55414
|
}
|
|
55415
|
+
function table_select_createReactData() {
|
|
55416
|
+
return {
|
|
55417
|
+
initialized: false,
|
|
55418
|
+
tableColumns: [],
|
|
55419
|
+
fullOptionList: [],
|
|
55420
|
+
panelIndex: 0,
|
|
55421
|
+
panelStyle: {},
|
|
55422
|
+
panelPlacement: null,
|
|
55423
|
+
triggerFocusPanel: false,
|
|
55424
|
+
visiblePanel: false,
|
|
55425
|
+
isAniVisible: false,
|
|
55426
|
+
isActivated: false
|
|
55427
|
+
};
|
|
55428
|
+
}
|
|
54706
55429
|
function table_select_createInternalData() {
|
|
54707
55430
|
return {
|
|
54708
55431
|
// hpTimeout: undefined,
|
|
@@ -54786,26 +55509,13 @@ function table_select_createInternalData() {
|
|
|
54786
55509
|
},
|
|
54787
55510
|
data: function data() {
|
|
54788
55511
|
var xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
54789
|
-
var reactData =
|
|
54790
|
-
initialized: false,
|
|
54791
|
-
tableColumns: [],
|
|
54792
|
-
fullOptionList: [],
|
|
54793
|
-
panelIndex: 0,
|
|
54794
|
-
panelStyle: {},
|
|
54795
|
-
panelPlacement: null,
|
|
54796
|
-
triggerFocusPanel: false,
|
|
54797
|
-
visiblePanel: false,
|
|
54798
|
-
isAniVisible: false,
|
|
54799
|
-
isActivated: false
|
|
54800
|
-
};
|
|
54801
|
-
var internalData = table_select_createInternalData();
|
|
55512
|
+
var reactData = table_select_createReactData();
|
|
54802
55513
|
var gridEvents = {};
|
|
54803
|
-
return {
|
|
55514
|
+
return _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
54804
55515
|
xID: xID,
|
|
54805
55516
|
reactData: reactData,
|
|
54806
|
-
internalData: internalData,
|
|
54807
55517
|
gridEvents: gridEvents
|
|
54808
|
-
};
|
|
55518
|
+
});
|
|
54809
55519
|
},
|
|
54810
55520
|
computed: _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
54811
55521
|
computeFormReadonly: function computeFormReadonly() {
|
|
@@ -55105,12 +55815,12 @@ function table_select_createInternalData() {
|
|
|
55105
55815
|
rowid = getRowUniqueId();
|
|
55106
55816
|
}
|
|
55107
55817
|
if (keyMaps[rowid]) {
|
|
55108
|
-
|
|
55818
|
+
table_select_errLog('vxe.error.repeatKey', [rowKeyField, rowid]);
|
|
55109
55819
|
}
|
|
55110
55820
|
keyMaps[rowid] = true;
|
|
55111
55821
|
var value = item[valueField];
|
|
55112
55822
|
if (rowMaps[value]) {
|
|
55113
|
-
|
|
55823
|
+
table_select_errLog('vxe.error.repeatKey', [valueField, value]);
|
|
55114
55824
|
}
|
|
55115
55825
|
rowMaps[value] = {
|
|
55116
55826
|
item: item,
|
|
@@ -55494,6 +56204,7 @@ function table_select_createInternalData() {
|
|
|
55494
56204
|
created: function created() {
|
|
55495
56205
|
var $xeTableSelect = this;
|
|
55496
56206
|
var props = $xeTableSelect;
|
|
56207
|
+
$xeTableSelect.internalData = table_select_createInternalData();
|
|
55497
56208
|
var gridEventKeys = ['form-submit', 'form-reset', 'form-collapse', 'page-change'];
|
|
55498
56209
|
var gridEvents = $xeTableSelect.gridEvents;
|
|
55499
56210
|
gridEventKeys.forEach(function (name) {
|
|
@@ -55511,7 +56222,7 @@ function table_select_createInternalData() {
|
|
|
55511
56222
|
var VxeTableGridComponent = VxeUI.getComponent('vxe-grid');
|
|
55512
56223
|
$xeTableSelect.$nextTick(function () {
|
|
55513
56224
|
if (!VxeTableGridComponent) {
|
|
55514
|
-
|
|
56225
|
+
table_select_errLog('vxe.error.reqComp', ['vxe-grid']);
|
|
55515
56226
|
}
|
|
55516
56227
|
});
|
|
55517
56228
|
var gridConfig = props.gridConfig;
|
|
@@ -55527,6 +56238,8 @@ function table_select_createInternalData() {
|
|
|
55527
56238
|
},
|
|
55528
56239
|
beforeDestroy: function beforeDestroy() {
|
|
55529
56240
|
var $xeTableSelect = this;
|
|
56241
|
+
var reactData = $xeTableSelect.reactData;
|
|
56242
|
+
var internalData = $xeTableSelect.internalData;
|
|
55530
56243
|
var panelElem = $xeTableSelect.$refs.refOptionPanel;
|
|
55531
56244
|
if (panelElem && panelElem.parentNode) {
|
|
55532
56245
|
panelElem.parentNode.removeChild(panelElem);
|
|
@@ -55535,6 +56248,8 @@ function table_select_createInternalData() {
|
|
|
55535
56248
|
globalEvents.off($xeTableSelect, 'mousedown');
|
|
55536
56249
|
globalEvents.off($xeTableSelect, 'blur');
|
|
55537
56250
|
globalEvents.off($xeTableSelect, 'resize');
|
|
56251
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(reactData, table_select_createReactData());
|
|
56252
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().assign(internalData, table_select_createInternalData());
|
|
55538
56253
|
},
|
|
55539
56254
|
render: function render(h) {
|
|
55540
56255
|
return this.renderVN(h);
|
|
@@ -55585,6 +56300,9 @@ var TableSelect = VxeTableSelect;
|
|
|
55585
56300
|
|
|
55586
56301
|
|
|
55587
56302
|
|
|
56303
|
+
var tabs_createComponentLog = createComponentLog('tabs'),
|
|
56304
|
+
tabs_warnLog = tabs_createComponentLog.warnLog,
|
|
56305
|
+
tabs_errLog = tabs_createComponentLog.errLog;
|
|
55588
56306
|
var scrollbarOffsetSize = 20;
|
|
55589
56307
|
/* harmony default export */ var tabs = (/* define-vxe-component start */defineVxeComponent({
|
|
55590
56308
|
name: 'VxeTabs',
|
|
@@ -55785,12 +56503,12 @@ var scrollbarOffsetSize = 20;
|
|
|
55785
56503
|
},
|
|
55786
56504
|
prevTab: function prevTab() {
|
|
55787
56505
|
var $xeTabs = this;
|
|
55788
|
-
|
|
56506
|
+
tabs_warnLog('vxe.error.delFunc', ['prevTab', 'prev']);
|
|
55789
56507
|
return $xeTabs.prev();
|
|
55790
56508
|
},
|
|
55791
56509
|
nextTab: function nextTab() {
|
|
55792
56510
|
var $xeTabs = this;
|
|
55793
|
-
|
|
56511
|
+
tabs_warnLog('vxe.error.delFunc', ['nextTab', 'next']);
|
|
55794
56512
|
return $xeTabs.next();
|
|
55795
56513
|
},
|
|
55796
56514
|
handleFilterTab: function handleFilterTab(item) {
|
|
@@ -56060,7 +56778,7 @@ var scrollbarOffsetSize = 20;
|
|
|
56060
56778
|
cacheItem.loading = false;
|
|
56061
56779
|
});
|
|
56062
56780
|
} else {
|
|
56063
|
-
|
|
56781
|
+
tabs_errLog('vxe.error.notFunc', ['refresh-config.queryMethod']);
|
|
56064
56782
|
}
|
|
56065
56783
|
}
|
|
56066
56784
|
},
|
|
@@ -57120,6 +57838,8 @@ var Text = VxeText;
|
|
|
57120
57838
|
|
|
57121
57839
|
|
|
57122
57840
|
|
|
57841
|
+
var textarea_createComponentLog = createComponentLog('textarea'),
|
|
57842
|
+
textarea_warnLog = textarea_createComponentLog.warnLog;
|
|
57123
57843
|
var autoTxtElem;
|
|
57124
57844
|
/* harmony default export */ var src_textarea = (/* define-vxe-component start */defineVxeComponent({
|
|
57125
57845
|
name: 'VxeTextarea',
|
|
@@ -57580,7 +58300,7 @@ var autoTxtElem;
|
|
|
57580
58300
|
var autosize = props.autosize,
|
|
57581
58301
|
autoSize = props.autoSize;
|
|
57582
58302
|
if (autosize) {
|
|
57583
|
-
|
|
58303
|
+
textarea_warnLog('vxe.error.delProp', ['autosize', 'auto-size']);
|
|
57584
58304
|
}
|
|
57585
58305
|
if (autosize || autoSize) {
|
|
57586
58306
|
$xeTextarea.updateAutoTxt();
|
|
@@ -58044,6 +58764,8 @@ function clearColAnimate(elem, clss) {
|
|
|
58044
58764
|
|
|
58045
58765
|
|
|
58046
58766
|
|
|
58767
|
+
var tree_createComponentLog = createComponentLog('tree'),
|
|
58768
|
+
tree_errLog = tree_createComponentLog.errLog;
|
|
58047
58769
|
var tree_menus = VxeUI.menus,
|
|
58048
58770
|
tree_getConfig = VxeUI.getConfig,
|
|
58049
58771
|
tree_getI18n = VxeUI.getI18n,
|
|
@@ -58728,15 +59450,13 @@ function tree_createReactData() {
|
|
|
58728
59450
|
data: function data() {
|
|
58729
59451
|
var xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
58730
59452
|
var reactData = tree_createReactData();
|
|
58731
|
-
|
|
58732
|
-
return {
|
|
59453
|
+
return _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
58733
59454
|
xID: xID,
|
|
58734
59455
|
reactData: reactData,
|
|
58735
|
-
internalData: internalData,
|
|
58736
59456
|
crossTreeDragNodeInfo: crossTreeDragNodeGlobal,
|
|
58737
59457
|
hFlag: 0,
|
|
58738
59458
|
dataFlag: 0
|
|
58739
|
-
};
|
|
59459
|
+
});
|
|
58740
59460
|
},
|
|
58741
59461
|
computed: _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
58742
59462
|
computeTitleField: function computeTitleField() {
|
|
@@ -59371,7 +60091,7 @@ function tree_createReactData() {
|
|
|
59371
60091
|
$xeTree.handleData(true);
|
|
59372
60092
|
if (sYLoad) {
|
|
59373
60093
|
if (!(props.height || props.maxHeight)) {
|
|
59374
|
-
|
|
60094
|
+
tree_errLog('vxe.error.reqProp', ['height | max-height | virtual-y-config.enabled=false']);
|
|
59375
60095
|
}
|
|
59376
60096
|
}
|
|
59377
60097
|
return $xeTree.computeScrollLoad().then(function () {
|
|
@@ -61118,6 +61838,7 @@ function tree_createReactData() {
|
|
|
61118
61838
|
var $xeTree = this;
|
|
61119
61839
|
var props = $xeTree;
|
|
61120
61840
|
var reactData = $xeTree.reactData;
|
|
61841
|
+
$xeTree.internalData = tree_createInternalData();
|
|
61121
61842
|
reactData.selectRadioKey = util_enNodeValue(props.checkNodeKey);
|
|
61122
61843
|
$xeTree.loadData(props.data || []);
|
|
61123
61844
|
},
|
|
@@ -61130,17 +61851,17 @@ function tree_createReactData() {
|
|
|
61130
61851
|
menuConfig = props.menuConfig;
|
|
61131
61852
|
var dragOpts = $xeTree.computeDragOpts;
|
|
61132
61853
|
if (drag && !transform) {
|
|
61133
|
-
|
|
61854
|
+
tree_errLog('vxe.error.notSupportProp', ['drag', 'transform=false', 'transform=true']);
|
|
61134
61855
|
}
|
|
61135
61856
|
if (dragOpts.isCrossTreeDrag) {
|
|
61136
|
-
|
|
61857
|
+
tree_errLog('vxe.error.notProp', ['drag-config.isCrossTreeDrag']);
|
|
61137
61858
|
}
|
|
61138
61859
|
// if (valueField) {
|
|
61139
61860
|
// errLog('vxe.error.delProp', ['value-field', 'value-field'])
|
|
61140
61861
|
// }
|
|
61141
61862
|
var VxeUIContextMenu = VxeUI.getComponent('VxeContextMenu');
|
|
61142
61863
|
if (menuConfig && !VxeUIContextMenu) {
|
|
61143
|
-
|
|
61864
|
+
tree_errLog('vxe.error.reqComp', ['vxe-context-menu']);
|
|
61144
61865
|
}
|
|
61145
61866
|
if (props.autoResize) {
|
|
61146
61867
|
var el = $xeTree.$refs.refElem;
|
|
@@ -61214,6 +61935,9 @@ var Tree = VxeTree;
|
|
|
61214
61935
|
|
|
61215
61936
|
|
|
61216
61937
|
|
|
61938
|
+
var tree_select_createComponentLog = createComponentLog('tree-select'),
|
|
61939
|
+
tree_select_warnLog = tree_select_createComponentLog.warnLog,
|
|
61940
|
+
tree_select_errLog = tree_select_createComponentLog.errLog;
|
|
61217
61941
|
function tree_select_getOptUniqueId() {
|
|
61218
61942
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId('node_');
|
|
61219
61943
|
}
|
|
@@ -61409,12 +62133,10 @@ function tree_select_createInternalData() {
|
|
|
61409
62133
|
data: function data() {
|
|
61410
62134
|
var xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
61411
62135
|
var reactData = tree_select_createReactData();
|
|
61412
|
-
|
|
61413
|
-
return {
|
|
62136
|
+
return _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
61414
62137
|
xID: xID,
|
|
61415
|
-
reactData: reactData
|
|
61416
|
-
|
|
61417
|
-
};
|
|
62138
|
+
reactData: reactData
|
|
62139
|
+
});
|
|
61418
62140
|
},
|
|
61419
62141
|
computed: _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
61420
62142
|
computeFormReadonly: function computeFormReadonly() {
|
|
@@ -61667,12 +62389,12 @@ function tree_select_createInternalData() {
|
|
|
61667
62389
|
nodeid = tree_select_getOptUniqueId();
|
|
61668
62390
|
}
|
|
61669
62391
|
if (keyMaps[nodeid]) {
|
|
61670
|
-
|
|
62392
|
+
tree_select_errLog('vxe.error.repeatKey', [nodeKeyField, nodeid]);
|
|
61671
62393
|
}
|
|
61672
62394
|
keyMaps[nodeid] = true;
|
|
61673
62395
|
var value = item[valueField];
|
|
61674
62396
|
if (nodeMaps[value]) {
|
|
61675
|
-
|
|
62397
|
+
tree_select_errLog('vxe.error.repeatKey', [valueField, value]);
|
|
61676
62398
|
}
|
|
61677
62399
|
nodeMaps[value] = {
|
|
61678
62400
|
item: item,
|
|
@@ -62352,6 +63074,7 @@ function tree_select_createInternalData() {
|
|
|
62352
63074
|
},
|
|
62353
63075
|
created: function created() {
|
|
62354
63076
|
var $xeTreeSelect = this;
|
|
63077
|
+
$xeTreeSelect.internalData = tree_select_createInternalData();
|
|
62355
63078
|
$xeTreeSelect.cacheDataMap();
|
|
62356
63079
|
$xeTreeSelect.cacheLazyDataMap();
|
|
62357
63080
|
},
|
|
@@ -62359,7 +63082,7 @@ function tree_select_createInternalData() {
|
|
|
62359
63082
|
var $xeTreeSelect = this;
|
|
62360
63083
|
var props = $xeTreeSelect;
|
|
62361
63084
|
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isBoolean(props.autoClose)) {
|
|
62362
|
-
|
|
63085
|
+
tree_select_warnLog('vxe.error.delProp', ['auto-close', 'checked-closable | clear-closable']);
|
|
62363
63086
|
}
|
|
62364
63087
|
globalEvents.on($xeTreeSelect, 'mousewheel', $xeTreeSelect.handleGlobalMousewheelEvent);
|
|
62365
63088
|
globalEvents.on($xeTreeSelect, 'mousedown', $xeTreeSelect.handleGlobalMousedownEvent);
|
|
@@ -62583,6 +63306,9 @@ var saveLocalFile = function saveLocalFile(options) {
|
|
|
62583
63306
|
|
|
62584
63307
|
|
|
62585
63308
|
|
|
63309
|
+
var upload_createComponentLog = createComponentLog('upload'),
|
|
63310
|
+
upload_warnLog = upload_createComponentLog.warnLog,
|
|
63311
|
+
upload_errLog = upload_createComponentLog.errLog;
|
|
62586
63312
|
function getUniqueKey() {
|
|
62587
63313
|
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
62588
63314
|
}
|
|
@@ -62962,12 +63688,10 @@ function upload_createInternalData() {
|
|
|
62962
63688
|
data: function data() {
|
|
62963
63689
|
var xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
62964
63690
|
var reactData = upload_createReactData();
|
|
62965
|
-
|
|
62966
|
-
return {
|
|
63691
|
+
return _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
62967
63692
|
xID: xID,
|
|
62968
|
-
reactData: reactData
|
|
62969
|
-
|
|
62970
|
-
};
|
|
63693
|
+
reactData: reactData
|
|
63694
|
+
});
|
|
62971
63695
|
},
|
|
62972
63696
|
computed: _objectSpread2(_objectSpread2({}, {}), {}, {
|
|
62973
63697
|
computeFormReadonly: function computeFormReadonly() {
|
|
@@ -63451,6 +64175,9 @@ function upload_createInternalData() {
|
|
|
63451
64175
|
var fileKey = $xeUpload.getFieldKey(item);
|
|
63452
64176
|
var uploadFn = props.uploadMethod || getConfig().upload.uploadMethod;
|
|
63453
64177
|
if (uploadFn) {
|
|
64178
|
+
$xeUpload.dispatchEvent('upload-start', {
|
|
64179
|
+
option: item
|
|
64180
|
+
}, null);
|
|
63454
64181
|
return Promise.resolve(uploadFn({
|
|
63455
64182
|
$upload: $xeUpload,
|
|
63456
64183
|
file: file,
|
|
@@ -63506,6 +64233,9 @@ function upload_createInternalData() {
|
|
|
63506
64233
|
if (cacheItem) {
|
|
63507
64234
|
cacheItem.loading = false;
|
|
63508
64235
|
}
|
|
64236
|
+
$xeUpload.dispatchEvent('upload-end', {
|
|
64237
|
+
option: item
|
|
64238
|
+
}, null);
|
|
63509
64239
|
});
|
|
63510
64240
|
} else {
|
|
63511
64241
|
var fileCacheMaps = reactData.fileCacheMaps;
|
|
@@ -63629,6 +64359,9 @@ function upload_createInternalData() {
|
|
|
63629
64359
|
}
|
|
63630
64360
|
}
|
|
63631
64361
|
}
|
|
64362
|
+
$xeUpload.dispatchEvent('upload-queue-start', {
|
|
64363
|
+
files: selectFiles
|
|
64364
|
+
}, evnt);
|
|
63632
64365
|
var cacheMaps = Object.assign({}, reactData.fileCacheMaps);
|
|
63633
64366
|
var newFileList = multiple ? fileList : [];
|
|
63634
64367
|
var uploadPromiseRests = [];
|
|
@@ -63664,6 +64397,10 @@ function upload_createInternalData() {
|
|
|
63664
64397
|
});
|
|
63665
64398
|
Promise.all(urlMode ? uploadPromiseRests : []).then(function () {
|
|
63666
64399
|
var restFileList = reactData.fileList;
|
|
64400
|
+
$xeUpload.dispatchEvent('upload-queue-end', {
|
|
64401
|
+
options: restFileList,
|
|
64402
|
+
files: selectFiles
|
|
64403
|
+
}, evnt);
|
|
63667
64404
|
$xeUpload.handleChange(restFileList);
|
|
63668
64405
|
// 自动更新校验状态
|
|
63669
64406
|
if ($xeForm && formItemInfo) {
|
|
@@ -64662,16 +65399,17 @@ function upload_createInternalData() {
|
|
|
64662
65399
|
},
|
|
64663
65400
|
created: function created() {
|
|
64664
65401
|
var $xeUpload = this;
|
|
65402
|
+
$xeUpload.internalData = upload_createInternalData();
|
|
64665
65403
|
$xeUpload.updateFileList();
|
|
64666
65404
|
},
|
|
64667
65405
|
mounted: function mounted() {
|
|
64668
65406
|
var $xeUpload = this;
|
|
64669
65407
|
var props = $xeUpload;
|
|
64670
65408
|
if (props.multiple && props.singleMode) {
|
|
64671
|
-
|
|
65409
|
+
upload_errLog('vxe.error.errConflicts', ['multiple', 'single-mode']);
|
|
64672
65410
|
}
|
|
64673
65411
|
if (props.imageStyle) {
|
|
64674
|
-
|
|
65412
|
+
upload_warnLog('vxe.error.delProp', ['image-style', 'image-config']);
|
|
64675
65413
|
}
|
|
64676
65414
|
if (props.dragSort) {
|
|
64677
65415
|
initTpImg();
|