@vtx/components 4.0.0-beta.8 → 4.0.0-beta.81
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/index.js +3 -0
- package/es/utils/components/LabelIconTip/index.js +7 -7
- package/es/utils/conversionMomentValue/index.js +25 -25
- package/es/utils/filterSpecialCharacters.js +53 -52
- 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/index.js +1 -2
- 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-combogrid/Combogrid.js +5 -4
- package/es/vtx-combogrid/index.js +7 -4
- package/es/vtx-datagrid/Store/Provide.js +106 -137
- package/es/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +11 -7
- package/es/vtx-datagrid/ToolBar/components/ColumnSetting/style.js +5 -2
- package/es/vtx-datagrid/ToolBar/components/Density/index.js +3 -0
- package/es/vtx-datagrid/ToolBar/components/TableStyle/index.js +3 -0
- package/es/vtx-datagrid/columnState.js +91 -0
- package/es/vtx-datagrid/index.js +124 -32
- package/es/vtx-datagrid/mergeComponents.js +15 -0
- package/es/vtx-datagrid/renderColumnButtons.js +30 -11
- package/es/vtx-datagrid/style/index.js +102 -20
- package/es/vtx-datagrid/style/index.less +242 -242
- package/es/vtx-date-picker/QdatePicker.js +1 -1
- package/es/vtx-date-picker/style/index.less +39 -39
- package/es/vtx-descriptions/Descriptions.js +29 -0
- package/es/vtx-descriptions/index.js +3 -0
- package/es/vtx-descriptions/style/index.js +19 -0
- package/es/vtx-ellipsis-text/index.js +7 -2
- package/es/vtx-ellipsis-text/style/index.js +3 -1
- package/es/vtx-export/index.js +33 -33
- package/es/vtx-export-async/History.js +15 -7
- package/es/vtx-export-async/index.js +45 -15
- package/es/vtx-export-async/util.js +16 -5
- package/es/vtx-form-layout/Card.js +10 -10
- package/es/vtx-form-layout/Divider.js +1 -1
- package/es/vtx-form-layout/FormItem.js +16 -16
- package/es/vtx-form-layout/Pane.js +23 -12
- package/es/vtx-icon/index.js +54 -45
- package/es/vtx-icon/index.js1 +90 -0
- package/es/vtx-image/Preview.js +11 -6
- package/es/vtx-image/style/index.js +0 -1
- package/es/vtx-import/index.js +211 -70
- package/es/vtx-import/result.js +28 -26
- package/es/vtx-import/style/index.js +16 -1
- package/es/vtx-import2/Content.js +2 -1
- package/es/vtx-import2/index.js +30 -19
- package/es/vtx-import2/style/index.js +60 -9
- package/es/vtx-modal/index.js +11 -6
- 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-page-layout/style/index.js +4 -2
- package/es/vtx-provider/index.js +37 -33
- package/es/vtx-provider/intl.js +9 -9
- package/es/vtx-provider/locale/en_US.js +57 -3
- package/es/vtx-provider/locale/zh_CN.js +57 -3
- package/es/vtx-provider/useStyle/index.js +17 -17
- package/es/vtx-search/index.js +13 -9
- package/es/vtx-search/style/index.js +2 -1
- package/es/vtx-select/index.js +102 -36
- package/es/vtx-select/style/index.js +11 -56
- package/es/vtx-signature/index.js +5 -4
- package/es/vtx-signature/style/index.js +1 -1
- package/es/vtx-split-pane/Resizer.js +0 -1
- package/es/vtx-split-pane/SplitPane.js +42 -34
- package/es/vtx-split-pane/style/index.js +8 -112
- package/es/vtx-time-picker/index.js +27 -1
- package/es/vtx-transfer/Transfer.js +29 -0
- package/es/vtx-transfer/index.js +3 -0
- package/es/vtx-transfer/style/index.js +19 -0
- package/es/vtx-transfer-select/TransferSelect.js +143 -0
- package/es/vtx-transfer-select/index.js +3 -0
- package/es/vtx-transfer-select/style/index.js +19 -0
- package/es/vtx-tree/index.js +98 -35
- package/es/vtx-tree-select/index.js +71 -105
- package/es/vtx-tree-select/style/index.js +9 -3
- package/es/vtx-upload/FilePreview.js +2 -1
- package/es/vtx-wang-editor/index.js +93 -39
- package/es/vtx-wang-editor/style/index.less +12 -12
- package/es/vtx-wang-editor/wangEditorUtil.js +4 -0
- package/lib/index.js +36 -0
- package/lib/utils/components/LabelIconTip/index.js +7 -7
- package/lib/utils/conversionMomentValue/index.js +25 -25
- package/lib/utils/filterSpecialCharacters.js +54 -52
- 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/index.js +0 -7
- 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-combogrid/Combogrid.js +5 -4
- package/lib/vtx-combogrid/index.js +7 -4
- package/lib/vtx-datagrid/Store/Provide.js +113 -143
- package/lib/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +11 -7
- package/lib/vtx-datagrid/ToolBar/components/ColumnSetting/style.js +5 -2
- package/lib/vtx-datagrid/ToolBar/components/Density/index.js +3 -0
- package/lib/vtx-datagrid/ToolBar/components/TableStyle/index.js +3 -0
- package/lib/vtx-datagrid/columnState.js +100 -0
- package/lib/vtx-datagrid/index.js +124 -32
- package/lib/vtx-datagrid/mergeComponents.js +21 -0
- package/lib/vtx-datagrid/renderColumnButtons.js +30 -11
- package/lib/vtx-datagrid/style/index.js +102 -20
- package/lib/vtx-datagrid/style/index.less +242 -242
- package/lib/vtx-date-picker/QdatePicker.js +1 -1
- package/lib/vtx-date-picker/style/index.less +39 -39
- package/lib/vtx-descriptions/Descriptions.js +38 -0
- package/lib/vtx-descriptions/index.js +15 -0
- package/lib/vtx-descriptions/style/index.js +25 -0
- package/lib/vtx-ellipsis-text/index.js +7 -2
- package/lib/vtx-ellipsis-text/style/index.js +3 -1
- package/lib/vtx-export/index.js +34 -34
- package/lib/vtx-export-async/History.js +14 -8
- package/lib/vtx-export-async/index.js +43 -13
- package/lib/vtx-export-async/util.js +16 -5
- package/lib/vtx-form-layout/Card.js +9 -9
- package/lib/vtx-form-layout/Divider.js +1 -1
- package/lib/vtx-form-layout/FormItem.js +16 -16
- package/lib/vtx-form-layout/Pane.js +22 -11
- package/lib/vtx-icon/index.js +54 -52
- package/lib/vtx-icon/index.js1 +90 -0
- package/lib/vtx-image/Preview.js +11 -6
- package/lib/vtx-image/style/index.js +0 -1
- package/lib/vtx-import/index.js +209 -71
- package/lib/vtx-import/result.js +29 -27
- package/lib/vtx-import/style/index.js +16 -1
- package/lib/vtx-import2/Content.js +2 -1
- package/lib/vtx-import2/index.js +29 -18
- package/lib/vtx-import2/style/index.js +60 -9
- package/lib/vtx-modal/index.js +11 -6
- 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-page-layout/style/index.js +4 -2
- package/lib/vtx-provider/index.js +37 -33
- package/lib/vtx-provider/intl.js +9 -9
- package/lib/vtx-provider/locale/en_US.js +57 -3
- package/lib/vtx-provider/locale/zh_CN.js +57 -3
- package/lib/vtx-provider/useStyle/index.js +17 -17
- package/lib/vtx-search/index.js +13 -9
- package/lib/vtx-search/style/index.js +2 -1
- package/lib/vtx-select/index.js +104 -38
- package/lib/vtx-select/style/index.js +11 -56
- package/lib/vtx-signature/index.js +4 -3
- package/lib/vtx-signature/style/index.js +1 -1
- package/lib/vtx-split-pane/Resizer.js +0 -1
- package/lib/vtx-split-pane/SplitPane.js +40 -31
- package/lib/vtx-split-pane/style/index.js +8 -112
- package/lib/vtx-time-picker/index.js +27 -1
- package/lib/vtx-transfer/Transfer.js +38 -0
- package/lib/vtx-transfer/index.js +15 -0
- package/lib/vtx-transfer/style/index.js +25 -0
- package/lib/vtx-transfer-select/TransferSelect.js +151 -0
- package/lib/vtx-transfer-select/index.js +15 -0
- package/lib/vtx-transfer-select/style/index.js +25 -0
- package/lib/vtx-tree/index.js +96 -33
- package/lib/vtx-tree-select/index.js +71 -105
- package/lib/vtx-tree-select/style/index.js +9 -3
- package/lib/vtx-upload/FilePreview.js +2 -1
- package/lib/vtx-wang-editor/index.js +91 -37
- package/lib/vtx-wang-editor/style/index.less +12 -12
- package/lib/vtx-wang-editor/wangEditorUtil.js +4 -0
- package/package.json +240 -225
- package/es/utils/hooks/useFetchData/index.js +0 -82
- package/lib/utils/hooks/useFetchData/index.js +0 -89
|
@@ -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
|
+
}
|
|
@@ -26,7 +26,7 @@ export default function VtxQtimePicker(props) {
|
|
|
26
26
|
var _format$split;
|
|
27
27
|
var _useContext = useContext(ConfigProvider.ConfigContext),
|
|
28
28
|
getPrefixCls = _useContext.getPrefixCls;
|
|
29
|
-
var prefixCls = getPrefixCls('', 'vtx-
|
|
29
|
+
var prefixCls = getPrefixCls('', 'vtx-date-picker');
|
|
30
30
|
var _useStyle = useStyle(prefixCls),
|
|
31
31
|
wrapSSR = _useStyle.wrapSSR,
|
|
32
32
|
hashId = _useStyle.hashId;
|
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
|
|
8
|
+
import classnames from 'classnames';
|
|
9
|
+
import React, { useContext } from 'react';
|
|
10
|
+
import { Descriptions } from 'antd';
|
|
11
|
+
import { useStyle } from "./style";
|
|
12
|
+
import { VtxProvider } from "../vtx-provider";
|
|
13
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
+
function VtxDescriptions(props) {
|
|
15
|
+
var _useContext = useContext(VtxProvider),
|
|
16
|
+
getPrefixCls = _useContext.getPrefixCls;
|
|
17
|
+
var prefixCls = getPrefixCls('descriptions', props.prefixCls);
|
|
18
|
+
var _useStyle = useStyle(prefixCls),
|
|
19
|
+
wrapSSR = _useStyle.wrapSSR,
|
|
20
|
+
hashId = _useStyle.hashId;
|
|
21
|
+
var rest = Object.assign({}, (_objectDestructuringEmpty(props), props));
|
|
22
|
+
return wrapSSR( /*#__PURE__*/_jsx(Descriptions, _objectSpread({
|
|
23
|
+
classNames: {
|
|
24
|
+
root: classnames(hashId, prefixCls)
|
|
25
|
+
}
|
|
26
|
+
}, rest)));
|
|
27
|
+
}
|
|
28
|
+
VtxDescriptions.propTypes = {};
|
|
29
|
+
export default VtxDescriptions;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { useStyle as useAntdStyle } from "../../vtx-provider";
|
|
8
|
+
var genStyle = function genStyle(token) {
|
|
9
|
+
var componentCls = token.componentCls;
|
|
10
|
+
return _defineProperty({}, componentCls, {});
|
|
11
|
+
};
|
|
12
|
+
export function useStyle(prefixCls) {
|
|
13
|
+
return useAntdStyle('VtxDescriptions', function (token) {
|
|
14
|
+
var _token = _objectSpread(_objectSpread({}, token), {}, {
|
|
15
|
+
componentCls: ".".concat(prefixCls)
|
|
16
|
+
});
|
|
17
|
+
return [genStyle(_token)];
|
|
18
|
+
});
|
|
19
|
+
}
|
|
@@ -19,6 +19,11 @@ function VtxEllipsisText(props) {
|
|
|
19
19
|
tooltip = _props$tooltip === void 0 ? {} : _props$tooltip,
|
|
20
20
|
className = props.className,
|
|
21
21
|
style = props.style;
|
|
22
|
+
|
|
23
|
+
// 边界检查
|
|
24
|
+
if (!text) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
22
27
|
var _useContext = useContext(ConfigProvider.ConfigContext),
|
|
23
28
|
getPrefixCls = _useContext.getPrefixCls;
|
|
24
29
|
var prefixCls = getPrefixCls('vtx-ellipsis-text');
|
|
@@ -26,7 +31,7 @@ function VtxEllipsisText(props) {
|
|
|
26
31
|
wrapSSR = _useStyle.wrapSSR,
|
|
27
32
|
hashId = _useStyle.hashId;
|
|
28
33
|
var textStyle = {};
|
|
29
|
-
if (lineClamp
|
|
34
|
+
if (lineClamp >= 1) {
|
|
30
35
|
textStyle['WebkitLineClamp'] = lineClamp;
|
|
31
36
|
}
|
|
32
37
|
return wrapSSR( /*#__PURE__*/_jsx(Tooltip, _objectSpread(_objectSpread({
|
|
@@ -35,7 +40,7 @@ function VtxEllipsisText(props) {
|
|
|
35
40
|
mouseEnterDelay: 0.3
|
|
36
41
|
}, tooltip), {}, {
|
|
37
42
|
children: /*#__PURE__*/_jsx("p", {
|
|
38
|
-
className: classnames(prefixCls, hashId, _defineProperty(_defineProperty({}, "".concat(prefixCls, "--single"), lineClamp <
|
|
43
|
+
className: classnames(prefixCls, hashId, _defineProperty(_defineProperty({}, "".concat(prefixCls, "--single"), lineClamp < 1), "".concat(prefixCls, "--multi"), lineClamp >= 1), className),
|
|
39
44
|
style: _objectSpread(_objectSpread({}, style), textStyle),
|
|
40
45
|
children: text
|
|
41
46
|
})
|
|
@@ -10,7 +10,9 @@ var genVtxEllipsisTextStyle = function genVtxEllipsisTextStyle(token) {
|
|
|
10
10
|
return _defineProperty({}, componentCls, _defineProperty(_defineProperty({
|
|
11
11
|
margin: 0,
|
|
12
12
|
overflow: 'hidden',
|
|
13
|
-
textOverflow: 'ellipsis'
|
|
13
|
+
textOverflow: 'ellipsis',
|
|
14
|
+
wordBreak: "break-all",
|
|
15
|
+
wordWrap: "break-word"
|
|
14
16
|
}, "&--single", {
|
|
15
17
|
whiteSpace: 'nowrap'
|
|
16
18
|
}), "&--multi", {
|