vxe-table 3.20.5 → 3.20.6
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/LICENSE +20 -20
- package/README.md +106 -106
- package/es/index.esm.js +1 -2
- package/es/style.css +1 -1
- package/es/table/src/methods.js +20 -0
- package/es/table/src/table.js +36 -0
- package/es/table/src/util.js +3 -4
- package/es/table/style.css +48 -18
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +48 -18
- package/lib/index.common.js +1 -2
- package/lib/index.umd.js +3251 -1876
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +2 -1
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +44 -0
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +4 -6
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +48 -18
- 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/v-x-e-table/index.js +1 -2
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/vxe-colgroup/index.js +1 -2
- package/lib/vxe-colgroup/index.min.js +1 -1
- package/lib/vxe-column/index.js +1 -2
- package/lib/vxe-column/index.min.js +1 -1
- package/lib/vxe-grid/index.js +1 -2
- package/lib/vxe-grid/index.min.js +1 -1
- package/lib/vxe-table/index.js +1 -2
- package/lib/vxe-table/index.min.js +1 -1
- package/lib/vxe-table/style/style.css +48 -18
- package/lib/vxe-toolbar/index.js +1 -2
- package/lib/vxe-toolbar/index.min.js +1 -1
- package/lib/vxe-ui/index.js +1 -2
- package/lib/vxe-ui/index.min.js +1 -1
- package/lib/vxe-v-x-e-table/index.js +1 -2
- package/lib/vxe-v-x-e-table/index.min.js +1 -1
- package/package.json +93 -93
- package/packages/colgroup/index.ts +22 -22
- package/packages/column/index.ts +22 -22
- package/packages/components.ts +42 -42
- package/packages/grid/index.ts +22 -22
- package/packages/grid/src/grid.ts +1935 -1935
- package/packages/index.ts +4 -4
- package/packages/locale/lang/ar-EG.ts +832 -832
- package/packages/locale/lang/de-DE.ts +832 -832
- package/packages/locale/lang/en-US.ts +832 -832
- package/packages/locale/lang/es-ES.ts +832 -832
- package/packages/locale/lang/fr-FR.ts +832 -832
- package/packages/locale/lang/hu-HU.ts +832 -832
- package/packages/locale/lang/hy-AM.ts +832 -832
- package/packages/locale/lang/id-ID.ts +832 -832
- package/packages/locale/lang/it-IT.ts +832 -832
- package/packages/locale/lang/ja-JP.ts +832 -832
- package/packages/locale/lang/ko-KR.ts +832 -832
- package/packages/locale/lang/ms-MY.ts +832 -832
- package/packages/locale/lang/nb-NO.ts +832 -832
- package/packages/locale/lang/pt-BR.ts +832 -832
- package/packages/locale/lang/ru-RU.ts +832 -832
- package/packages/locale/lang/th-TH.ts +832 -832
- package/packages/locale/lang/ug-CN.ts +832 -832
- package/packages/locale/lang/uk-UA.ts +832 -832
- package/packages/locale/lang/uz-UZ.ts +832 -832
- package/packages/locale/lang/vi-VN.ts +832 -832
- package/packages/locale/lang/zh-CHT.ts +832 -832
- package/packages/locale/lang/zh-CN.ts +832 -832
- package/packages/locale/lang/zh-HK.ts +3 -3
- package/packages/locale/lang/zh-MO.ts +3 -3
- package/packages/locale/lang/zh-TC.ts +3 -3
- package/packages/locale/lang/zh-TW.ts +3 -3
- package/packages/table/index.ts +49 -49
- package/packages/table/module/custom/mixin.ts +369 -369
- package/packages/table/module/custom/panel.ts +1461 -1461
- package/packages/table/module/edit/mixin.ts +1123 -1123
- package/packages/table/module/export/export-panel.ts +658 -658
- package/packages/table/module/export/import-panel.ts +319 -319
- package/packages/table/module/export/mixin.ts +1693 -1693
- package/packages/table/module/export/util.ts +24 -24
- package/packages/table/module/filter/mixin.ts +507 -507
- package/packages/table/module/filter/panel.ts +329 -329
- package/packages/table/module/keyboard/mixin.ts +513 -513
- package/packages/table/module/menu/mixin.ts +329 -329
- package/packages/table/module/menu/panel.ts +212 -212
- package/packages/table/module/validator/mixin.ts +626 -626
- package/packages/table/render/index.ts +1456 -1456
- package/packages/table/src/body.ts +969 -969
- package/packages/table/src/cell.ts +1285 -1285
- package/packages/table/src/column.ts +205 -205
- package/packages/table/src/columnInfo.ts +228 -228
- package/packages/table/src/footer.ts +388 -388
- package/packages/table/src/group.ts +51 -51
- package/packages/table/src/header.ts +602 -602
- package/packages/table/src/methods.ts +12939 -12920
- package/packages/table/src/props.ts +311 -311
- package/packages/table/src/store.ts +15 -15
- package/packages/table/src/table.ts +2502 -2460
- package/packages/table/src/util.ts +1012 -1012
- package/packages/toolbar/index.ts +18 -18
- package/packages/toolbar/src/toolbar.ts +856 -856
- package/packages/ui/index.ts +530 -530
- package/packages/ui/src/anime.ts +52 -52
- package/packages/ui/src/comp.ts +3 -3
- package/packages/ui/src/dom.ts +236 -236
- package/packages/ui/src/log.ts +8 -8
- package/packages/ui/src/utils.ts +56 -56
- package/packages/ui/src/vn.ts +65 -65
- package/packages/v-x-e-table/index.ts +4 -4
- package/styles/all.scss +7 -7
- package/styles/base.scss +16 -16
- package/styles/components/grid.scss +89 -89
- package/styles/components/icon.scss +225 -225
- package/styles/components/old-icon.scss +715 -715
- package/styles/components/table-module/all.scss +6 -6
- package/styles/components/table-module/custom.scss +527 -527
- package/styles/components/table-module/export.scss +130 -130
- package/styles/components/table-module/filter.scss +130 -130
- package/styles/components/table-module/menu.scss +81 -81
- package/styles/components/table.scss +2679 -2679
- package/styles/components/toolbar.scss +119 -119
- package/styles/default.scss +2 -2
- package/styles/helpers/baseMixin.scss +95 -95
- package/styles/index.scss +3 -3
- package/styles/modules.scss +5 -5
- package/styles/theme/base.scss +93 -93
- package/styles/theme/dark.scss +49 -49
- package/styles/theme/light.scss +44 -44
- package/styles/variable.scss +43 -43
- package/types/all.d.ts +53 -53
- package/types/index.d.ts +4 -4
- /package/es/{iconfont.1773710661615.ttf → iconfont.1773972972913.ttf} +0 -0
- /package/es/{iconfont.1773710661615.woff → iconfont.1773972972913.woff} +0 -0
- /package/es/{iconfont.1773710661615.woff2 → iconfont.1773972972913.woff2} +0 -0
- /package/lib/{iconfont.1773710661615.ttf → iconfont.1773972972913.ttf} +0 -0
- /package/lib/{iconfont.1773710661615.woff → iconfont.1773972972913.woff} +0 -0
- /package/lib/{iconfont.1773710661615.woff2 → iconfont.1773972972913.woff2} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { VueConstructor } from 'vue'
|
|
2
|
-
import { VxeUI } from '../ui'
|
|
3
|
-
import VxeColgroupComponent from '../table/src/group'
|
|
4
|
-
|
|
5
|
-
export const VxeColgroup = Object.assign({}, VxeColgroupComponent, {
|
|
6
|
-
install (app: VueConstructor) {
|
|
7
|
-
app.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
|
|
8
|
-
// 兼容旧用法
|
|
9
|
-
app.component('VxeTableColgroup', VxeColgroupComponent)
|
|
10
|
-
}
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
if (VxeUI.dynamicApp) {
|
|
14
|
-
VxeUI.dynamicApp.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
|
|
15
|
-
// 兼容旧用法
|
|
16
|
-
VxeUI.dynamicApp.component('VxeTableColgroup', VxeColgroupComponent)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
VxeUI.component(VxeColgroupComponent)
|
|
20
|
-
|
|
21
|
-
export const Colgroup = VxeColgroup
|
|
22
|
-
export default VxeColgroup
|
|
1
|
+
import { VueConstructor } from 'vue'
|
|
2
|
+
import { VxeUI } from '../ui'
|
|
3
|
+
import VxeColgroupComponent from '../table/src/group'
|
|
4
|
+
|
|
5
|
+
export const VxeColgroup = Object.assign({}, VxeColgroupComponent, {
|
|
6
|
+
install (app: VueConstructor) {
|
|
7
|
+
app.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
|
|
8
|
+
// 兼容旧用法
|
|
9
|
+
app.component('VxeTableColgroup', VxeColgroupComponent)
|
|
10
|
+
}
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
if (VxeUI.dynamicApp) {
|
|
14
|
+
VxeUI.dynamicApp.component(VxeColgroupComponent.name as string, VxeColgroupComponent)
|
|
15
|
+
// 兼容旧用法
|
|
16
|
+
VxeUI.dynamicApp.component('VxeTableColgroup', VxeColgroupComponent)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
VxeUI.component(VxeColgroupComponent)
|
|
20
|
+
|
|
21
|
+
export const Colgroup = VxeColgroup
|
|
22
|
+
export default VxeColgroup
|
package/packages/column/index.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { VueConstructor } from 'vue'
|
|
2
|
-
import { VxeUI } from '../ui'
|
|
3
|
-
import VxeColumnComponent from '../table/src/column'
|
|
4
|
-
|
|
5
|
-
export const VxeColumn = Object.assign({}, VxeColumnComponent, {
|
|
6
|
-
install (app: VueConstructor) {
|
|
7
|
-
app.component(VxeColumnComponent.name as string, VxeColumnComponent)
|
|
8
|
-
// 兼容旧用法
|
|
9
|
-
app.component('VxeTableColumn', VxeColumnComponent)
|
|
10
|
-
}
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
if (VxeUI.dynamicApp) {
|
|
14
|
-
VxeUI.dynamicApp.component(VxeColumnComponent.name as string, VxeColumnComponent)
|
|
15
|
-
// 兼容旧用法
|
|
16
|
-
VxeUI.dynamicApp.component('VxeTableColumn', VxeColumnComponent)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
VxeUI.component(VxeColumnComponent)
|
|
20
|
-
|
|
21
|
-
export const Column = VxeColumn
|
|
22
|
-
export default VxeColumn
|
|
1
|
+
import { VueConstructor } from 'vue'
|
|
2
|
+
import { VxeUI } from '../ui'
|
|
3
|
+
import VxeColumnComponent from '../table/src/column'
|
|
4
|
+
|
|
5
|
+
export const VxeColumn = Object.assign({}, VxeColumnComponent, {
|
|
6
|
+
install (app: VueConstructor) {
|
|
7
|
+
app.component(VxeColumnComponent.name as string, VxeColumnComponent)
|
|
8
|
+
// 兼容旧用法
|
|
9
|
+
app.component('VxeTableColumn', VxeColumnComponent)
|
|
10
|
+
}
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
if (VxeUI.dynamicApp) {
|
|
14
|
+
VxeUI.dynamicApp.component(VxeColumnComponent.name as string, VxeColumnComponent)
|
|
15
|
+
// 兼容旧用法
|
|
16
|
+
VxeUI.dynamicApp.component('VxeTableColumn', VxeColumnComponent)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
VxeUI.component(VxeColumnComponent)
|
|
20
|
+
|
|
21
|
+
export const Column = VxeColumn
|
|
22
|
+
export default VxeColumn
|
package/packages/components.ts
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { VxeUI } from './ui'
|
|
2
|
-
|
|
3
|
-
import { VxeColumn } from './column'
|
|
4
|
-
import { VxeColgroup } from './colgroup'
|
|
5
|
-
import { VxeGrid } from './grid'
|
|
6
|
-
import { VxeTable } from './table'
|
|
7
|
-
import { VxeToolbar } from './toolbar'
|
|
8
|
-
|
|
9
|
-
import zhCN from './locale/lang/zh-CN'
|
|
10
|
-
|
|
11
|
-
import type { VxeGlobalConfig } from '../types'
|
|
12
|
-
|
|
13
|
-
const components = [
|
|
14
|
-
VxeColumn,
|
|
15
|
-
VxeColgroup,
|
|
16
|
-
VxeGrid,
|
|
17
|
-
VxeTable,
|
|
18
|
-
VxeToolbar
|
|
19
|
-
]
|
|
20
|
-
|
|
21
|
-
// 默认安装
|
|
22
|
-
export function install (app: any, options?: VxeGlobalConfig) {
|
|
23
|
-
VxeUI.setConfig(options)
|
|
24
|
-
components.forEach(component => component.install(app))
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// 保留兼容老版本
|
|
28
|
-
if (!VxeUI.hasLanguage('zh-CN')) {
|
|
29
|
-
const defaultLanguage = 'zh-CN'
|
|
30
|
-
VxeUI.setI18n(defaultLanguage, zhCN)
|
|
31
|
-
VxeUI.setLanguage(defaultLanguage)
|
|
32
|
-
}
|
|
33
|
-
VxeUI.setTheme('light')
|
|
34
|
-
|
|
35
|
-
export * from './ui'
|
|
36
|
-
|
|
37
|
-
// Components
|
|
38
|
-
export * from './table'
|
|
39
|
-
export * from './column'
|
|
40
|
-
export * from './colgroup'
|
|
41
|
-
export * from './grid'
|
|
42
|
-
export * from './toolbar'
|
|
1
|
+
import { VxeUI } from './ui'
|
|
2
|
+
|
|
3
|
+
import { VxeColumn } from './column'
|
|
4
|
+
import { VxeColgroup } from './colgroup'
|
|
5
|
+
import { VxeGrid } from './grid'
|
|
6
|
+
import { VxeTable } from './table'
|
|
7
|
+
import { VxeToolbar } from './toolbar'
|
|
8
|
+
|
|
9
|
+
import zhCN from './locale/lang/zh-CN'
|
|
10
|
+
|
|
11
|
+
import type { VxeGlobalConfig } from '../types'
|
|
12
|
+
|
|
13
|
+
const components = [
|
|
14
|
+
VxeColumn,
|
|
15
|
+
VxeColgroup,
|
|
16
|
+
VxeGrid,
|
|
17
|
+
VxeTable,
|
|
18
|
+
VxeToolbar
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
// 默认安装
|
|
22
|
+
export function install (app: any, options?: VxeGlobalConfig) {
|
|
23
|
+
VxeUI.setConfig(options)
|
|
24
|
+
components.forEach(component => component.install(app))
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// 保留兼容老版本
|
|
28
|
+
if (!VxeUI.hasLanguage('zh-CN')) {
|
|
29
|
+
const defaultLanguage = 'zh-CN'
|
|
30
|
+
VxeUI.setI18n(defaultLanguage, zhCN)
|
|
31
|
+
VxeUI.setLanguage(defaultLanguage)
|
|
32
|
+
}
|
|
33
|
+
VxeUI.setTheme('light')
|
|
34
|
+
|
|
35
|
+
export * from './ui'
|
|
36
|
+
|
|
37
|
+
// Components
|
|
38
|
+
export * from './table'
|
|
39
|
+
export * from './column'
|
|
40
|
+
export * from './colgroup'
|
|
41
|
+
export * from './grid'
|
|
42
|
+
export * from './toolbar'
|
package/packages/grid/index.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { VueConstructor } from 'vue'
|
|
2
|
-
import { VxeUI } from '../ui'
|
|
3
|
-
import VxeGridComponent from './src/grid'
|
|
4
|
-
|
|
5
|
-
let isReg = false
|
|
6
|
-
|
|
7
|
-
export const VxeGrid = Object.assign({}, VxeGridComponent, {
|
|
8
|
-
install (app: VueConstructor) {
|
|
9
|
-
if (!isReg) {
|
|
10
|
-
isReg = true
|
|
11
|
-
if (VxeUI.dynamicApp) {
|
|
12
|
-
VxeUI.dynamicApp.component(VxeGridComponent.name as string, VxeGridComponent)
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
app.component(VxeGridComponent.name as string, VxeGridComponent)
|
|
16
|
-
}
|
|
17
|
-
})
|
|
18
|
-
|
|
19
|
-
VxeUI.component(VxeGridComponent)
|
|
20
|
-
|
|
21
|
-
export const Grid = VxeGrid
|
|
22
|
-
export default VxeGrid
|
|
1
|
+
import { VueConstructor } from 'vue'
|
|
2
|
+
import { VxeUI } from '../ui'
|
|
3
|
+
import VxeGridComponent from './src/grid'
|
|
4
|
+
|
|
5
|
+
let isReg = false
|
|
6
|
+
|
|
7
|
+
export const VxeGrid = Object.assign({}, VxeGridComponent, {
|
|
8
|
+
install (app: VueConstructor) {
|
|
9
|
+
if (!isReg) {
|
|
10
|
+
isReg = true
|
|
11
|
+
if (VxeUI.dynamicApp) {
|
|
12
|
+
VxeUI.dynamicApp.component(VxeGridComponent.name as string, VxeGridComponent)
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
app.component(VxeGridComponent.name as string, VxeGridComponent)
|
|
16
|
+
}
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
VxeUI.component(VxeGridComponent)
|
|
20
|
+
|
|
21
|
+
export const Grid = VxeGrid
|
|
22
|
+
export default VxeGrid
|