vxe-table 3.20.7 → 3.20.8
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 +2 -1
- package/es/style.css +1 -1
- package/es/table/src/methods.js +75 -78
- package/es/table/src/table.js +10 -1
- package/es/table/src/util.js +6 -0
- package/es/table/style.css +18 -48
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +19 -20
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +18 -48
- package/lib/index.common.js +2 -1
- package/lib/index.umd.js +1912 -3228
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/methods.js +12 -10
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +9 -1
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +6 -0
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +18 -48
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/dom.js +21 -20
- 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/v-x-e-table/index.js +2 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/vxe-colgroup/index.js +2 -1
- package/lib/vxe-colgroup/index.min.js +1 -1
- package/lib/vxe-column/index.js +2 -1
- package/lib/vxe-column/index.min.js +1 -1
- package/lib/vxe-grid/index.js +2 -1
- package/lib/vxe-grid/index.min.js +1 -1
- package/lib/vxe-table/index.js +2 -1
- package/lib/vxe-table/index.min.js +1 -1
- package/lib/vxe-table/style/style.css +18 -48
- package/lib/vxe-toolbar/index.js +2 -1
- package/lib/vxe-toolbar/index.min.js +1 -1
- package/lib/vxe-ui/index.js +2 -1
- package/lib/vxe-ui/index.min.js +1 -1
- package/lib/vxe-v-x-e-table/index.js +2 -1
- 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 +12936 -12939
- package/packages/table/src/props.ts +311 -311
- package/packages/table/src/store.ts +15 -15
- package/packages/table/src/table.ts +2513 -2505
- package/packages/table/src/util.ts +1018 -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 +237 -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.1773991883171.ttf → iconfont.1774240303597.ttf} +0 -0
- /package/es/{iconfont.1773991883171.woff → iconfont.1774240303597.woff} +0 -0
- /package/es/{iconfont.1773991883171.woff2 → iconfont.1774240303597.woff2} +0 -0
- /package/lib/{iconfont.1773991883171.ttf → iconfont.1774240303597.ttf} +0 -0
- /package/lib/{iconfont.1773991883171.woff → iconfont.1774240303597.woff} +0 -0
- /package/lib/{iconfont.1773991883171.woff2 → iconfont.1774240303597.woff2} +0 -0
package/package.json
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "vxe-table",
|
|
3
|
-
"version": "3.20.
|
|
4
|
-
"description": "A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"update": "npm install --legacy-peer-deps",
|
|
7
|
-
"serve": "vue-cli-service serve",
|
|
8
|
-
"lint": "vue-cli-service lint",
|
|
9
|
-
"build": "vue-cli-service build",
|
|
10
|
-
"lib:modules": "gulp build",
|
|
11
|
-
"lib:pack": "vue-cli-service build --target lib --name index --dest lib_temp index.ts",
|
|
12
|
-
"lib": "npm run lib:pack && npm run lib:modules",
|
|
13
|
-
"format": "eslint --fix examples/**/*.{js,ts,vue}"
|
|
14
|
-
},
|
|
15
|
-
"files": [
|
|
16
|
-
"lib",
|
|
17
|
-
"es",
|
|
18
|
-
"src",
|
|
19
|
-
"helper",
|
|
20
|
-
"types",
|
|
21
|
-
"styles",
|
|
22
|
-
"packages"
|
|
23
|
-
],
|
|
24
|
-
"main": "lib/index.common.js",
|
|
25
|
-
"module": "es/index.esm.js",
|
|
26
|
-
"unpkg": "lib/index.umd.js",
|
|
27
|
-
"jsdelivr": "lib/index.umd.js",
|
|
28
|
-
"style": "lib/style.css",
|
|
29
|
-
"typings": "types/index.d.ts",
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"vxe-pc-ui": "^3.13.0"
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@babel/plugin-transform-modules-commonjs": "^7.25.7",
|
|
35
|
-
"@types/resize-observer-browser": "^0.1.11",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
37
|
-
"@typescript-eslint/parser": "^6.21.0",
|
|
38
|
-
"@vue/cli-plugin-babel": "~5.0.0",
|
|
39
|
-
"@vue/cli-plugin-eslint": "~5.0.0",
|
|
40
|
-
"@vue/cli-plugin-router": "~5.0.0",
|
|
41
|
-
"@vue/cli-plugin-typescript": "~5.0.0",
|
|
42
|
-
"@vue/cli-plugin-vuex": "~5.0.0",
|
|
43
|
-
"@vue/cli-service": "~5.0.0",
|
|
44
|
-
"@vue/eslint-config-standard": "^6.1.0",
|
|
45
|
-
"@vue/eslint-config-typescript": "^9.1.0",
|
|
46
|
-
"core-js": "^3.8.3",
|
|
47
|
-
"del": "^6.1.1",
|
|
48
|
-
"eslint": "^7.32.0",
|
|
49
|
-
"eslint-plugin-import": "^2.29.1",
|
|
50
|
-
"eslint-plugin-node": "^11.1.0",
|
|
51
|
-
"eslint-plugin-promise": "^6.1.1",
|
|
52
|
-
"eslint-plugin-vue": "^8.0.3",
|
|
53
|
-
"gulp": "^4.0.2",
|
|
54
|
-
"gulp-autoprefixer": "^8.0.0",
|
|
55
|
-
"gulp-babel": "^8.0.0",
|
|
56
|
-
"gulp-clean-css": "^4.3.0",
|
|
57
|
-
"gulp-concat": "^2.6.1",
|
|
58
|
-
"gulp-rename": "^2.0.0",
|
|
59
|
-
"gulp-replace": "^1.1.4",
|
|
60
|
-
"gulp-sass": "^5.1.0",
|
|
61
|
-
"gulp-sourcemaps": "^3.0.0",
|
|
62
|
-
"gulp-typescript": "^5.0.1",
|
|
63
|
-
"gulp-uglify": "^3.0.2",
|
|
64
|
-
"sass": "^1.80.4",
|
|
65
|
-
"sass-loader": "^14.2.1",
|
|
66
|
-
"typescript": "~4.5.5",
|
|
67
|
-
"vue": "~2.6.14",
|
|
68
|
-
"vue-i18n": "^8.15.1",
|
|
69
|
-
"vue-router": "^3.5.1",
|
|
70
|
-
"vue-template-compiler": "2.6.14"
|
|
71
|
-
},
|
|
72
|
-
"vetur": {
|
|
73
|
-
"tags": "helper/vetur/tags.json",
|
|
74
|
-
"attributes": "helper/vetur/attributes.json"
|
|
75
|
-
},
|
|
76
|
-
"repository": {
|
|
77
|
-
"type": "git",
|
|
78
|
-
"url": "git+https://github.com/x-extends/vxe-table.git"
|
|
79
|
-
},
|
|
80
|
-
"keywords": [
|
|
81
|
-
"vxe",
|
|
82
|
-
"vxe-ui",
|
|
83
|
-
"vxe-table"
|
|
84
|
-
],
|
|
85
|
-
"author": {
|
|
86
|
-
"name": "Xu Liangzhan",
|
|
87
|
-
"email": "xu_liangzhan@163.com"
|
|
88
|
-
},
|
|
89
|
-
"license": "MIT",
|
|
90
|
-
"bugs": {
|
|
91
|
-
"url": "https://github.com/x-extends/vxe-table/issues"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "vxe-table",
|
|
3
|
+
"version": "3.20.8",
|
|
4
|
+
"description": "A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"update": "npm install --legacy-peer-deps",
|
|
7
|
+
"serve": "vue-cli-service serve",
|
|
8
|
+
"lint": "vue-cli-service lint",
|
|
9
|
+
"build": "vue-cli-service build",
|
|
10
|
+
"lib:modules": "gulp build",
|
|
11
|
+
"lib:pack": "vue-cli-service build --target lib --name index --dest lib_temp index.ts",
|
|
12
|
+
"lib": "npm run lib:pack && npm run lib:modules",
|
|
13
|
+
"format": "eslint --fix examples/**/*.{js,ts,vue}"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"lib",
|
|
17
|
+
"es",
|
|
18
|
+
"src",
|
|
19
|
+
"helper",
|
|
20
|
+
"types",
|
|
21
|
+
"styles",
|
|
22
|
+
"packages"
|
|
23
|
+
],
|
|
24
|
+
"main": "lib/index.common.js",
|
|
25
|
+
"module": "es/index.esm.js",
|
|
26
|
+
"unpkg": "lib/index.umd.js",
|
|
27
|
+
"jsdelivr": "lib/index.umd.js",
|
|
28
|
+
"style": "lib/style.css",
|
|
29
|
+
"typings": "types/index.d.ts",
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"vxe-pc-ui": "^3.13.0"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@babel/plugin-transform-modules-commonjs": "^7.25.7",
|
|
35
|
+
"@types/resize-observer-browser": "^0.1.11",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
37
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
38
|
+
"@vue/cli-plugin-babel": "~5.0.0",
|
|
39
|
+
"@vue/cli-plugin-eslint": "~5.0.0",
|
|
40
|
+
"@vue/cli-plugin-router": "~5.0.0",
|
|
41
|
+
"@vue/cli-plugin-typescript": "~5.0.0",
|
|
42
|
+
"@vue/cli-plugin-vuex": "~5.0.0",
|
|
43
|
+
"@vue/cli-service": "~5.0.0",
|
|
44
|
+
"@vue/eslint-config-standard": "^6.1.0",
|
|
45
|
+
"@vue/eslint-config-typescript": "^9.1.0",
|
|
46
|
+
"core-js": "^3.8.3",
|
|
47
|
+
"del": "^6.1.1",
|
|
48
|
+
"eslint": "^7.32.0",
|
|
49
|
+
"eslint-plugin-import": "^2.29.1",
|
|
50
|
+
"eslint-plugin-node": "^11.1.0",
|
|
51
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
52
|
+
"eslint-plugin-vue": "^8.0.3",
|
|
53
|
+
"gulp": "^4.0.2",
|
|
54
|
+
"gulp-autoprefixer": "^8.0.0",
|
|
55
|
+
"gulp-babel": "^8.0.0",
|
|
56
|
+
"gulp-clean-css": "^4.3.0",
|
|
57
|
+
"gulp-concat": "^2.6.1",
|
|
58
|
+
"gulp-rename": "^2.0.0",
|
|
59
|
+
"gulp-replace": "^1.1.4",
|
|
60
|
+
"gulp-sass": "^5.1.0",
|
|
61
|
+
"gulp-sourcemaps": "^3.0.0",
|
|
62
|
+
"gulp-typescript": "^5.0.1",
|
|
63
|
+
"gulp-uglify": "^3.0.2",
|
|
64
|
+
"sass": "^1.80.4",
|
|
65
|
+
"sass-loader": "^14.2.1",
|
|
66
|
+
"typescript": "~4.5.5",
|
|
67
|
+
"vue": "~2.6.14",
|
|
68
|
+
"vue-i18n": "^8.15.1",
|
|
69
|
+
"vue-router": "^3.5.1",
|
|
70
|
+
"vue-template-compiler": "2.6.14"
|
|
71
|
+
},
|
|
72
|
+
"vetur": {
|
|
73
|
+
"tags": "helper/vetur/tags.json",
|
|
74
|
+
"attributes": "helper/vetur/attributes.json"
|
|
75
|
+
},
|
|
76
|
+
"repository": {
|
|
77
|
+
"type": "git",
|
|
78
|
+
"url": "git+https://github.com/x-extends/vxe-table.git"
|
|
79
|
+
},
|
|
80
|
+
"keywords": [
|
|
81
|
+
"vxe",
|
|
82
|
+
"vxe-ui",
|
|
83
|
+
"vxe-table"
|
|
84
|
+
],
|
|
85
|
+
"author": {
|
|
86
|
+
"name": "Xu Liangzhan",
|
|
87
|
+
"email": "xu_liangzhan@163.com"
|
|
88
|
+
},
|
|
89
|
+
"license": "MIT",
|
|
90
|
+
"bugs": {
|
|
91
|
+
"url": "https://github.com/x-extends/vxe-table/issues"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -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
|