vxe-table 3.13.16 → 3.13.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.
- package/es/grid/src/grid.js +26 -13
- package/es/style.css +1 -1
- package/es/table/module/keyboard/mixin.js +3 -2
- package/es/table/src/body.js +2 -2
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/grid/src/grid.js +27 -26
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.umd.js +34 -31
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/module/keyboard/mixin.js +3 -2
- package/lib/table/src/body.js +2 -1
- package/lib/table/src/body.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +28 -13
- package/packages/table/module/keyboard/mixin.ts +6 -2
- package/packages/table/src/body.ts +2 -2
- /package/es/{iconfont.1740799948632.ttf → iconfont.1741051533862.ttf} +0 -0
- /package/es/{iconfont.1740799948632.woff → iconfont.1741051533862.woff} +0 -0
- /package/es/{iconfont.1740799948632.woff2 → iconfont.1741051533862.woff2} +0 -0
- /package/lib/{iconfont.1740799948632.ttf → iconfont.1741051533862.ttf} +0 -0
- /package/lib/{iconfont.1740799948632.woff → iconfont.1741051533862.woff} +0 -0
- /package/lib/{iconfont.1740799948632.woff2 → iconfont.1741051533862.woff2} +0 -0
package/es/grid/src/grid.js
CHANGED
|
@@ -149,7 +149,7 @@ function renderForm(h, _vm) {
|
|
|
149
149
|
if (hasForm) {
|
|
150
150
|
return h('div', {
|
|
151
151
|
key: 'form',
|
|
152
|
-
ref: '
|
|
152
|
+
ref: 'refFormWrapper',
|
|
153
153
|
class: 'vxe-grid--form-wrapper'
|
|
154
154
|
}, formSlot ? formSlot.call(_vm, { $grid: _vm }, h) : renderDefaultForm(h, _vm));
|
|
155
155
|
}
|
|
@@ -165,7 +165,7 @@ function renderToolbar(h, _vm) {
|
|
|
165
165
|
if (hasToolbar) {
|
|
166
166
|
return h('div', {
|
|
167
167
|
key: 'toolbar',
|
|
168
|
-
ref: '
|
|
168
|
+
ref: 'refToolbarWrapper',
|
|
169
169
|
class: 'vxe-grid--toolbar-wrapper'
|
|
170
170
|
}, toolbarSlot
|
|
171
171
|
? toolbarSlot.call(_vm, { $grid: _vm }, h)
|
|
@@ -188,7 +188,7 @@ function renderTop(h, _vm) {
|
|
|
188
188
|
return topSlot
|
|
189
189
|
? h('div', {
|
|
190
190
|
key: 'top',
|
|
191
|
-
ref: '
|
|
191
|
+
ref: 'refTopWrapper',
|
|
192
192
|
class: 'vxe-grid--top-wrapper'
|
|
193
193
|
}, topSlot.call(_vm, { $grid: _vm }, h))
|
|
194
194
|
: _e();
|
|
@@ -239,7 +239,7 @@ function renderBottom(h, _vm) {
|
|
|
239
239
|
return bottomSlot
|
|
240
240
|
? h('div', {
|
|
241
241
|
key: 'bottom',
|
|
242
|
-
ref: '
|
|
242
|
+
ref: 'refBottomWrapper',
|
|
243
243
|
class: 'vxe-grid--bottom-wrapper'
|
|
244
244
|
}, bottomSlot.call(_vm, { $grid: _vm }, h))
|
|
245
245
|
: _e();
|
|
@@ -257,7 +257,7 @@ function renderPager(h, $xeGrid) {
|
|
|
257
257
|
if (hasPager) {
|
|
258
258
|
return h('div', {
|
|
259
259
|
key: 'pager',
|
|
260
|
-
ref: '
|
|
260
|
+
ref: 'refPagerWrapper',
|
|
261
261
|
class: 'vxe-grid--pager-wrapper'
|
|
262
262
|
}, pagerSlot
|
|
263
263
|
? pagerSlot.call($xeGrid, { $grid: $xeGrid }, h)
|
|
@@ -577,6 +577,7 @@ export default {
|
|
|
577
577
|
const vSize = $xeGrid.computeSize;
|
|
578
578
|
const styles = $xeGrid.computeStyles;
|
|
579
579
|
return h('div', {
|
|
580
|
+
ref: 'refElem',
|
|
580
581
|
class: ['vxe-grid', {
|
|
581
582
|
[`size--${vSize}`]: vSize,
|
|
582
583
|
'is--animat': !!this.animat,
|
|
@@ -599,18 +600,30 @@ export default {
|
|
|
599
600
|
}
|
|
600
601
|
return [];
|
|
601
602
|
},
|
|
602
|
-
getParentHeight() {
|
|
603
|
-
const { $el, isZMax } = this;
|
|
604
|
-
return (isZMax ? getDomNode().visibleHeight : XEUtils.toNumber(getComputedStyle($el.parentNode).height)) - this.getExcludeHeight();
|
|
605
|
-
},
|
|
606
603
|
/**
|
|
607
604
|
* 获取需要排除的高度
|
|
608
605
|
*/
|
|
609
606
|
getExcludeHeight() {
|
|
610
|
-
const
|
|
611
|
-
const
|
|
612
|
-
const
|
|
613
|
-
|
|
607
|
+
const $xeGrid = this;
|
|
608
|
+
const reactData = $xeGrid;
|
|
609
|
+
const { isZMax } = reactData;
|
|
610
|
+
const el = $xeGrid.$refs.refElem;
|
|
611
|
+
const formWrapper = $xeGrid.$refs.refFormWrapper;
|
|
612
|
+
const toolbarWrapper = $xeGrid.$refs.refToolbarWrapper;
|
|
613
|
+
const topWrapper = $xeGrid.$refs.refTopWrapper;
|
|
614
|
+
const bottomWrapper = $xeGrid.$refs.refBottomWrapper;
|
|
615
|
+
const pagerWrapper = $xeGrid.$refs.refPagerWrapper;
|
|
616
|
+
const parentPaddingSize = isZMax ? 0 : getPaddingTopBottomSize(el.parentNode);
|
|
617
|
+
return parentPaddingSize + getPaddingTopBottomSize(el) + getOffsetHeight(formWrapper) + getOffsetHeight(toolbarWrapper) + getOffsetHeight(topWrapper) + getOffsetHeight(bottomWrapper) + getOffsetHeight(pagerWrapper);
|
|
618
|
+
},
|
|
619
|
+
getParentHeight() {
|
|
620
|
+
const $xeGrid = this;
|
|
621
|
+
const reactData = $xeGrid;
|
|
622
|
+
const el = $xeGrid.$refs.refElem;
|
|
623
|
+
if (el) {
|
|
624
|
+
return (reactData.isZMax ? getDomNode().visibleHeight : XEUtils.toNumber(getComputedStyle(el.parentNode).height)) - $xeGrid.getExcludeHeight();
|
|
625
|
+
}
|
|
626
|
+
return 0;
|
|
614
627
|
},
|
|
615
628
|
initToolbar() {
|
|
616
629
|
this.$nextTick(() => {
|