vxe-table 4.11.7 → 4.11.9
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 +2 -1
- package/es/locale/lang/de-DE.js +2 -1
- package/es/locale/lang/en-US.js +2 -1
- package/es/locale/lang/es-ES.js +2 -1
- package/es/locale/lang/fr-FR.js +2 -1
- package/es/locale/lang/hu-HU.js +2 -1
- package/es/locale/lang/hy-AM.js +2 -1
- package/es/locale/lang/id-ID.js +2 -1
- package/es/locale/lang/it-IT.js +2 -1
- package/es/locale/lang/ja-JP.js +2 -1
- package/es/locale/lang/ko-KR.js +2 -1
- package/es/locale/lang/nb-NO.js +2 -1
- package/es/locale/lang/pt-BR.js +2 -1
- package/es/locale/lang/ru-RU.js +2 -1
- package/es/locale/lang/th-TH.js +2 -1
- package/es/locale/lang/ug-CN.js +2 -1
- package/es/locale/lang/uk-UA.js +2 -1
- package/es/locale/lang/vi-VN.js +2 -1
- package/es/locale/lang/zh-CHT.js +2 -1
- package/es/locale/lang/zh-CN.js +2 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/export/hook.js +2 -2
- package/es/table/module/filter/hook.js +16 -18
- package/es/table/src/table.js +1 -1
- package/es/table/style.css +0 -17
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +0 -17
- 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 +25 -25
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +2 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/de-DE.js +2 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/en-US.js +2 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +2 -1
- package/lib/locale/lang/es-ES.js +2 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +2 -1
- package/lib/locale/lang/fr-FR.js +2 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/hu-HU.js +2 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +2 -1
- package/lib/locale/lang/hy-AM.js +2 -1
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/id-ID.js +2 -1
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/it-IT.js +2 -1
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +2 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +2 -1
- package/lib/locale/lang/ko-KR.js +2 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +2 -1
- package/lib/locale/lang/nb-NO.js +2 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +2 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +2 -1
- package/lib/locale/lang/ru-RU.js +2 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +2 -1
- package/lib/locale/lang/th-TH.js +2 -1
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/ug-CN.js +2 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/uk-UA.js +2 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +2 -1
- package/lib/locale/lang/vi-VN.js +2 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +2 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CN.js +2 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +2 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/export/hook.js +2 -2
- package/lib/table/module/export/hook.min.js +1 -1
- package/lib/table/module/filter/hook.js +18 -19
- package/lib/table/module/filter/hook.min.js +1 -1
- package/lib/table/src/table.js +1 -1
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +0 -17
- 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/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-table/style/style.css +0 -17
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/locale/lang/ar-EG.ts +2 -1
- package/packages/locale/lang/de-DE.ts +2 -1
- package/packages/locale/lang/en-US.ts +2 -1
- package/packages/locale/lang/es-ES.ts +2 -1
- package/packages/locale/lang/fr-FR.ts +2 -1
- package/packages/locale/lang/hu-HU.ts +2 -1
- package/packages/locale/lang/hy-AM.ts +2 -1
- package/packages/locale/lang/id-ID.ts +2 -1
- package/packages/locale/lang/it-IT.ts +2 -1
- package/packages/locale/lang/ja-JP.ts +2 -1
- package/packages/locale/lang/ko-KR.ts +2 -1
- package/packages/locale/lang/nb-NO.ts +2 -1
- package/packages/locale/lang/pt-BR.ts +2 -1
- package/packages/locale/lang/ru-RU.ts +2 -1
- package/packages/locale/lang/th-TH.ts +2 -1
- package/packages/locale/lang/ug-CN.ts +2 -1
- package/packages/locale/lang/uk-UA.ts +2 -1
- package/packages/locale/lang/vi-VN.ts +2 -1
- package/packages/locale/lang/zh-CHT.ts +2 -1
- package/packages/locale/lang/zh-CN.ts +2 -1
- package/packages/table/module/export/hook.ts +2 -2
- package/packages/table/module/filter/hook.ts +17 -19
- package/packages/table/src/table.ts +1 -1
- package/styles/components/table.scss +0 -19
- /package/es/{iconfont.1740104016678.ttf → iconfont.1740288784144.ttf} +0 -0
- /package/es/{iconfont.1740104016678.woff → iconfont.1740288784144.woff} +0 -0
- /package/es/{iconfont.1740104016678.woff2 → iconfont.1740288784144.woff2} +0 -0
- /package/lib/{iconfont.1740104016678.ttf → iconfont.1740288784144.ttf} +0 -0
- /package/lib/{iconfont.1740104016678.woff → iconfont.1740288784144.woff} +0 -0
- /package/lib/{iconfont.1740104016678.woff2 → iconfont.1740288784144.woff2} +0 -0
|
@@ -1033,7 +1033,7 @@ hooks.add('tableExportModule', {
|
|
|
1033
1033
|
isMerge: hasMerge,
|
|
1034
1034
|
useStyle: true,
|
|
1035
1035
|
current: 'current',
|
|
1036
|
-
modes:
|
|
1036
|
+
modes: (proxyOpts.ajax && proxyOpts.ajax.queryAll ? ['all'] : []).concat(['current', 'selected', 'empty'])
|
|
1037
1037
|
}, options)
|
|
1038
1038
|
const types: string[] = defOpts.types || XEUtils.keys(exportOpts._typeMaps)
|
|
1039
1039
|
const modes: string[] = defOpts.modes || []
|
|
@@ -1153,7 +1153,7 @@ hooks.add('tableExportModule', {
|
|
|
1153
1153
|
isMerge: hasMerge,
|
|
1154
1154
|
useStyle: true,
|
|
1155
1155
|
current: 'current',
|
|
1156
|
-
modes:
|
|
1156
|
+
modes: (proxyOpts.ajax && proxyOpts.ajax.queryAll ? ['all'] : []).concat(['current', 'selected', 'empty']),
|
|
1157
1157
|
download: true,
|
|
1158
1158
|
type: 'csv'
|
|
1159
1159
|
// filename: '',
|
|
@@ -14,7 +14,7 @@ const tableFilterMethodKeys: (keyof TableFilterMethods)[] = ['openFilter', 'setF
|
|
|
14
14
|
hooks.add('tableFilterModule', {
|
|
15
15
|
setupTable ($xeTable) {
|
|
16
16
|
const { props, reactData, internalData } = $xeTable
|
|
17
|
-
const {
|
|
17
|
+
const { refElem, refTableFilter } = $xeTable.getRefMaps()
|
|
18
18
|
const { computeFilterOpts, computeMouseOpts } = $xeTable.getComputeMaps()
|
|
19
19
|
|
|
20
20
|
// 确认筛选
|
|
@@ -69,12 +69,16 @@ hooks.add('tableFilterModule', {
|
|
|
69
69
|
* @param {ColumnInfo} column 列配置
|
|
70
70
|
* @param {Object} params 参数
|
|
71
71
|
*/
|
|
72
|
-
triggerFilterEvent (evnt, column, params) {
|
|
72
|
+
triggerFilterEvent (evnt: MouseEvent, column, params) {
|
|
73
73
|
const { initStore, filterStore } = reactData
|
|
74
|
+
const { elemStore } = internalData
|
|
74
75
|
if (filterStore.column === column && filterStore.visible) {
|
|
75
76
|
filterStore.visible = false
|
|
76
77
|
} else {
|
|
77
|
-
const {
|
|
78
|
+
const { clientY, pageX } = evnt
|
|
79
|
+
const el = refElem.value
|
|
80
|
+
const tableRect = el.getBoundingClientRect()
|
|
81
|
+
const targetElem = evnt.target as HTMLDivElement
|
|
78
82
|
const { visibleWidth } = getDomNode()
|
|
79
83
|
const { filters, filterMultiple, filterRender } = column
|
|
80
84
|
const compConf = isEnableConf(filterRender) ? renderer.get(filterRender.name) : null
|
|
@@ -100,11 +104,8 @@ hooks.add('tableFilterModule', {
|
|
|
100
104
|
filterStore.visible = true
|
|
101
105
|
initStore.filter = true
|
|
102
106
|
nextTick(() => {
|
|
103
|
-
const
|
|
104
|
-
|
|
105
|
-
const headerElem = tableHeader ? tableHeader.$el as HTMLDivElement : null
|
|
106
|
-
const bodyElem = tableBody.$el as HTMLDivElement
|
|
107
|
-
if (!bodyElem) {
|
|
107
|
+
const headerScrollElem = getRefElem(elemStore['main-header-scroll'])
|
|
108
|
+
if (!headerScrollElem) {
|
|
108
109
|
return
|
|
109
110
|
}
|
|
110
111
|
const tableFilter = refTableFilter.value
|
|
@@ -113,28 +114,25 @@ hooks.add('tableFilterModule', {
|
|
|
113
114
|
return
|
|
114
115
|
}
|
|
115
116
|
const filterWidth = filterWrapperElem.offsetWidth
|
|
116
|
-
const filterHeight = filterWrapperElem.offsetHeight
|
|
117
117
|
const filterHeadElem = filterWrapperElem.querySelector<HTMLDivElement>('.vxe-table--filter-header')
|
|
118
118
|
const filterFootElem = filterWrapperElem.querySelector<HTMLDivElement>('.vxe-table--filter-footer')
|
|
119
119
|
const centerWidth = filterWidth / 2
|
|
120
120
|
const minMargin = 10
|
|
121
|
-
const maxLeft =
|
|
121
|
+
const maxLeft = el.clientWidth - filterWidth - minMargin
|
|
122
122
|
let left, right
|
|
123
|
+
const thEl = targetElem.offsetParent as HTMLTableCellElement
|
|
124
|
+
const trEl = thEl.offsetParent as HTMLTableCellElement
|
|
123
125
|
const style: any = {
|
|
124
|
-
top: `${targetElem.offsetTop +
|
|
126
|
+
top: `${targetElem.offsetTop + thEl.offsetTop + targetElem.offsetHeight}px`
|
|
125
127
|
}
|
|
126
128
|
// 判断面板不能大于表格高度
|
|
127
|
-
|
|
128
|
-
const bodyHeight = bodyElem.clientHeight - (headerElem ? headerElem.clientHeight / 2 : 0)
|
|
129
|
-
if (filterHeight >= bodyHeight) {
|
|
130
|
-
maxHeight = Math.max(40, bodyHeight - (filterFootElem ? filterFootElem.offsetHeight : 0) - (filterHeadElem ? filterHeadElem.offsetHeight : 0))
|
|
131
|
-
}
|
|
129
|
+
const maxHeight = Math.max(40, el.clientHeight - (clientY - tableRect.y) - (filterHeadElem ? filterHeadElem.clientHeight : 0) - (filterFootElem ? filterFootElem.clientHeight : 0) - 14)
|
|
132
130
|
if (column.fixed === 'left') {
|
|
133
|
-
left = targetElem.offsetLeft +
|
|
131
|
+
left = targetElem.offsetLeft + thEl.offsetLeft - centerWidth
|
|
134
132
|
} else if (column.fixed === 'right') {
|
|
135
|
-
right = (
|
|
133
|
+
right = (thEl.offsetWidth - targetElem.offsetLeft) + (trEl.offsetWidth - trEl.offsetLeft) - column.renderWidth - centerWidth
|
|
136
134
|
} else {
|
|
137
|
-
left = targetElem.offsetLeft +
|
|
135
|
+
left = targetElem.offsetLeft + thEl.offsetLeft - centerWidth - headerScrollElem.scrollLeft
|
|
138
136
|
}
|
|
139
137
|
if (left) {
|
|
140
138
|
const overflowWidth = (pageX + filterWidth - centerWidth + minMargin) - visibleWidth
|
|
@@ -9279,7 +9279,7 @@ export default defineComponent({
|
|
|
9279
9279
|
const el = refElem.value
|
|
9280
9280
|
tablePrivateMethods.clearHoverRow()
|
|
9281
9281
|
if (el) {
|
|
9282
|
-
XEUtils.arrayEach(el.querySelectorAll(
|
|
9282
|
+
XEUtils.arrayEach(el.querySelectorAll(`.vxe-body--row[rowid="${rowid}"]`), elem => addClass(elem, 'row--hover'))
|
|
9283
9283
|
}
|
|
9284
9284
|
internalData.hoverRow = row
|
|
9285
9285
|
},
|
|
@@ -648,15 +648,6 @@
|
|
|
648
648
|
.vxe-table {
|
|
649
649
|
.vxe-table--header-wrapper {
|
|
650
650
|
color: var(--vxe-ui-table-header-font-color);
|
|
651
|
-
&::after {
|
|
652
|
-
content: "";
|
|
653
|
-
position: absolute;
|
|
654
|
-
left: 0;
|
|
655
|
-
bottom: 0;
|
|
656
|
-
height: 0;
|
|
657
|
-
width: 100%;
|
|
658
|
-
border-bottom: var(--vxe-ui-table-border-width) solid var(--vxe-ui-table-border-color);
|
|
659
|
-
}
|
|
660
651
|
}
|
|
661
652
|
/*排序*/
|
|
662
653
|
.vxe-cell--sort {
|
|
@@ -993,11 +984,6 @@
|
|
|
993
984
|
}
|
|
994
985
|
}
|
|
995
986
|
}
|
|
996
|
-
&.header-cell--area {
|
|
997
|
-
.vxe-table--header-wrapper {
|
|
998
|
-
user-select: none;
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
987
|
&.body-cell--area {
|
|
1002
988
|
.vxe-table--body-wrapper {
|
|
1003
989
|
user-select: none;
|
|
@@ -1249,11 +1235,6 @@
|
|
|
1249
1235
|
.vxe-table--border-line {
|
|
1250
1236
|
display: none;
|
|
1251
1237
|
}
|
|
1252
|
-
.vxe-table--header-wrapper {
|
|
1253
|
-
&::after {
|
|
1254
|
-
display: none;
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
1238
|
}
|
|
1258
1239
|
|
|
1259
1240
|
&.size--medium {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|