vxe-pc-ui 4.16.23 → 4.16.25
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 +22 -9
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/select/src/select.js +10 -5
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/tree/src/tree.js +2 -1
- package/es/tree-select/style.css +8 -0
- package/es/tree-select/style.min.css +1 -1
- package/es/ui/index.js +2 -1
- package/es/ui/src/log.js +1 -1
- package/es/upload/src/upload.js +7 -1
- package/es/vxe-tree-select/style.css +8 -0
- package/es/vxe-tree-select/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +27 -7
- package/lib/index.umd.min.js +1 -1
- package/lib/select/src/select.js +12 -3
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/tree/src/tree.js +5 -1
- package/lib/tree/src/tree.min.js +1 -1
- package/lib/tree-select/style/style.css +8 -0
- package/lib/tree-select/style/style.min.css +1 -1
- package/lib/ui/index.js +2 -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 +7 -1
- package/lib/upload/src/upload.min.js +1 -1
- package/lib/vxe-tree-select/style/style.css +8 -0
- package/lib/vxe-tree-select/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/select/src/select.ts +10 -5
- package/packages/tree/src/tree.ts +2 -1
- package/packages/ui/index.ts +1 -0
- package/packages/upload/src/upload.ts +8 -1
- package/styles/components/tree-select.scss +6 -0
- package/types/components/select.d.ts +3 -1
- /package/es/icon/{iconfont.1785242772217.ttf → iconfont.1785727479855.ttf} +0 -0
- /package/es/icon/{iconfont.1785242772217.woff → iconfont.1785727479855.woff} +0 -0
- /package/es/icon/{iconfont.1785242772217.woff2 → iconfont.1785727479855.woff2} +0 -0
- /package/es/{iconfont.1785242772217.ttf → iconfont.1785727479855.ttf} +0 -0
- /package/es/{iconfont.1785242772217.woff → iconfont.1785727479855.woff} +0 -0
- /package/es/{iconfont.1785242772217.woff2 → iconfont.1785727479855.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1785242772217.ttf → iconfont.1785727479855.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1785242772217.woff → iconfont.1785727479855.woff} +0 -0
- /package/lib/icon/style/{iconfont.1785242772217.woff2 → iconfont.1785727479855.woff2} +0 -0
- /package/lib/{iconfont.1785242772217.ttf → iconfont.1785727479855.ttf} +0 -0
- /package/lib/{iconfont.1785242772217.woff → iconfont.1785727479855.woff} +0 -0
- /package/lib/{iconfont.1785242772217.woff2 → iconfont.1785727479855.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.25"}`;
|
|
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.25";
|
|
99
99
|
VxeUI.uiVersion = version;
|
|
100
100
|
VxeUI.dynamicApp = dynamicApp;
|
|
101
101
|
function config(options) {
|
|
@@ -426,6 +426,7 @@ setConfig$1({
|
|
|
426
426
|
row: {},
|
|
427
427
|
segmented: {},
|
|
428
428
|
select: {
|
|
429
|
+
emptyValue: null,
|
|
429
430
|
multiCharOverflow: 8,
|
|
430
431
|
radioConfig: {
|
|
431
432
|
showIcon: true,
|
|
@@ -31330,6 +31331,10 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
31330
31331
|
props: {
|
|
31331
31332
|
modelValue: [String, Number, Boolean, Array],
|
|
31332
31333
|
defaultConfig: Object,
|
|
31334
|
+
emptyValue: {
|
|
31335
|
+
type: [String, Number, Boolean, Array],
|
|
31336
|
+
default: () => getConfig$3().select.emptyValue
|
|
31337
|
+
},
|
|
31333
31338
|
clearable: {
|
|
31334
31339
|
type: Boolean,
|
|
31335
31340
|
default: () => getConfig$3().select.clearable
|
|
@@ -31923,8 +31928,9 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
31923
31928
|
dispatchEvent('clear', { value: selectValue }, evnt);
|
|
31924
31929
|
};
|
|
31925
31930
|
const clearEvent = (params) => {
|
|
31931
|
+
const { emptyValue } = props;
|
|
31926
31932
|
const { $event } = params;
|
|
31927
|
-
clearValueEvent($event,
|
|
31933
|
+
clearValueEvent($event, emptyValue);
|
|
31928
31934
|
hideOptionPanel($event);
|
|
31929
31935
|
};
|
|
31930
31936
|
const allCheckedPanelEvent = (params) => {
|
|
@@ -31960,9 +31966,9 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
31960
31966
|
}
|
|
31961
31967
|
};
|
|
31962
31968
|
const clearCheckedPanelEvent = (params) => {
|
|
31963
|
-
const { clearClosable } = props;
|
|
31969
|
+
const { emptyValue, clearClosable } = props;
|
|
31964
31970
|
const { $event } = params;
|
|
31965
|
-
clearValueEvent($event,
|
|
31971
|
+
clearValueEvent($event, emptyValue);
|
|
31966
31972
|
if (clearClosable) {
|
|
31967
31973
|
hideOptionPanel($event);
|
|
31968
31974
|
}
|
|
@@ -32108,7 +32114,7 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
32108
32114
|
return null;
|
|
32109
32115
|
};
|
|
32110
32116
|
const handleGlobalKeydownEvent = (evnt) => {
|
|
32111
|
-
const { clearable } = props;
|
|
32117
|
+
const { emptyValue, clearable } = props;
|
|
32112
32118
|
const { visiblePanel, currentOption } = reactData;
|
|
32113
32119
|
const isDisabled = computeIsDisabled.value;
|
|
32114
32120
|
const popupOpts = computePopupOpts.value;
|
|
@@ -32155,7 +32161,7 @@ var VxeSelectComponent = defineVxeComponent({
|
|
|
32155
32161
|
}
|
|
32156
32162
|
if (reactData.isActivated) {
|
|
32157
32163
|
if (isDel && clearable) {
|
|
32158
|
-
clearValueEvent(evnt,
|
|
32164
|
+
clearValueEvent(evnt, emptyValue);
|
|
32159
32165
|
}
|
|
32160
32166
|
}
|
|
32161
32167
|
}
|
|
@@ -42794,13 +42800,14 @@ var VxeTreeComponent = defineVxeComponent({
|
|
|
42794
42800
|
},
|
|
42795
42801
|
setAllCheckboxNode(checked) {
|
|
42796
42802
|
const { transform } = props;
|
|
42803
|
+
const { afterTreeList, afterVisibleList } = internalData;
|
|
42797
42804
|
const selectMaps = {};
|
|
42798
42805
|
const childrenField = computeChildrenField.value;
|
|
42799
42806
|
const mapChildrenField = computeMapChildrenField.value;
|
|
42800
42807
|
const checkKeys = [];
|
|
42801
42808
|
const checkNodes = [];
|
|
42802
42809
|
if (checked) {
|
|
42803
|
-
XEUtils.eachTree(
|
|
42810
|
+
XEUtils.eachTree(transform ? afterTreeList : afterVisibleList, (node) => {
|
|
42804
42811
|
const nodeid = getNodeId(node);
|
|
42805
42812
|
checkKeys.push(nodeid);
|
|
42806
42813
|
checkNodes.push(node);
|
|
@@ -45985,7 +45992,7 @@ var VxeUploadComponent = defineVxeComponent({
|
|
|
45985
45992
|
const emitModel = (value) => {
|
|
45986
45993
|
emit('update:modelValue', value);
|
|
45987
45994
|
};
|
|
45988
|
-
const
|
|
45995
|
+
const handleModel = (vals) => {
|
|
45989
45996
|
const { singleMode, urlMode, urlArgs } = props;
|
|
45990
45997
|
const urlProp = computeUrlProp.value;
|
|
45991
45998
|
const nameProp = computeNameProp.value;
|
|
@@ -46006,6 +46013,10 @@ var VxeUploadComponent = defineVxeComponent({
|
|
|
46006
46013
|
}
|
|
46007
46014
|
const value = singleMode ? (restList[0] || null) : restList;
|
|
46008
46015
|
emitModel(value);
|
|
46016
|
+
return value;
|
|
46017
|
+
};
|
|
46018
|
+
const handleChangeEvent = (evnt, vals) => {
|
|
46019
|
+
const value = handleModel(vals);
|
|
46009
46020
|
dispatchEvent('change', { value }, evnt);
|
|
46010
46021
|
return value;
|
|
46011
46022
|
};
|
|
@@ -46114,6 +46125,7 @@ var VxeUploadComponent = defineVxeComponent({
|
|
|
46114
46125
|
cacheItem.response = res;
|
|
46115
46126
|
}
|
|
46116
46127
|
Object.assign(item, res);
|
|
46128
|
+
handleModel(reactData.fileList);
|
|
46117
46129
|
dispatchEvent('upload-success', { option: item, data: res }, null);
|
|
46118
46130
|
}).catch((res) => {
|
|
46119
46131
|
const { fileCacheMaps } = reactData;
|
|
@@ -46129,6 +46141,7 @@ var VxeUploadComponent = defineVxeComponent({
|
|
|
46129
46141
|
reactData.fileList = reactData.fileList.filter(obj => getFieldKey(obj) !== fileKey);
|
|
46130
46142
|
delete fileCacheMaps[fileKey];
|
|
46131
46143
|
}
|
|
46144
|
+
handleModel(reactData.fileList);
|
|
46132
46145
|
dispatchEvent('upload-error', { option: item, data: res }, null);
|
|
46133
46146
|
}).finally(() => {
|
|
46134
46147
|
const { fileCacheMaps } = reactData;
|