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.
- package/dist/all.esm.js +14 -13
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/cascader/src/cascader.js +7 -8
- package/es/icon/style.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/upload/src/upload.js +5 -3
- package/lib/cascader/src/cascader.js +9 -8
- package/lib/cascader/src/cascader.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +16 -13
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/upload/src/upload.js +5 -3
- package/lib/upload/src/upload.min.js +1 -1
- package/package.json +1 -1
- package/packages/cascader/src/cascader.ts +7 -8
- package/packages/upload/src/upload.ts +5 -3
- /package/es/icon/{iconfont.1783476498804.ttf → iconfont.1783571763891.ttf} +0 -0
- /package/es/icon/{iconfont.1783476498804.woff → iconfont.1783571763891.woff} +0 -0
- /package/es/icon/{iconfont.1783476498804.woff2 → iconfont.1783571763891.woff2} +0 -0
- /package/es/{iconfont.1783476498804.ttf → iconfont.1783571763891.ttf} +0 -0
- /package/es/{iconfont.1783476498804.woff → iconfont.1783571763891.woff} +0 -0
- /package/es/{iconfont.1783476498804.woff2 → iconfont.1783571763891.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1783476498804.ttf → iconfont.1783571763891.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1783476498804.woff → iconfont.1783571763891.woff} +0 -0
- /package/lib/icon/style/{iconfont.1783476498804.woff2 → iconfont.1783571763891.woff2} +0 -0
- /package/lib/{iconfont.1783476498804.ttf → iconfont.1783571763891.ttf} +0 -0
- /package/lib/{iconfont.1783476498804.woff → iconfont.1783571763891.woff} +0 -0
- /package/lib/{iconfont.1783476498804.woff2 → iconfont.1783571763891.woff2} +0 -0
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.
|
|
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.
|
|
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
|
-
|
|
12363
|
-
|
|
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
|
-
|
|
13376
|
-
|
|
13377
|
-
|
|
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
|
|
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 =
|
|
45701
|
+
reactData.fileList = uploadFileList;
|
|
45701
45702
|
reactData.fileCacheMaps = cacheMaps;
|
|
45702
|
-
|
|
45703
|
+
uploadFileList.forEach(item => {
|
|
45703
45704
|
dispatchEvent('add', { option: item }, evnt);
|
|
45704
45705
|
});
|
|
45705
45706
|
Promise.all(uploadPromiseRests).then(() => {
|