vxe-table 3.8.6-beta.0 → 3.8.6-beta.1
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/lib/all.js +2 -0
- package/lib/all.min.js +1 -1
- package/lib/custom/src/panel.js +15 -1
- package/lib/custom/src/panel.min.js +1 -1
- package/lib/export/style/style.css +1 -0
- package/lib/export/style/style.min.css +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +43 -9
- package/lib/index.umd.min.js +1 -1
- package/lib/input/src/input.js +1 -0
- package/lib/input/src/input.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/style/style.css +10 -0
- package/lib/table/style/style.min.css +1 -1
- package/lib/tools/dom.js +2 -4
- package/lib/tools/dom.min.js +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +3 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/config.js +6 -2
- package/lib/v-x-e-table/src/config.min.js +1 -1
- package/lib/v-x-e-table/src/theme.js +17 -0
- package/lib/v-x-e-table/src/theme.min.js +1 -0
- package/lib/vxe-table/style/style.css +10 -0
- package/lib/vxe-table/style/style.min.css +1 -1
- package/lib/vxe-table-export-module/style/style.css +1 -0
- package/lib/vxe-table-export-module/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/all.js +2 -0
- package/packages/custom/src/panel.js +14 -1
- package/packages/input/src/input.js +1 -0
- package/packages/tools/dom.js +2 -4
- package/packages/v-x-e-table/index.js +3 -0
- package/packages/v-x-e-table/src/config.js +6 -2
- package/packages/v-x-e-table/src/theme.js +11 -0
- package/styles/export.scss +1 -0
- package/styles/table.scss +8 -0
- /package/lib/icon/style/{iconfont.1715127150277.ttf → iconfont.1715224576202.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1715127150277.woff → iconfont.1715224576202.woff} +0 -0
- /package/lib/icon/style/{iconfont.1715127150277.woff2 → iconfont.1715224576202.woff2} +0 -0
- /package/lib/{iconfont.1715127150277.ttf → iconfont.1715224576202.ttf} +0 -0
- /package/lib/{iconfont.1715127150277.woff → iconfont.1715224576202.woff} +0 -0
- /package/lib/{iconfont.1715127150277.woff2 → iconfont.1715224576202.woff2} +0 -0
package/packages/all.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import XEUtils from 'xe-utils'
|
|
2
2
|
import { VXETable } from './v-x-e-table'
|
|
3
|
+
import { setTheme } from './v-x-e-table/src/theme'
|
|
3
4
|
|
|
4
5
|
import { Filter } from './filter'
|
|
5
6
|
import { Menu } from './menu'
|
|
@@ -84,6 +85,7 @@ const components = [
|
|
|
84
85
|
export function install (Vue, options) {
|
|
85
86
|
if (XEUtils.isPlainObject(options)) {
|
|
86
87
|
VXETable.config(options)
|
|
88
|
+
setTheme(options)
|
|
87
89
|
}
|
|
88
90
|
components.map(component => component.install(Vue))
|
|
89
91
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import VXETable from '../../v-x-e-table'
|
|
1
2
|
import UtilTools from '../../tools/utils'
|
|
2
3
|
import DomTools from '../../tools/dom'
|
|
3
4
|
import GlobalConfig from '../../v-x-e-table/src/conf'
|
|
@@ -457,7 +458,19 @@ export default {
|
|
|
457
458
|
$xetable.emitCustomEvent('reset', evnt)
|
|
458
459
|
},
|
|
459
460
|
resetPopupCustomEvent (evnt) {
|
|
460
|
-
|
|
461
|
+
if (VXETable.modal) {
|
|
462
|
+
VXETable.modal.confirm({
|
|
463
|
+
content: GlobalConfig.i18n('vxe.custom.cstmConfirmRestore'),
|
|
464
|
+
className: 'vxe-table--ignore-clear',
|
|
465
|
+
escClosable: true
|
|
466
|
+
}).then(type => {
|
|
467
|
+
if (type === 'confirm') {
|
|
468
|
+
this.resetCustomEvent(evnt)
|
|
469
|
+
}
|
|
470
|
+
})
|
|
471
|
+
} else {
|
|
472
|
+
this.resetCustomEvent(evnt)
|
|
473
|
+
}
|
|
461
474
|
},
|
|
462
475
|
handleOptionCheck (column) {
|
|
463
476
|
const { $xetable } = this
|
|
@@ -1995,6 +1995,7 @@ export default {
|
|
|
1995
1995
|
}
|
|
1996
1996
|
const { boundingTop, boundingLeft, visibleHeight, visibleWidth } = DomTools.getAbsolutePos(targetElem)
|
|
1997
1997
|
let panelPlacement = 'bottom'
|
|
1998
|
+
console.log(DomTools.getAbsolutePos(targetElem))
|
|
1998
1999
|
if (transfer) {
|
|
1999
2000
|
let left = boundingLeft
|
|
2000
2001
|
let top = boundingTop + targetHeight
|
package/packages/tools/dom.js
CHANGED
|
@@ -133,11 +133,9 @@ export const DomTools = {
|
|
|
133
133
|
return getNodeOffset(elem, container, { left: 0, top: 0 })
|
|
134
134
|
},
|
|
135
135
|
getAbsolutePos (elem) {
|
|
136
|
-
// 当主页面嵌套在iframe时,elem.getBoundingClientRect()仅计算在当前body内的边界距离,忽略了body所在的边界距离
|
|
137
|
-
const bodyBounding = document.body.getBoundingClientRect()
|
|
138
136
|
const bounding = elem.getBoundingClientRect()
|
|
139
|
-
const boundingTop = bounding.top
|
|
140
|
-
const boundingLeft = bounding.left
|
|
137
|
+
const boundingTop = bounding.top
|
|
138
|
+
const boundingLeft = bounding.left
|
|
141
139
|
const { scrollTop, scrollLeft, visibleHeight, visibleWidth } = getDomNode()
|
|
142
140
|
return { boundingTop, top: scrollTop + boundingTop, boundingLeft, left: scrollLeft + boundingLeft, visibleHeight, visibleWidth }
|
|
143
141
|
},
|
|
@@ -7,6 +7,7 @@ import { menus } from './src/menus'
|
|
|
7
7
|
import { formats } from './src/formats'
|
|
8
8
|
import { validators } from './src/validators'
|
|
9
9
|
import { config } from './src/config'
|
|
10
|
+
import { setTheme } from './src/theme'
|
|
10
11
|
import { UtilTools } from '../tools/utils'
|
|
11
12
|
import { errLog } from '../tools/log'
|
|
12
13
|
|
|
@@ -114,6 +115,8 @@ export const VXETable = {
|
|
|
114
115
|
globalConfs
|
|
115
116
|
}
|
|
116
117
|
|
|
118
|
+
setTheme(globalStore)
|
|
119
|
+
|
|
117
120
|
export * from './src/interceptor'
|
|
118
121
|
export * from './src/renderer'
|
|
119
122
|
export * from './src/commands'
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import GlobalConfig from './conf'
|
|
2
2
|
import DomZIndex from 'dom-zindex'
|
|
3
3
|
import XEUtils from 'xe-utils'
|
|
4
|
+
import { setTheme } from './theme'
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* 全局参数设置
|
|
7
8
|
*/
|
|
8
9
|
export function config (options) {
|
|
9
|
-
if (options
|
|
10
|
-
|
|
10
|
+
if (options) {
|
|
11
|
+
setTheme(options)
|
|
12
|
+
if (options.zIndex) {
|
|
13
|
+
DomZIndex.setCurrent(options.zIndex)
|
|
14
|
+
}
|
|
11
15
|
}
|
|
12
16
|
return XEUtils.merge(GlobalConfig, options)
|
|
13
17
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import GlobalConfig from '../../v-x-e-table/src/conf'
|
|
2
|
+
|
|
3
|
+
export function setTheme (options) {
|
|
4
|
+
const theme = (options ? options.theme : null) || GlobalConfig.theme || 'default'
|
|
5
|
+
if (typeof document !== 'undefined') {
|
|
6
|
+
const documentElement = document.documentElement
|
|
7
|
+
if (documentElement) {
|
|
8
|
+
documentElement.setAttribute('data-vxe-table-theme', theme)
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
package/styles/export.scss
CHANGED
package/styles/table.scss
CHANGED
|
@@ -33,6 +33,9 @@
|
|
|
33
33
|
border: 0;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
.vxe-table--render-wrapper {
|
|
37
|
+
background-color: $vxe-table-body-background-color;
|
|
38
|
+
}
|
|
36
39
|
.vxe-table--body-wrapper {
|
|
37
40
|
scroll-behavior: auto;
|
|
38
41
|
}
|
|
@@ -610,6 +613,11 @@
|
|
|
610
613
|
user-select: none;
|
|
611
614
|
}
|
|
612
615
|
}
|
|
616
|
+
&.drag--range {
|
|
617
|
+
.vxe-cell--checkbox {
|
|
618
|
+
user-select: none;
|
|
619
|
+
}
|
|
620
|
+
}
|
|
613
621
|
.vxe-header--column,
|
|
614
622
|
.vxe-body--column,
|
|
615
623
|
.vxe-footer--column {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|