vxe-pc-ui 4.16.15 → 4.16.17

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 (68) hide show
  1. package/dist/all.esm.js +27 -19
  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/split/style.css +29 -18
  6. package/es/split/style.min.css +1 -1
  7. package/es/splitter/src/splitter.js +21 -16
  8. package/es/splitter/style.css +29 -18
  9. package/es/splitter/style.min.css +1 -1
  10. package/es/style.css +1 -1
  11. package/es/style.min.css +1 -1
  12. package/es/ui/index.js +4 -1
  13. package/es/ui/src/log.js +2 -2
  14. package/es/vxe-split/style.css +29 -18
  15. package/es/vxe-split/style.min.css +1 -1
  16. package/es/vxe-splitter/style.css +29 -18
  17. package/es/vxe-splitter/style.min.css +1 -1
  18. package/lib/icon/style/style.css +1 -1
  19. package/lib/icon/style/style.min.css +1 -1
  20. package/lib/index.umd.js +32 -21
  21. package/lib/index.umd.min.js +1 -1
  22. package/lib/split/style/style.css +29 -18
  23. package/lib/split/style/style.min.css +1 -1
  24. package/lib/splitter/src/splitter.js +26 -18
  25. package/lib/splitter/src/splitter.min.js +1 -1
  26. package/lib/splitter/style/style.css +29 -18
  27. package/lib/splitter/style/style.min.css +1 -1
  28. package/lib/style.css +1 -1
  29. package/lib/style.min.css +1 -1
  30. package/lib/ui/index.js +4 -1
  31. package/lib/ui/index.min.js +1 -1
  32. package/lib/ui/src/log.js +2 -2
  33. package/lib/ui/src/log.min.js +1 -1
  34. package/lib/vxe-split/style/style.css +29 -18
  35. package/lib/vxe-split/style/style.min.css +1 -1
  36. package/lib/vxe-splitter/style/style.css +29 -18
  37. package/lib/vxe-splitter/style/style.min.css +1 -1
  38. package/package.json +1 -1
  39. package/packages/splitter/src/splitter.ts +21 -16
  40. package/packages/ui/index.ts +3 -0
  41. package/packages/ui/src/log.ts +1 -1
  42. package/styles/components/splitter.scss +42 -18
  43. package/styles/theme/base.scss +4 -5
  44. package/styles/theme/dark.scss +0 -1
  45. package/styles/theme/light.scss +0 -1
  46. package/styles/variable.scss +1 -1
  47. package/types/components/button.d.ts +7 -0
  48. package/types/components/color-picker.d.ts +7 -0
  49. package/types/components/date-picker.d.ts +7 -0
  50. package/types/components/date-range-picker.d.ts +7 -0
  51. package/types/components/gantt.d.ts +12 -0
  52. package/types/components/pulldown.d.ts +7 -0
  53. package/types/components/select.d.ts +7 -0
  54. package/types/components/splitter.d.ts +4 -0
  55. package/types/components/table-select.d.ts +7 -0
  56. package/types/components/tree-select.d.ts +7 -0
  57. /package/es/icon/{iconfont.1784366410181.ttf → iconfont.1784627055150.ttf} +0 -0
  58. /package/es/icon/{iconfont.1784366410181.woff → iconfont.1784627055150.woff} +0 -0
  59. /package/es/icon/{iconfont.1784366410181.woff2 → iconfont.1784627055150.woff2} +0 -0
  60. /package/es/{iconfont.1784366410181.ttf → iconfont.1784627055150.ttf} +0 -0
  61. /package/es/{iconfont.1784366410181.woff → iconfont.1784627055150.woff} +0 -0
  62. /package/es/{iconfont.1784366410181.woff2 → iconfont.1784627055150.woff2} +0 -0
  63. /package/lib/icon/style/{iconfont.1784366410181.ttf → iconfont.1784627055150.ttf} +0 -0
  64. /package/lib/icon/style/{iconfont.1784366410181.woff → iconfont.1784627055150.woff} +0 -0
  65. /package/lib/icon/style/{iconfont.1784366410181.woff2 → iconfont.1784627055150.woff2} +0 -0
  66. /package/lib/{iconfont.1784366410181.ttf → iconfont.1784627055150.ttf} +0 -0
  67. /package/lib/{iconfont.1784366410181.woff → iconfont.1784627055150.woff} +0 -0
  68. /package/lib/{iconfont.1784366410181.woff2 → iconfont.1784627055150.woff2} +0 -0
package/dist/all.esm.js CHANGED
@@ -81,12 +81,12 @@ function checkDynamic() {
81
81
  }
82
82
 
83
83
  const { log } = VxeUI;
84
- const uiVersion = `ui v${"4.16.15"}`;
84
+ const uiVersion = `ui v${"4.16.17"}`;
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}` : '';
88
88
  const designVersion = VxeUI.designVersion ? `design v${VxeUI.designVersion}` : '';
89
- const versionInfo = [uiVersion, tableVersion, ganttVersion, designVersion].join(' ');
89
+ const versionInfo = [uiVersion, tableVersion, ganttVersion, designVersion].filter(v => v).join(' ');
90
90
  return {
91
91
  warnLog: log.create('warn', versionInfo + '] [' + name),
92
92
  errLog: log.create('error', versionInfo + '] [' + name)
@@ -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.15";
98
+ const version = "4.16.17";
99
99
  VxeUI.uiVersion = version;
100
100
  VxeUI.dynamicApp = dynamicApp;
101
101
  function config(options) {
@@ -454,6 +454,9 @@ setConfig$1({
454
454
  resizeConfig: {
455
455
  // immediate: false,
456
456
  showTip: true
457
+ },
458
+ actionConfig: {
459
+ autoHideButton: true
457
460
  }
458
461
  },
459
462
  splitterPanel: {},
@@ -36150,9 +36153,10 @@ var VxeSplitComponent = defineVxeComponent({
36150
36153
  widthRatio: widthCount / 100
36151
36154
  };
36152
36155
  });
36153
- const computeBarStyle = computed(() => {
36156
+ const computeWrapperStyle = computed(() => {
36157
+ const { width, height } = props;
36154
36158
  const barOpts = computeBarOpts.value;
36155
- const { width, height } = barOpts;
36159
+ const { width: barWidth, height: barHeight } = barOpts;
36156
36160
  const stys = {};
36157
36161
  if (height) {
36158
36162
  stys.height = toCssUnit(height);
@@ -36160,6 +36164,12 @@ var VxeSplitComponent = defineVxeComponent({
36160
36164
  if (width) {
36161
36165
  stys.width = toCssUnit(width);
36162
36166
  }
36167
+ if (barHeight) {
36168
+ stys['--vxe-ui-splitter-handle-bar-vertical-height'] = toCssUnit(barHeight);
36169
+ }
36170
+ if (barWidth) {
36171
+ stys['--vxe-ui-splitter-handle-bar-horizontal-width'] = toCssUnit(barWidth);
36172
+ }
36163
36173
  return stys;
36164
36174
  });
36165
36175
  const computeMaps = {
@@ -36765,7 +36775,6 @@ var VxeSplitComponent = defineVxeComponent({
36765
36775
  const renderHandleBar = (prevItem, nextItem) => {
36766
36776
  const { border, resize, vertical } = props;
36767
36777
  const { itemList } = reactData;
36768
- const barStyle = computeBarStyle.value;
36769
36778
  const actionOpts = computeActionOpts.value;
36770
36779
  const { direction } = actionOpts;
36771
36780
  const showPrevButton = XEUtils.isBoolean(actionOpts.showPrevButton) ? actionOpts.showPrevButton : (itemList.some(item => item.showAction));
@@ -36780,7 +36789,6 @@ var VxeSplitComponent = defineVxeComponent({
36780
36789
  }, [
36781
36790
  h('div', {
36782
36791
  class: 'vxe-splitter-panel-handle-bar',
36783
- style: barStyle,
36784
36792
  onMousedown: dragEvent
36785
36793
  }),
36786
36794
  itemList.length === 2
@@ -36789,7 +36797,7 @@ var VxeSplitComponent = defineVxeComponent({
36789
36797
  }, [
36790
36798
  showPrevButton && nextItem.isExpand
36791
36799
  ? h('div', {
36792
- class: 'vxe-splitter-panel-action-btn',
36800
+ class: ['vxe-splitter-panel-action-btn', prevItem.isExpand ? 'is--prev' : 'is--next'],
36793
36801
  onDblclick: handlePrevActionDblclickEvent,
36794
36802
  onClick: handlePrevActionClickEvent
36795
36803
  }, [
@@ -36800,7 +36808,7 @@ var VxeSplitComponent = defineVxeComponent({
36800
36808
  : renderEmptyElement($xeSplitter),
36801
36809
  showNextButton && prevItem.isExpand
36802
36810
  ? h('div', {
36803
- class: 'vxe-splitter-panel-action-btn',
36811
+ class: ['vxe-splitter-panel-action-btn', nextItem.isExpand ? 'is--next' : 'is--prev'],
36804
36812
  onDblclick: handleNextActionDblclickEvent,
36805
36813
  onClick: handleNextActionClickEvent
36806
36814
  }, [
@@ -36817,10 +36825,13 @@ var VxeSplitComponent = defineVxeComponent({
36817
36825
  const { border, padding, resize, vertical } = props;
36818
36826
  const { itemList } = reactData;
36819
36827
  const vSize = computeSize.value;
36828
+ const actionOpts = computeActionOpts.value;
36829
+ const { autoHideButton } = actionOpts;
36820
36830
  const resizeOpts = computeResizeOpts.value;
36821
36831
  const { immediate } = resizeOpts;
36822
36832
  const visibleItems = computeVisibleItems.value;
36823
36833
  const { autoItems } = computeAutoItems.value;
36834
+ const isOnlyView = visibleItems.length <= 1;
36824
36835
  const itemVNs = [];
36825
36836
  itemList.forEach((prevItem, index) => {
36826
36837
  const { id, name, slots, renderHeight, resizeHeight, foldHeight, renderWidth, resizeWidth, foldWidth, isExpand } = prevItem;
@@ -36884,28 +36895,25 @@ var VxeSplitComponent = defineVxeComponent({
36884
36895
  }
36885
36896
  });
36886
36897
  return h('div', {
36887
- class: 'vxe-splitter-wrapper'
36898
+ class: ['vxe-splitter-wrapper', {
36899
+ 'is--ah-btn': autoHideButton,
36900
+ 'is--only-view': isOnlyView
36901
+ }]
36888
36902
  }, itemVNs);
36889
36903
  };
36890
36904
  const renderVN = () => {
36891
- const { vertical, width, height } = props;
36905
+ const { vertical } = props;
36892
36906
  const vSize = computeSize.value;
36893
36907
  const resizeOpts = computeResizeOpts.value;
36908
+ const wrapperStyle = computeWrapperStyle.value;
36894
36909
  const { immediate, showTip } = resizeOpts;
36895
36910
  const defaultSlot = slots.default;
36896
- const stys = {};
36897
- if (height) {
36898
- stys.height = toCssUnit(height);
36899
- }
36900
- if (width) {
36901
- stys.width = toCssUnit(width);
36902
- }
36903
36911
  return h('div', {
36904
36912
  ref: refElem,
36905
36913
  class: ['vxe-splitter', vertical ? 'is--vertical' : 'is--horizontal', immediate ? 'is-resize--immediate' : 'is-resize--lazy', {
36906
36914
  [`size--${vSize}`]: vSize
36907
36915
  }],
36908
- style: stys
36916
+ style: wrapperStyle
36909
36917
  }, [
36910
36918
  h('div', {
36911
36919
  class: 'vxe-splitter-slots'