vxe-pc-ui 3.16.7 → 3.16.9

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.
Files changed (210) hide show
  1. package/es/button/style.css +14 -0
  2. package/es/button/style.min.css +1 -1
  3. package/es/cascader/src/cascader.js +66 -24
  4. package/es/cascader/style.css +9 -9
  5. package/es/cascader/style.min.css +1 -1
  6. package/es/checkbox/src/group.js +7 -4
  7. package/es/checkbox/style.css +11 -0
  8. package/es/checkbox/style.min.css +1 -1
  9. package/es/checkbox-button/style.css +6 -0
  10. package/es/checkbox-button/style.min.css +1 -1
  11. package/es/date-range-picker/src/date-range-picker.js +25 -9
  12. package/es/form/style.css +19 -11
  13. package/es/form/style.min.css +1 -1
  14. package/es/icon/style.css +7 -1
  15. package/es/icon/style.min.css +1 -1
  16. package/es/input/style.css +276 -66
  17. package/es/input/style.min.css +1 -1
  18. package/es/menu/src/menu.js +4 -3
  19. package/es/menu/style.css +10 -0
  20. package/es/menu/style.min.css +1 -1
  21. package/es/number-input/style.css +28 -21
  22. package/es/number-input/style.min.css +1 -1
  23. package/es/password-input/src/password-input.js +1 -0
  24. package/es/password-input/style.css +28 -399
  25. package/es/password-input/style.min.css +1 -1
  26. package/es/radio/src/group.js +3 -3
  27. package/es/radio/style.css +11 -0
  28. package/es/radio/style.min.css +1 -1
  29. package/es/radio-button/style.css +6 -0
  30. package/es/radio-button/style.min.css +1 -1
  31. package/es/select/style.css +10 -0
  32. package/es/select/style.min.css +1 -1
  33. package/es/style.css +1 -1
  34. package/es/style.min.css +1 -1
  35. package/es/switch/style.css +36 -22
  36. package/es/switch/style.min.css +1 -1
  37. package/es/tag/style.css +20 -19
  38. package/es/tag/style.min.css +1 -1
  39. package/es/tree/src/tree.js +14 -2
  40. package/es/tree/style.css +4 -1
  41. package/es/tree/style.min.css +1 -1
  42. package/es/ui/index.js +1 -1
  43. package/es/ui/src/log.js +1 -1
  44. package/es/upload/style.css +10 -0
  45. package/es/upload/style.min.css +1 -1
  46. package/es/vxe-button/style.css +14 -0
  47. package/es/vxe-button/style.min.css +1 -1
  48. package/es/vxe-cascader/style.css +9 -9
  49. package/es/vxe-cascader/style.min.css +1 -1
  50. package/es/vxe-checkbox/style.css +11 -0
  51. package/es/vxe-checkbox/style.min.css +1 -1
  52. package/es/vxe-checkbox-button/style.css +6 -0
  53. package/es/vxe-checkbox-button/style.min.css +1 -1
  54. package/es/vxe-form/style.css +19 -11
  55. package/es/vxe-form/style.min.css +1 -1
  56. package/es/vxe-icon/style.css +6 -0
  57. package/es/vxe-icon/style.min.css +1 -1
  58. package/es/vxe-input/style.css +276 -66
  59. package/es/vxe-input/style.min.css +1 -1
  60. package/es/vxe-menu/style.css +10 -0
  61. package/es/vxe-menu/style.min.css +1 -1
  62. package/es/vxe-number-input/style.css +28 -21
  63. package/es/vxe-number-input/style.min.css +1 -1
  64. package/es/vxe-password-input/style.css +28 -399
  65. package/es/vxe-password-input/style.min.css +1 -1
  66. package/es/vxe-radio/style.css +11 -0
  67. package/es/vxe-radio/style.min.css +1 -1
  68. package/es/vxe-radio-button/style.css +6 -0
  69. package/es/vxe-radio-button/style.min.css +1 -1
  70. package/es/vxe-select/style.css +10 -0
  71. package/es/vxe-select/style.min.css +1 -1
  72. package/es/vxe-switch/style.css +36 -22
  73. package/es/vxe-switch/style.min.css +1 -1
  74. package/es/vxe-tag/style.css +20 -19
  75. package/es/vxe-tag/style.min.css +1 -1
  76. package/es/vxe-tree/style.css +4 -1
  77. package/es/vxe-tree/style.min.css +1 -1
  78. package/es/vxe-upload/style.css +10 -0
  79. package/es/vxe-upload/style.min.css +1 -1
  80. package/lib/button/style/style.css +14 -0
  81. package/lib/button/style/style.min.css +1 -1
  82. package/lib/cascader/src/cascader.js +89 -29
  83. package/lib/cascader/src/cascader.min.js +1 -1
  84. package/lib/cascader/style/style.css +9 -9
  85. package/lib/cascader/style/style.min.css +1 -1
  86. package/lib/checkbox/src/group.js +8 -4
  87. package/lib/checkbox/src/group.min.js +1 -1
  88. package/lib/checkbox/style/style.css +11 -0
  89. package/lib/checkbox/style/style.min.css +1 -1
  90. package/lib/checkbox-button/style/style.css +6 -0
  91. package/lib/checkbox-button/style/style.min.css +1 -1
  92. package/lib/date-range-picker/src/date-range-picker.js +23 -9
  93. package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
  94. package/lib/form/style/style.css +19 -11
  95. package/lib/form/style/style.min.css +1 -1
  96. package/lib/icon/style/style.css +7 -1
  97. package/lib/icon/style/style.min.css +7 -1
  98. package/lib/index.umd.js +145 -52
  99. package/lib/index.umd.min.js +1 -1
  100. package/lib/input/style/style.css +276 -66
  101. package/lib/input/style/style.min.css +1 -1
  102. package/lib/menu/src/menu.js +4 -3
  103. package/lib/menu/src/menu.min.js +1 -1
  104. package/lib/menu/style/style.css +10 -0
  105. package/lib/menu/style/style.min.css +1 -1
  106. package/lib/number-input/style/style.css +28 -21
  107. package/lib/number-input/style/style.min.css +1 -1
  108. package/lib/password-input/src/password-input.js +1 -0
  109. package/lib/password-input/src/password-input.min.js +1 -1
  110. package/lib/password-input/style/style.css +28 -399
  111. package/lib/password-input/style/style.min.css +1 -1
  112. package/lib/radio/src/group.js +4 -4
  113. package/lib/radio/src/group.min.js +1 -1
  114. package/lib/radio/style/style.css +11 -0
  115. package/lib/radio/style/style.min.css +1 -1
  116. package/lib/radio-button/style/style.css +6 -0
  117. package/lib/radio-button/style/style.min.css +1 -1
  118. package/lib/select/style/style.css +10 -0
  119. package/lib/select/style/style.min.css +1 -1
  120. package/lib/style.css +1 -1
  121. package/lib/style.min.css +1 -1
  122. package/lib/switch/style/style.css +36 -22
  123. package/lib/switch/style/style.min.css +1 -1
  124. package/lib/tag/style/style.css +20 -19
  125. package/lib/tag/style/style.min.css +1 -1
  126. package/lib/tree/src/tree.js +13 -2
  127. package/lib/tree/src/tree.min.js +1 -1
  128. package/lib/tree/style/style.css +4 -1
  129. package/lib/tree/style/style.min.css +1 -1
  130. package/lib/ui/index.js +1 -1
  131. package/lib/ui/index.min.js +1 -1
  132. package/lib/ui/src/log.js +1 -1
  133. package/lib/ui/src/log.min.js +1 -1
  134. package/lib/upload/style/style.css +10 -0
  135. package/lib/upload/style/style.min.css +1 -1
  136. package/lib/vxe-button/style/style.css +14 -0
  137. package/lib/vxe-button/style/style.min.css +1 -1
  138. package/lib/vxe-cascader/style/style.css +9 -9
  139. package/lib/vxe-cascader/style/style.min.css +1 -1
  140. package/lib/vxe-checkbox/style/style.css +11 -0
  141. package/lib/vxe-checkbox/style/style.min.css +1 -1
  142. package/lib/vxe-checkbox-button/style/style.css +6 -0
  143. package/lib/vxe-checkbox-button/style/style.min.css +1 -1
  144. package/lib/vxe-form/style/style.css +19 -11
  145. package/lib/vxe-form/style/style.min.css +1 -1
  146. package/lib/vxe-icon/style/style.css +6 -0
  147. package/lib/vxe-icon/style/style.min.css +1 -1
  148. package/lib/vxe-input/style/style.css +276 -66
  149. package/lib/vxe-input/style/style.min.css +1 -1
  150. package/lib/vxe-menu/style/style.css +10 -0
  151. package/lib/vxe-menu/style/style.min.css +1 -1
  152. package/lib/vxe-number-input/style/style.css +28 -21
  153. package/lib/vxe-number-input/style/style.min.css +1 -1
  154. package/lib/vxe-password-input/style/style.css +28 -399
  155. package/lib/vxe-password-input/style/style.min.css +1 -1
  156. package/lib/vxe-radio/style/style.css +11 -0
  157. package/lib/vxe-radio/style/style.min.css +1 -1
  158. package/lib/vxe-radio-button/style/style.css +6 -0
  159. package/lib/vxe-radio-button/style/style.min.css +1 -1
  160. package/lib/vxe-select/style/style.css +10 -0
  161. package/lib/vxe-select/style/style.min.css +1 -1
  162. package/lib/vxe-switch/style/style.css +36 -22
  163. package/lib/vxe-switch/style/style.min.css +1 -1
  164. package/lib/vxe-tag/style/style.css +20 -19
  165. package/lib/vxe-tag/style/style.min.css +1 -1
  166. package/lib/vxe-tree/style/style.css +4 -1
  167. package/lib/vxe-tree/style/style.min.css +1 -1
  168. package/lib/vxe-upload/style/style.css +10 -0
  169. package/lib/vxe-upload/style/style.min.css +1 -1
  170. package/package.json +3 -3
  171. package/packages/cascader/src/cascader.ts +66 -23
  172. package/packages/checkbox/src/group.ts +7 -4
  173. package/packages/date-range-picker/src/date-range-picker.ts +23 -9
  174. package/packages/menu/src/menu.ts +4 -3
  175. package/packages/password-input/src/password-input.ts +1 -0
  176. package/packages/radio/src/group.ts +3 -3
  177. package/packages/tree/src/tree.ts +14 -2
  178. package/styles/components/button.scss +12 -0
  179. package/styles/components/cascader.scss +9 -9
  180. package/styles/components/checkbox-button.scss +6 -0
  181. package/styles/components/checkbox.scss +11 -0
  182. package/styles/components/form.scss +28 -22
  183. package/styles/components/icon.scss +6 -0
  184. package/styles/components/input.scss +52 -28
  185. package/styles/components/menu.scss +8 -0
  186. package/styles/components/number-input.scss +29 -23
  187. package/styles/components/password-input.scss +29 -173
  188. package/styles/components/radio-button.scss +6 -0
  189. package/styles/components/radio.scss +11 -0
  190. package/styles/components/select.scss +8 -0
  191. package/styles/components/switch.scss +37 -22
  192. package/styles/components/tag.scss +21 -21
  193. package/styles/components/tree.scss +3 -1
  194. package/styles/components/upload.scss +8 -0
  195. package/styles/theme/base.scss +47 -0
  196. package/types/components/cascader.d.ts +1 -0
  197. package/types/components/checkbox-group.d.ts +2 -0
  198. package/types/components/tree.d.ts +7 -0
  199. /package/es/icon/{iconfont.1783873707609.ttf → iconfont.1783939819897.ttf} +0 -0
  200. /package/es/icon/{iconfont.1783873707609.woff → iconfont.1783939819897.woff} +0 -0
  201. /package/es/icon/{iconfont.1783873707609.woff2 → iconfont.1783939819897.woff2} +0 -0
  202. /package/es/{iconfont.1783873707609.ttf → iconfont.1783939819897.ttf} +0 -0
  203. /package/es/{iconfont.1783873707609.woff → iconfont.1783939819897.woff} +0 -0
  204. /package/es/{iconfont.1783873707609.woff2 → iconfont.1783939819897.woff2} +0 -0
  205. /package/lib/icon/style/{iconfont.1783873707609.ttf → iconfont.1783939819897.ttf} +0 -0
  206. /package/lib/icon/style/{iconfont.1783873707609.woff → iconfont.1783939819897.woff} +0 -0
  207. /package/lib/icon/style/{iconfont.1783873707609.woff2 → iconfont.1783939819897.woff2} +0 -0
  208. /package/lib/{iconfont.1783873707609.ttf → iconfont.1783939819897.ttf} +0 -0
  209. /package/lib/{iconfont.1783873707609.woff → iconfont.1783939819897.woff} +0 -0
  210. /package/lib/{iconfont.1783873707609.woff2 → iconfont.1783939819897.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -11680,7 +11680,7 @@ var es_regexp_exec = __webpack_require__(7495);
11680
11680
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.match.js
11681
11681
  var es_string_match = __webpack_require__(1761);
11682
11682
  ;// ./node_modules/@vxe-ui/core/es/src/core.js
11683
- var coreVersion = "3.4.16";
11683
+ var coreVersion = "3.4.17";
11684
11684
  var VxeCore = {
11685
11685
  coreVersion: coreVersion,
11686
11686
  uiVersion: '',
@@ -12440,7 +12440,7 @@ function createLog(type, name) {
12440
12440
  return msg;
12441
12441
  };
12442
12442
  }
12443
- var version = "3.4.16";
12443
+ var version = "3.4.17";
12444
12444
  var log = {
12445
12445
  create: createLog,
12446
12446
  warn: createLog('warn', "v".concat(version)),
@@ -13256,7 +13256,7 @@ var es_array_join = __webpack_require__(8598);
13256
13256
 
13257
13257
 
13258
13258
  var log_log = VxeUI.log;
13259
- var uiVersion = "ui v".concat("3.16.7");
13259
+ var uiVersion = "ui v".concat("3.16.9");
13260
13260
  function createComponentLog(name) {
13261
13261
  var tableVersion = VxeUI.tableVersion ? "table v".concat(VxeUI.tableVersion) : '';
13262
13262
  var ganttVersion = VxeUI.ganttVersion ? "gantt v".concat(VxeUI.ganttVersion) : '';
@@ -13274,7 +13274,7 @@ var errLog = log_log.create('error', uiVersion);
13274
13274
 
13275
13275
 
13276
13276
 
13277
- var ui_version = "3.16.7";
13277
+ var ui_version = "3.16.9";
13278
13278
  VxeUI.uiVersion = ui_version;
13279
13279
  VxeUI.dynamicApp = dynamicApp;
13280
13280
  function config(options) {
@@ -27084,6 +27084,8 @@ var Input = VxeInput;
27084
27084
 
27085
27085
 
27086
27086
 
27087
+
27088
+
27087
27089
 
27088
27090
 
27089
27091
 
@@ -27144,6 +27146,7 @@ function cascader_createInternalData() {
27144
27146
  selectCheckboxMaps: {},
27145
27147
  treeExpandedMaps: {},
27146
27148
  treeExpandLazyLoadedMaps: {}
27149
+ // isUpdateMode: false
27147
27150
  };
27148
27151
  }
27149
27152
  /* harmony default export */ var cascader = (/* define-vxe-component start */defineVxeComponent({
@@ -27481,6 +27484,39 @@ function cascader_createInternalData() {
27481
27484
  var nodeKey = node[valueField];
27482
27485
  return enNodeValue(nodeKey);
27483
27486
  },
27487
+ isPathInTree: function isPathInTree(treeData, pathIds) {
27488
+ var $xeCascader = this;
27489
+ if (!pathIds || !pathIds.length) {
27490
+ return false;
27491
+ }
27492
+ var currentNodes = treeData;
27493
+ var _iterator = _createForOfIteratorHelper(pathIds),
27494
+ _step;
27495
+ try {
27496
+ var _loop = function _loop() {
27497
+ var nodeid = _step.value;
27498
+ var found = currentNodes.find(function (node) {
27499
+ return $xeCascader.getNodeId(node) === nodeid;
27500
+ });
27501
+ if (!found) {
27502
+ return {
27503
+ v: false
27504
+ };
27505
+ }
27506
+ currentNodes = found.children || [];
27507
+ },
27508
+ _ret;
27509
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
27510
+ _ret = _loop();
27511
+ if (_ret) return _ret.v;
27512
+ }
27513
+ } catch (err) {
27514
+ _iterator.e(err);
27515
+ } finally {
27516
+ _iterator.f();
27517
+ }
27518
+ return true;
27519
+ },
27484
27520
  isCheckedByCheckboxNodeId: function isCheckedByCheckboxNodeId(nodeid) {
27485
27521
  var $xeCascader = this;
27486
27522
  var reactData = $xeCascader.reactData;
@@ -27715,7 +27751,7 @@ function cascader_createInternalData() {
27715
27751
  if (transform) {
27716
27752
  treeList = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().searchTree(treeFullData, handleSearch, {
27717
27753
  original: true,
27718
- isEvery: true,
27754
+ isEvery: false,
27719
27755
  children: childrenField,
27720
27756
  mapChildren: mapChildrenField
27721
27757
  });
@@ -27735,7 +27771,7 @@ function cascader_createInternalData() {
27735
27771
  return true;
27736
27772
  }, {
27737
27773
  original: true,
27738
- isEvery: true,
27774
+ isEvery: false,
27739
27775
  children: childrenField,
27740
27776
  mapChildren: mapChildrenField
27741
27777
  });
@@ -27819,11 +27855,11 @@ function cascader_createInternalData() {
27819
27855
  var currList = treeList;
27820
27856
  while (currList.length) {
27821
27857
  var targetNode = null;
27822
- var _iterator = _createForOfIteratorHelper(currList),
27823
- _step;
27858
+ var _iterator2 = _createForOfIteratorHelper(currList),
27859
+ _step2;
27824
27860
  try {
27825
- for (_iterator.s(); !(_step = _iterator.n()).done;) {
27826
- var item = _step.value;
27861
+ for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
27862
+ var item = _step2.value;
27827
27863
  var kids = item[childField];
27828
27864
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(kids) && kids.length > 0) {
27829
27865
  targetNode = item;
@@ -27831,9 +27867,9 @@ function cascader_createInternalData() {
27831
27867
  }
27832
27868
  }
27833
27869
  } catch (err) {
27834
- _iterator.e(err);
27870
+ _iterator2.e(err);
27835
27871
  } finally {
27836
- _iterator.f();
27872
+ _iterator2.f();
27837
27873
  }
27838
27874
  if (targetNode) {
27839
27875
  nodeIds.push($xeCascader.getNodeId(targetNode));
@@ -27851,16 +27887,25 @@ function cascader_createInternalData() {
27851
27887
  var reactData = $xeCascader.reactData;
27852
27888
  var internalData = $xeCascader.internalData;
27853
27889
  $xeCascader.handleData(true);
27854
- $xeCascader.updateModelChecked();
27890
+ $xeCascader.updateCheckboxStatus();
27891
+ var currentItems = reactData.currentItems;
27892
+ var afterTreeList = internalData.afterTreeList;
27855
27893
  var filterOpts = $xeCascader.computeFilterOpts;
27856
27894
  var autoExpandMode = filterOpts.autoExpandMode;
27857
- var afterTreeList = internalData.afterTreeList;
27858
- // 默认展开第
27859
- if (autoExpandMode === 'first' || autoExpandMode === 'last') {
27860
- var stItems = $xeCascader.handleHasChildNodeIds(afterTreeList, autoExpandMode);
27861
- reactData.currentItems = stItems;
27862
- } else {
27863
- $xeCascader.handleCurrentItems();
27895
+ // 如果当前不在列表情况下,触发默认行为
27896
+ if (!$xeCascader.isPathInTree(afterTreeList, currentItems)) {
27897
+ // 默认展开
27898
+ if (autoExpandMode === 'first' || autoExpandMode === 'last') {
27899
+ var stItems = $xeCascader.handleHasChildNodeIds(afterTreeList, autoExpandMode);
27900
+ var expandedMaps = {};
27901
+ stItems.forEach(function (nodeid) {
27902
+ expandedMaps[nodeid] = true;
27903
+ });
27904
+ internalData.treeExpandedMaps = expandedMaps;
27905
+ reactData.currentItems = stItems;
27906
+ } else {
27907
+ $xeCascader.handleCurrentItems();
27908
+ }
27864
27909
  }
27865
27910
  $xeCascader.updateCurrentChunk();
27866
27911
  }, 350, {
@@ -28097,9 +28142,11 @@ function cascader_createInternalData() {
28097
28142
  changeEvent: function changeEvent(evnt, selectValue, node) {
28098
28143
  var $xeCascader = this;
28099
28144
  var props = $xeCascader;
28145
+ var internalData = $xeCascader.internalData;
28100
28146
  var $xeForm = $xeCascader.$xeForm;
28101
28147
  var formItemInfo = $xeCascader.formItemInfo;
28102
28148
  var value = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isArray(selectValue) ? selectValue.map(deNodeValue) : deNodeValue(selectValue);
28149
+ internalData.isUpdateMode = true;
28103
28150
  $xeCascader.emitModel(value);
28104
28151
  if (value !== props.value) {
28105
28152
  $xeCascader.dispatchEvent('change', {
@@ -28246,12 +28293,13 @@ function cascader_createInternalData() {
28246
28293
  checked: isChecked
28247
28294
  }, evnt);
28248
28295
  },
28249
- changeRadioEvent: function changeRadioEvent(evnt, node) {
28296
+ changeRadioEvent: function changeRadioEvent(evnt, node, chunks, chunkIndex) {
28250
28297
  var $xeCascader = this;
28251
28298
  var reactData = $xeCascader.reactData;
28252
28299
  var internalData = $xeCascader.internalData;
28253
28300
  evnt.preventDefault();
28254
28301
  evnt.stopPropagation();
28302
+ var currentItems = reactData.currentItems;
28255
28303
  var nodeMaps = internalData.nodeMaps;
28256
28304
  var radioOpts = $xeCascader.computeRadioOpts;
28257
28305
  var childrenField = $xeCascader.computeChildrenField;
@@ -28275,6 +28323,10 @@ function cascader_createInternalData() {
28275
28323
  var value = nodeid;
28276
28324
  reactData.selectRadioKey = value;
28277
28325
  $xeCascader.changeEvent(evnt, value, node);
28326
+ if (!currentItems.includes(nodeid)) {
28327
+ $xeCascader.changeCurrentEvent(evnt, node);
28328
+ $xeCascader.toggleExpandEvent(evnt, node, chunks, chunkIndex);
28329
+ }
28278
28330
  $xeCascader.hideOptionPanel(evnt);
28279
28331
  },
28280
28332
  handleAsyncTreeExpandChilds: function handleAsyncTreeExpandChilds(node) {
@@ -28544,12 +28596,14 @@ function cascader_createInternalData() {
28544
28596
  reactData.updateCheckboxFlag++;
28545
28597
  }
28546
28598
  },
28547
- changeCheckboxEvent: function changeCheckboxEvent(evnt, node) {
28599
+ changeCheckboxEvent: function changeCheckboxEvent(evnt, node, chunks, chunkIndex) {
28548
28600
  var $xeCascader = this;
28549
28601
  var reactData = $xeCascader.reactData;
28550
28602
  var internalData = $xeCascader.internalData;
28551
28603
  evnt.preventDefault();
28552
28604
  evnt.stopPropagation();
28605
+ // const { filterable } = props
28606
+ var currentItems = reactData.currentItems;
28553
28607
  var selectCheckboxMaps = internalData.selectCheckboxMaps,
28554
28608
  nodeMaps = internalData.nodeMaps;
28555
28609
  var childrenField = $xeCascader.computeChildrenField;
@@ -28580,7 +28634,7 @@ function cascader_createInternalData() {
28580
28634
  selectCheckboxMaps[nodeid] = node;
28581
28635
  }
28582
28636
  if (!checkStrictly) {
28583
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(node, transform ? mapChildrenField : childrenField), function (childNode) {
28637
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(childList, function (childNode) {
28584
28638
  var childNodeid = $xeCascader.getNodeId(childNode);
28585
28639
  if (isChecked) {
28586
28640
  if (!selectCheckboxMaps[childNodeid]) {
@@ -28600,6 +28654,10 @@ function cascader_createInternalData() {
28600
28654
  var nodeids = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().keys(selectCheckboxMaps);
28601
28655
  var value = nodeids;
28602
28656
  $xeCascader.changeEvent(evnt, value, node);
28657
+ if (!currentItems.includes(nodeid)) {
28658
+ $xeCascader.changeCurrentEvent(evnt, node);
28659
+ $xeCascader.toggleExpandEvent(evnt, node, chunks, chunkIndex);
28660
+ }
28603
28661
  },
28604
28662
  handleNodeClickEvent: function handleNodeClickEvent(evnt, node, chunks, chunkIndex) {
28605
28663
  var $xeCascader = this;
@@ -28628,12 +28686,12 @@ function cascader_createInternalData() {
28628
28686
  if (multiple) {
28629
28687
  if (checkboxOpts.trigger === 'node' || !showCheckbox && (!childList || !childList.length)) {
28630
28688
  triggerCheckbox = true;
28631
- $xeCascader.changeCheckboxEvent(evnt, node);
28689
+ $xeCascader.changeCheckboxEvent(evnt, node, chunks, chunkIndex);
28632
28690
  }
28633
28691
  } else {
28634
28692
  if (radioOpts.trigger === 'node' || !showRadio && (!childList || !childList.length)) {
28635
28693
  triggerRadio = true;
28636
- $xeCascader.changeRadioEvent(evnt, node);
28694
+ $xeCascader.changeRadioEvent(evnt, node, chunks, chunkIndex);
28637
28695
  }
28638
28696
  }
28639
28697
  $xeCascader.dispatchEvent('node-click', {
@@ -28777,7 +28835,7 @@ function cascader_createInternalData() {
28777
28835
  //
28778
28836
  // Render
28779
28837
  //
28780
- renderRadio: function renderRadio(h, node, isExistChild, nLevel, isChecked) {
28838
+ renderRadio: function renderRadio(h, node, isExistChild, nLevel, isChecked, chunks, chunkIndex) {
28781
28839
  var $xeCascader = this;
28782
28840
  var props = $xeCascader;
28783
28841
  var showRadio = props.showRadio;
@@ -28803,7 +28861,7 @@ function cascader_createInternalData() {
28803
28861
  on: {
28804
28862
  click: function click(evnt) {
28805
28863
  if (!isDisabled) {
28806
- $xeCascader.changeRadioEvent(evnt, node);
28864
+ $xeCascader.changeRadioEvent(evnt, node, chunks, chunkIndex);
28807
28865
  }
28808
28866
  }
28809
28867
  }
@@ -28813,7 +28871,7 @@ function cascader_createInternalData() {
28813
28871
  }
28814
28872
  return renderEmptyElement($xeCascader);
28815
28873
  },
28816
- renderCheckbox: function renderCheckbox(h, node, isExistChild, nLevel, isChecked, isIndeterminate) {
28874
+ renderCheckbox: function renderCheckbox(h, node, isExistChild, nLevel, isChecked, isIndeterminate, chunks, chunkIndex) {
28817
28875
  var $xeCascader = this;
28818
28876
  var props = $xeCascader;
28819
28877
  var showCheckbox = props.showCheckbox;
@@ -28840,7 +28898,7 @@ function cascader_createInternalData() {
28840
28898
  on: {
28841
28899
  click: function click(evnt) {
28842
28900
  if (!isDisabled) {
28843
- $xeCascader.changeCheckboxEvent(evnt, node);
28901
+ $xeCascader.changeCheckboxEvent(evnt, node, chunks, chunkIndex);
28844
28902
  }
28845
28903
  }
28846
28904
  }
@@ -28928,7 +28986,7 @@ function cascader_createInternalData() {
28928
28986
  $xeCascader.handleNodeClickEvent(evnt, node, chunks, chunkIndex);
28929
28987
  }
28930
28988
  }
28931
- }, [multiple ? $xeCascader.renderCheckbox(h, node, isExistChild, nLevel, isCheckboxChecked, isIndeterminate) : $xeCascader.renderRadio(h, node, isExistChild, nLevel, isRadioChecked), h('div', {
28989
+ }, [multiple ? $xeCascader.renderCheckbox(h, node, isExistChild, nLevel, isCheckboxChecked, isIndeterminate, chunks, chunkIndex) : $xeCascader.renderRadio(h, node, isExistChild, nLevel, isRadioChecked, chunks, chunkIndex), h('div', {
28932
28990
  class: 'vxe-cascader-chunk--node-item-inner'
28933
28991
  }, [h('div', {
28934
28992
  class: 'vxe-cascader-chunk--node-item-title'
@@ -29114,9 +29172,13 @@ function cascader_createInternalData() {
29114
29172
  watch: {
29115
29173
  value: function value() {
29116
29174
  var $xeCascader = this;
29117
- $xeCascader.updateModelChecked();
29118
- $xeCascader.handleCurrentItems();
29119
- $xeCascader.updateCurrentChunk();
29175
+ var internalData = $xeCascader.internalData;
29176
+ if (!internalData.isUpdateMode) {
29177
+ $xeCascader.updateModelChecked();
29178
+ $xeCascader.handleCurrentItems();
29179
+ $xeCascader.updateCurrentChunk();
29180
+ }
29181
+ internalData.isUpdateMode = false;
29120
29182
  },
29121
29183
  options: function options() {
29122
29184
  var $xeCascader = this;
@@ -29674,6 +29736,7 @@ var CheckboxButton = VxeCheckboxButton;
29674
29736
 
29675
29737
 
29676
29738
 
29739
+
29677
29740
  function group_createReactData() {
29678
29741
  return {};
29679
29742
  }
@@ -29693,6 +29756,7 @@ function group_createInternalData() {
29693
29756
  type: Boolean,
29694
29757
  default: null
29695
29758
  },
29759
+ type: String,
29696
29760
  disabled: {
29697
29761
  type: Boolean,
29698
29762
  default: null
@@ -29902,7 +29966,8 @@ function group_createInternalData() {
29902
29966
  var props = $xeCheckboxGroup;
29903
29967
  var slots = $xeCheckboxGroup.$scopedSlots;
29904
29968
  var status = props.status,
29905
- options = props.options;
29969
+ options = props.options,
29970
+ type = props.type;
29906
29971
  var defaultSlot = slots.default;
29907
29972
  var valueField = $xeCheckboxGroup.computeValueField;
29908
29973
  var labelField = $xeCheckboxGroup.computeLabelField;
@@ -29911,10 +29976,11 @@ function group_createInternalData() {
29911
29976
  var titleField = $xeCheckboxGroup.computeTitleField;
29912
29977
  var isReadonly = $xeCheckboxGroup.computeIsReadonly;
29913
29978
  var isDisabled = $xeCheckboxGroup.computeIsDisabled;
29979
+ var btnComp = type === 'button' ? checkbox_button : packages_checkbox;
29914
29980
  return h('div', {
29915
- class: ['vxe-checkbox-group', _defineProperty(_defineProperty(_defineProperty({}, "theme--".concat(status), status), 'is--readonly', isReadonly), 'is--disabled', isDisabled)]
29981
+ class: ['vxe-checkbox-group', "type--".concat(type === 'button' ? type : ''), _defineProperty(_defineProperty(_defineProperty({}, "theme--".concat(status), status), 'is--readonly', isReadonly), 'is--disabled', isDisabled)]
29916
29982
  }, defaultSlot ? defaultSlot({}) : options ? options.map(function (item) {
29917
- return h(src_checkbox, {
29983
+ return h(btnComp, {
29918
29984
  key: item[valueField],
29919
29985
  props: {
29920
29986
  checkedValue: item[valueField],
@@ -39514,6 +39580,7 @@ function date_range_picker_createInternalData() {
39514
39580
  var $xeDateRangePicker = this;
39515
39581
  var reactData = $xeDateRangePicker.reactData;
39516
39582
  var internalData = $xeDateRangePicker.internalData;
39583
+ var paneStartVal = reactData.paneStartVal;
39517
39584
  var selectStatus = internalData.selectStatus;
39518
39585
  var value = params.value,
39519
39586
  currValue = params.currValue,
@@ -39522,11 +39589,17 @@ function date_range_picker_createInternalData() {
39522
39589
  var startValue = '';
39523
39590
  var endValue = '';
39524
39591
  if (selectStatus) {
39525
- startValue = paneVals[0];
39526
- if (paneVals[1]) {
39527
- endValue = paneVals[1];
39592
+ // 如果选择同一天
39593
+ if (!value && currValue === paneStartVal[0]) {
39594
+ startValue = currValue;
39595
+ endValue = currValue;
39528
39596
  } else {
39529
- endValue = reactData.selectEdValue;
39597
+ startValue = paneVals[0];
39598
+ if (paneVals[1]) {
39599
+ endValue = paneVals[1];
39600
+ } else {
39601
+ endValue = reactData.selectEdValue;
39602
+ }
39530
39603
  }
39531
39604
  } else {
39532
39605
  startValue = currValue || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().last(paneVals);
@@ -39550,6 +39623,7 @@ function date_range_picker_createInternalData() {
39550
39623
  var $xeDateRangePicker = this;
39551
39624
  var reactData = $xeDateRangePicker.reactData;
39552
39625
  var internalData = $xeDateRangePicker.internalData;
39626
+ var paneEndVal = reactData.paneEndVal;
39553
39627
  var selectStatus = internalData.selectStatus;
39554
39628
  var value = params.value,
39555
39629
  currValue = params.currValue,
@@ -39558,12 +39632,18 @@ function date_range_picker_createInternalData() {
39558
39632
  var startValue = '';
39559
39633
  var endValue = '';
39560
39634
  if (selectStatus) {
39561
- endValue = paneVals[0];
39562
- if (paneVals[1]) {
39563
- startValue = paneVals[0];
39564
- endValue = paneVals[1];
39635
+ // 如果选择同一天
39636
+ if (!value && currValue === paneEndVal[1]) {
39637
+ startValue = currValue;
39638
+ endValue = currValue;
39565
39639
  } else {
39566
- startValue = reactData.selectStValue;
39640
+ endValue = paneVals[0];
39641
+ if (paneVals[1]) {
39642
+ startValue = paneVals[0];
39643
+ endValue = paneVals[1];
39644
+ } else {
39645
+ startValue = reactData.selectStValue;
39646
+ }
39567
39647
  }
39568
39648
  } else {
39569
39649
  endValue = currValue || external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().last(paneVals);
@@ -47396,6 +47476,7 @@ var nemuUniqueKey = 100000000;
47396
47476
  var itemId = item.itemId,
47397
47477
  hasChild = item.hasChild,
47398
47478
  isExpand = item.isExpand;
47479
+ var isCollapsed = $xeMenu.computeIsCollapsed;
47399
47480
  var expanded = !isExpand;
47400
47481
  if (hasChild) {
47401
47482
  evnt.stopPropagation();
@@ -47411,9 +47492,9 @@ var nemuUniqueKey = 100000000;
47411
47492
  });
47412
47493
  }
47413
47494
  item.isExpand = expanded;
47414
- var el = $xeMenu.$refs.refElem;
47415
- if (el) {
47416
- var nemuEl = el.querySelector(".vxe-menu--item-wrapper[data-menu-id=\"".concat(itemId, "\"]"));
47495
+ var wrapperEl = isCollapsed ? $xeMenu.$refs.refCollapseElem : $xeMenu.$refs.refElem;
47496
+ if (wrapperEl) {
47497
+ var nemuEl = wrapperEl.querySelector(".vxe-menu--item-wrapper[data-menu-id=\"".concat(itemId, "\"]"));
47417
47498
  var groupEl = nemuEl ? nemuEl.querySelector('.vxe-menu--item-group') : null;
47418
47499
  if (groupEl) {
47419
47500
  if (expanded) {
@@ -53498,6 +53579,7 @@ var Pager = VxePager;
53498
53579
  var formItemInfo = $xePasswordInput.formItemInfo;
53499
53580
  var inputValue = reactData.inputValue;
53500
53581
  var value = inputValue;
53582
+ reactData.isActivated = false;
53501
53583
  $xePasswordInput.dispatchEvent('blur', {
53502
53584
  value: value
53503
53585
  }, evnt);
@@ -55630,9 +55712,9 @@ function src_group_createInternalData() {
55630
55712
  var disabledField = $xeRadioGroup.computeDisabledField;
55631
55713
  var iconField = $xeRadioGroup.computeIconField;
55632
55714
  var titleField = $xeRadioGroup.computeTitleField;
55633
- var btnComp = type === 'button' ? radio_src_button : src_radio;
55715
+ var btnComp = type === 'button' ? radio_button : packages_radio;
55634
55716
  return h('div', {
55635
- class: ['vxe-radio-group', _defineProperty(_defineProperty({}, "theme--".concat(status), status), "size--".concat(vSize), vSize)]
55717
+ class: ['vxe-radio-group', "type--".concat(type === 'button' ? type : ''), _defineProperty(_defineProperty({}, "theme--".concat(status), status), "size--".concat(vSize), vSize)]
55636
55718
  }, defaultSlot ? defaultSlot({}) : options ? options.map(function (item) {
55637
55719
  return h(btnComp, {
55638
55720
  key: item[valueField],
@@ -62599,6 +62681,12 @@ function tree_createReactData() {
62599
62681
  return tree_getConfig().tree.minHeight;
62600
62682
  }
62601
62683
  },
62684
+ emptyText: {
62685
+ type: [String, Number],
62686
+ default: function _default() {
62687
+ return tree_getConfig().tree.emptyText;
62688
+ }
62689
+ },
62602
62690
  loading: Boolean,
62603
62691
  loadingConfig: Object,
62604
62692
  accordion: {
@@ -65673,14 +65761,19 @@ function tree_createReactData() {
65673
65761
  renderList: function renderList(h, treeList) {
65674
65762
  var $xeTree = this;
65675
65763
  var props = $xeTree;
65764
+ var slots = $xeTree.$scopedSlots;
65676
65765
  var internalData = $xeTree.internalData;
65677
- var transform = props.transform;
65766
+ var transform = props.transform,
65767
+ emptyText = props.emptyText;
65678
65768
  var treeExpandedMaps = internalData.treeExpandedMaps;
65679
65769
  var childrenField = $xeTree.computeChildrenField;
65770
+ var emptySlot = slots.empty;
65680
65771
  if (!treeList.length) {
65681
65772
  return [h('div', {
65682
65773
  class: 'vxe-tree--empty-placeholder'
65683
- }, tree_getI18n('vxe.tree.searchEmpty'))];
65774
+ }, emptySlot ? emptySlot({}) : [h('div', {
65775
+ class: 'vxe-tree--empty-placeholder-content'
65776
+ }, getText(emptyText || tree_getI18n('vxe.tree.searchEmpty')))])];
65684
65777
  }
65685
65778
  var nodeVNs = [];
65686
65779
  treeList.forEach(transform ? function (node) {