vxe-table 4.19.0-beta.3 → 4.19.0-beta.4

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.
Files changed (200) hide show
  1. package/LICENSE +20 -20
  2. package/README.en.md +118 -118
  3. package/README.ja-JP.md +117 -117
  4. package/README.md +268 -268
  5. package/README.zh-TW.md +117 -117
  6. package/es/locale/lang/ar-EG.js +4 -0
  7. package/es/locale/lang/de-DE.js +4 -0
  8. package/es/locale/lang/en-US.js +4 -0
  9. package/es/locale/lang/es-ES.js +4 -0
  10. package/es/locale/lang/fr-FR.js +4 -0
  11. package/es/locale/lang/hu-HU.js +4 -0
  12. package/es/locale/lang/hy-AM.js +4 -0
  13. package/es/locale/lang/id-ID.js +4 -0
  14. package/es/locale/lang/it-IT.js +4 -0
  15. package/es/locale/lang/ja-JP.js +4 -0
  16. package/es/locale/lang/ko-KR.js +4 -0
  17. package/es/locale/lang/ms-MY.js +4 -0
  18. package/es/locale/lang/nb-NO.js +4 -0
  19. package/es/locale/lang/pt-BR.js +4 -0
  20. package/es/locale/lang/ru-RU.js +4 -0
  21. package/es/locale/lang/th-TH.js +4 -0
  22. package/es/locale/lang/ug-CN.js +4 -0
  23. package/es/locale/lang/uk-UA.js +4 -0
  24. package/es/locale/lang/uz-UZ.js +4 -0
  25. package/es/locale/lang/vi-VN.js +4 -0
  26. package/es/locale/lang/zh-CHT.js +4 -0
  27. package/es/locale/lang/zh-CN.js +4 -0
  28. package/es/style.css +1 -1
  29. package/lib/index.umd.js +2852 -2764
  30. package/lib/index.umd.min.js +1 -1
  31. package/lib/locale/lang/ar-EG.js +4 -0
  32. package/lib/locale/lang/ar-EG.min.js +1 -1
  33. package/lib/locale/lang/ar-EG.umd.js +4 -0
  34. package/lib/locale/lang/de-DE.js +4 -0
  35. package/lib/locale/lang/de-DE.min.js +1 -1
  36. package/lib/locale/lang/de-DE.umd.js +4 -0
  37. package/lib/locale/lang/en-US.js +4 -0
  38. package/lib/locale/lang/en-US.min.js +1 -1
  39. package/lib/locale/lang/en-US.umd.js +4 -0
  40. package/lib/locale/lang/es-ES.js +4 -0
  41. package/lib/locale/lang/es-ES.min.js +1 -1
  42. package/lib/locale/lang/es-ES.umd.js +4 -0
  43. package/lib/locale/lang/fr-FR.js +4 -0
  44. package/lib/locale/lang/fr-FR.min.js +1 -1
  45. package/lib/locale/lang/fr-FR.umd.js +4 -0
  46. package/lib/locale/lang/hu-HU.js +4 -0
  47. package/lib/locale/lang/hu-HU.min.js +1 -1
  48. package/lib/locale/lang/hu-HU.umd.js +4 -0
  49. package/lib/locale/lang/hy-AM.js +4 -0
  50. package/lib/locale/lang/hy-AM.min.js +1 -1
  51. package/lib/locale/lang/hy-AM.umd.js +4 -0
  52. package/lib/locale/lang/id-ID.js +4 -0
  53. package/lib/locale/lang/id-ID.min.js +1 -1
  54. package/lib/locale/lang/id-ID.umd.js +4 -0
  55. package/lib/locale/lang/it-IT.js +4 -0
  56. package/lib/locale/lang/it-IT.min.js +1 -1
  57. package/lib/locale/lang/it-IT.umd.js +4 -0
  58. package/lib/locale/lang/ja-JP.js +4 -0
  59. package/lib/locale/lang/ja-JP.min.js +1 -1
  60. package/lib/locale/lang/ja-JP.umd.js +4 -0
  61. package/lib/locale/lang/ko-KR.js +4 -0
  62. package/lib/locale/lang/ko-KR.min.js +1 -1
  63. package/lib/locale/lang/ko-KR.umd.js +4 -0
  64. package/lib/locale/lang/ms-MY.js +4 -0
  65. package/lib/locale/lang/ms-MY.min.js +1 -1
  66. package/lib/locale/lang/ms-MY.umd.js +4 -0
  67. package/lib/locale/lang/nb-NO.js +4 -0
  68. package/lib/locale/lang/nb-NO.min.js +1 -1
  69. package/lib/locale/lang/nb-NO.umd.js +4 -0
  70. package/lib/locale/lang/pt-BR.js +4 -0
  71. package/lib/locale/lang/pt-BR.min.js +1 -1
  72. package/lib/locale/lang/pt-BR.umd.js +4 -0
  73. package/lib/locale/lang/ru-RU.js +4 -0
  74. package/lib/locale/lang/ru-RU.min.js +1 -1
  75. package/lib/locale/lang/ru-RU.umd.js +4 -0
  76. package/lib/locale/lang/th-TH.js +4 -0
  77. package/lib/locale/lang/th-TH.min.js +1 -1
  78. package/lib/locale/lang/th-TH.umd.js +4 -0
  79. package/lib/locale/lang/ug-CN.js +4 -0
  80. package/lib/locale/lang/ug-CN.min.js +1 -1
  81. package/lib/locale/lang/ug-CN.umd.js +4 -0
  82. package/lib/locale/lang/uk-UA.js +4 -0
  83. package/lib/locale/lang/uk-UA.min.js +1 -1
  84. package/lib/locale/lang/uk-UA.umd.js +4 -0
  85. package/lib/locale/lang/uz-UZ.js +4 -0
  86. package/lib/locale/lang/uz-UZ.min.js +1 -1
  87. package/lib/locale/lang/uz-UZ.umd.js +4 -0
  88. package/lib/locale/lang/vi-VN.js +4 -0
  89. package/lib/locale/lang/vi-VN.min.js +1 -1
  90. package/lib/locale/lang/vi-VN.umd.js +4 -0
  91. package/lib/locale/lang/zh-CHT.js +4 -0
  92. package/lib/locale/lang/zh-CHT.min.js +1 -1
  93. package/lib/locale/lang/zh-CHT.umd.js +4 -0
  94. package/lib/locale/lang/zh-CN.js +4 -0
  95. package/lib/locale/lang/zh-CN.min.js +1 -1
  96. package/lib/locale/lang/zh-CN.umd.js +4 -0
  97. package/lib/style.css +1 -1
  98. package/package.json +92 -92
  99. package/packages/colgroup/index.ts +22 -22
  100. package/packages/column/index.ts +22 -22
  101. package/packages/components.ts +43 -43
  102. package/packages/grid/index.ts +18 -18
  103. package/packages/grid/src/emits.ts +19 -19
  104. package/packages/grid/src/grid.ts +1768 -1768
  105. package/packages/grid/src/props.ts +23 -23
  106. package/packages/index.ts +4 -4
  107. package/packages/locale/lang/ar-EG.ts +844 -840
  108. package/packages/locale/lang/de-DE.ts +844 -840
  109. package/packages/locale/lang/en-US.ts +844 -840
  110. package/packages/locale/lang/es-ES.ts +844 -840
  111. package/packages/locale/lang/fr-FR.ts +844 -840
  112. package/packages/locale/lang/hu-HU.ts +844 -840
  113. package/packages/locale/lang/hy-AM.ts +844 -840
  114. package/packages/locale/lang/id-ID.ts +844 -840
  115. package/packages/locale/lang/it-IT.ts +844 -840
  116. package/packages/locale/lang/ja-JP.ts +844 -840
  117. package/packages/locale/lang/ko-KR.ts +844 -840
  118. package/packages/locale/lang/ms-MY.ts +844 -840
  119. package/packages/locale/lang/nb-NO.ts +844 -840
  120. package/packages/locale/lang/pt-BR.ts +844 -840
  121. package/packages/locale/lang/ru-RU.ts +844 -840
  122. package/packages/locale/lang/th-TH.ts +844 -840
  123. package/packages/locale/lang/ug-CN.ts +844 -840
  124. package/packages/locale/lang/uk-UA.ts +844 -840
  125. package/packages/locale/lang/uz-UZ.ts +844 -840
  126. package/packages/locale/lang/vi-VN.ts +844 -840
  127. package/packages/locale/lang/zh-CHT.ts +844 -840
  128. package/packages/locale/lang/zh-CN.ts +844 -840
  129. package/packages/locale/lang/zh-HK.ts +3 -3
  130. package/packages/locale/lang/zh-MO.ts +3 -3
  131. package/packages/locale/lang/zh-TC.ts +3 -3
  132. package/packages/locale/lang/zh-TW.ts +3 -3
  133. package/packages/table/index.ts +26 -26
  134. package/packages/table/module/custom/hook.ts +422 -422
  135. package/packages/table/module/custom/panel.ts +1512 -1512
  136. package/packages/table/module/edit/hook.ts +1064 -1064
  137. package/packages/table/module/export/export-panel.ts +567 -567
  138. package/packages/table/module/export/hook.ts +1654 -1654
  139. package/packages/table/module/export/import-panel.ts +266 -266
  140. package/packages/table/module/export/util.ts +24 -24
  141. package/packages/table/module/filter/hook.ts +468 -468
  142. package/packages/table/module/filter/panel.ts +301 -301
  143. package/packages/table/module/keyboard/hook.ts +494 -494
  144. package/packages/table/module/menu/hook.ts +325 -325
  145. package/packages/table/module/menu/panel.ts +201 -201
  146. package/packages/table/module/validator/hook.ts +631 -631
  147. package/packages/table/render/index.ts +1440 -1440
  148. package/packages/table/src/body.ts +935 -935
  149. package/packages/table/src/cell.ts +1290 -1290
  150. package/packages/table/src/column.ts +190 -190
  151. package/packages/table/src/columnInfo.ts +225 -225
  152. package/packages/table/src/emits.ts +125 -125
  153. package/packages/table/src/footer.ts +368 -368
  154. package/packages/table/src/group.ts +59 -59
  155. package/packages/table/src/header.ts +561 -561
  156. package/packages/table/src/props.ts +324 -324
  157. package/packages/table/src/store.ts +14 -14
  158. package/packages/table/src/table.ts +14274 -14274
  159. package/packages/table/src/use/cell-view.ts +44 -44
  160. package/packages/table/src/use/index.ts +1 -1
  161. package/packages/table/src/util.ts +1086 -1086
  162. package/packages/toolbar/index.ts +18 -18
  163. package/packages/toolbar/src/toolbar.ts +701 -701
  164. package/packages/ui/index.ts +532 -532
  165. package/packages/ui/src/anime.ts +52 -52
  166. package/packages/ui/src/comp.ts +3 -3
  167. package/packages/ui/src/dom.ts +264 -264
  168. package/packages/ui/src/log.ts +8 -8
  169. package/packages/ui/src/utils.ts +56 -56
  170. package/packages/ui/src/vn.ts +55 -55
  171. package/packages/v-x-e-table/index.d.ts +4 -4
  172. package/packages/v-x-e-table/index.ts +4 -4
  173. package/styles/all.scss +7 -7
  174. package/styles/base.scss +16 -16
  175. package/styles/components/grid.scss +89 -89
  176. package/styles/components/icon.scss +225 -225
  177. package/styles/components/old-icon.scss +715 -715
  178. package/styles/components/table-module/all.scss +6 -6
  179. package/styles/components/table-module/custom.scss +550 -550
  180. package/styles/components/table-module/export.scss +130 -130
  181. package/styles/components/table-module/filter.scss +130 -130
  182. package/styles/components/table-module/menu.scss +81 -81
  183. package/styles/components/table.scss +2679 -2679
  184. package/styles/components/toolbar.scss +119 -119
  185. package/styles/default.scss +2 -2
  186. package/styles/helpers/baseMixin.scss +95 -95
  187. package/styles/index.scss +4 -4
  188. package/styles/modules.scss +5 -5
  189. package/styles/theme/base.scss +93 -93
  190. package/styles/theme/dark.scss +49 -49
  191. package/styles/theme/light.scss +44 -44
  192. package/styles/variable.scss +43 -43
  193. package/types/all.d.ts +37 -37
  194. package/types/index.d.ts +4 -4
  195. /package/es/{iconfont.1778318183872.ttf → iconfont.1778421994938.ttf} +0 -0
  196. /package/es/{iconfont.1778318183872.woff → iconfont.1778421994938.woff} +0 -0
  197. /package/es/{iconfont.1778318183872.woff2 → iconfont.1778421994938.woff2} +0 -0
  198. /package/lib/{iconfont.1778318183872.ttf → iconfont.1778421994938.ttf} +0 -0
  199. /package/lib/{iconfont.1778318183872.woff → iconfont.1778421994938.woff} +0 -0
  200. /package/lib/{iconfont.1778318183872.woff2 → iconfont.1778421994938.woff2} +0 -0
@@ -1,56 +1,56 @@
1
- import XEUtils from 'xe-utils'
2
- import { VxeUI } from '@vxe-ui/core'
3
- import DomZIndex from 'dom-zindex'
4
-
5
- const { getConfig } = VxeUI
6
-
7
- export function isEnableConf (conf: any): boolean {
8
- return conf && conf.enabled !== false
9
- }
10
-
11
- export function isEmptyValue (cellValue: any) {
12
- return cellValue === null || cellValue === undefined || cellValue === ''
13
- }
14
-
15
- export function parseFile (file: File) {
16
- const name = file.name
17
- const tIndex = XEUtils.lastIndexOf(name, '.')
18
- const type = name.substring(tIndex + 1, name.length).toLowerCase()
19
- const filename = name.substring(0, tIndex)
20
- return { filename, type }
21
- }
22
-
23
- export function nextZIndex () {
24
- return DomZIndex.getNext()
25
- }
26
-
27
- export function getLastZIndex () {
28
- return DomZIndex.getCurrent()
29
- }
30
-
31
- export function hasChildrenList (item: any) {
32
- return item && item.children && item.children.length > 0
33
- }
34
-
35
- export function getFuncText (content?: string | number | boolean | null, args?: any) {
36
- if (XEUtils.eqNull(content)) {
37
- return ''
38
- }
39
- const translate = getConfig().translate
40
- return `${translate ? translate('' + content, args) : content}`
41
- }
42
-
43
- export function formatText (value: any, placeholder?: any) {
44
- return '' + (isEmptyValue(value) ? (placeholder ? getConfig().emptyCell : '') : value)
45
- }
46
-
47
- /**
48
- * 判断值为:'' | null | undefined 时都属于空值
49
- */
50
- export function eqEmptyValue (cellValue: any) {
51
- return cellValue === '' || XEUtils.eqNull(cellValue)
52
- }
53
-
54
- export function getDefaultConfig (val1: any, def1: any) {
55
- return XEUtils.eqNull(val1) ? def1 : val1
56
- }
1
+ import XEUtils from 'xe-utils'
2
+ import { VxeUI } from '@vxe-ui/core'
3
+ import DomZIndex from 'dom-zindex'
4
+
5
+ const { getConfig } = VxeUI
6
+
7
+ export function isEnableConf (conf: any): boolean {
8
+ return conf && conf.enabled !== false
9
+ }
10
+
11
+ export function isEmptyValue (cellValue: any) {
12
+ return cellValue === null || cellValue === undefined || cellValue === ''
13
+ }
14
+
15
+ export function parseFile (file: File) {
16
+ const name = file.name
17
+ const tIndex = XEUtils.lastIndexOf(name, '.')
18
+ const type = name.substring(tIndex + 1, name.length).toLowerCase()
19
+ const filename = name.substring(0, tIndex)
20
+ return { filename, type }
21
+ }
22
+
23
+ export function nextZIndex () {
24
+ return DomZIndex.getNext()
25
+ }
26
+
27
+ export function getLastZIndex () {
28
+ return DomZIndex.getCurrent()
29
+ }
30
+
31
+ export function hasChildrenList (item: any) {
32
+ return item && item.children && item.children.length > 0
33
+ }
34
+
35
+ export function getFuncText (content?: string | number | boolean | null, args?: any) {
36
+ if (XEUtils.eqNull(content)) {
37
+ return ''
38
+ }
39
+ const translate = getConfig().translate
40
+ return `${translate ? translate('' + content, args) : content}`
41
+ }
42
+
43
+ export function formatText (value: any, placeholder?: any) {
44
+ return '' + (isEmptyValue(value) ? (placeholder ? getConfig().emptyCell : '') : value)
45
+ }
46
+
47
+ /**
48
+ * 判断值为:'' | null | undefined 时都属于空值
49
+ */
50
+ export function eqEmptyValue (cellValue: any) {
51
+ return cellValue === '' || XEUtils.eqNull(cellValue)
52
+ }
53
+
54
+ export function getDefaultConfig (val1: any, def1: any) {
55
+ return XEUtils.eqNull(val1) ? def1 : val1
56
+ }
@@ -1,55 +1,55 @@
1
- import XEUtils from 'xe-utils'
2
-
3
- import type { VxeGlobalRendererHandles } from 'vxe-pc-ui'
4
- import type { VxeComponentSlotType } from '../../../types'
5
-
6
- export function getOnName (type: string) {
7
- return 'on' + type.substring(0, 1).toLocaleUpperCase() + type.substring(1)
8
- }
9
-
10
- export function getModelEvent (renderOpts: VxeGlobalRendererHandles.RenderOptions) {
11
- switch (renderOpts.name) {
12
- case 'input':
13
- case 'textarea':
14
- return 'input'
15
- case 'select':
16
- return 'change'
17
- }
18
- return 'update:modelValue'
19
- }
20
-
21
- export function getChangeEvent (renderOpts: VxeGlobalRendererHandles.RenderOptions) {
22
- switch (renderOpts.name) {
23
- case 'input':
24
- case 'textarea':
25
- case 'VxeInput':
26
- case 'VxeNumberInput':
27
- case 'VxeTextarea':
28
- case '$input':
29
- case '$textarea':
30
- return 'input'
31
- }
32
- return 'change'
33
- }
34
-
35
- export function hasInputType (renderOpts: VxeGlobalRendererHandles.RenderOptions) {
36
- switch (renderOpts.name) {
37
- case 'VxeInput':
38
- case 'VxeNumberInput':
39
- case 'VxeTextarea':
40
- case '$input':
41
- case '$textarea':
42
- return true
43
- }
44
- return false
45
- }
46
-
47
- export function getSlotVNs (vns: VxeComponentSlotType | VxeComponentSlotType[]) {
48
- if (vns === null || vns === undefined) {
49
- return []
50
- }
51
- if (XEUtils.isArray(vns)) {
52
- return vns
53
- }
54
- return [vns]
55
- }
1
+ import XEUtils from 'xe-utils'
2
+
3
+ import type { VxeGlobalRendererHandles } from 'vxe-pc-ui'
4
+ import type { VxeComponentSlotType } from '../../../types'
5
+
6
+ export function getOnName (type: string) {
7
+ return 'on' + type.substring(0, 1).toLocaleUpperCase() + type.substring(1)
8
+ }
9
+
10
+ export function getModelEvent (renderOpts: VxeGlobalRendererHandles.RenderOptions) {
11
+ switch (renderOpts.name) {
12
+ case 'input':
13
+ case 'textarea':
14
+ return 'input'
15
+ case 'select':
16
+ return 'change'
17
+ }
18
+ return 'update:modelValue'
19
+ }
20
+
21
+ export function getChangeEvent (renderOpts: VxeGlobalRendererHandles.RenderOptions) {
22
+ switch (renderOpts.name) {
23
+ case 'input':
24
+ case 'textarea':
25
+ case 'VxeInput':
26
+ case 'VxeNumberInput':
27
+ case 'VxeTextarea':
28
+ case '$input':
29
+ case '$textarea':
30
+ return 'input'
31
+ }
32
+ return 'change'
33
+ }
34
+
35
+ export function hasInputType (renderOpts: VxeGlobalRendererHandles.RenderOptions) {
36
+ switch (renderOpts.name) {
37
+ case 'VxeInput':
38
+ case 'VxeNumberInput':
39
+ case 'VxeTextarea':
40
+ case '$input':
41
+ case '$textarea':
42
+ return true
43
+ }
44
+ return false
45
+ }
46
+
47
+ export function getSlotVNs (vns: VxeComponentSlotType | VxeComponentSlotType[]) {
48
+ if (vns === null || vns === undefined) {
49
+ return []
50
+ }
51
+ if (XEUtils.isArray(vns)) {
52
+ return vns
53
+ }
54
+ return [vns]
55
+ }
@@ -1,4 +1,4 @@
1
- import VxeUI from '../ui'
2
-
3
- export * from '../ui'
4
- export default VxeUI
1
+ import VxeUI from '../ui'
2
+
3
+ export * from '../ui'
4
+ export default VxeUI
@@ -1,4 +1,4 @@
1
- import VxeUI from '../ui'
2
-
3
- export * from '../ui'
4
- export default VxeUI
1
+ import VxeUI from '../ui'
2
+
3
+ export * from '../ui'
4
+ export default VxeUI
package/styles/all.scss CHANGED
@@ -1,7 +1,7 @@
1
- @use './base.scss';
2
-
3
- @use './components/column.scss';
4
- @use './components/colgroup.scss';
5
- @use './components/table.scss';
6
- @use './components/grid.scss';
7
- @use './components/toolbar.scss';
1
+ @use './base.scss';
2
+
3
+ @use './components/column.scss';
4
+ @use './components/colgroup.scss';
5
+ @use './components/table.scss';
6
+ @use './components/grid.scss';
7
+ @use './components/toolbar.scss';
package/styles/base.scss CHANGED
@@ -1,16 +1,16 @@
1
- @use './theme/light.scss';
2
- @use './theme/dark.scss';
3
-
4
- %boxSizing {
5
- box-sizing: border-box;
6
- }
7
-
8
- [class*="vxe-"] {
9
- font-variant: tabular-nums;
10
- font-feature-settings: 'tnum';
11
- @extend %boxSizing;
12
- &:after, &:before,
13
- *:after, *:before {
14
- @extend %boxSizing;
15
- }
16
- }
1
+ @use './theme/light.scss';
2
+ @use './theme/dark.scss';
3
+
4
+ %boxSizing {
5
+ box-sizing: border-box;
6
+ }
7
+
8
+ [class*="vxe-"] {
9
+ font-variant: tabular-nums;
10
+ font-feature-settings: 'tnum';
11
+ @extend %boxSizing;
12
+ &:after, &:before,
13
+ *:after, *:before {
14
+ @extend %boxSizing;
15
+ }
16
+ }
@@ -1,89 +1,89 @@
1
- .vxe-grid {
2
- position: relative;
3
- display: flex;
4
- flex-direction: column;
5
- &.is--loading {
6
- &:before {
7
- content: "";
8
- position: absolute;
9
- top: 0;
10
- left: 0;
11
- width: 100%;
12
- height: 100%;
13
- z-index: 99;
14
- user-select: none;
15
- background-color: var(--vxe-ui-loading-background-color);
16
- }
17
- & > .vxe-table {
18
- .vxe-loading {
19
- background-color: transparent;
20
- }
21
- }
22
- }
23
- &.is--maximize {
24
- position: fixed;
25
- top: 0;
26
- left: 0;
27
- width: 100%;
28
- height: 100%;
29
- padding: 0.5em 1em;
30
- background-color: var(--vxe-ui-layout-background-color);
31
- }
32
- .vxe-grid--form-wrapper,
33
- .vxe-grid--top-wrapper,
34
- .vxe-grid--bottom-wrapper {
35
- position: relative;
36
- }
37
- .vxe-grid--table-container {
38
- display: flex;
39
- flex-direction: row;
40
- flex-grow: 1;
41
- overflow: hidden;
42
- }
43
- .vxe-grid--left-wrapper,
44
- .vxe-grid--right-wrapper {
45
- flex-shrink: 0;
46
- overflow: auto;
47
- outline: 0;
48
- }
49
- .vxe-grid--table-wrapper {
50
- flex-grow: 1;
51
- overflow: hidden;
52
- }
53
- }
54
-
55
- .vxe-grid--layout-body-wrapper {
56
- display: flex;
57
- flex-direction: row;
58
- overflow: auto;
59
- flex-grow: 1;
60
- }
61
- .vxe-grid--layout-body-content-wrapper {
62
- display: flex;
63
- flex-direction: column;
64
- flex-grow: 1;
65
- overflow: auto;
66
- }
67
- .vxe-grid--layout-header-wrapper,
68
- .vxe-grid--layout-footer-wrapper,
69
- .vxe-grid--layout-aside-left-wrapper,
70
- .vxe-grid--layout-aside-left-wrapper {
71
- flex-shrink: 0;
72
- }
73
- .vxe-grid--layout-aside-left-wrapper,
74
- .vxe-grid--layout-aside-left-wrapper {
75
- overflow: auto;
76
- }
77
-
78
- .vxe-grid {
79
- font-size: var(--vxe-ui-font-size-default);
80
- &.size--medium {
81
- font-size: var(--vxe-ui-font-size-medium);
82
- }
83
- &.size--small {
84
- font-size: var(--vxe-ui-font-size-small);
85
- }
86
- &.size--mini {
87
- font-size: var(--vxe-ui-font-size-mini);
88
- }
89
- }
1
+ .vxe-grid {
2
+ position: relative;
3
+ display: flex;
4
+ flex-direction: column;
5
+ &.is--loading {
6
+ &:before {
7
+ content: "";
8
+ position: absolute;
9
+ top: 0;
10
+ left: 0;
11
+ width: 100%;
12
+ height: 100%;
13
+ z-index: 99;
14
+ user-select: none;
15
+ background-color: var(--vxe-ui-loading-background-color);
16
+ }
17
+ & > .vxe-table {
18
+ .vxe-loading {
19
+ background-color: transparent;
20
+ }
21
+ }
22
+ }
23
+ &.is--maximize {
24
+ position: fixed;
25
+ top: 0;
26
+ left: 0;
27
+ width: 100%;
28
+ height: 100%;
29
+ padding: 0.5em 1em;
30
+ background-color: var(--vxe-ui-layout-background-color);
31
+ }
32
+ .vxe-grid--form-wrapper,
33
+ .vxe-grid--top-wrapper,
34
+ .vxe-grid--bottom-wrapper {
35
+ position: relative;
36
+ }
37
+ .vxe-grid--table-container {
38
+ display: flex;
39
+ flex-direction: row;
40
+ flex-grow: 1;
41
+ overflow: hidden;
42
+ }
43
+ .vxe-grid--left-wrapper,
44
+ .vxe-grid--right-wrapper {
45
+ flex-shrink: 0;
46
+ overflow: auto;
47
+ outline: 0;
48
+ }
49
+ .vxe-grid--table-wrapper {
50
+ flex-grow: 1;
51
+ overflow: hidden;
52
+ }
53
+ }
54
+
55
+ .vxe-grid--layout-body-wrapper {
56
+ display: flex;
57
+ flex-direction: row;
58
+ overflow: auto;
59
+ flex-grow: 1;
60
+ }
61
+ .vxe-grid--layout-body-content-wrapper {
62
+ display: flex;
63
+ flex-direction: column;
64
+ flex-grow: 1;
65
+ overflow: auto;
66
+ }
67
+ .vxe-grid--layout-header-wrapper,
68
+ .vxe-grid--layout-footer-wrapper,
69
+ .vxe-grid--layout-aside-left-wrapper,
70
+ .vxe-grid--layout-aside-left-wrapper {
71
+ flex-shrink: 0;
72
+ }
73
+ .vxe-grid--layout-aside-left-wrapper,
74
+ .vxe-grid--layout-aside-left-wrapper {
75
+ overflow: auto;
76
+ }
77
+
78
+ .vxe-grid {
79
+ font-size: var(--vxe-ui-font-size-default);
80
+ &.size--medium {
81
+ font-size: var(--vxe-ui-font-size-medium);
82
+ }
83
+ &.size--small {
84
+ font-size: var(--vxe-ui-font-size-small);
85
+ }
86
+ &.size--mini {
87
+ font-size: var(--vxe-ui-font-size-mini);
88
+ }
89
+ }