vxe-pc-ui 4.16.1 → 4.16.2

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 (39) hide show
  1. package/dist/all.esm.js +14 -13
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/cascader/src/cascader.js +7 -8
  5. package/es/icon/style.css +1 -1
  6. package/es/style.css +1 -1
  7. package/es/style.min.css +1 -1
  8. package/es/ui/index.js +1 -1
  9. package/es/ui/src/log.js +1 -1
  10. package/es/upload/src/upload.js +5 -3
  11. package/lib/cascader/src/cascader.js +9 -8
  12. package/lib/cascader/src/cascader.min.js +1 -1
  13. package/lib/icon/style/style.css +1 -1
  14. package/lib/icon/style/style.min.css +1 -1
  15. package/lib/index.umd.js +16 -13
  16. package/lib/index.umd.min.js +1 -1
  17. package/lib/style.css +1 -1
  18. package/lib/style.min.css +1 -1
  19. package/lib/ui/index.js +1 -1
  20. package/lib/ui/index.min.js +1 -1
  21. package/lib/ui/src/log.js +1 -1
  22. package/lib/ui/src/log.min.js +1 -1
  23. package/lib/upload/src/upload.js +5 -3
  24. package/lib/upload/src/upload.min.js +1 -1
  25. package/package.json +1 -1
  26. package/packages/cascader/src/cascader.ts +7 -8
  27. package/packages/upload/src/upload.ts +5 -3
  28. /package/es/icon/{iconfont.1783476498804.ttf → iconfont.1783571763891.ttf} +0 -0
  29. /package/es/icon/{iconfont.1783476498804.woff → iconfont.1783571763891.woff} +0 -0
  30. /package/es/icon/{iconfont.1783476498804.woff2 → iconfont.1783571763891.woff2} +0 -0
  31. /package/es/{iconfont.1783476498804.ttf → iconfont.1783571763891.ttf} +0 -0
  32. /package/es/{iconfont.1783476498804.woff → iconfont.1783571763891.woff} +0 -0
  33. /package/es/{iconfont.1783476498804.woff2 → iconfont.1783571763891.woff2} +0 -0
  34. /package/lib/icon/style/{iconfont.1783476498804.ttf → iconfont.1783571763891.ttf} +0 -0
  35. /package/lib/icon/style/{iconfont.1783476498804.woff → iconfont.1783571763891.woff} +0 -0
  36. /package/lib/icon/style/{iconfont.1783476498804.woff2 → iconfont.1783571763891.woff2} +0 -0
  37. /package/lib/{iconfont.1783476498804.ttf → iconfont.1783571763891.ttf} +0 -0
  38. /package/lib/{iconfont.1783476498804.woff → iconfont.1783571763891.woff} +0 -0
  39. /package/lib/{iconfont.1783476498804.woff2 → iconfont.1783571763891.woff2} +0 -0
package/lib/index.umd.js CHANGED
@@ -4657,7 +4657,7 @@ function checkDynamic() {
4657
4657
  const {
4658
4658
  log: log_log
4659
4659
  } = VxeUI;
4660
- const uiVersion = `ui v${"4.16.1"}`;
4660
+ const uiVersion = `ui v${"4.16.2"}`;
4661
4661
  function createComponentLog(name) {
4662
4662
  const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
4663
4663
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
@@ -4675,7 +4675,7 @@ const errLog = log_log.create('error', uiVersion);
4675
4675
 
4676
4676
 
4677
4677
 
4678
- const ui_version = "4.16.1";
4678
+ const ui_version = "4.16.2";
4679
4679
  VxeUI.uiVersion = ui_version;
4680
4680
  VxeUI.dynamicApp = dynamicApp;
4681
4681
  function config(options) {
@@ -18156,6 +18156,9 @@ function cascader_createInternalData() {
18156
18156
  reactData.currentCunkList = currentCunkList;
18157
18157
  };
18158
18158
  const handleCurrentItems = () => {
18159
+ const {
18160
+ currentNode
18161
+ } = reactData;
18159
18162
  const {
18160
18163
  afterTreeList
18161
18164
  } = internalData;
@@ -18168,8 +18171,8 @@ function cascader_createInternalData() {
18168
18171
  } = treeOpts;
18169
18172
  const stItems = [];
18170
18173
  const expandedMaps = {};
18171
- if (selectVals.length) {
18172
- const lastVal = enNodeValue(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().last(selectVals));
18174
+ const lastVal = currentNode ? getNodeId(currentNode) : enNodeValue(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().last(selectVals));
18175
+ if (lastVal) {
18173
18176
  const stRest = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findTree(afterTreeList, item => lastVal === getNodeId(item), {
18174
18177
  children: transform ? mapChildrenField : childrenField
18175
18178
  });
@@ -18184,8 +18187,8 @@ function cascader_createInternalData() {
18184
18187
  });
18185
18188
  }
18186
18189
  }
18187
- internalData.treeExpandedMaps = expandedMaps;
18188
18190
  reactData.currentItems = stItems;
18191
+ internalData.treeExpandedMaps = expandedMaps;
18189
18192
  };
18190
18193
  const updateZindex = () => {
18191
18194
  const popupOpts = computePopupOpts.value;
@@ -19339,11 +19342,9 @@ function cascader_createInternalData() {
19339
19342
  })]) : renderEmptyElement($xeCascader)])]) : renderEmptyElement($xeCascader)])] : [])])]);
19340
19343
  };
19341
19344
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, () => {
19342
- if (!reactData.visiblePanel) {
19343
- updateModelChecked();
19344
- handleCurrentItems();
19345
- updateCurrentChunk();
19346
- }
19345
+ updateModelChecked();
19346
+ handleCurrentItems();
19347
+ updateCurrentChunk();
19347
19348
  });
19348
19349
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.options, () => {
19349
19350
  cacheNodeMap();
@@ -55532,7 +55533,8 @@ function upload_createInternalData() {
55532
55533
  files: selectFiles
55533
55534
  }, evnt);
55534
55535
  const cacheMaps = Object.assign({}, reactData.fileCacheMaps);
55535
- const newFileList = multiple ? fileList : [];
55536
+ const uploadFileList = multiple ? fileList : [];
55537
+ const newFileList = [];
55536
55538
  const uploadPromiseRests = [];
55537
55539
  selectFiles.forEach(file => {
55538
55540
  const {
@@ -55564,11 +55566,12 @@ function upload_createInternalData() {
55564
55566
  uploadPromiseRests.push(handleUploadResult(item, file));
55565
55567
  }
55566
55568
  newFileList.push(item);
55569
+ uploadFileList.push(item);
55567
55570
  }
55568
55571
  });
55569
- reactData.fileList = newFileList;
55572
+ reactData.fileList = uploadFileList;
55570
55573
  reactData.fileCacheMaps = cacheMaps;
55571
- newFileList.forEach(item => {
55574
+ uploadFileList.forEach(item => {
55572
55575
  dispatchEvent('add', {
55573
55576
  option: item
55574
55577
  }, evnt);