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.
Files changed (54) hide show
  1. package/dist/all.esm.js +22 -9
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/icon/style.css +1 -1
  5. package/es/select/src/select.js +10 -5
  6. package/es/style.css +1 -1
  7. package/es/style.min.css +1 -1
  8. package/es/tree/src/tree.js +2 -1
  9. package/es/tree-select/style.css +8 -0
  10. package/es/tree-select/style.min.css +1 -1
  11. package/es/ui/index.js +2 -1
  12. package/es/ui/src/log.js +1 -1
  13. package/es/upload/src/upload.js +7 -1
  14. package/es/vxe-tree-select/style.css +8 -0
  15. package/es/vxe-tree-select/style.min.css +1 -1
  16. package/lib/icon/style/style.css +1 -1
  17. package/lib/icon/style/style.min.css +1 -1
  18. package/lib/index.umd.js +27 -7
  19. package/lib/index.umd.min.js +1 -1
  20. package/lib/select/src/select.js +12 -3
  21. package/lib/select/src/select.min.js +1 -1
  22. package/lib/style.css +1 -1
  23. package/lib/style.min.css +1 -1
  24. package/lib/tree/src/tree.js +5 -1
  25. package/lib/tree/src/tree.min.js +1 -1
  26. package/lib/tree-select/style/style.css +8 -0
  27. package/lib/tree-select/style/style.min.css +1 -1
  28. package/lib/ui/index.js +2 -1
  29. package/lib/ui/index.min.js +1 -1
  30. package/lib/ui/src/log.js +1 -1
  31. package/lib/ui/src/log.min.js +1 -1
  32. package/lib/upload/src/upload.js +7 -1
  33. package/lib/upload/src/upload.min.js +1 -1
  34. package/lib/vxe-tree-select/style/style.css +8 -0
  35. package/lib/vxe-tree-select/style/style.min.css +1 -1
  36. package/package.json +2 -2
  37. package/packages/select/src/select.ts +10 -5
  38. package/packages/tree/src/tree.ts +2 -1
  39. package/packages/ui/index.ts +1 -0
  40. package/packages/upload/src/upload.ts +8 -1
  41. package/styles/components/tree-select.scss +6 -0
  42. package/types/components/select.d.ts +3 -1
  43. /package/es/icon/{iconfont.1785242772217.ttf → iconfont.1785727479855.ttf} +0 -0
  44. /package/es/icon/{iconfont.1785242772217.woff → iconfont.1785727479855.woff} +0 -0
  45. /package/es/icon/{iconfont.1785242772217.woff2 → iconfont.1785727479855.woff2} +0 -0
  46. /package/es/{iconfont.1785242772217.ttf → iconfont.1785727479855.ttf} +0 -0
  47. /package/es/{iconfont.1785242772217.woff → iconfont.1785727479855.woff} +0 -0
  48. /package/es/{iconfont.1785242772217.woff2 → iconfont.1785727479855.woff2} +0 -0
  49. /package/lib/icon/style/{iconfont.1785242772217.ttf → iconfont.1785727479855.ttf} +0 -0
  50. /package/lib/icon/style/{iconfont.1785242772217.woff → iconfont.1785727479855.woff} +0 -0
  51. /package/lib/icon/style/{iconfont.1785242772217.woff2 → iconfont.1785727479855.woff2} +0 -0
  52. /package/lib/{iconfont.1785242772217.ttf → iconfont.1785727479855.ttf} +0 -0
  53. /package/lib/{iconfont.1785242772217.woff → iconfont.1785727479855.woff} +0 -0
  54. /package/lib/{iconfont.1785242772217.woff2 → iconfont.1785727479855.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.23"}`;
4660
+ const uiVersion = `ui v${"4.16.25"}`;
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.23";
4678
+ const ui_version = "4.16.25";
4679
4679
  VxeUI.uiVersion = ui_version;
4680
4680
  VxeUI.dynamicApp = dynamicApp;
4681
4681
  function config(options) {
@@ -5006,6 +5006,7 @@ setConfig({
5006
5006
  row: {},
5007
5007
  segmented: {},
5008
5008
  select: {
5009
+ emptyValue: null,
5009
5010
  multiCharOverflow: 8,
5010
5011
  radioConfig: {
5011
5012
  showIcon: true,
@@ -39394,6 +39395,10 @@ function select_createInternalData() {
39394
39395
  props: {
39395
39396
  modelValue: [String, Number, Boolean, Array],
39396
39397
  defaultConfig: Object,
39398
+ emptyValue: {
39399
+ type: [String, Number, Boolean, Array],
39400
+ default: () => getConfig().select.emptyValue
39401
+ },
39397
39402
  clearable: {
39398
39403
  type: Boolean,
39399
39404
  default: () => getConfig().select.clearable
@@ -40053,10 +40058,13 @@ function select_createInternalData() {
40053
40058
  }, evnt);
40054
40059
  };
40055
40060
  const clearEvent = params => {
40061
+ const {
40062
+ emptyValue
40063
+ } = props;
40056
40064
  const {
40057
40065
  $event
40058
40066
  } = params;
40059
- clearValueEvent($event, null);
40067
+ clearValueEvent($event, emptyValue);
40060
40068
  hideOptionPanel($event);
40061
40069
  };
40062
40070
  const allCheckedPanelEvent = params => {
@@ -40103,12 +40111,13 @@ function select_createInternalData() {
40103
40111
  };
40104
40112
  const clearCheckedPanelEvent = params => {
40105
40113
  const {
40114
+ emptyValue,
40106
40115
  clearClosable
40107
40116
  } = props;
40108
40117
  const {
40109
40118
  $event
40110
40119
  } = params;
40111
- clearValueEvent($event, null);
40120
+ clearValueEvent($event, emptyValue);
40112
40121
  if (clearClosable) {
40113
40122
  hideOptionPanel($event);
40114
40123
  }
@@ -40269,6 +40278,7 @@ function select_createInternalData() {
40269
40278
  };
40270
40279
  const handleGlobalKeydownEvent = evnt => {
40271
40280
  const {
40281
+ emptyValue,
40272
40282
  clearable
40273
40283
  } = props;
40274
40284
  const {
@@ -40319,7 +40329,7 @@ function select_createInternalData() {
40319
40329
  }
40320
40330
  if (reactData.isActivated) {
40321
40331
  if (isDel && clearable) {
40322
- clearValueEvent(evnt, null);
40332
+ clearValueEvent(evnt, emptyValue);
40323
40333
  }
40324
40334
  }
40325
40335
  }
@@ -52293,13 +52303,17 @@ let crossTreeDragNodeObj = null;
52293
52303
  const {
52294
52304
  transform
52295
52305
  } = props;
52306
+ const {
52307
+ afterTreeList,
52308
+ afterVisibleList
52309
+ } = internalData;
52296
52310
  const selectMaps = {};
52297
52311
  const childrenField = computeChildrenField.value;
52298
52312
  const mapChildrenField = computeMapChildrenField.value;
52299
52313
  const checkKeys = [];
52300
52314
  const checkNodes = [];
52301
52315
  if (checked) {
52302
- external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(internalData.afterTreeList, node => {
52316
+ external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().eachTree(transform ? afterTreeList : afterVisibleList, node => {
52303
52317
  const nodeid = getNodeId(node);
52304
52318
  checkKeys.push(nodeid);
52305
52319
  checkNodes.push(node);
@@ -55850,7 +55864,7 @@ function upload_createInternalData() {
55850
55864
  const emitModel = value => {
55851
55865
  emit('update:modelValue', value);
55852
55866
  };
55853
- const handleChangeEvent = (evnt, vals) => {
55867
+ const handleModel = vals => {
55854
55868
  const {
55855
55869
  singleMode,
55856
55870
  urlMode,
@@ -55875,6 +55889,10 @@ function upload_createInternalData() {
55875
55889
  }
55876
55890
  const value = singleMode ? restList[0] || null : restList;
55877
55891
  emitModel(value);
55892
+ return value;
55893
+ };
55894
+ const handleChangeEvent = (evnt, vals) => {
55895
+ const value = handleModel(vals);
55878
55896
  dispatchEvent('change', {
55879
55897
  value
55880
55898
  }, evnt);
@@ -56007,6 +56025,7 @@ function upload_createInternalData() {
56007
56025
  cacheItem.response = res;
56008
56026
  }
56009
56027
  Object.assign(item, res);
56028
+ handleModel(reactData.fileList);
56010
56029
  dispatchEvent('upload-success', {
56011
56030
  option: item,
56012
56031
  data: res
@@ -56026,6 +56045,7 @@ function upload_createInternalData() {
56026
56045
  reactData.fileList = reactData.fileList.filter(obj => getFieldKey(obj) !== fileKey);
56027
56046
  delete fileCacheMaps[fileKey];
56028
56047
  }
56048
+ handleModel(reactData.fileList);
56029
56049
  dispatchEvent('upload-error', {
56030
56050
  option: item,
56031
56051
  data: res