@vtx/components 4.0.0-beta.71 → 4.0.0-beta.72
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/README.md +19 -19
- package/es/utils/components/LabelIconTip/index.js +7 -7
- package/es/utils/conversionMomentValue/index.js +25 -25
- package/es/utils/filterSpecialCharacters.js +6 -6
- package/es/utils/genCopyable/index.js +6 -6
- package/es/utils/getFieldPropsOrFormItemProps/index.js +7 -7
- package/es/utils/hooks/useDebounceFn/index.js +4 -4
- package/es/utils/hooks/useDebounceValue/index.js +6 -6
- package/es/utils/hooks/useDeepCompareMemo/index.js +7 -7
- package/es/utils/hooks/useLatest/index.js +2 -2
- package/es/utils/hooks/useRefCallback/index.js +5 -5
- package/es/utils/isBrowser/index.js +7 -7
- package/es/utils/isUrl/index.js +4 -4
- package/es/utils/merge/index.js +4 -4
- package/es/utils/nanoid/index.js +4 -4
- package/es/utils/omitBoolean/index.js +4 -4
- package/es/utils/parseValueToMoment/index.js +4 -4
- package/es/utils/proFieldParsingText/index.js +10 -10
- package/es/utils/transformKeySubmitValue/index.js +57 -57
- package/es/utils/useEditableArray/index.js +46 -46
- package/es/utils/useEditableMap/index.js +22 -22
- package/es/utils/useMediaQuery/index.js +5 -5
- package/es/vtx-datagrid/Store/Provide.js +3 -10
- package/es/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +4 -4
- package/es/vtx-datagrid/columnState.js +28 -1
- package/es/vtx-datagrid/index.js +26 -8
- package/es/vtx-datagrid/style/index.less +242 -242
- package/es/vtx-date-picker/style/index.less +39 -39
- package/es/vtx-export/index.js +8 -8
- package/es/vtx-icon/index.js1 +90 -90
- package/es/vtx-import/index.js +57 -29
- package/es/vtx-import/result.js +22 -24
- package/es/vtx-modal/index.js +2 -2
- package/es/vtx-page-layout/Basic.js +2 -2
- package/es/vtx-page-layout/TabLayout.js +6 -6
- package/es/vtx-page-layout/TableLayout.js +10 -10
- package/es/vtx-page-layout/TreeLayout.js +6 -6
- package/es/vtx-page-layout/container.js +2 -2
- package/es/vtx-provider/index.js +30 -30
- package/es/vtx-provider/intl.js +9 -9
- package/es/vtx-provider/locale/en_US.js +2 -0
- package/es/vtx-provider/locale/zh_CN.js +2 -0
- package/es/vtx-provider/useStyle/index.js +17 -17
- package/es/vtx-wang-editor/style/index.less +12 -12
- package/lib/utils/components/LabelIconTip/index.js +7 -7
- package/lib/utils/conversionMomentValue/index.js +25 -25
- package/lib/utils/filterSpecialCharacters.js +6 -6
- package/lib/utils/genCopyable/index.js +6 -6
- package/lib/utils/getFieldPropsOrFormItemProps/index.js +7 -7
- package/lib/utils/hooks/useDebounceFn/index.js +4 -4
- package/lib/utils/hooks/useDebounceValue/index.js +6 -6
- package/lib/utils/hooks/useDeepCompareMemo/index.js +7 -7
- package/lib/utils/hooks/useLatest/index.js +2 -2
- package/lib/utils/hooks/useRefCallback/index.js +5 -5
- package/lib/utils/isBrowser/index.js +7 -7
- package/lib/utils/isUrl/index.js +4 -4
- package/lib/utils/merge/index.js +4 -4
- package/lib/utils/nanoid/index.js +4 -4
- package/lib/utils/omitBoolean/index.js +4 -4
- package/lib/utils/parseValueToMoment/index.js +4 -4
- package/lib/utils/proFieldParsingText/index.js +10 -10
- package/lib/utils/transformKeySubmitValue/index.js +57 -57
- package/lib/utils/useEditableArray/index.js +46 -46
- package/lib/utils/useEditableMap/index.js +22 -22
- package/lib/utils/useMediaQuery/index.js +5 -5
- package/lib/vtx-datagrid/Store/Provide.js +2 -9
- package/lib/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +4 -4
- package/lib/vtx-datagrid/columnState.js +28 -1
- package/lib/vtx-datagrid/index.js +26 -8
- package/lib/vtx-datagrid/style/index.less +242 -242
- package/lib/vtx-date-picker/style/index.less +39 -39
- package/lib/vtx-export/index.js +8 -8
- package/lib/vtx-icon/index.js1 +90 -90
- package/lib/vtx-import/index.js +56 -28
- package/lib/vtx-import/result.js +23 -25
- package/lib/vtx-modal/index.js +2 -2
- package/lib/vtx-page-layout/Basic.js +2 -2
- package/lib/vtx-page-layout/TabLayout.js +6 -6
- package/lib/vtx-page-layout/TableLayout.js +10 -10
- package/lib/vtx-page-layout/TreeLayout.js +6 -6
- package/lib/vtx-page-layout/container.js +2 -2
- package/lib/vtx-provider/index.js +30 -30
- package/lib/vtx-provider/intl.js +9 -9
- package/lib/vtx-provider/locale/en_US.js +2 -0
- package/lib/vtx-provider/locale/zh_CN.js +2 -0
- package/lib/vtx-provider/useStyle/index.js +17 -17
- package/lib/vtx-wang-editor/style/index.less +12 -12
- package/package.json +238 -238
|
@@ -1,242 +1,242 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
@prefix-cls: vtx-datagrid;
|
|
4
|
-
|
|
5
|
-
.@{prefix-cls} {
|
|
6
|
-
position: relative;
|
|
7
|
-
width: 100%;
|
|
8
|
-
overflow: hidden;
|
|
9
|
-
|
|
10
|
-
&-fit {
|
|
11
|
-
height: 100%;
|
|
12
|
-
.ant-table-container {
|
|
13
|
-
border-left: none !important;
|
|
14
|
-
table > thead > tr th:first-child {
|
|
15
|
-
border-left: 1px solid @table-border-color;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
.ant-table-body {
|
|
19
|
-
// overflow-y: auto !important;
|
|
20
|
-
}
|
|
21
|
-
.ant-table-header,
|
|
22
|
-
.ant-table-body {
|
|
23
|
-
&::-webkit-scrollbar {
|
|
24
|
-
width: @webkit-scrollbar-width;
|
|
25
|
-
height: @webkit-scrollbar-height;
|
|
26
|
-
background-color: @webkit-scrollbar-color;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&::-webkit-scrollbar-thumb {
|
|
30
|
-
background-color: @webkit-scrollbar-thumb-color;
|
|
31
|
-
border-radius: @webkit-scrollbar-thumb-radius;
|
|
32
|
-
}
|
|
33
|
-
> table {
|
|
34
|
-
min-height: 1px;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
.ant-table-tbody > tr {
|
|
38
|
-
&:nth-child(odd) {
|
|
39
|
-
background: @table-row-odd;
|
|
40
|
-
> td {
|
|
41
|
-
background: @table-row-odd !important;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
> td:first-child {
|
|
45
|
-
border-left: 1px solid @table-border-color;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
.ant-table-fixed-header .ant-table-scroll .ant-table-header {
|
|
49
|
-
min-width: 5px !important;
|
|
50
|
-
}
|
|
51
|
-
.ant-table-pagination {
|
|
52
|
-
position: absolute;
|
|
53
|
-
right: 0;
|
|
54
|
-
bottom: 0;
|
|
55
|
-
}
|
|
56
|
-
.ant-spin-nested-loading {
|
|
57
|
-
height: 100%;
|
|
58
|
-
.ant-spin-container {
|
|
59
|
-
position: relative;
|
|
60
|
-
height: 100%;
|
|
61
|
-
.ant-table {
|
|
62
|
-
height: 100%;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
&-noFit {
|
|
68
|
-
.ant-table-tbody > tr {
|
|
69
|
-
&:nth-child(even) when(@theme=default) {
|
|
70
|
-
background: #f6f6f6;
|
|
71
|
-
> td {
|
|
72
|
-
background: #f6f6f6 !important;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
.ant-table-container {
|
|
78
|
-
position: relative;
|
|
79
|
-
height: 100%;
|
|
80
|
-
}
|
|
81
|
-
.ant-table-middle {
|
|
82
|
-
.ant-table-thead > tr > th {
|
|
83
|
-
padding-left: 12px !important;
|
|
84
|
-
padding-right: 12px !important;
|
|
85
|
-
}
|
|
86
|
-
.ant-table-tbody > tr > td {
|
|
87
|
-
padding-left: 12px !important;
|
|
88
|
-
padding-right: 12px !important;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
.ant-table-tbody > tr.ant-table-row-selected > td {
|
|
92
|
-
// background: transparent !important;
|
|
93
|
-
border-color: @table-border-color !important;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.ant-table-thead > tr > th when(@theme=default) {
|
|
97
|
-
// antd4.0 半透明会重叠
|
|
98
|
-
// background-color: fade(#1890ff, 8);
|
|
99
|
-
font-weight: bold;
|
|
100
|
-
background-color: rgba(237, 246, 255, 1);
|
|
101
|
-
}
|
|
102
|
-
.ant-table-tbody > tr {
|
|
103
|
-
// &:nth-child(even) when(@theme=default) {
|
|
104
|
-
// background: #f6f6f6;
|
|
105
|
-
// }
|
|
106
|
-
& > .ant-table-cell {
|
|
107
|
-
color: @text-color;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&.ant-table-placeholder {
|
|
111
|
-
position: absolute;
|
|
112
|
-
top: 25%;
|
|
113
|
-
// top: auto;
|
|
114
|
-
right: 0;
|
|
115
|
-
// bottom: auto;
|
|
116
|
-
left: 0;
|
|
117
|
-
background-color: transparent;
|
|
118
|
-
border-top: none;
|
|
119
|
-
// height: 100%;
|
|
120
|
-
& > td.ant-table-cell {
|
|
121
|
-
display: flex;
|
|
122
|
-
align-items: center;
|
|
123
|
-
justify-content: center;
|
|
124
|
-
width: 100%;
|
|
125
|
-
height: 100%;
|
|
126
|
-
// border-right: @border-width-base @border-style-base @table-border-color;
|
|
127
|
-
// border-left: @border-width-base @border-style-base @table-border-color;
|
|
128
|
-
border: none;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
// fix: checkbox 选中时 固定列 最上面一层透明会 和下面重叠
|
|
133
|
-
// .ant-table-tbody > tr.ant-table-row-selected td {
|
|
134
|
-
// background: transparent;
|
|
135
|
-
// }
|
|
136
|
-
&-alert {
|
|
137
|
-
margin-bottom: 8px;
|
|
138
|
-
&-message when(@theme=default) {
|
|
139
|
-
color: fade(@black, 65%);
|
|
140
|
-
}
|
|
141
|
-
&-message when(@theme=dark) {
|
|
142
|
-
color: @text-color;
|
|
143
|
-
}
|
|
144
|
-
&-info-content > strong {
|
|
145
|
-
margin: 0 4px;
|
|
146
|
-
color: #13c2c2;
|
|
147
|
-
}
|
|
148
|
-
&-info-option {
|
|
149
|
-
margin-left: 10px;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
&-nodata {
|
|
153
|
-
.ant-table-scroll {
|
|
154
|
-
overflow-y: hidden;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
&-toolbar {
|
|
158
|
-
display: table;
|
|
159
|
-
width: 100%;
|
|
160
|
-
margin: 16px 0;
|
|
161
|
-
color: @text-color;
|
|
162
|
-
}
|
|
163
|
-
&-toolbar-left,
|
|
164
|
-
&-toolbar-right {
|
|
165
|
-
display: inline-block;
|
|
166
|
-
display: table-cell;
|
|
167
|
-
vertical-align: middle;
|
|
168
|
-
}
|
|
169
|
-
&-toolbar-left {
|
|
170
|
-
color: @text-color;
|
|
171
|
-
font-size: 16px;
|
|
172
|
-
}
|
|
173
|
-
&-toolbar-right {
|
|
174
|
-
float: right;
|
|
175
|
-
}
|
|
176
|
-
// &-toolbar-line {
|
|
177
|
-
// width: 1px;
|
|
178
|
-
// height: 14px;
|
|
179
|
-
// display: inline-block;
|
|
180
|
-
// vertical-align: middle;
|
|
181
|
-
// background: #e8e8e8;
|
|
182
|
-
// margin: 0 -2px 0 12px;
|
|
183
|
-
// }
|
|
184
|
-
&-toolbar-setting-item {
|
|
185
|
-
display: inline-block;
|
|
186
|
-
margin-left: 16px;
|
|
187
|
-
color: @icon-color;
|
|
188
|
-
font-size: 16px;
|
|
189
|
-
vertical-align: middle;
|
|
190
|
-
cursor: pointer;
|
|
191
|
-
color: #707070;
|
|
192
|
-
&:hover {
|
|
193
|
-
color: @icon-color-hover;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
&-space-item {
|
|
198
|
-
display: inline-block;
|
|
199
|
-
vertical-align: middle;
|
|
200
|
-
}
|
|
201
|
-
.react-resizable {
|
|
202
|
-
position: relative;
|
|
203
|
-
background-clip: padding-box;
|
|
204
|
-
}
|
|
205
|
-
.react-resizable-handle {
|
|
206
|
-
position: absolute;
|
|
207
|
-
right: -5px;
|
|
208
|
-
bottom: 0;
|
|
209
|
-
z-index: 1;
|
|
210
|
-
width: 10px;
|
|
211
|
-
height: 100%;
|
|
212
|
-
cursor: col-resize;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
&-column-setting {
|
|
216
|
-
&-title {
|
|
217
|
-
height: 32px;
|
|
218
|
-
line-height: 32px;
|
|
219
|
-
|
|
220
|
-
a {
|
|
221
|
-
display: inline-block;
|
|
222
|
-
float: right;
|
|
223
|
-
vertical-align: middle;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
&-checkbox-wrapper {
|
|
228
|
-
color: @text-color;
|
|
229
|
-
vertical-align: middle;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
&-list {
|
|
233
|
-
&-list-item {
|
|
234
|
-
display: flex;
|
|
235
|
-
|
|
236
|
-
&-title {
|
|
237
|
-
flex: 1;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
}
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
@prefix-cls: vtx-datagrid;
|
|
4
|
+
|
|
5
|
+
.@{prefix-cls} {
|
|
6
|
+
position: relative;
|
|
7
|
+
width: 100%;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
|
|
10
|
+
&-fit {
|
|
11
|
+
height: 100%;
|
|
12
|
+
.ant-table-container {
|
|
13
|
+
border-left: none !important;
|
|
14
|
+
table > thead > tr th:first-child {
|
|
15
|
+
border-left: 1px solid @table-border-color;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.ant-table-body {
|
|
19
|
+
// overflow-y: auto !important;
|
|
20
|
+
}
|
|
21
|
+
.ant-table-header,
|
|
22
|
+
.ant-table-body {
|
|
23
|
+
&::-webkit-scrollbar {
|
|
24
|
+
width: @webkit-scrollbar-width;
|
|
25
|
+
height: @webkit-scrollbar-height;
|
|
26
|
+
background-color: @webkit-scrollbar-color;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&::-webkit-scrollbar-thumb {
|
|
30
|
+
background-color: @webkit-scrollbar-thumb-color;
|
|
31
|
+
border-radius: @webkit-scrollbar-thumb-radius;
|
|
32
|
+
}
|
|
33
|
+
> table {
|
|
34
|
+
min-height: 1px;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.ant-table-tbody > tr {
|
|
38
|
+
&:nth-child(odd) {
|
|
39
|
+
background: @table-row-odd;
|
|
40
|
+
> td {
|
|
41
|
+
background: @table-row-odd !important;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
> td:first-child {
|
|
45
|
+
border-left: 1px solid @table-border-color;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
.ant-table-fixed-header .ant-table-scroll .ant-table-header {
|
|
49
|
+
min-width: 5px !important;
|
|
50
|
+
}
|
|
51
|
+
.ant-table-pagination {
|
|
52
|
+
position: absolute;
|
|
53
|
+
right: 0;
|
|
54
|
+
bottom: 0;
|
|
55
|
+
}
|
|
56
|
+
.ant-spin-nested-loading {
|
|
57
|
+
height: 100%;
|
|
58
|
+
.ant-spin-container {
|
|
59
|
+
position: relative;
|
|
60
|
+
height: 100%;
|
|
61
|
+
.ant-table {
|
|
62
|
+
height: 100%;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
&-noFit {
|
|
68
|
+
.ant-table-tbody > tr {
|
|
69
|
+
&:nth-child(even) when(@theme=default) {
|
|
70
|
+
background: #f6f6f6;
|
|
71
|
+
> td {
|
|
72
|
+
background: #f6f6f6 !important;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.ant-table-container {
|
|
78
|
+
position: relative;
|
|
79
|
+
height: 100%;
|
|
80
|
+
}
|
|
81
|
+
.ant-table-middle {
|
|
82
|
+
.ant-table-thead > tr > th {
|
|
83
|
+
padding-left: 12px !important;
|
|
84
|
+
padding-right: 12px !important;
|
|
85
|
+
}
|
|
86
|
+
.ant-table-tbody > tr > td {
|
|
87
|
+
padding-left: 12px !important;
|
|
88
|
+
padding-right: 12px !important;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
.ant-table-tbody > tr.ant-table-row-selected > td {
|
|
92
|
+
// background: transparent !important;
|
|
93
|
+
border-color: @table-border-color !important;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.ant-table-thead > tr > th when(@theme=default) {
|
|
97
|
+
// antd4.0 半透明会重叠
|
|
98
|
+
// background-color: fade(#1890ff, 8);
|
|
99
|
+
font-weight: bold;
|
|
100
|
+
background-color: rgba(237, 246, 255, 1);
|
|
101
|
+
}
|
|
102
|
+
.ant-table-tbody > tr {
|
|
103
|
+
// &:nth-child(even) when(@theme=default) {
|
|
104
|
+
// background: #f6f6f6;
|
|
105
|
+
// }
|
|
106
|
+
& > .ant-table-cell {
|
|
107
|
+
color: @text-color;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&.ant-table-placeholder {
|
|
111
|
+
position: absolute;
|
|
112
|
+
top: 25%;
|
|
113
|
+
// top: auto;
|
|
114
|
+
right: 0;
|
|
115
|
+
// bottom: auto;
|
|
116
|
+
left: 0;
|
|
117
|
+
background-color: transparent;
|
|
118
|
+
border-top: none;
|
|
119
|
+
// height: 100%;
|
|
120
|
+
& > td.ant-table-cell {
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
justify-content: center;
|
|
124
|
+
width: 100%;
|
|
125
|
+
height: 100%;
|
|
126
|
+
// border-right: @border-width-base @border-style-base @table-border-color;
|
|
127
|
+
// border-left: @border-width-base @border-style-base @table-border-color;
|
|
128
|
+
border: none;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
// fix: checkbox 选中时 固定列 最上面一层透明会 和下面重叠
|
|
133
|
+
// .ant-table-tbody > tr.ant-table-row-selected td {
|
|
134
|
+
// background: transparent;
|
|
135
|
+
// }
|
|
136
|
+
&-alert {
|
|
137
|
+
margin-bottom: 8px;
|
|
138
|
+
&-message when(@theme=default) {
|
|
139
|
+
color: fade(@black, 65%);
|
|
140
|
+
}
|
|
141
|
+
&-message when(@theme=dark) {
|
|
142
|
+
color: @text-color;
|
|
143
|
+
}
|
|
144
|
+
&-info-content > strong {
|
|
145
|
+
margin: 0 4px;
|
|
146
|
+
color: #13c2c2;
|
|
147
|
+
}
|
|
148
|
+
&-info-option {
|
|
149
|
+
margin-left: 10px;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
&-nodata {
|
|
153
|
+
.ant-table-scroll {
|
|
154
|
+
overflow-y: hidden;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
&-toolbar {
|
|
158
|
+
display: table;
|
|
159
|
+
width: 100%;
|
|
160
|
+
margin: 16px 0;
|
|
161
|
+
color: @text-color;
|
|
162
|
+
}
|
|
163
|
+
&-toolbar-left,
|
|
164
|
+
&-toolbar-right {
|
|
165
|
+
display: inline-block;
|
|
166
|
+
display: table-cell;
|
|
167
|
+
vertical-align: middle;
|
|
168
|
+
}
|
|
169
|
+
&-toolbar-left {
|
|
170
|
+
color: @text-color;
|
|
171
|
+
font-size: 16px;
|
|
172
|
+
}
|
|
173
|
+
&-toolbar-right {
|
|
174
|
+
float: right;
|
|
175
|
+
}
|
|
176
|
+
// &-toolbar-line {
|
|
177
|
+
// width: 1px;
|
|
178
|
+
// height: 14px;
|
|
179
|
+
// display: inline-block;
|
|
180
|
+
// vertical-align: middle;
|
|
181
|
+
// background: #e8e8e8;
|
|
182
|
+
// margin: 0 -2px 0 12px;
|
|
183
|
+
// }
|
|
184
|
+
&-toolbar-setting-item {
|
|
185
|
+
display: inline-block;
|
|
186
|
+
margin-left: 16px;
|
|
187
|
+
color: @icon-color;
|
|
188
|
+
font-size: 16px;
|
|
189
|
+
vertical-align: middle;
|
|
190
|
+
cursor: pointer;
|
|
191
|
+
color: #707070;
|
|
192
|
+
&:hover {
|
|
193
|
+
color: @icon-color-hover;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&-space-item {
|
|
198
|
+
display: inline-block;
|
|
199
|
+
vertical-align: middle;
|
|
200
|
+
}
|
|
201
|
+
.react-resizable {
|
|
202
|
+
position: relative;
|
|
203
|
+
background-clip: padding-box;
|
|
204
|
+
}
|
|
205
|
+
.react-resizable-handle {
|
|
206
|
+
position: absolute;
|
|
207
|
+
right: -5px;
|
|
208
|
+
bottom: 0;
|
|
209
|
+
z-index: 1;
|
|
210
|
+
width: 10px;
|
|
211
|
+
height: 100%;
|
|
212
|
+
cursor: col-resize;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&-column-setting {
|
|
216
|
+
&-title {
|
|
217
|
+
height: 32px;
|
|
218
|
+
line-height: 32px;
|
|
219
|
+
|
|
220
|
+
a {
|
|
221
|
+
display: inline-block;
|
|
222
|
+
float: right;
|
|
223
|
+
vertical-align: middle;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
&-checkbox-wrapper {
|
|
228
|
+
color: @text-color;
|
|
229
|
+
vertical-align: middle;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
&-list {
|
|
233
|
+
&-list-item {
|
|
234
|
+
display: flex;
|
|
235
|
+
|
|
236
|
+
&-title {
|
|
237
|
+
flex: 1;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
@prefix-cls: vtx-qdate;
|
|
2
|
-
|
|
3
|
-
.@{prefix-cls} {
|
|
4
|
-
&-wrap {
|
|
5
|
-
position: relative;
|
|
6
|
-
|
|
7
|
-
.ant-calendar-picker-input {
|
|
8
|
-
color: transparent;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
&-input-wrap {
|
|
13
|
-
position: absolute;
|
|
14
|
-
top: 50%;
|
|
15
|
-
left: 12px;
|
|
16
|
-
margin-top: -16px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&-extra-footer {
|
|
20
|
-
text-align: center;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&-text-year:hover,
|
|
24
|
-
&-text-date:hover,
|
|
25
|
-
&-text-month:hover,
|
|
26
|
-
&-text-time:hover {
|
|
27
|
-
text-decoration: underline;
|
|
28
|
-
cursor: pointer;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&-text-time::before {
|
|
32
|
-
content: ' ';
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&-text-month:not(:first-child)::before,
|
|
36
|
-
&-text-date:not(:first-child)::before {
|
|
37
|
-
content: '-';
|
|
38
|
-
}
|
|
39
|
-
}
|
|
1
|
+
@prefix-cls: vtx-qdate;
|
|
2
|
+
|
|
3
|
+
.@{prefix-cls} {
|
|
4
|
+
&-wrap {
|
|
5
|
+
position: relative;
|
|
6
|
+
|
|
7
|
+
.ant-calendar-picker-input {
|
|
8
|
+
color: transparent;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&-input-wrap {
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 50%;
|
|
15
|
+
left: 12px;
|
|
16
|
+
margin-top: -16px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-extra-footer {
|
|
20
|
+
text-align: center;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&-text-year:hover,
|
|
24
|
+
&-text-date:hover,
|
|
25
|
+
&-text-month:hover,
|
|
26
|
+
&-text-time:hover {
|
|
27
|
+
text-decoration: underline;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&-text-time::before {
|
|
32
|
+
content: ' ';
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-text-month:not(:first-child)::before,
|
|
36
|
+
&-text-date:not(:first-child)::before {
|
|
37
|
+
content: '-';
|
|
38
|
+
}
|
|
39
|
+
}
|
package/lib/vtx-export/index.js
CHANGED
|
@@ -78,10 +78,10 @@ var VtxExport = exports.VtxExport = function VtxExport(props) {
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
// eslint-disable-next-line valid-jsdoc
|
|
81
|
-
/**
|
|
82
|
-
* 发送http请求
|
|
83
|
-
* @param {Object} postData api参数
|
|
84
|
-
* @return reponse
|
|
81
|
+
/**
|
|
82
|
+
* 发送http请求
|
|
83
|
+
* @param {Object} postData api参数
|
|
84
|
+
* @return reponse
|
|
85
85
|
*/
|
|
86
86
|
function requestToResponse(postData) {
|
|
87
87
|
var params = {
|
|
@@ -142,10 +142,10 @@ var VtxExport = exports.VtxExport = function VtxExport(props) {
|
|
|
142
142
|
downloadByATag(window.URL.createObjectURL(blob), filename);
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
/**
|
|
146
|
-
* 通过a标签模拟下载
|
|
147
|
-
* @param {String} href
|
|
148
|
-
* @param {String} filename
|
|
145
|
+
/**
|
|
146
|
+
* 通过a标签模拟下载
|
|
147
|
+
* @param {String} href
|
|
148
|
+
* @param {String} filename
|
|
149
149
|
*/
|
|
150
150
|
function downloadByATag(href, filename) {
|
|
151
151
|
var a = document.createElement('a');
|