vxe-pc-ui 4.17.9 → 4.17.10
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 +10 -7
- package/dist/style.css +1 -1
- package/dist/style.min.css +1 -1
- package/es/icon/style.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +8 -5
- package/es/ui/src/log.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +10 -7
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/dom.js +8 -5
- package/lib/ui/src/dom.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/ui/src/dom.ts +9 -6
- /package/es/icon/{iconfont.1787220445999.ttf → iconfont.1787225561954.ttf} +0 -0
- /package/es/icon/{iconfont.1787220445999.woff → iconfont.1787225561954.woff} +0 -0
- /package/es/icon/{iconfont.1787220445999.woff2 → iconfont.1787225561954.woff2} +0 -0
- /package/es/{iconfont.1787220445999.ttf → iconfont.1787225561954.ttf} +0 -0
- /package/es/{iconfont.1787220445999.woff → iconfont.1787225561954.woff} +0 -0
- /package/es/{iconfont.1787220445999.woff2 → iconfont.1787225561954.woff2} +0 -0
- /package/lib/icon/style/{iconfont.1787220445999.ttf → iconfont.1787225561954.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1787220445999.woff → iconfont.1787225561954.woff} +0 -0
- /package/lib/icon/style/{iconfont.1787220445999.woff2 → iconfont.1787225561954.woff2} +0 -0
- /package/lib/{iconfont.1787220445999.ttf → iconfont.1787225561954.ttf} +0 -0
- /package/lib/{iconfont.1787220445999.woff → iconfont.1787225561954.woff} +0 -0
- /package/lib/{iconfont.1787220445999.woff2 → iconfont.1787225561954.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.
|
|
84
|
+
const uiVersion = `ui v${"4.17.10"}`;
|
|
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.
|
|
98
|
+
const version = "4.17.10";
|
|
99
99
|
VxeUI.uiVersion = version;
|
|
100
100
|
VxeUI.dynamicApp = dynamicApp;
|
|
101
101
|
function config(options) {
|
|
@@ -1981,18 +1981,19 @@ function updatePanelPlacement(targetElem, panelElem, options) {
|
|
|
1981
1981
|
let arrowLeft = '';
|
|
1982
1982
|
const stys = {};
|
|
1983
1983
|
if (panelElem && targetElem) {
|
|
1984
|
+
const bodyEl = document.body;
|
|
1984
1985
|
const parentEl = panelElem.parentElement;
|
|
1985
|
-
const parentWrapperEl = parentEl ===
|
|
1986
|
+
const parentWrapperEl = parentEl === bodyEl ? document.documentElement : parentEl;
|
|
1986
1987
|
if (parentWrapperEl) {
|
|
1987
1988
|
const targetWidth = targetElem.offsetWidth;
|
|
1988
1989
|
const targetHeight = targetElem.offsetHeight;
|
|
1989
|
-
const panelHeight = panelElem.offsetHeight;
|
|
1990
1990
|
const panelWidth = panelElem.offsetWidth;
|
|
1991
|
+
const panelHeight = panelElem.offsetHeight;
|
|
1991
1992
|
const parentWrapperRect = parentWrapperEl.getBoundingClientRect();
|
|
1992
1993
|
const panelRect = panelElem.getBoundingClientRect();
|
|
1993
1994
|
const targetRect = targetElem.getBoundingClientRect();
|
|
1994
|
-
const visibleHeight =
|
|
1995
|
-
const visibleWidth =
|
|
1995
|
+
const visibleHeight = bodyEl.clientHeight;
|
|
1996
|
+
const visibleWidth = bodyEl.clientWidth;
|
|
1996
1997
|
const offsetLeft = parentWrapperRect.left;
|
|
1997
1998
|
const offsetTop = parentWrapperRect.top;
|
|
1998
1999
|
const targetLeft = targetRect.left;
|
|
@@ -2008,7 +2009,9 @@ function updatePanelPlacement(targetElem, panelElem, options) {
|
|
|
2008
2009
|
else if (!placement) {
|
|
2009
2010
|
if (defaultPlacement === 'top') {
|
|
2010
2011
|
panelPlacement = 'top';
|
|
2011
|
-
|
|
2012
|
+
if (!defaultTop) {
|
|
2013
|
+
top = targetTop - panelHeight;
|
|
2014
|
+
}
|
|
2012
2015
|
// 如果上面不够放,则向下
|
|
2013
2016
|
if (top < marginSize) {
|
|
2014
2017
|
panelPlacement = 'bottom';
|