vxe-table 4.18.7 → 4.18.9
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.en.md +118 -118
- package/README.ja-JP.md +117 -117
- package/README.md +268 -268
- package/README.zh-TW.md +117 -117
- package/es/style.css +1 -1
- package/es/table/src/table.js +101 -84
- 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 +21 -0
- 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 +2769 -2840
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/table.js +21 -18
- 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 +23 -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/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 +91 -91
- package/packages/colgroup/index.ts +22 -22
- package/packages/column/index.ts +22 -22
- package/packages/components.ts +43 -43
- package/packages/grid/index.ts +18 -18
- package/packages/grid/src/emits.ts +19 -19
- package/packages/grid/src/grid.ts +1768 -1768
- package/packages/grid/src/props.ts +23 -23
- 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 +26 -26
- package/packages/table/module/custom/hook.ts +359 -359
- package/packages/table/module/custom/panel.ts +1331 -1331
- package/packages/table/module/edit/hook.ts +1032 -1032
- package/packages/table/module/export/export-panel.ts +567 -567
- package/packages/table/module/export/hook.ts +1654 -1654
- package/packages/table/module/export/import-panel.ts +266 -266
- package/packages/table/module/export/util.ts +24 -24
- package/packages/table/module/filter/hook.ts +468 -468
- package/packages/table/module/filter/panel.ts +301 -301
- package/packages/table/module/keyboard/hook.ts +495 -495
- package/packages/table/module/menu/hook.ts +325 -325
- package/packages/table/module/menu/panel.ts +201 -201
- package/packages/table/module/validator/hook.ts +631 -631
- package/packages/table/render/index.ts +1440 -1440
- package/packages/table/src/body.ts +932 -932
- package/packages/table/src/cell.ts +1290 -1290
- package/packages/table/src/column.ts +190 -190
- package/packages/table/src/columnInfo.ts +225 -225
- package/packages/table/src/emits.ts +123 -123
- package/packages/table/src/footer.ts +368 -368
- package/packages/table/src/group.ts +59 -59
- package/packages/table/src/header.ts +559 -559
- package/packages/table/src/props.ts +324 -324
- package/packages/table/src/store.ts +14 -14
- package/packages/table/src/table.ts +14020 -14004
- package/packages/table/src/use/cell-view.ts +44 -44
- package/packages/table/src/use/index.ts +1 -1
- package/packages/table/src/util.ts +1070 -1064
- package/packages/toolbar/index.ts +18 -18
- package/packages/toolbar/src/toolbar.ts +701 -701
- 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 +259 -236
- package/packages/ui/src/log.ts +8 -8
- package/packages/ui/src/utils.ts +56 -56
- package/packages/ui/src/vn.ts +55 -55
- package/packages/v-x-e-table/index.d.ts +4 -4
- 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 +4 -4
- 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 +37 -37
- package/types/index.d.ts +4 -4
- /package/es/{iconfont.1773991907408.ttf → iconfont.1774420952727.ttf} +0 -0
- /package/es/{iconfont.1773991907408.woff → iconfont.1774420952727.woff} +0 -0
- /package/es/{iconfont.1773991907408.woff2 → iconfont.1774420952727.woff2} +0 -0
- /package/lib/{iconfont.1773991907408.ttf → iconfont.1774420952727.ttf} +0 -0
- /package/lib/{iconfont.1773991907408.woff → iconfont.1774420952727.woff} +0 -0
- /package/lib/{iconfont.1773991907408.woff2 → iconfont.1774420952727.woff2} +0 -0
|
@@ -1,120 +1,120 @@
|
|
|
1
|
-
/*toolbar*/
|
|
2
|
-
.vxe-toolbar {
|
|
3
|
-
position: relative;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: row;
|
|
6
|
-
align-items: center;
|
|
7
|
-
padding: 0.5em 0;
|
|
8
|
-
color: var(--vxe-ui-font-color);
|
|
9
|
-
font-family: var(--vxe-ui-font-family);
|
|
10
|
-
background-color: var(--vxe-ui-layout-background-color);
|
|
11
|
-
&:after {
|
|
12
|
-
content: "";
|
|
13
|
-
display: block;
|
|
14
|
-
clear: both;
|
|
15
|
-
height: 0;
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
visibility: hidden;
|
|
18
|
-
}
|
|
19
|
-
&.is--perfect {
|
|
20
|
-
border: 1px solid var(--vxe-ui-table-border-color);
|
|
21
|
-
border-bottom-width: 0;
|
|
22
|
-
background-color: var(--vxe-ui-table-header-background-color);
|
|
23
|
-
}
|
|
24
|
-
&.is--loading {
|
|
25
|
-
&:before {
|
|
26
|
-
content: "";
|
|
27
|
-
position: absolute;
|
|
28
|
-
top: 0;
|
|
29
|
-
left: 0;
|
|
30
|
-
width: 100%;
|
|
31
|
-
height: 100%;
|
|
32
|
-
z-index: 999;
|
|
33
|
-
user-select: none;
|
|
34
|
-
background-color: var(--vxe-ui-loading-background-color);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
.vxe-buttons--wrapper {
|
|
38
|
-
flex-grow: 1;
|
|
39
|
-
& > .vxe-button+.vxe-button--item,
|
|
40
|
-
& > .vxe-button--item+.vxe-button,
|
|
41
|
-
& > .vxe-button--item+.vxe-button--item {
|
|
42
|
-
margin-left: 0.8em;
|
|
43
|
-
}
|
|
44
|
-
& > .vxe-button--item {
|
|
45
|
-
display: inline-block;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
.vxe-tools--wrapper {
|
|
49
|
-
& > .vxe-button+.vxe-tool--item,
|
|
50
|
-
& > .vxe-tool--item+.vxe-button,
|
|
51
|
-
& > .vxe-tool--item+.vxe-tool--item {
|
|
52
|
-
margin-left: 0.8em;
|
|
53
|
-
}
|
|
54
|
-
& > .vxe-tool--item {
|
|
55
|
-
display: inline-block;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
.vxe-tools--wrapper {
|
|
59
|
-
& > .vxe-button {
|
|
60
|
-
display: flex;
|
|
61
|
-
align-items: center;
|
|
62
|
-
justify-content: center;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
.vxe-buttons--wrapper,
|
|
66
|
-
.vxe-tools--wrapper,
|
|
67
|
-
.vxe-tools--operate {
|
|
68
|
-
display: flex;
|
|
69
|
-
align-items: center;
|
|
70
|
-
}
|
|
71
|
-
.vxe-tools--operate {
|
|
72
|
-
flex-shrink: 0;
|
|
73
|
-
}
|
|
74
|
-
.vxe-custom--wrapper {
|
|
75
|
-
position: relative;
|
|
76
|
-
&.is--active {
|
|
77
|
-
& > .vxe-button {
|
|
78
|
-
background-color: var(--vxe-ui-toolbar-custom-active-background-color);
|
|
79
|
-
border-radius: 50%;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
.vxe-button--item-wrapper,
|
|
84
|
-
.vxe-tool--item-wrapper {
|
|
85
|
-
flex-grow: 1;
|
|
86
|
-
}
|
|
87
|
-
.vxe-button--prefix-wrapper,
|
|
88
|
-
.vxe-button--suffix-wrapper,
|
|
89
|
-
.vxe-tool--prefix-wrapper,
|
|
90
|
-
.vxe-tool--suffix-wrapper {
|
|
91
|
-
flex-shrink: 0;
|
|
92
|
-
}
|
|
93
|
-
.vxe-button--item-wrapper,
|
|
94
|
-
.vxe-tool--item-wrapper,
|
|
95
|
-
.vxe-button--prefix-wrapper,
|
|
96
|
-
.vxe-button--suffix-wrapper,
|
|
97
|
-
.vxe-tool--prefix-wrapper,
|
|
98
|
-
.vxe-tool--suffix-wrapper {
|
|
99
|
-
display: flex;
|
|
100
|
-
align-items: center;
|
|
101
|
-
flex-wrap: wrap;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.vxe-toolbar {
|
|
106
|
-
font-size: var(--vxe-ui-font-size-default);
|
|
107
|
-
min-height: var(--vxe-ui-toolbar-height-default);
|
|
108
|
-
&.size--medium {
|
|
109
|
-
font-size: var(--vxe-ui-font-size-medium);
|
|
110
|
-
min-height: var(--vxe-ui-toolbar-height-medium);
|
|
111
|
-
}
|
|
112
|
-
&.size--small {
|
|
113
|
-
font-size: var(--vxe-ui-font-size-small);
|
|
114
|
-
min-height: var(--vxe-ui-toolbar-height-small);
|
|
115
|
-
}
|
|
116
|
-
&.size--mini {
|
|
117
|
-
font-size: var(--vxe-ui-font-size-mini);
|
|
118
|
-
min-height: var(--vxe-ui-toolbar-height-mini);
|
|
119
|
-
}
|
|
1
|
+
/*toolbar*/
|
|
2
|
+
.vxe-toolbar {
|
|
3
|
+
position: relative;
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: row;
|
|
6
|
+
align-items: center;
|
|
7
|
+
padding: 0.5em 0;
|
|
8
|
+
color: var(--vxe-ui-font-color);
|
|
9
|
+
font-family: var(--vxe-ui-font-family);
|
|
10
|
+
background-color: var(--vxe-ui-layout-background-color);
|
|
11
|
+
&:after {
|
|
12
|
+
content: "";
|
|
13
|
+
display: block;
|
|
14
|
+
clear: both;
|
|
15
|
+
height: 0;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
visibility: hidden;
|
|
18
|
+
}
|
|
19
|
+
&.is--perfect {
|
|
20
|
+
border: 1px solid var(--vxe-ui-table-border-color);
|
|
21
|
+
border-bottom-width: 0;
|
|
22
|
+
background-color: var(--vxe-ui-table-header-background-color);
|
|
23
|
+
}
|
|
24
|
+
&.is--loading {
|
|
25
|
+
&:before {
|
|
26
|
+
content: "";
|
|
27
|
+
position: absolute;
|
|
28
|
+
top: 0;
|
|
29
|
+
left: 0;
|
|
30
|
+
width: 100%;
|
|
31
|
+
height: 100%;
|
|
32
|
+
z-index: 999;
|
|
33
|
+
user-select: none;
|
|
34
|
+
background-color: var(--vxe-ui-loading-background-color);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.vxe-buttons--wrapper {
|
|
38
|
+
flex-grow: 1;
|
|
39
|
+
& > .vxe-button+.vxe-button--item,
|
|
40
|
+
& > .vxe-button--item+.vxe-button,
|
|
41
|
+
& > .vxe-button--item+.vxe-button--item {
|
|
42
|
+
margin-left: 0.8em;
|
|
43
|
+
}
|
|
44
|
+
& > .vxe-button--item {
|
|
45
|
+
display: inline-block;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
.vxe-tools--wrapper {
|
|
49
|
+
& > .vxe-button+.vxe-tool--item,
|
|
50
|
+
& > .vxe-tool--item+.vxe-button,
|
|
51
|
+
& > .vxe-tool--item+.vxe-tool--item {
|
|
52
|
+
margin-left: 0.8em;
|
|
53
|
+
}
|
|
54
|
+
& > .vxe-tool--item {
|
|
55
|
+
display: inline-block;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
.vxe-tools--wrapper {
|
|
59
|
+
& > .vxe-button {
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
.vxe-buttons--wrapper,
|
|
66
|
+
.vxe-tools--wrapper,
|
|
67
|
+
.vxe-tools--operate {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
}
|
|
71
|
+
.vxe-tools--operate {
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
}
|
|
74
|
+
.vxe-custom--wrapper {
|
|
75
|
+
position: relative;
|
|
76
|
+
&.is--active {
|
|
77
|
+
& > .vxe-button {
|
|
78
|
+
background-color: var(--vxe-ui-toolbar-custom-active-background-color);
|
|
79
|
+
border-radius: 50%;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
.vxe-button--item-wrapper,
|
|
84
|
+
.vxe-tool--item-wrapper {
|
|
85
|
+
flex-grow: 1;
|
|
86
|
+
}
|
|
87
|
+
.vxe-button--prefix-wrapper,
|
|
88
|
+
.vxe-button--suffix-wrapper,
|
|
89
|
+
.vxe-tool--prefix-wrapper,
|
|
90
|
+
.vxe-tool--suffix-wrapper {
|
|
91
|
+
flex-shrink: 0;
|
|
92
|
+
}
|
|
93
|
+
.vxe-button--item-wrapper,
|
|
94
|
+
.vxe-tool--item-wrapper,
|
|
95
|
+
.vxe-button--prefix-wrapper,
|
|
96
|
+
.vxe-button--suffix-wrapper,
|
|
97
|
+
.vxe-tool--prefix-wrapper,
|
|
98
|
+
.vxe-tool--suffix-wrapper {
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: center;
|
|
101
|
+
flex-wrap: wrap;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.vxe-toolbar {
|
|
106
|
+
font-size: var(--vxe-ui-font-size-default);
|
|
107
|
+
min-height: var(--vxe-ui-toolbar-height-default);
|
|
108
|
+
&.size--medium {
|
|
109
|
+
font-size: var(--vxe-ui-font-size-medium);
|
|
110
|
+
min-height: var(--vxe-ui-toolbar-height-medium);
|
|
111
|
+
}
|
|
112
|
+
&.size--small {
|
|
113
|
+
font-size: var(--vxe-ui-font-size-small);
|
|
114
|
+
min-height: var(--vxe-ui-toolbar-height-small);
|
|
115
|
+
}
|
|
116
|
+
&.size--mini {
|
|
117
|
+
font-size: var(--vxe-ui-font-size-mini);
|
|
118
|
+
min-height: var(--vxe-ui-toolbar-height-mini);
|
|
119
|
+
}
|
|
120
120
|
}
|
package/styles/default.scss
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
// 该文件已废弃,请使用 vxe-table/styles/all.scss
|
|
2
|
-
|
|
1
|
+
// 该文件已废弃,请使用 vxe-table/styles/all.scss
|
|
2
|
+
|
|
3
3
|
@use './modules.scss';
|
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
@mixin createAnimationTransition ($property, $duration: .1s, $func: ease-in-out) {
|
|
2
|
-
transition: $property $duration $func;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
@mixin createCheckboxIcon {
|
|
6
|
-
.vxe-checkbox--icon {
|
|
7
|
-
font-size: 1.22em;
|
|
8
|
-
}
|
|
9
|
-
.vxe-checkbox--icon {
|
|
10
|
-
color: var(--vxe-ui-input-border-color);
|
|
11
|
-
vertical-align: middle;
|
|
12
|
-
font-weight: 700;
|
|
13
|
-
user-select: none;
|
|
14
|
-
}
|
|
15
|
-
&.is--checked,
|
|
16
|
-
&.is--indeterminate {
|
|
17
|
-
color: var(--vxe-ui-font-primary-color);
|
|
18
|
-
.vxe-checkbox--icon {
|
|
19
|
-
color: var(--vxe-ui-font-primary-color);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
&:not(.is--disabled) {
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
&:hover {
|
|
25
|
-
.vxe-checkbox--icon {
|
|
26
|
-
color: var(--vxe-ui-font-primary-color);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
&.is--hidden {
|
|
31
|
-
cursor: default;
|
|
32
|
-
}
|
|
33
|
-
&.is--disabled {
|
|
34
|
-
color: var(--vxe-ui-font-disabled-color);
|
|
35
|
-
cursor: not-allowed;
|
|
36
|
-
.vxe-checkbox--icon {
|
|
37
|
-
color: var(--vxe-ui-input-disabled-color);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
.vxe-checkbox--label {
|
|
41
|
-
padding-left: 0.5em;
|
|
42
|
-
vertical-align: middle;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@mixin createRadioIcon {
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
.vxe-radio--icon {
|
|
49
|
-
font-size: 1.26em;
|
|
50
|
-
}
|
|
51
|
-
.vxe-radio--icon {
|
|
52
|
-
color: var(--vxe-ui-input-border-color);
|
|
53
|
-
border-radius: 50%;
|
|
54
|
-
vertical-align: middle;
|
|
55
|
-
font-weight: 700;
|
|
56
|
-
user-select: none;
|
|
57
|
-
}
|
|
58
|
-
&.is--checked {
|
|
59
|
-
color: var(--vxe-ui-font-primary-color);
|
|
60
|
-
.vxe-radio--icon {
|
|
61
|
-
color: var(--vxe-ui-font-primary-color);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
&:not(.is--disabled) {
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
&:hover {
|
|
67
|
-
.vxe-radio--icon {
|
|
68
|
-
color: var(--vxe-ui-font-primary-color);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
&.is--disabled {
|
|
73
|
-
color: var(--vxe-ui-font-disabled-color);
|
|
74
|
-
cursor: not-allowed;
|
|
75
|
-
.vxe-radio--icon {
|
|
76
|
-
color: var(--vxe-ui-input-disabled-color);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
.vxe-radio--label {
|
|
80
|
-
padding-left: 0.5em;
|
|
81
|
-
vertical-align: middle;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
@mixin createEmptyMask {
|
|
86
|
-
&::after {
|
|
87
|
-
content: "";
|
|
88
|
-
position: absolute;
|
|
89
|
-
top: 0;
|
|
90
|
-
left: 0;
|
|
91
|
-
width: 100%;
|
|
92
|
-
height: 100%;
|
|
93
|
-
z-index: 1;
|
|
94
|
-
user-select: none;
|
|
95
|
-
}
|
|
1
|
+
@mixin createAnimationTransition ($property, $duration: .1s, $func: ease-in-out) {
|
|
2
|
+
transition: $property $duration $func;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
@mixin createCheckboxIcon {
|
|
6
|
+
.vxe-checkbox--icon {
|
|
7
|
+
font-size: 1.22em;
|
|
8
|
+
}
|
|
9
|
+
.vxe-checkbox--icon {
|
|
10
|
+
color: var(--vxe-ui-input-border-color);
|
|
11
|
+
vertical-align: middle;
|
|
12
|
+
font-weight: 700;
|
|
13
|
+
user-select: none;
|
|
14
|
+
}
|
|
15
|
+
&.is--checked,
|
|
16
|
+
&.is--indeterminate {
|
|
17
|
+
color: var(--vxe-ui-font-primary-color);
|
|
18
|
+
.vxe-checkbox--icon {
|
|
19
|
+
color: var(--vxe-ui-font-primary-color);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
&:not(.is--disabled) {
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
&:hover {
|
|
25
|
+
.vxe-checkbox--icon {
|
|
26
|
+
color: var(--vxe-ui-font-primary-color);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
&.is--hidden {
|
|
31
|
+
cursor: default;
|
|
32
|
+
}
|
|
33
|
+
&.is--disabled {
|
|
34
|
+
color: var(--vxe-ui-font-disabled-color);
|
|
35
|
+
cursor: not-allowed;
|
|
36
|
+
.vxe-checkbox--icon {
|
|
37
|
+
color: var(--vxe-ui-input-disabled-color);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.vxe-checkbox--label {
|
|
41
|
+
padding-left: 0.5em;
|
|
42
|
+
vertical-align: middle;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@mixin createRadioIcon {
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
.vxe-radio--icon {
|
|
49
|
+
font-size: 1.26em;
|
|
50
|
+
}
|
|
51
|
+
.vxe-radio--icon {
|
|
52
|
+
color: var(--vxe-ui-input-border-color);
|
|
53
|
+
border-radius: 50%;
|
|
54
|
+
vertical-align: middle;
|
|
55
|
+
font-weight: 700;
|
|
56
|
+
user-select: none;
|
|
57
|
+
}
|
|
58
|
+
&.is--checked {
|
|
59
|
+
color: var(--vxe-ui-font-primary-color);
|
|
60
|
+
.vxe-radio--icon {
|
|
61
|
+
color: var(--vxe-ui-font-primary-color);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
&:not(.is--disabled) {
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
&:hover {
|
|
67
|
+
.vxe-radio--icon {
|
|
68
|
+
color: var(--vxe-ui-font-primary-color);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
&.is--disabled {
|
|
73
|
+
color: var(--vxe-ui-font-disabled-color);
|
|
74
|
+
cursor: not-allowed;
|
|
75
|
+
.vxe-radio--icon {
|
|
76
|
+
color: var(--vxe-ui-input-disabled-color);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
.vxe-radio--label {
|
|
80
|
+
padding-left: 0.5em;
|
|
81
|
+
vertical-align: middle;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@mixin createEmptyMask {
|
|
86
|
+
&::after {
|
|
87
|
+
content: "";
|
|
88
|
+
position: absolute;
|
|
89
|
+
top: 0;
|
|
90
|
+
left: 0;
|
|
91
|
+
width: 100%;
|
|
92
|
+
height: 100%;
|
|
93
|
+
z-index: 1;
|
|
94
|
+
user-select: none;
|
|
95
|
+
}
|
|
96
96
|
}
|
package/styles/index.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// 该文件已废弃,请使用 vxe-table/style/all.scss
|
|
2
|
-
|
|
3
|
-
@use './variable.scss';
|
|
4
|
-
@use './default.scss';
|
|
1
|
+
// 该文件已废弃,请使用 vxe-table/style/all.scss
|
|
2
|
+
|
|
3
|
+
@use './variable.scss';
|
|
4
|
+
@use './default.scss';
|
package/styles/modules.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
@use './components/column.scss';
|
|
2
|
-
@use './components/colgroup.scss';
|
|
3
|
-
@use './components/table.scss';
|
|
4
|
-
@use './components/grid.scss';
|
|
5
|
-
@use './components/toolbar.scss';
|
|
1
|
+
@use './components/column.scss';
|
|
2
|
+
@use './components/colgroup.scss';
|
|
3
|
+
@use './components/table.scss';
|
|
4
|
+
@use './components/grid.scss';
|
|
5
|
+
@use './components/toolbar.scss';
|
package/styles/theme/base.scss
CHANGED
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
/*font*/
|
|
3
|
-
--vxe-ui-font-family: -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
|
|
4
|
-
|
|
5
|
-
/*font size*/
|
|
6
|
-
--vxe-ui-font-size-default: 14px;
|
|
7
|
-
--vxe-ui-font-size-medium: 14px;
|
|
8
|
-
--vxe-ui-font-size-small: 13px;
|
|
9
|
-
--vxe-ui-font-size-mini: 12px;
|
|
10
|
-
|
|
11
|
-
/*base border*/
|
|
12
|
-
--vxe-ui-border-radius: 4px;
|
|
13
|
-
|
|
14
|
-
/*input*/
|
|
15
|
-
--vxe-ui-input-disabled-color: #dcdfe6;
|
|
16
|
-
--vxe-ui-input-height-default: 34px;
|
|
17
|
-
--vxe-ui-input-height-medium: 32px;
|
|
18
|
-
--vxe-ui-input-height-small: 30px;
|
|
19
|
-
--vxe-ui-input-height-mini: 28px;
|
|
20
|
-
|
|
21
|
-
/*table*/
|
|
22
|
-
--vxe-ui-table-header-font-color: var(--vxe-ui-font-color);
|
|
23
|
-
--vxe-ui-table-footer-font-color: var(--vxe-ui-font-color);
|
|
24
|
-
--vxe-ui-table-border-radius: var(--vxe-ui-border-radius);
|
|
25
|
-
--vxe-ui-table-border-width: 1.05px;
|
|
26
|
-
--vxe-ui-table-resizable-line-color: #D9DDDF;
|
|
27
|
-
--vxe-ui-table-resizable-drag-line-color: var(--vxe-ui-font-primary-color);
|
|
28
|
-
--vxe-ui-table-footer-background-color: var(--vxe-ui-layout-background-color);
|
|
29
|
-
--vxe-ui-table-tree-node-line-color:#909399;
|
|
30
|
-
--vxe-ui-table-tree-node-line-style: dotted;
|
|
31
|
-
--vxe-ui-table-header-font-weight: 700;
|
|
32
|
-
|
|
33
|
-
--vxe-ui-table-row-height-default: 48px;
|
|
34
|
-
--vxe-ui-table-row-height-medium: 44px;
|
|
35
|
-
--vxe-ui-table-row-height-small: 40px;
|
|
36
|
-
--vxe-ui-table-row-height-mini: 36px;
|
|
37
|
-
--vxe-ui-table-row-line-height: 22px;
|
|
38
|
-
|
|
39
|
-
--vxe-ui-table-column-icon-border-color: #c0c4cc;
|
|
40
|
-
--vxe-ui-table-column-icon-border-hover-color: #515A6E;
|
|
41
|
-
|
|
42
|
-
--vxe-ui-table-cell-padding-default: 8px;
|
|
43
|
-
--vxe-ui-table-cell-padding-medium: 7px;
|
|
44
|
-
--vxe-ui-table-cell-padding-small: 6px;
|
|
45
|
-
--vxe-ui-table-cell-padding-mini: 5px;
|
|
46
|
-
--vxe-ui-table-cell-placeholder-color: #C0C4CC;
|
|
47
|
-
--vxe-ui-table-cell-negative-color: #f56c6c;
|
|
48
|
-
--vxe-ui-table-cell-input-height-default: var(--vxe-ui-table-row-height-default) - 6;
|
|
49
|
-
--vxe-ui-table-cell-input-height-medium: var(--vxe-ui-table-row-height-medium) - 6;
|
|
50
|
-
--vxe-ui-table-cell-input-height-small: var(--vxe-ui-table-row-height-small) - 6;
|
|
51
|
-
--vxe-ui-table-cell-input-height-mini: var(--vxe-ui-table-row-height-mini) - 6;
|
|
52
|
-
--vxe-ui-table-cell-dirty-width: 5px;
|
|
53
|
-
--vxe-ui-table-cell-dirty-update-color: #f56c6c;
|
|
54
|
-
--vxe-ui-table-cell-dirty-insert-color: #19A15F;
|
|
55
|
-
--vxe-ui-table-cell-area-border-color: var(--vxe-ui-font-primary-color);
|
|
56
|
-
--vxe-ui-table-cell-area-border-width: 1px;
|
|
57
|
-
--vxe-ui-table-cell-area-status-border-width: var(--vxe-ui-table-cell-area-border-width);
|
|
58
|
-
--vxe-ui-table-cell-main-area-extension-border-color: #fff;
|
|
59
|
-
--vxe-ui-table-cell-main-area-extension-background-color: var(--vxe-ui-font-primary-color);
|
|
60
|
-
--vxe-ui-table-cell-extend-area-border-width: 2px;
|
|
61
|
-
--vxe-ui-table-cell-clip-area-border-width: 3px;
|
|
62
|
-
--vxe-ui-table-cell-active-area-border-width: 2px;
|
|
63
|
-
--vxe-ui-table-cell-active-area-background-color: transparent;
|
|
64
|
-
--vxe-ui-table-cell-clip-area-border-color: var(--vxe-ui-table-cell-area-border-color);
|
|
65
|
-
--vxe-ui-table-cell-extend-area-border-color: var(--vxe-ui-table-cell-area-border-color);
|
|
66
|
-
--vxe-ui-table-cell-active-area-border-color: var(--vxe-ui-table-cell-area-border-color);
|
|
67
|
-
--vxe-ui-table-cell-area-background-color: rgba(64,158,255,0.2);
|
|
68
|
-
--vxe-ui-table-cell-area-status-background-color: rgba(64,158,255,0.1);
|
|
69
|
-
|
|
70
|
-
--vxe-ui-table-expand-padding-default: 16px;
|
|
71
|
-
|
|
72
|
-
--vxe-ui-table-checkbox-range-border-width: 1px;
|
|
73
|
-
--vxe-ui-table-checkbox-range-border-color: #006af1;
|
|
74
|
-
--vxe-ui-table-checkbox-range-background-color: rgba(50,128,252,0.2);
|
|
75
|
-
|
|
76
|
-
--vxe-ui-table-fixed-left-scrolling-box-shadow: 8px 0px 10px -5px var(--vxe-ui-table-fixed-scrolling-box-shadow-color);
|
|
77
|
-
--vxe-ui-table-fixed-right-scrolling-box-shadow: -8px 0px 10px -5px var(--vxe-ui-table-fixed-scrolling-box-shadow-color);
|
|
78
|
-
|
|
79
|
-
--vxe-ui-table-menu-item-width: 198px;
|
|
80
|
-
|
|
81
|
-
--vxe-ui-table-view-scrollbar-width: 18px;
|
|
82
|
-
--vxe-ui-table-view-scrollbar-height: 18px;
|
|
83
|
-
|
|
84
|
-
--vxe-ui-table-validate-error-color: #f56c6c;
|
|
85
|
-
--vxe-ui-table-validate-error-cell-background-color: rgba(245, 108,108, 0.1);
|
|
86
|
-
--vxe-ui-table-validate-error-theme-normal-background-color: var(--vxe-ui-layout-background-color);
|
|
87
|
-
|
|
88
|
-
/*toolbar*/
|
|
89
|
-
--vxe-ui-toolbar-custom-active-background-color: #D9DADB;
|
|
90
|
-
--vxe-ui-toolbar-height-default: 48px;
|
|
91
|
-
--vxe-ui-toolbar-height-medium: 46px;
|
|
92
|
-
--vxe-ui-toolbar-height-small: 44px;
|
|
93
|
-
--vxe-ui-toolbar-height-mini: 42px;
|
|
1
|
+
:root {
|
|
2
|
+
/*font*/
|
|
3
|
+
--vxe-ui-font-family: -apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;
|
|
4
|
+
|
|
5
|
+
/*font size*/
|
|
6
|
+
--vxe-ui-font-size-default: 14px;
|
|
7
|
+
--vxe-ui-font-size-medium: 14px;
|
|
8
|
+
--vxe-ui-font-size-small: 13px;
|
|
9
|
+
--vxe-ui-font-size-mini: 12px;
|
|
10
|
+
|
|
11
|
+
/*base border*/
|
|
12
|
+
--vxe-ui-border-radius: 4px;
|
|
13
|
+
|
|
14
|
+
/*input*/
|
|
15
|
+
--vxe-ui-input-disabled-color: #dcdfe6;
|
|
16
|
+
--vxe-ui-input-height-default: 34px;
|
|
17
|
+
--vxe-ui-input-height-medium: 32px;
|
|
18
|
+
--vxe-ui-input-height-small: 30px;
|
|
19
|
+
--vxe-ui-input-height-mini: 28px;
|
|
20
|
+
|
|
21
|
+
/*table*/
|
|
22
|
+
--vxe-ui-table-header-font-color: var(--vxe-ui-font-color);
|
|
23
|
+
--vxe-ui-table-footer-font-color: var(--vxe-ui-font-color);
|
|
24
|
+
--vxe-ui-table-border-radius: var(--vxe-ui-border-radius);
|
|
25
|
+
--vxe-ui-table-border-width: 1.05px;
|
|
26
|
+
--vxe-ui-table-resizable-line-color: #D9DDDF;
|
|
27
|
+
--vxe-ui-table-resizable-drag-line-color: var(--vxe-ui-font-primary-color);
|
|
28
|
+
--vxe-ui-table-footer-background-color: var(--vxe-ui-layout-background-color);
|
|
29
|
+
--vxe-ui-table-tree-node-line-color:#909399;
|
|
30
|
+
--vxe-ui-table-tree-node-line-style: dotted;
|
|
31
|
+
--vxe-ui-table-header-font-weight: 700;
|
|
32
|
+
|
|
33
|
+
--vxe-ui-table-row-height-default: 48px;
|
|
34
|
+
--vxe-ui-table-row-height-medium: 44px;
|
|
35
|
+
--vxe-ui-table-row-height-small: 40px;
|
|
36
|
+
--vxe-ui-table-row-height-mini: 36px;
|
|
37
|
+
--vxe-ui-table-row-line-height: 22px;
|
|
38
|
+
|
|
39
|
+
--vxe-ui-table-column-icon-border-color: #c0c4cc;
|
|
40
|
+
--vxe-ui-table-column-icon-border-hover-color: #515A6E;
|
|
41
|
+
|
|
42
|
+
--vxe-ui-table-cell-padding-default: 8px;
|
|
43
|
+
--vxe-ui-table-cell-padding-medium: 7px;
|
|
44
|
+
--vxe-ui-table-cell-padding-small: 6px;
|
|
45
|
+
--vxe-ui-table-cell-padding-mini: 5px;
|
|
46
|
+
--vxe-ui-table-cell-placeholder-color: #C0C4CC;
|
|
47
|
+
--vxe-ui-table-cell-negative-color: #f56c6c;
|
|
48
|
+
--vxe-ui-table-cell-input-height-default: var(--vxe-ui-table-row-height-default) - 6;
|
|
49
|
+
--vxe-ui-table-cell-input-height-medium: var(--vxe-ui-table-row-height-medium) - 6;
|
|
50
|
+
--vxe-ui-table-cell-input-height-small: var(--vxe-ui-table-row-height-small) - 6;
|
|
51
|
+
--vxe-ui-table-cell-input-height-mini: var(--vxe-ui-table-row-height-mini) - 6;
|
|
52
|
+
--vxe-ui-table-cell-dirty-width: 5px;
|
|
53
|
+
--vxe-ui-table-cell-dirty-update-color: #f56c6c;
|
|
54
|
+
--vxe-ui-table-cell-dirty-insert-color: #19A15F;
|
|
55
|
+
--vxe-ui-table-cell-area-border-color: var(--vxe-ui-font-primary-color);
|
|
56
|
+
--vxe-ui-table-cell-area-border-width: 1px;
|
|
57
|
+
--vxe-ui-table-cell-area-status-border-width: var(--vxe-ui-table-cell-area-border-width);
|
|
58
|
+
--vxe-ui-table-cell-main-area-extension-border-color: #fff;
|
|
59
|
+
--vxe-ui-table-cell-main-area-extension-background-color: var(--vxe-ui-font-primary-color);
|
|
60
|
+
--vxe-ui-table-cell-extend-area-border-width: 2px;
|
|
61
|
+
--vxe-ui-table-cell-clip-area-border-width: 3px;
|
|
62
|
+
--vxe-ui-table-cell-active-area-border-width: 2px;
|
|
63
|
+
--vxe-ui-table-cell-active-area-background-color: transparent;
|
|
64
|
+
--vxe-ui-table-cell-clip-area-border-color: var(--vxe-ui-table-cell-area-border-color);
|
|
65
|
+
--vxe-ui-table-cell-extend-area-border-color: var(--vxe-ui-table-cell-area-border-color);
|
|
66
|
+
--vxe-ui-table-cell-active-area-border-color: var(--vxe-ui-table-cell-area-border-color);
|
|
67
|
+
--vxe-ui-table-cell-area-background-color: rgba(64,158,255,0.2);
|
|
68
|
+
--vxe-ui-table-cell-area-status-background-color: rgba(64,158,255,0.1);
|
|
69
|
+
|
|
70
|
+
--vxe-ui-table-expand-padding-default: 16px;
|
|
71
|
+
|
|
72
|
+
--vxe-ui-table-checkbox-range-border-width: 1px;
|
|
73
|
+
--vxe-ui-table-checkbox-range-border-color: #006af1;
|
|
74
|
+
--vxe-ui-table-checkbox-range-background-color: rgba(50,128,252,0.2);
|
|
75
|
+
|
|
76
|
+
--vxe-ui-table-fixed-left-scrolling-box-shadow: 8px 0px 10px -5px var(--vxe-ui-table-fixed-scrolling-box-shadow-color);
|
|
77
|
+
--vxe-ui-table-fixed-right-scrolling-box-shadow: -8px 0px 10px -5px var(--vxe-ui-table-fixed-scrolling-box-shadow-color);
|
|
78
|
+
|
|
79
|
+
--vxe-ui-table-menu-item-width: 198px;
|
|
80
|
+
|
|
81
|
+
--vxe-ui-table-view-scrollbar-width: 18px;
|
|
82
|
+
--vxe-ui-table-view-scrollbar-height: 18px;
|
|
83
|
+
|
|
84
|
+
--vxe-ui-table-validate-error-color: #f56c6c;
|
|
85
|
+
--vxe-ui-table-validate-error-cell-background-color: rgba(245, 108,108, 0.1);
|
|
86
|
+
--vxe-ui-table-validate-error-theme-normal-background-color: var(--vxe-ui-layout-background-color);
|
|
87
|
+
|
|
88
|
+
/*toolbar*/
|
|
89
|
+
--vxe-ui-toolbar-custom-active-background-color: #D9DADB;
|
|
90
|
+
--vxe-ui-toolbar-height-default: 48px;
|
|
91
|
+
--vxe-ui-toolbar-height-medium: 46px;
|
|
92
|
+
--vxe-ui-toolbar-height-small: 44px;
|
|
93
|
+
--vxe-ui-toolbar-height-mini: 42px;
|
|
94
94
|
}
|