vxe-pc-ui 4.17.10 → 4.17.12

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 (39) hide show
  1. package/dist/all.esm.js +9 -10
  2. package/dist/style.css +1 -1
  3. package/dist/style.min.css +1 -1
  4. package/es/color-picker/src/color-picker.js +3 -3
  5. package/es/icon/style.css +1 -1
  6. package/es/style.css +1 -1
  7. package/es/style.min.css +1 -1
  8. package/es/tooltip/src/tooltip.js +4 -5
  9. package/es/ui/index.js +1 -1
  10. package/es/ui/src/log.js +1 -1
  11. package/lib/color-picker/src/color-picker.js +2 -3
  12. package/lib/color-picker/src/color-picker.min.js +1 -1
  13. package/lib/icon/style/style.css +1 -1
  14. package/lib/icon/style/style.min.css +1 -1
  15. package/lib/index.umd.js +8 -9
  16. package/lib/index.umd.min.js +1 -1
  17. package/lib/style.css +1 -1
  18. package/lib/style.min.css +1 -1
  19. package/lib/tooltip/src/tooltip.js +4 -4
  20. package/lib/tooltip/src/tooltip.min.js +1 -1
  21. package/lib/ui/index.js +1 -1
  22. package/lib/ui/index.min.js +1 -1
  23. package/lib/ui/src/log.js +1 -1
  24. package/lib/ui/src/log.min.js +1 -1
  25. package/package.json +1 -1
  26. package/packages/color-picker/src/color-picker.ts +3 -3
  27. package/packages/tooltip/src/tooltip.ts +4 -4
  28. /package/es/icon/{iconfont.1787225561954.ttf → iconfont.1787282076804.ttf} +0 -0
  29. /package/es/icon/{iconfont.1787225561954.woff → iconfont.1787282076804.woff} +0 -0
  30. /package/es/icon/{iconfont.1787225561954.woff2 → iconfont.1787282076804.woff2} +0 -0
  31. /package/es/{iconfont.1787225561954.ttf → iconfont.1787282076804.ttf} +0 -0
  32. /package/es/{iconfont.1787225561954.woff → iconfont.1787282076804.woff} +0 -0
  33. /package/es/{iconfont.1787225561954.woff2 → iconfont.1787282076804.woff2} +0 -0
  34. /package/lib/icon/style/{iconfont.1787225561954.ttf → iconfont.1787282076804.ttf} +0 -0
  35. /package/lib/icon/style/{iconfont.1787225561954.woff → iconfont.1787282076804.woff} +0 -0
  36. /package/lib/icon/style/{iconfont.1787225561954.woff2 → iconfont.1787282076804.woff2} +0 -0
  37. /package/lib/{iconfont.1787225561954.ttf → iconfont.1787282076804.ttf} +0 -0
  38. /package/lib/{iconfont.1787225561954.woff → iconfont.1787282076804.woff} +0 -0
  39. /package/lib/{iconfont.1787225561954.woff2 → iconfont.1787282076804.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.17.10"}`;
84
+ const uiVersion = `ui v${"4.17.12"}`;
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$i = log.create('warn', uiVersion);
96
96
  log.create('error', uiVersion);
97
97
 
98
- const version = "4.17.10";
98
+ const version = "4.17.12";
99
99
  VxeUI.uiVersion = version;
100
100
  VxeUI.dynamicApp = dynamicApp;
101
101
  function config(options) {
@@ -2926,9 +2926,11 @@ var VxeTooltipComponent = defineVxeComponent({
2926
2926
  const targetLeft = targetRect.left;
2927
2927
  const targetTop = targetRect.top;
2928
2928
  // 支持特殊定位逻辑
2929
- let left = targetLeft;
2930
- let top = targetTop + targetHeight;
2929
+ let left = 0;
2930
+ let top = 0;
2931
2931
  if (tipPos && (tipPos.oLeft || tipPos.oTop)) {
2932
+ left = targetLeft;
2933
+ top = targetTop + targetHeight;
2932
2934
  if (isArrow) {
2933
2935
  left = left + Math.max(8, Math.min(targetWidth - 8, tipPos.oLeft)) - panelWidth / 2;
2934
2936
  }
@@ -2937,9 +2939,6 @@ var VxeTooltipComponent = defineVxeComponent({
2937
2939
  top = tipPos.y + 1;
2938
2940
  }
2939
2941
  }
2940
- else {
2941
- left = targetLeft + (targetWidth - panelWidth) / 2;
2942
- }
2943
2942
  const ppObj = updatePanelPlacement(targetElem, panelElem, {
2944
2943
  defaultTop: top,
2945
2944
  defaultLeft: left,
@@ -16406,12 +16405,12 @@ var VxeColorPickerComponent = defineVxeComponent({
16406
16405
  updateMode();
16407
16406
  };
16408
16407
  const updateModelColor = () => {
16409
- const { modelValue, defaultColor } = props;
16408
+ const { defaultColor } = props;
16410
16409
  const { selectColor, isAniVisible } = reactData;
16411
16410
  const isRgb = computeIsRgb.value;
16412
16411
  const hueSliderEl = refHueSliderElem.value;
16413
16412
  const alphaSliderEl = refAlphaSliderElem.value;
16414
- const colorRest = parseValColor(modelValue ? selectColor : defaultColor);
16413
+ const colorRest = parseValColor(selectColor || defaultColor);
16415
16414
  reactData.hexValue = '';
16416
16415
  reactData.rValue = 0;
16417
16416
  reactData.gValue = 0;
@@ -16665,7 +16664,7 @@ var VxeColorPickerComponent = defineVxeComponent({
16665
16664
  const alpha = XEUtils.ceil(100 / barWidth * offsetLeft / 100, 2);
16666
16665
  reactData.aValue = alpha;
16667
16666
  alphaSliderBtnEl.style.left = toCssUnit(offsetLeft);
16668
- reactData.selectColor = updateColorAlpha(selectColor, alpha);
16667
+ reactData.selectColor = selectColor ? updateColorAlpha(selectColor, alpha) : '';
16669
16668
  }
16670
16669
  };
16671
16670
  const handleAlphaBarEvent = (evnt) => {