vxe-pc-ui 4.16.0 → 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 (40) hide show
  1. package/README.md +1 -0
  2. package/dist/all.esm.js +14 -13
  3. package/dist/style.css +1 -1
  4. package/dist/style.min.css +1 -1
  5. package/es/cascader/src/cascader.js +7 -8
  6. package/es/icon/style.css +1 -1
  7. package/es/style.css +1 -1
  8. package/es/style.min.css +1 -1
  9. package/es/ui/index.js +1 -1
  10. package/es/ui/src/log.js +1 -1
  11. package/es/upload/src/upload.js +5 -3
  12. package/lib/cascader/src/cascader.js +9 -8
  13. package/lib/cascader/src/cascader.min.js +1 -1
  14. package/lib/icon/style/style.css +1 -1
  15. package/lib/icon/style/style.min.css +1 -1
  16. package/lib/index.umd.js +16 -13
  17. package/lib/index.umd.min.js +1 -1
  18. package/lib/style.css +1 -1
  19. package/lib/style.min.css +1 -1
  20. package/lib/ui/index.js +1 -1
  21. package/lib/ui/index.min.js +1 -1
  22. package/lib/ui/src/log.js +1 -1
  23. package/lib/ui/src/log.min.js +1 -1
  24. package/lib/upload/src/upload.js +5 -3
  25. package/lib/upload/src/upload.min.js +1 -1
  26. package/package.json +1 -1
  27. package/packages/cascader/src/cascader.ts +7 -8
  28. package/packages/upload/src/upload.ts +5 -3
  29. /package/es/icon/{iconfont.1783442797813.ttf → iconfont.1783571763891.ttf} +0 -0
  30. /package/es/icon/{iconfont.1783442797813.woff → iconfont.1783571763891.woff} +0 -0
  31. /package/es/icon/{iconfont.1783442797813.woff2 → iconfont.1783571763891.woff2} +0 -0
  32. /package/es/{iconfont.1783442797813.ttf → iconfont.1783571763891.ttf} +0 -0
  33. /package/es/{iconfont.1783442797813.woff → iconfont.1783571763891.woff} +0 -0
  34. /package/es/{iconfont.1783442797813.woff2 → iconfont.1783571763891.woff2} +0 -0
  35. /package/lib/icon/style/{iconfont.1783442797813.ttf → iconfont.1783571763891.ttf} +0 -0
  36. /package/lib/icon/style/{iconfont.1783442797813.woff → iconfont.1783571763891.woff} +0 -0
  37. /package/lib/icon/style/{iconfont.1783442797813.woff2 → iconfont.1783571763891.woff2} +0 -0
  38. /package/lib/{iconfont.1783442797813.ttf → iconfont.1783571763891.ttf} +0 -0
  39. /package/lib/{iconfont.1783442797813.woff → iconfont.1783571763891.woff} +0 -0
  40. /package/lib/{iconfont.1783442797813.woff2 → iconfont.1783571763891.woff2} +0 -0
package/README.md CHANGED
@@ -33,6 +33,7 @@
33
33
  * **V1**
34
34
  * [x] ~~v1.0 基于 vue2.6~2.7,停止维护~~
35
35
  * 版本计划
36
+ * [*] 计划功能:虚拟列表,支持十万级数据渲染
36
37
  * [ ] 计划功能:虚拟列表,支持百万级数据渲染
37
38
  * [ ] 计划功能:虚拟表单,支持万级表单项渲染
38
39
  * [ ] 计划功能:全功能表单可视化设计器
package/dist/all.esm.js CHANGED
@@ -81,7 +81,7 @@ function checkDynamic() {
81
81
  }
82
82
 
83
83
  const { log } = VxeUI;
84
- const uiVersion = `ui v${"4.16.0"}`;
84
+ const uiVersion = `ui v${"4.16.2"}`;
85
85
  function createComponentLog(name) {
86
86
  const tableVersion = VxeUI.tableVersion ? `table v${VxeUI.tableVersion}` : '';
87
87
  const ganttVersion = VxeUI.ganttVersion ? `gantt v${VxeUI.ganttVersion}` : '';
@@ -95,7 +95,7 @@ function createComponentLog(name) {
95
95
  const warnLog$h = log.create('warn', uiVersion);
96
96
  log.create('error', uiVersion);
97
97
 
98
- const version = "4.16.0";
98
+ const version = "4.16.2";
99
99
  VxeUI.uiVersion = version;
100
100
  VxeUI.dynamicApp = dynamicApp;
101
101
  function config(options) {
@@ -12351,6 +12351,7 @@ var VxeCascaderComponent = defineVxeComponent({
12351
12351
  reactData.currentCunkList = currentCunkList;
12352
12352
  };
12353
12353
  const handleCurrentItems = () => {
12354
+ const { currentNode } = reactData;
12354
12355
  const { afterTreeList } = internalData;
12355
12356
  const selectVals = computeSelectVals.value;
12356
12357
  const childrenField = computeChildrenField.value;
@@ -12359,8 +12360,8 @@ var VxeCascaderComponent = defineVxeComponent({
12359
12360
  const { transform } = treeOpts;
12360
12361
  const stItems = [];
12361
12362
  const expandedMaps = {};
12362
- if (selectVals.length) {
12363
- const lastVal = enNodeValue(XEUtils.last(selectVals));
12363
+ const lastVal = currentNode ? getNodeId(currentNode) : enNodeValue(XEUtils.last(selectVals));
12364
+ if (lastVal) {
12364
12365
  const stRest = XEUtils.findTree(afterTreeList, (item) => lastVal === getNodeId(item), { children: transform ? mapChildrenField : childrenField });
12365
12366
  if (stRest) {
12366
12367
  const { nodes } = stRest;
@@ -12371,8 +12372,8 @@ var VxeCascaderComponent = defineVxeComponent({
12371
12372
  });
12372
12373
  }
12373
12374
  }
12374
- internalData.treeExpandedMaps = expandedMaps;
12375
12375
  reactData.currentItems = stItems;
12376
+ internalData.treeExpandedMaps = expandedMaps;
12376
12377
  };
12377
12378
  const updateZindex = () => {
12378
12379
  const popupOpts = computePopupOpts.value;
@@ -13372,11 +13373,9 @@ var VxeCascaderComponent = defineVxeComponent({
13372
13373
  ]);
13373
13374
  };
13374
13375
  watch(() => props.modelValue, () => {
13375
- if (!reactData.visiblePanel) {
13376
- updateModelChecked();
13377
- handleCurrentItems();
13378
- updateCurrentChunk();
13379
- }
13376
+ updateModelChecked();
13377
+ handleCurrentItems();
13378
+ updateCurrentChunk();
13380
13379
  });
13381
13380
  watch(() => props.options, () => {
13382
13381
  cacheNodeMap();
@@ -45668,7 +45667,8 @@ var VxeUploadComponent = defineVxeComponent({
45668
45667
  }
45669
45668
  dispatchEvent('upload-queue-start', { files: selectFiles }, evnt);
45670
45669
  const cacheMaps = Object.assign({}, reactData.fileCacheMaps);
45671
- const newFileList = multiple ? fileList : [];
45670
+ const uploadFileList = multiple ? fileList : [];
45671
+ const newFileList = [];
45672
45672
  const uploadPromiseRests = [];
45673
45673
  selectFiles.forEach(file => {
45674
45674
  const { name } = file;
@@ -45695,11 +45695,12 @@ var VxeUploadComponent = defineVxeComponent({
45695
45695
  uploadPromiseRests.push(handleUploadResult(item, file));
45696
45696
  }
45697
45697
  newFileList.push(item);
45698
+ uploadFileList.push(item);
45698
45699
  }
45699
45700
  });
45700
- reactData.fileList = newFileList;
45701
+ reactData.fileList = uploadFileList;
45701
45702
  reactData.fileCacheMaps = cacheMaps;
45702
- newFileList.forEach(item => {
45703
+ uploadFileList.forEach(item => {
45703
45704
  dispatchEvent('add', { option: item }, evnt);
45704
45705
  });
45705
45706
  Promise.all(uploadPromiseRests).then(() => {