vxe-table 3.11.27-beta.0 → 3.11.27
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 +1 -1
- package/es/locale/lang/de-DE.js +1 -1
- package/es/locale/lang/en-US.js +1 -1
- package/es/locale/lang/es-ES.js +1 -1
- package/es/locale/lang/fr-FR.js +1 -1
- package/es/locale/lang/hu-HU.js +1 -1
- package/es/locale/lang/hy-AM.js +1 -1
- package/es/locale/lang/ja-JP.js +1 -1
- package/es/locale/lang/ko-KR.js +1 -1
- package/es/locale/lang/nb-NO.js +1 -1
- package/es/locale/lang/pt-BR.js +1 -1
- package/es/locale/lang/ru-RU.js +1 -1
- package/es/locale/lang/ug-CN.js +1 -1
- package/es/locale/lang/uk-UA.js +1 -1
- package/es/locale/lang/vi-VN.js +1 -1
- package/es/locale/lang/zh-CHT.js +1 -1
- package/es/locale/lang/zh-CN.js +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/custom/mixin.js +2 -0
- package/es/table/module/custom/panel.js +436 -231
- package/es/table/src/body.js +1 -1
- package/es/table/src/methods.js +1 -4
- package/es/table/src/table.js +4 -1
- package/es/table/style.css +110 -40
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +1 -0
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +110 -40
- 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 +381 -165
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +1 -1
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/de-DE.js +1 -1
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/en-US.js +1 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +1 -1
- package/lib/locale/lang/es-ES.js +1 -1
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +1 -1
- package/lib/locale/lang/fr-FR.js +1 -1
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/hu-HU.js +1 -1
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +1 -1
- package/lib/locale/lang/hy-AM.js +1 -1
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +1 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -1
- package/lib/locale/lang/ko-KR.js +1 -1
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +1 -1
- package/lib/locale/lang/nb-NO.js +1 -1
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +1 -1
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +1 -1
- package/lib/locale/lang/ru-RU.js +1 -1
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +1 -1
- package/lib/locale/lang/ug-CN.js +1 -1
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/uk-UA.js +1 -1
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +1 -1
- package/lib/locale/lang/vi-VN.js +1 -1
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +1 -1
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +1 -1
- package/lib/locale/lang/zh-CN.js +1 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/custom/mixin.js +2 -0
- package/lib/table/module/custom/mixin.min.js +1 -1
- package/lib/table/module/custom/panel.js +369 -156
- package/lib/table/module/custom/panel.min.js +1 -1
- package/lib/table/src/body.js +1 -1
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/methods.js +2 -5
- package/lib/table/src/methods.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 +110 -40
- 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 -0
- 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 +110 -40
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/locale/lang/ar-EG.ts +1 -1
- package/packages/locale/lang/de-DE.ts +1 -1
- package/packages/locale/lang/en-US.ts +1 -1
- package/packages/locale/lang/es-ES.ts +1 -1
- package/packages/locale/lang/fr-FR.ts +1 -1
- package/packages/locale/lang/hu-HU.ts +1 -1
- package/packages/locale/lang/hy-AM.ts +1 -1
- package/packages/locale/lang/ja-JP.ts +1 -1
- package/packages/locale/lang/ko-KR.ts +1 -1
- package/packages/locale/lang/nb-NO.ts +1 -1
- package/packages/locale/lang/pt-BR.ts +1 -1
- package/packages/locale/lang/ru-RU.ts +1 -1
- package/packages/locale/lang/ug-CN.ts +1 -1
- package/packages/locale/lang/uk-UA.ts +1 -1
- package/packages/locale/lang/vi-VN.ts +1 -1
- package/packages/locale/lang/zh-CHT.ts +1 -1
- package/packages/locale/lang/zh-CN.ts +1 -1
- package/packages/table/module/custom/mixin.ts +2 -0
- package/packages/table/module/custom/panel.ts +463 -234
- package/packages/table/src/body.ts +1 -1
- package/packages/table/src/methods.ts +1 -5
- package/packages/table/src/table.ts +4 -1
- package/packages/ui/src/dom.ts +2 -0
- package/styles/components/table-module/custom.scss +95 -13
- package/styles/components/table.scss +6 -2
- /package/es/{iconfont.1733931178504.ttf → iconfont.1734055169729.ttf} +0 -0
- /package/es/{iconfont.1733931178504.woff → iconfont.1734055169729.woff} +0 -0
- /package/es/{iconfont.1733931178504.woff2 → iconfont.1734055169729.woff2} +0 -0
- /package/lib/{iconfont.1733931178504.ttf → iconfont.1734055169729.ttf} +0 -0
- /package/lib/{iconfont.1733931178504.woff → iconfont.1734055169729.woff} +0 -0
- /package/lib/{iconfont.1733931178504.woff2 → iconfont.1734055169729.woff2} +0 -0
|
@@ -462,7 +462,7 @@ function renderRows (h: CreateElement, _vm: any, $xeTable: any, fixedType: any,
|
|
|
462
462
|
rowid
|
|
463
463
|
},
|
|
464
464
|
style: rowStyle ? (XEUtils.isFunction(rowStyle) ? rowStyle(params) : rowStyle) : null,
|
|
465
|
-
key: rowKey || rowOpts.useKey || rowOpts.drag || treeConfig ? rowid : $rowIndex,
|
|
465
|
+
key: rowKey || rowOpts.useKey || rowOpts.drag || columnOpts.drag || treeConfig ? rowid : $rowIndex,
|
|
466
466
|
on: trOn
|
|
467
467
|
}, tdVNs)
|
|
468
468
|
)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import XEUtils from 'xe-utils'
|
|
2
|
-
import { browse, isPx, isScale, hasClass, addClass, removeClass, getEventTargetNode, getPaddingTopBottomSize, setScrollTop, setScrollLeft, isNodeElement } from '../../ui/src/dom'
|
|
2
|
+
import { tpImg, browse, isPx, isScale, hasClass, addClass, removeClass, getEventTargetNode, getPaddingTopBottomSize, setScrollTop, setScrollLeft, isNodeElement } from '../../ui/src/dom'
|
|
3
3
|
import { getLastZIndex, nextZIndex, hasChildrenList, getFuncText, isEnableConf, formatText, eqEmptyValue } from '../../ui/src/utils'
|
|
4
4
|
import { VxeUI } from '../../ui'
|
|
5
5
|
import Cell from './cell'
|
|
@@ -16,8 +16,6 @@ const { getConfig, getI18n, renderer, formats, interceptor, createEvent } = VxeU
|
|
|
16
16
|
|
|
17
17
|
const customStorageKey = 'VXE_CUSTOM_STORE'
|
|
18
18
|
|
|
19
|
-
const tpImg = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII='
|
|
20
|
-
|
|
21
19
|
// 获取所有的列,排除分组
|
|
22
20
|
const getColumnList = (columns: any[]) => {
|
|
23
21
|
const result: any[] = []
|
|
@@ -5315,7 +5313,6 @@ const Methods = {
|
|
|
5315
5313
|
const props = $xeTable
|
|
5316
5314
|
const reactData = $xeTable
|
|
5317
5315
|
|
|
5318
|
-
evnt.stopPropagation()
|
|
5319
5316
|
const { dragConfig } = props
|
|
5320
5317
|
const rowDragOpts = $xeTable.computeRowDragOpts
|
|
5321
5318
|
const { dragStartMethod } = rowDragOpts
|
|
@@ -5573,7 +5570,6 @@ const Methods = {
|
|
|
5573
5570
|
const $xeTable = this
|
|
5574
5571
|
const reactData = $xeTable
|
|
5575
5572
|
|
|
5576
|
-
evnt.stopPropagation()
|
|
5577
5573
|
const columnDragOpts = $xeTable.computeColumnDragOpts
|
|
5578
5574
|
const { dragStartMethod } = columnDragOpts
|
|
5579
5575
|
const { column } = params
|
|
@@ -790,7 +790,7 @@ export default {
|
|
|
790
790
|
})
|
|
791
791
|
},
|
|
792
792
|
staticColumns (value: any) {
|
|
793
|
-
this.handleColumn(value)
|
|
793
|
+
this.handleColumn(XEUtils.clone(value))
|
|
794
794
|
},
|
|
795
795
|
tableColumn () {
|
|
796
796
|
this.analyColumnWidth()
|
|
@@ -1249,6 +1249,9 @@ export default {
|
|
|
1249
1249
|
'is--virtual-x': scrollXLoad,
|
|
1250
1250
|
'is--virtual-y': scrollYLoad
|
|
1251
1251
|
}],
|
|
1252
|
+
style: {
|
|
1253
|
+
'--vxe-ui-table-drag-column-move-delay': `${Math.max(0.05, Math.min(0.3, tableData.length / 800))}s`
|
|
1254
|
+
},
|
|
1252
1255
|
attrs: {
|
|
1253
1256
|
spellcheck: false
|
|
1254
1257
|
},
|
package/packages/ui/src/dom.ts
CHANGED
|
@@ -4,6 +4,8 @@ const reClsMap: { [key: string]: any } = {}
|
|
|
4
4
|
|
|
5
5
|
export const browse = XEUtils.browse()
|
|
6
6
|
|
|
7
|
+
export const tpImg = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII='
|
|
8
|
+
|
|
7
9
|
export function getPropClass (property: any, params: any) {
|
|
8
10
|
return property ? XEUtils.isFunction(property) ? property(params) : property : ''
|
|
9
11
|
}
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
position: absolute;
|
|
42
42
|
left: -1px;
|
|
43
43
|
width: calc(100% + 1px);
|
|
44
|
-
height:
|
|
44
|
+
height: 2px;
|
|
45
45
|
background-color: var(--vxe-ui-font-primary-color);
|
|
46
46
|
z-index: 12;
|
|
47
47
|
}
|
|
@@ -95,6 +95,7 @@
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
.vxe-table-custom--body {
|
|
98
|
+
position: relative;
|
|
98
99
|
display: block;
|
|
99
100
|
flex-grow: 1;
|
|
100
101
|
overflow-x: hidden;
|
|
@@ -107,15 +108,12 @@
|
|
|
107
108
|
padding: 0;
|
|
108
109
|
& > li {
|
|
109
110
|
max-width: 26em;
|
|
110
|
-
min-width:
|
|
111
|
+
min-width: 18em;
|
|
111
112
|
padding: 0.2em 1em 0.2em 1em;
|
|
112
113
|
@for $i from 2 through 8 {
|
|
113
|
-
$interval: $i - 1 + 0.
|
|
114
|
+
$interval: $i - 1 + 0.5;
|
|
114
115
|
&.level--#{$i}{
|
|
115
|
-
padding-left: #{$interval + 2
|
|
116
|
-
.vxe-checkbox--icon {
|
|
117
|
-
left: #{$interval + 0.6}em;
|
|
118
|
-
}
|
|
116
|
+
padding-left: #{$interval + 1.2}em;
|
|
119
117
|
}
|
|
120
118
|
}
|
|
121
119
|
}
|
|
@@ -130,7 +128,6 @@
|
|
|
130
128
|
}
|
|
131
129
|
|
|
132
130
|
.vxe-table-custom--panel-list {
|
|
133
|
-
padding: 0.2em 0;
|
|
134
131
|
.vxe-table-custom--checkbox-option {
|
|
135
132
|
&:hover {
|
|
136
133
|
background-color: var(--vxe-ui-table-row-hover-background-color);
|
|
@@ -182,6 +179,12 @@
|
|
|
182
179
|
cursor: not-allowed;
|
|
183
180
|
}
|
|
184
181
|
}
|
|
182
|
+
.vxe-table-custom--name-option {
|
|
183
|
+
flex-grow: 1;
|
|
184
|
+
display: flex;
|
|
185
|
+
flex-direction: row;
|
|
186
|
+
overflow: hidden;
|
|
187
|
+
}
|
|
185
188
|
.vxe-table-custom--checkbox-label {
|
|
186
189
|
flex-grow: 1;
|
|
187
190
|
overflow: hidden;
|
|
@@ -199,6 +202,7 @@
|
|
|
199
202
|
}
|
|
200
203
|
|
|
201
204
|
.vxe-table-custom-popup--body {
|
|
205
|
+
position: relative;
|
|
202
206
|
overflow: auto;
|
|
203
207
|
height: 100%;
|
|
204
208
|
outline: 0;
|
|
@@ -248,13 +252,43 @@
|
|
|
248
252
|
}
|
|
249
253
|
}
|
|
250
254
|
|
|
251
|
-
|
|
255
|
+
/*拖拽列*/
|
|
256
|
+
.vxe-table-custom-popup--drag-line {
|
|
257
|
+
display: none;
|
|
258
|
+
position: absolute;
|
|
259
|
+
top: 0;
|
|
260
|
+
left: 0;
|
|
261
|
+
z-index: 11;
|
|
262
|
+
pointer-events: none;
|
|
263
|
+
}
|
|
264
|
+
.vxe-table-custom-popup--drag-line {
|
|
265
|
+
width: 100%;
|
|
266
|
+
height: 1px;
|
|
267
|
+
border: 2px solid transparent;
|
|
268
|
+
&[drag-pos="top"] {
|
|
269
|
+
border-top-color: var(--vxe-ui-font-primary-color);
|
|
270
|
+
}
|
|
271
|
+
&[drag-pos="bottom"] {
|
|
272
|
+
border-bottom-color: var(--vxe-ui-font-primary-color);
|
|
273
|
+
}
|
|
274
|
+
&[drag-to-child="y"] {
|
|
275
|
+
border-top-color: transparent;
|
|
276
|
+
border-bottom-color: transparent;
|
|
277
|
+
border-left-color: var(--vxe-ui-status-success-color);
|
|
278
|
+
}
|
|
279
|
+
&.is--guides {
|
|
280
|
+
background-color: var( --vxe-ui-table-drag-over-background-color);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.vxe-table-custom-popup--drag-tip {
|
|
252
285
|
display: none;
|
|
253
286
|
position: absolute;
|
|
254
287
|
top: 0;
|
|
255
288
|
left: 0;
|
|
256
|
-
padding: 0.6em
|
|
257
|
-
max-width:
|
|
289
|
+
padding: 0.6em 1.4em;
|
|
290
|
+
max-width: 50%;
|
|
291
|
+
min-width: 100px;
|
|
258
292
|
border-radius: var(--vxe-ui-border-radius);
|
|
259
293
|
overflow: hidden;
|
|
260
294
|
text-overflow: ellipsis;
|
|
@@ -264,9 +298,53 @@
|
|
|
264
298
|
background-color: var(--vxe-ui-layout-background-color);
|
|
265
299
|
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
|
|
266
300
|
z-index: 33;
|
|
301
|
+
&[drag-status="normal"] {
|
|
302
|
+
.vxe-table-custom-popup--drag-tip-normal-status {
|
|
303
|
+
display: block;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
&[drag-status="sub"] {
|
|
307
|
+
.vxe-table-custom-popup--drag-tip-sub-status {
|
|
308
|
+
display: block;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
&[drag-status="disabled"] {
|
|
312
|
+
.vxe-table-custom-popup--drag-tip-disabled-status {
|
|
313
|
+
display: block;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
.vxe-table-custom-popup--drag-tip-wrapper {
|
|
318
|
+
display: flex;
|
|
319
|
+
flex-direction: row;
|
|
320
|
+
align-items: center;
|
|
321
|
+
}
|
|
322
|
+
.vxe-table-custom-popup--drag-tip-status {
|
|
323
|
+
padding-right: 0.4em;
|
|
324
|
+
}
|
|
325
|
+
.vxe-table-custom-popup--drag-tip-disabled-status {
|
|
326
|
+
display: none;
|
|
327
|
+
flex-shrink: 0;
|
|
328
|
+
color: var(--vxe-ui-status-error-color)
|
|
329
|
+
}
|
|
330
|
+
.vxe-table-custom-popup--drag-tip-normal-status,
|
|
331
|
+
.vxe-table-custom-popup--drag-tip-sub-status {
|
|
332
|
+
display: none;
|
|
333
|
+
}
|
|
334
|
+
.vxe-table-custom-popup--drag-tip-content {
|
|
335
|
+
flex-grow: 1;
|
|
336
|
+
overflow: hidden;
|
|
337
|
+
text-overflow: ellipsis;
|
|
338
|
+
white-space: nowrap;
|
|
267
339
|
}
|
|
268
340
|
|
|
269
341
|
.vxe-table-custom-popup--name {
|
|
342
|
+
display: flex;
|
|
343
|
+
flex-direction: row;
|
|
344
|
+
align-items: center;
|
|
345
|
+
}
|
|
346
|
+
.vxe-table-custom-popup--title {
|
|
347
|
+
flex-grow: 1;
|
|
270
348
|
overflow: hidden;
|
|
271
349
|
text-overflow: ellipsis;
|
|
272
350
|
white-space: nowrap;
|
|
@@ -285,7 +363,6 @@
|
|
|
285
363
|
|
|
286
364
|
.vxe-table-custom-popup--column-item {
|
|
287
365
|
position: relative;
|
|
288
|
-
&.col--sort,
|
|
289
366
|
&.col--visible,
|
|
290
367
|
&.col--resizable,
|
|
291
368
|
&.col--fixed {
|
|
@@ -362,9 +439,14 @@
|
|
|
362
439
|
}
|
|
363
440
|
|
|
364
441
|
.vxe-table-custom--list-move {
|
|
365
|
-
transition: transform
|
|
442
|
+
transition-property: transform;
|
|
443
|
+
transition-duration: 0.35s;
|
|
444
|
+
transition-delay: 0.05s;
|
|
366
445
|
}
|
|
367
446
|
|
|
447
|
+
.vxe-table-custom-popup--column-sort-placeholder {
|
|
448
|
+
padding: 0.2em 0.5em;
|
|
449
|
+
}
|
|
368
450
|
.vxe-table-custom-popup--column-sort-btn {
|
|
369
451
|
font-size: 1.2em;
|
|
370
452
|
padding: 0.2em 0.5em;
|
|
@@ -1305,7 +1305,9 @@
|
|
|
1305
1305
|
}
|
|
1306
1306
|
}
|
|
1307
1307
|
.vxe-header--col-list-move {
|
|
1308
|
-
transition: transform
|
|
1308
|
+
transition-property: transform;
|
|
1309
|
+
transition-duration: 0.35s;
|
|
1310
|
+
transition-delay: var(--vxe-ui-table-drag-column-move-delay, 0.3s);
|
|
1309
1311
|
}
|
|
1310
1312
|
|
|
1311
1313
|
.vxe-table--drag-col-line,
|
|
@@ -1367,7 +1369,9 @@
|
|
|
1367
1369
|
}
|
|
1368
1370
|
}
|
|
1369
1371
|
.vxe-body--row-list-move {
|
|
1370
|
-
transition: transform
|
|
1372
|
+
transition-property: transform;
|
|
1373
|
+
transition-duration: 0.35s;
|
|
1374
|
+
transition-delay: 0.05s;
|
|
1371
1375
|
}
|
|
1372
1376
|
.vxe-table--drag-sort-tip {
|
|
1373
1377
|
display: none;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|