vxe-pc-ui 4.16.2 → 4.16.4

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 (50) hide show
  1. package/dist/all.esm.js +35 -19
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/date-picker/src/date-picker.js +7 -4
  5. package/es/date-range-picker/src/date-range-picker.js +5 -2
  6. package/es/icon/style.css +1 -1
  7. package/es/icon-picker/src/icon-picker.js +5 -5
  8. package/es/style.css +1 -1
  9. package/es/style.min.css +1 -1
  10. package/es/tree/src/tree.js +16 -6
  11. package/es/ui/index.js +1 -1
  12. package/es/ui/src/log.js +1 -1
  13. package/helper/vetur/attributes.json +1 -1
  14. package/helper/vetur/tags.json +1 -1
  15. package/lib/date-picker/src/date-picker.js +7 -4
  16. package/lib/date-picker/src/date-picker.min.js +1 -1
  17. package/lib/date-range-picker/src/date-range-picker.js +5 -2
  18. package/lib/date-range-picker/src/date-range-picker.min.js +1 -1
  19. package/lib/icon/style/style.css +1 -1
  20. package/lib/icon/style/style.min.css +1 -1
  21. package/lib/icon-picker/src/icon-picker.js +6 -5
  22. package/lib/icon-picker/src/icon-picker.min.js +1 -1
  23. package/lib/index.umd.js +40 -21
  24. package/lib/index.umd.min.js +1 -1
  25. package/lib/style.css +1 -1
  26. package/lib/style.min.css +1 -1
  27. package/lib/tree/src/tree.js +20 -8
  28. package/lib/tree/src/tree.min.js +1 -1
  29. package/lib/ui/index.js +1 -1
  30. package/lib/ui/index.min.js +1 -1
  31. package/lib/ui/src/log.js +1 -1
  32. package/lib/ui/src/log.min.js +1 -1
  33. package/package.json +1 -1
  34. package/packages/date-picker/src/date-picker.ts +8 -4
  35. package/packages/date-range-picker/src/date-range-picker.ts +6 -2
  36. package/packages/icon-picker/src/icon-picker.ts +5 -5
  37. package/packages/tree/src/tree.ts +16 -6
  38. package/types/components/gantt.d.ts +1 -0
  39. /package/es/icon/{iconfont.1783571763891.ttf → iconfont.1783654856324.ttf} +0 -0
  40. /package/es/icon/{iconfont.1783571763891.woff → iconfont.1783654856324.woff} +0 -0
  41. /package/es/icon/{iconfont.1783571763891.woff2 → iconfont.1783654856324.woff2} +0 -0
  42. /package/es/{iconfont.1783571763891.ttf → iconfont.1783654856324.ttf} +0 -0
  43. /package/es/{iconfont.1783571763891.woff → iconfont.1783654856324.woff} +0 -0
  44. /package/es/{iconfont.1783571763891.woff2 → iconfont.1783654856324.woff2} +0 -0
  45. /package/lib/icon/style/{iconfont.1783571763891.ttf → iconfont.1783654856324.ttf} +0 -0
  46. /package/lib/icon/style/{iconfont.1783571763891.woff → iconfont.1783654856324.woff} +0 -0
  47. /package/lib/icon/style/{iconfont.1783571763891.woff2 → iconfont.1783654856324.woff2} +0 -0
  48. /package/lib/{iconfont.1783571763891.ttf → iconfont.1783654856324.ttf} +0 -0
  49. /package/lib/{iconfont.1783571763891.woff → iconfont.1783654856324.woff} +0 -0
  50. /package/lib/{iconfont.1783571763891.woff2 → iconfont.1783654856324.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.2"}`;
4660
+ const uiVersion = `ui v${"4.16.4"}`;
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.2";
4678
+ const ui_version = "4.16.4";
4679
4679
  VxeUI.uiVersion = ui_version;
4680
4680
  VxeUI.dynamicApp = dynamicApp;
4681
4681
  function config(options) {
@@ -26803,7 +26803,7 @@ function date_picker_createInternalData() {
26803
26803
  valueFormat: dateValueFormat
26804
26804
  });
26805
26805
  const timeNum = dateVal ? dateVal.getTime() : null;
26806
- emit('update:modelValue', timeNum);
26806
+ emitModel(timeNum);
26807
26807
  if (modelValue !== timeNum) {
26808
26808
  dispatchEvent('change', {
26809
26809
  value: timeNum
@@ -26817,7 +26817,7 @@ function date_picker_createInternalData() {
26817
26817
  const dateVal = parseDateValue(value, type, {
26818
26818
  valueFormat: dateValueFormat
26819
26819
  });
26820
- emit('update:modelValue', dateVal);
26820
+ emitModel(dateVal);
26821
26821
  if (modelValue && dateVal ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toStringDate(modelValue).getTime() !== dateVal.getTime() : modelValue !== dateVal) {
26822
26822
  dispatchEvent('change', {
26823
26823
  value: dateVal
@@ -26828,7 +26828,7 @@ function date_picker_createInternalData() {
26828
26828
  }
26829
26829
  }
26830
26830
  } else {
26831
- emit('update:modelValue', value);
26831
+ emitModel(value);
26832
26832
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(modelValue) !== value) {
26833
26833
  dispatchEvent('change', {
26834
26834
  value
@@ -27770,11 +27770,14 @@ function date_picker_createInternalData() {
27770
27770
  $datePicker: $xeDatePicker
27771
27771
  }, params));
27772
27772
  };
27773
+ const emitModel = value => {
27774
+ emit('update:modelValue', value);
27775
+ };
27773
27776
  const datePickerMethods = {
27774
27777
  dispatchEvent,
27775
27778
  setModelValue(value) {
27776
27779
  reactData.inputValue = value;
27777
- emit('update:modelValue', value);
27780
+ emitModel(value);
27778
27781
  },
27779
27782
  setModelValueByEvent(evnt, value) {
27780
27783
  handleChange(value || '', evnt);
@@ -28666,7 +28669,7 @@ function date_range_picker_createInternalData() {
28666
28669
  reactData.selectEdValue = endRest;
28667
28670
  const value = getRangeValue(startRest, endRest);
28668
28671
  const isFinish = startRest && endRest || !startRest && !endRest;
28669
- emit('update:modelValue', value);
28672
+ emitModel(value);
28670
28673
  emit('update:startValue', startRest || '');
28671
28674
  emit('update:endValue', endRest || '');
28672
28675
  if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toValueString(modelValue) !== value) {
@@ -29368,13 +29371,16 @@ function date_range_picker_createInternalData() {
29368
29371
  $dateRangePicker: $xeDateRangePicker
29369
29372
  }, params));
29370
29373
  };
29374
+ const emitModel = value => {
29375
+ emit('update:modelValue', value);
29376
+ };
29371
29377
  dateRangePickerMethods = {
29372
29378
  dispatchEvent,
29373
29379
  setModelValue(startValue, endValue) {
29374
29380
  reactData.selectStValue = startValue || '';
29375
29381
  reactData.selectEdValue = endValue || '';
29376
29382
  const value = getRangeValue(startValue, endValue);
29377
- emit('update:modelValue', value);
29383
+ emitModel(value);
29378
29384
  },
29379
29385
  setModelValueByEvent(evnt, startValue, endValue) {
29380
29386
  handleChange(startValue || '', endValue || '', evnt);
@@ -33680,7 +33686,7 @@ function icon_picker_createInternalData() {
33680
33686
  }
33681
33687
  return getI18n('vxe.base.pleaseSelect');
33682
33688
  });
33683
- const computePanelStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
33689
+ const computeWrapperStyle = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
33684
33690
  const popupOpts = computePopupOpts.value;
33685
33691
  const {
33686
33692
  chunkSize,
@@ -33749,7 +33755,8 @@ function icon_picker_createInternalData() {
33749
33755
  const btnTransfer = computeBtnTransfer.value;
33750
33756
  const popupOpts = computePopupOpts.value;
33751
33757
  const {
33752
- width
33758
+ width,
33759
+ transfer
33753
33760
  } = popupOpts;
33754
33761
  const handleStyle = () => {
33755
33762
  const ppObj = updatePanelPlacement(targetElem, panelElem, {
@@ -33763,7 +33770,7 @@ function icon_picker_createInternalData() {
33763
33770
  if (width) {
33764
33771
  Object.assign(panelStyle, {
33765
33772
  width: toCssUnit(width),
33766
- minWidth: undefined
33773
+ minWidth: transfer ? undefined : toCssUnit(width)
33767
33774
  });
33768
33775
  }
33769
33776
  reactData.panelStyle = panelStyle;
@@ -34147,7 +34154,7 @@ function icon_picker_createInternalData() {
34147
34154
  const btnTransfer = computeBtnTransfer.value;
34148
34155
  const formReadonly = computeFormReadonly.value;
34149
34156
  const inpPlaceholder = computeInpPlaceholder.value;
34150
- const panelStyle = computePanelStyle.value;
34157
+ const wrapperStyle = computeWrapperStyle.value;
34151
34158
  const popupOpts = computePopupOpts.value;
34152
34159
  const ppClassName = popupOpts.className || props.popupClassName;
34153
34160
  if (formReadonly) {
@@ -34207,7 +34214,7 @@ function icon_picker_createInternalData() {
34207
34214
  style: reactData.panelStyle
34208
34215
  }, [initialized && (visiblePanel || isAniVisible) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
34209
34216
  class: 'vxe-ico-picker--panel-wrapper',
34210
- style: panelStyle
34217
+ style: wrapperStyle
34211
34218
  }, [filterable ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
34212
34219
  class: 'vxe-ico-picker--panel-search'
34213
34220
  }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(input, {
@@ -50888,12 +50895,12 @@ let crossTreeDragNodeObj = null;
50888
50895
  checkStrictly
50889
50896
  } = checkboxOpts;
50890
50897
  return new Promise(resolve => {
50898
+ const {
50899
+ nodeMaps
50900
+ } = internalData;
50901
+ const nodeid = getNodeId(node);
50902
+ const nodeItem = nodeMaps[nodeid];
50891
50903
  if (loadMethod) {
50892
- const {
50893
- nodeMaps
50894
- } = internalData;
50895
- const nodeid = getNodeId(node);
50896
- const nodeItem = nodeMaps[nodeid];
50897
50904
  internalData.treeExpandLazyLoadedMaps[nodeid] = true;
50898
50905
  Promise.resolve(loadMethod({
50899
50906
  $tree: $xeTree,
@@ -50902,7 +50909,9 @@ let crossTreeDragNodeObj = null;
50902
50909
  const {
50903
50910
  treeExpandLazyLoadedMaps
50904
50911
  } = internalData;
50905
- nodeItem.treeLoaded = true;
50912
+ if (nodeItem) {
50913
+ nodeItem.treeLoaded = true;
50914
+ }
50906
50915
  if (treeExpandLazyLoadedMaps[nodeid]) {
50907
50916
  treeExpandLazyLoadedMaps[nodeid] = false;
50908
50917
  }
@@ -50938,7 +50947,9 @@ let crossTreeDragNodeObj = null;
50938
50947
  const {
50939
50948
  treeExpandLazyLoadedMaps
50940
50949
  } = internalData;
50941
- nodeItem.treeLoaded = false;
50950
+ if (nodeItem) {
50951
+ nodeItem.treeLoaded = false;
50952
+ }
50942
50953
  if (treeExpandLazyLoadedMaps[nodeid]) {
50943
50954
  treeExpandLazyLoadedMaps[nodeid] = false;
50944
50955
  }
@@ -50952,6 +50963,9 @@ let crossTreeDragNodeObj = null;
50952
50963
  return recalculate();
50953
50964
  });
50954
50965
  } else {
50966
+ if (nodeItem) {
50967
+ nodeItem.treeLoaded = true;
50968
+ }
50955
50969
  resolve();
50956
50970
  }
50957
50971
  });
@@ -53445,7 +53459,9 @@ let crossTreeDragNodeObj = null;
53445
53459
  transform,
53446
53460
  drag,
53447
53461
  menuConfig,
53448
- showOverflow
53462
+ showOverflow,
53463
+ lazy,
53464
+ loadMethod
53449
53465
  } = props;
53450
53466
  const dragOpts = computeDragOpts.value;
53451
53467
  if (!showOverflow) {
@@ -53457,6 +53473,9 @@ let crossTreeDragNodeObj = null;
53457
53473
  if (dragOpts.isCrossTreeDrag && !dragOpts.isCrossDrag) {
53458
53474
  tree_errLog('vxe.error.reqSupportProp', ['drag-config.isCrossTreeDrag', 'drag-config.isCrossDrag']);
53459
53475
  }
53476
+ if (lazy && !loadMethod) {
53477
+ tree_warnLog('vxe.error.reqSupportProp', ['lazy', 'load-method']);
53478
+ }
53460
53479
  // if (valueField) {
53461
53480
  // errLog('vxe.error.delProp', ['value-field', 'value-field'])
53462
53481
  // }