vxe-table 3.19.17 → 3.19.19
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/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +29 -2
- package/es/locale/lang/de-DE.js +29 -2
- package/es/locale/lang/en-US.js +33 -6
- package/es/locale/lang/es-ES.js +29 -2
- package/es/locale/lang/fr-FR.js +29 -2
- package/es/locale/lang/hu-HU.js +29 -2
- package/es/locale/lang/hy-AM.js +29 -2
- package/es/locale/lang/id-ID.js +29 -2
- package/es/locale/lang/it-IT.js +29 -2
- package/es/locale/lang/ja-JP.js +29 -2
- package/es/locale/lang/ko-KR.js +29 -2
- package/es/locale/lang/ms-MY.js +29 -2
- package/es/locale/lang/nb-NO.js +29 -2
- package/es/locale/lang/pt-BR.js +29 -2
- package/es/locale/lang/ru-RU.js +29 -2
- package/es/locale/lang/th-TH.js +29 -2
- package/es/locale/lang/ug-CN.js +29 -2
- package/es/locale/lang/uk-UA.js +29 -2
- package/es/locale/lang/uz-UZ.js +29 -2
- package/es/locale/lang/vi-VN.js +29 -2
- package/es/locale/lang/zh-CHT.js +31 -4
- package/es/locale/lang/zh-CN.js +31 -4
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/menu/mixin.js +1 -1
- package/es/table/src/header.js +6 -22
- package/es/table/src/table.js +4 -1
- package/es/table/style.css +2 -1
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +2 -2
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +2 -1
- package/es/vxe-table/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +46 -36
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +29 -2
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +29 -2
- package/lib/locale/lang/de-DE.js +29 -2
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +29 -2
- package/lib/locale/lang/en-US.js +33 -6
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +33 -6
- package/lib/locale/lang/es-ES.js +29 -2
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +29 -2
- package/lib/locale/lang/fr-FR.js +29 -2
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +29 -2
- package/lib/locale/lang/hu-HU.js +29 -2
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +29 -2
- package/lib/locale/lang/hy-AM.js +29 -2
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +29 -2
- package/lib/locale/lang/id-ID.js +29 -2
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +29 -2
- package/lib/locale/lang/it-IT.js +29 -2
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +29 -2
- package/lib/locale/lang/ja-JP.js +29 -2
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +29 -2
- package/lib/locale/lang/ko-KR.js +29 -2
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +29 -2
- package/lib/locale/lang/ms-MY.js +29 -2
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +29 -2
- package/lib/locale/lang/nb-NO.js +29 -2
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +29 -2
- package/lib/locale/lang/pt-BR.js +29 -2
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +29 -2
- package/lib/locale/lang/ru-RU.js +29 -2
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +29 -2
- package/lib/locale/lang/th-TH.js +29 -2
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +29 -2
- package/lib/locale/lang/ug-CN.js +29 -2
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +29 -2
- package/lib/locale/lang/uk-UA.js +29 -2
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +29 -2
- package/lib/locale/lang/uz-UZ.js +29 -2
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +29 -2
- package/lib/locale/lang/vi-VN.js +29 -2
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +29 -2
- package/lib/locale/lang/zh-CHT.js +31 -4
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +31 -4
- package/lib/locale/lang/zh-CN.js +31 -4
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +31 -4
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/menu/mixin.js +1 -1
- package/lib/table/module/menu/mixin.min.js +1 -1
- package/lib/table/src/header.js +6 -26
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/table.js +4 -1
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +2 -1
- package/lib/table/style/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 +2 -2
- 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/lib/vxe-table/style/style.css +2 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/locale/lang/ar-EG.ts +29 -2
- package/packages/locale/lang/de-DE.ts +29 -2
- package/packages/locale/lang/en-US.ts +33 -6
- package/packages/locale/lang/es-ES.ts +29 -2
- package/packages/locale/lang/fr-FR.ts +29 -2
- package/packages/locale/lang/hu-HU.ts +29 -2
- package/packages/locale/lang/hy-AM.ts +29 -2
- package/packages/locale/lang/id-ID.ts +29 -2
- package/packages/locale/lang/it-IT.ts +29 -2
- package/packages/locale/lang/ja-JP.ts +29 -2
- package/packages/locale/lang/ko-KR.ts +29 -2
- package/packages/locale/lang/ms-MY.ts +29 -2
- package/packages/locale/lang/nb-NO.ts +29 -2
- package/packages/locale/lang/pt-BR.ts +29 -2
- package/packages/locale/lang/ru-RU.ts +29 -2
- package/packages/locale/lang/th-TH.ts +29 -2
- package/packages/locale/lang/ug-CN.ts +29 -2
- package/packages/locale/lang/uk-UA.ts +29 -2
- package/packages/locale/lang/uz-UZ.ts +29 -2
- package/packages/locale/lang/vi-VN.ts +29 -2
- package/packages/locale/lang/zh-CHT.ts +31 -4
- package/packages/locale/lang/zh-CN.ts +31 -4
- package/packages/table/module/menu/mixin.ts +1 -1
- package/packages/table/src/header.ts +6 -24
- package/packages/table/src/table.ts +4 -1
- package/packages/ui/src/dom.ts +2 -2
- package/styles/components/table.scss +2 -1
- /package/es/{iconfont.1763515356812.ttf → iconfont.1764033994654.ttf} +0 -0
- /package/es/{iconfont.1763515356812.woff → iconfont.1764033994654.woff} +0 -0
- /package/es/{iconfont.1763515356812.woff2 → iconfont.1764033994654.woff2} +0 -0
- /package/lib/{iconfont.1763515356812.ttf → iconfont.1764033994654.ttf} +0 -0
- /package/lib/{iconfont.1763515356812.woff → iconfont.1764033994654.woff} +0 -0
- /package/lib/{iconfont.1763515356812.woff2 → iconfont.1764033994654.woff2} +0 -0
package/es/table/src/header.js
CHANGED
|
@@ -6,20 +6,6 @@ import { getSlotVNs } from '../../ui/src/vn';
|
|
|
6
6
|
const { renderer, renderEmptyElement } = VxeUI;
|
|
7
7
|
const sourceType = 'table';
|
|
8
8
|
const renderType = 'header';
|
|
9
|
-
function getColumnFirstChild(column) {
|
|
10
|
-
const { children } = column;
|
|
11
|
-
if (children && children.length) {
|
|
12
|
-
return getColumnFirstChild(children[0]);
|
|
13
|
-
}
|
|
14
|
-
return column;
|
|
15
|
-
}
|
|
16
|
-
function getColumnLastChild(column) {
|
|
17
|
-
const { children } = column;
|
|
18
|
-
if (children && children.length) {
|
|
19
|
-
return getColumnLastChild(children[children.length - 1]);
|
|
20
|
-
}
|
|
21
|
-
return column;
|
|
22
|
-
}
|
|
23
9
|
function renderRows(h, _vm, isGroup, isOptimizeMode, headerGroups, $rowIndex, cols) {
|
|
24
10
|
const props = _vm;
|
|
25
11
|
const $xeTable = _vm.$parent;
|
|
@@ -151,15 +137,13 @@ function renderRows(h, _vm, isGroup, isOptimizeMode, headerGroups, $rowIndex, co
|
|
|
151
137
|
// custom
|
|
152
138
|
}
|
|
153
139
|
else if (isColGroup && !isLastRow) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
const lastColRest = fullColumnIdData[lastCol.id];
|
|
159
|
-
if (firstColRest && lastColRest) {
|
|
160
|
-
tcStyle.width = `${lastColRest.oLeft - firstColRest.oLeft + lastCol.renderWidth}px`;
|
|
140
|
+
let childWidth = 0;
|
|
141
|
+
XEUtils.eachTree(column.children, (childRow) => {
|
|
142
|
+
if (childRow.visible && (!childRow.children || !childRow.children.length)) {
|
|
143
|
+
childWidth += childRow.renderWidth;
|
|
161
144
|
}
|
|
162
|
-
}
|
|
145
|
+
});
|
|
146
|
+
tcStyle.width = `${childWidth}px`;
|
|
163
147
|
}
|
|
164
148
|
return h('th', {
|
|
165
149
|
class: ['vxe-table--column vxe-header--column', colid, fixedHiddenColumn ? 'fixed--hidden' : 'fixed--visible', {
|
package/es/table/src/table.js
CHANGED
|
@@ -2141,7 +2141,10 @@ export default {
|
|
|
2141
2141
|
h('div', {
|
|
2142
2142
|
key: 'tn',
|
|
2143
2143
|
ref: 'refEmptyPlaceholder',
|
|
2144
|
-
class: 'vxe-table--empty-place-wrapper'
|
|
2144
|
+
class: 'vxe-table--empty-place-wrapper',
|
|
2145
|
+
attrs: {
|
|
2146
|
+
xid: xID
|
|
2147
|
+
}
|
|
2145
2148
|
}, [
|
|
2146
2149
|
h('div', {
|
|
2147
2150
|
class: 'vxe-table--empty-placeholder'
|
package/es/table/style.css
CHANGED
|
@@ -3514,12 +3514,12 @@
|
|
|
3514
3514
|
text-align: center;
|
|
3515
3515
|
overflow: hidden;
|
|
3516
3516
|
width: 100%;
|
|
3517
|
-
pointer-events: none;
|
|
3518
3517
|
outline: 0;
|
|
3519
3518
|
}
|
|
3520
3519
|
.vxe-table--render-default .vxe-table--empty-block {
|
|
3521
3520
|
display: none;
|
|
3522
3521
|
visibility: hidden;
|
|
3522
|
+
pointer-events: none;
|
|
3523
3523
|
}
|
|
3524
3524
|
.vxe-table--render-default .vxe-table--empty-place-wrapper {
|
|
3525
3525
|
display: none;
|
|
@@ -3528,6 +3528,7 @@
|
|
|
3528
3528
|
top: 0;
|
|
3529
3529
|
z-index: 5;
|
|
3530
3530
|
overflow: hidden;
|
|
3531
|
+
pointer-events: none;
|
|
3531
3532
|
}
|
|
3532
3533
|
.vxe-table--render-default .vxe-table--empty-placeholder {
|
|
3533
3534
|
display: flex;
|