@vtx/components 4.0.0-beta.9 → 4.0.0-beta.90

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 (188) hide show
  1. package/README.md +19 -19
  2. package/es/index.js +3 -0
  3. package/es/utils/components/LabelIconTip/index.js +7 -7
  4. package/es/utils/conversionMomentValue/index.js +25 -25
  5. package/es/utils/filterSpecialCharacters.js +6 -6
  6. package/es/utils/genCopyable/index.js +6 -6
  7. package/es/utils/getFieldPropsOrFormItemProps/index.js +7 -7
  8. package/es/utils/hooks/useDebounceFn/index.js +4 -4
  9. package/es/utils/hooks/useDebounceValue/index.js +6 -6
  10. package/es/utils/hooks/useDeepCompareMemo/index.js +7 -7
  11. package/es/utils/hooks/useLatest/index.js +2 -2
  12. package/es/utils/hooks/useRefCallback/index.js +5 -5
  13. package/es/utils/index.js +1 -2
  14. package/es/utils/isBrowser/index.js +7 -7
  15. package/es/utils/isUrl/index.js +4 -4
  16. package/es/utils/merge/index.js +4 -4
  17. package/es/utils/nanoid/index.js +4 -4
  18. package/es/utils/omitBoolean/index.js +4 -4
  19. package/es/utils/parseValueToMoment/index.js +4 -4
  20. package/es/utils/proFieldParsingText/index.js +10 -10
  21. package/es/utils/transformKeySubmitValue/index.js +57 -57
  22. package/es/utils/useEditableArray/index.js +46 -46
  23. package/es/utils/useEditableMap/index.js +22 -22
  24. package/es/utils/useMediaQuery/index.js +5 -5
  25. package/es/vtx-combogrid/Combogrid.js +5 -4
  26. package/es/vtx-combogrid/index.js +7 -4
  27. package/es/vtx-datagrid/Store/Provide.js +109 -140
  28. package/es/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +7 -6
  29. package/es/vtx-datagrid/ToolBar/components/ColumnSetting/style.js +5 -2
  30. package/es/vtx-datagrid/ToolBar/index.js +2 -1
  31. package/es/vtx-datagrid/ToolBar/style.js +6 -3
  32. package/es/vtx-datagrid/columnState.js +91 -0
  33. package/es/vtx-datagrid/index.js +134 -37
  34. package/es/vtx-datagrid/mergeComponents.js +15 -0
  35. package/es/vtx-datagrid/renderColumnButtons.js +30 -11
  36. package/es/vtx-datagrid/style/index.js +108 -18
  37. package/es/vtx-datagrid/style/index.less +242 -242
  38. package/es/vtx-date-picker/QdatePicker.js +1 -1
  39. package/es/vtx-date-picker/style/index.less +39 -39
  40. package/es/vtx-descriptions/Descriptions.js +29 -0
  41. package/es/vtx-descriptions/index.js +3 -0
  42. package/es/vtx-descriptions/style/index.js +19 -0
  43. package/es/vtx-ellipsis-text/index.js +2 -2
  44. package/es/vtx-ellipsis-text/style/index.js +3 -1
  45. package/es/vtx-export/index.js +33 -38
  46. package/es/vtx-export-async/History.js +15 -7
  47. package/es/vtx-export-async/index.js +18 -8
  48. package/es/vtx-export-async/util.js +16 -5
  49. package/es/vtx-form-layout/FormItem.js +16 -16
  50. package/es/vtx-form-layout/style/index.js +6 -4
  51. package/es/vtx-icon/index.js +54 -45
  52. package/es/vtx-icon/index.js1 +90 -0
  53. package/es/vtx-image/style/index.js +0 -1
  54. package/es/vtx-import/index.js +143 -42
  55. package/es/vtx-import/result.js +28 -26
  56. package/es/vtx-import/style/index.js +16 -1
  57. package/es/vtx-import2/Content.js +2 -1
  58. package/es/vtx-import2/index.js +29 -19
  59. package/es/vtx-import2/style/index.js +59 -8
  60. package/es/vtx-modal/index.js +11 -6
  61. package/es/vtx-modal/style/index.js +5 -2
  62. package/es/vtx-page-layout/Basic.js +2 -2
  63. package/es/vtx-page-layout/TabLayout.js +6 -6
  64. package/es/vtx-page-layout/TableLayout.js +10 -10
  65. package/es/vtx-page-layout/TreeLayout.js +6 -6
  66. package/es/vtx-page-layout/container.js +2 -2
  67. package/es/vtx-page-layout/style/index.js +4 -2
  68. package/es/vtx-provider/index.js +33 -31
  69. package/es/vtx-provider/intl.js +9 -9
  70. package/es/vtx-provider/locale/en_GB.js +1 -1
  71. package/es/vtx-provider/locale/en_US.js +58 -4
  72. package/es/vtx-provider/locale/zh_CN.js +57 -3
  73. package/es/vtx-provider/useStyle/index.js +17 -17
  74. package/es/vtx-search/index.js +30 -12
  75. package/es/vtx-search/style/index.js +6 -3
  76. package/es/vtx-select/index.js +123 -40
  77. package/es/vtx-select/style/index.js +11 -56
  78. package/es/vtx-split-pane/Resizer.js +0 -1
  79. package/es/vtx-split-pane/SplitPane.js +42 -34
  80. package/es/vtx-split-pane/style/index.js +8 -112
  81. package/es/vtx-time-picker/index.js +27 -1
  82. package/es/vtx-transfer/Transfer.js +29 -0
  83. package/es/vtx-transfer/index.js +3 -0
  84. package/es/vtx-transfer/style/index.js +19 -0
  85. package/es/vtx-transfer-select/TransferSelect.js +143 -0
  86. package/es/vtx-transfer-select/index.js +3 -0
  87. package/es/vtx-transfer-select/style/index.js +19 -0
  88. package/es/vtx-tree/index.js +27 -9
  89. package/es/vtx-tree-select/index.js +81 -110
  90. package/es/vtx-tree-select/style/index.js +9 -3
  91. package/es/vtx-upload/FilePreview.js +2 -1
  92. package/es/vtx-wang-editor/index.js +41 -32
  93. package/es/vtx-wang-editor/style/index.less +12 -12
  94. package/lib/index.js +36 -0
  95. package/lib/utils/components/LabelIconTip/index.js +7 -7
  96. package/lib/utils/conversionMomentValue/index.js +25 -25
  97. package/lib/utils/filterSpecialCharacters.js +6 -6
  98. package/lib/utils/genCopyable/index.js +6 -6
  99. package/lib/utils/getFieldPropsOrFormItemProps/index.js +7 -7
  100. package/lib/utils/hooks/useDebounceFn/index.js +4 -4
  101. package/lib/utils/hooks/useDebounceValue/index.js +6 -6
  102. package/lib/utils/hooks/useDeepCompareMemo/index.js +7 -7
  103. package/lib/utils/hooks/useLatest/index.js +2 -2
  104. package/lib/utils/hooks/useRefCallback/index.js +5 -5
  105. package/lib/utils/index.js +0 -7
  106. package/lib/utils/isBrowser/index.js +7 -7
  107. package/lib/utils/isUrl/index.js +4 -4
  108. package/lib/utils/merge/index.js +4 -4
  109. package/lib/utils/nanoid/index.js +4 -4
  110. package/lib/utils/omitBoolean/index.js +4 -4
  111. package/lib/utils/parseValueToMoment/index.js +4 -4
  112. package/lib/utils/proFieldParsingText/index.js +10 -10
  113. package/lib/utils/transformKeySubmitValue/index.js +57 -57
  114. package/lib/utils/useEditableArray/index.js +46 -46
  115. package/lib/utils/useEditableMap/index.js +22 -22
  116. package/lib/utils/useMediaQuery/index.js +5 -5
  117. package/lib/vtx-combogrid/Combogrid.js +5 -4
  118. package/lib/vtx-combogrid/index.js +7 -4
  119. package/lib/vtx-datagrid/Store/Provide.js +112 -142
  120. package/lib/vtx-datagrid/ToolBar/components/ColumnSetting/index.js +7 -6
  121. package/lib/vtx-datagrid/ToolBar/components/ColumnSetting/style.js +5 -2
  122. package/lib/vtx-datagrid/ToolBar/index.js +2 -1
  123. package/lib/vtx-datagrid/ToolBar/style.js +6 -3
  124. package/lib/vtx-datagrid/columnState.js +100 -0
  125. package/lib/vtx-datagrid/index.js +134 -37
  126. package/lib/vtx-datagrid/mergeComponents.js +21 -0
  127. package/lib/vtx-datagrid/renderColumnButtons.js +30 -11
  128. package/lib/vtx-datagrid/style/index.js +108 -18
  129. package/lib/vtx-datagrid/style/index.less +242 -242
  130. package/lib/vtx-date-picker/QdatePicker.js +1 -1
  131. package/lib/vtx-date-picker/style/index.less +39 -39
  132. package/lib/vtx-descriptions/Descriptions.js +38 -0
  133. package/lib/vtx-descriptions/index.js +15 -0
  134. package/lib/vtx-descriptions/style/index.js +25 -0
  135. package/lib/vtx-ellipsis-text/index.js +2 -2
  136. package/lib/vtx-ellipsis-text/style/index.js +3 -1
  137. package/lib/vtx-export/index.js +34 -39
  138. package/lib/vtx-export-async/History.js +14 -8
  139. package/lib/vtx-export-async/index.js +18 -8
  140. package/lib/vtx-export-async/util.js +16 -5
  141. package/lib/vtx-form-layout/FormItem.js +16 -16
  142. package/lib/vtx-form-layout/style/index.js +6 -4
  143. package/lib/vtx-icon/index.js +54 -52
  144. package/lib/vtx-icon/index.js1 +90 -0
  145. package/lib/vtx-image/style/index.js +0 -1
  146. package/lib/vtx-import/index.js +141 -43
  147. package/lib/vtx-import/result.js +29 -27
  148. package/lib/vtx-import/style/index.js +16 -1
  149. package/lib/vtx-import2/Content.js +2 -1
  150. package/lib/vtx-import2/index.js +29 -19
  151. package/lib/vtx-import2/style/index.js +59 -8
  152. package/lib/vtx-modal/index.js +11 -6
  153. package/lib/vtx-modal/style/index.js +5 -2
  154. package/lib/vtx-page-layout/Basic.js +2 -2
  155. package/lib/vtx-page-layout/TabLayout.js +6 -6
  156. package/lib/vtx-page-layout/TableLayout.js +10 -10
  157. package/lib/vtx-page-layout/TreeLayout.js +6 -6
  158. package/lib/vtx-page-layout/container.js +2 -2
  159. package/lib/vtx-page-layout/style/index.js +4 -2
  160. package/lib/vtx-provider/index.js +33 -31
  161. package/lib/vtx-provider/intl.js +9 -9
  162. package/lib/vtx-provider/locale/en_GB.js +1 -1
  163. package/lib/vtx-provider/locale/en_US.js +58 -4
  164. package/lib/vtx-provider/locale/zh_CN.js +57 -3
  165. package/lib/vtx-provider/useStyle/index.js +17 -17
  166. package/lib/vtx-search/index.js +32 -12
  167. package/lib/vtx-search/style/index.js +6 -3
  168. package/lib/vtx-select/index.js +125 -42
  169. package/lib/vtx-select/style/index.js +11 -56
  170. package/lib/vtx-split-pane/Resizer.js +0 -1
  171. package/lib/vtx-split-pane/SplitPane.js +40 -31
  172. package/lib/vtx-split-pane/style/index.js +8 -112
  173. package/lib/vtx-time-picker/index.js +27 -1
  174. package/lib/vtx-transfer/Transfer.js +38 -0
  175. package/lib/vtx-transfer/index.js +15 -0
  176. package/lib/vtx-transfer/style/index.js +25 -0
  177. package/lib/vtx-transfer-select/TransferSelect.js +151 -0
  178. package/lib/vtx-transfer-select/index.js +15 -0
  179. package/lib/vtx-transfer-select/style/index.js +25 -0
  180. package/lib/vtx-tree/index.js +27 -9
  181. package/lib/vtx-tree-select/index.js +81 -112
  182. package/lib/vtx-tree-select/style/index.js +9 -3
  183. package/lib/vtx-upload/FilePreview.js +2 -1
  184. package/lib/vtx-wang-editor/index.js +39 -30
  185. package/lib/vtx-wang-editor/style/index.less +12 -12
  186. package/package.json +239 -238
  187. package/es/utils/hooks/useFetchData/index.js +0 -82
  188. 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
+ }
@@ -31,7 +31,7 @@ function VtxQtimePicker(props) {
31
31
  var _format$split;
32
32
  var _useContext = (0, _react.useContext)(_antd.ConfigProvider.ConfigContext),
33
33
  getPrefixCls = _useContext.getPrefixCls;
34
- var prefixCls = getPrefixCls('', 'vtx-color-picker');
34
+ var prefixCls = getPrefixCls('', 'vtx-date-picker');
35
35
  var _useStyle = (0, _index.useStyle)(prefixCls),
36
36
  wrapSSR = _useStyle.wrapSSR,
37
37
  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,38 @@
1
+ "use strict";
2
+
3
+ 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); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ var _classnames = _interopRequireDefault(require("classnames"));
9
+ var _react = _interopRequireWildcard(require("react"));
10
+ var _antd = require("antd");
11
+ var _style = require("./style");
12
+ var _vtxProvider = require("../vtx-provider");
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
15
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
16
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+ 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; }
18
+ 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; }
19
+ 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; }
20
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
21
+ 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); }
22
+ function _objectDestructuringEmpty(obj) { if (obj == null) throw new TypeError("Cannot destructure " + obj); }
23
+ function VtxDescriptions(props) {
24
+ var _useContext = (0, _react.useContext)(_vtxProvider.VtxProvider),
25
+ getPrefixCls = _useContext.getPrefixCls;
26
+ var prefixCls = getPrefixCls('descriptions', props.prefixCls);
27
+ var _useStyle = (0, _style.useStyle)(prefixCls),
28
+ wrapSSR = _useStyle.wrapSSR,
29
+ hashId = _useStyle.hashId;
30
+ var rest = Object.assign({}, (_objectDestructuringEmpty(props), props));
31
+ return wrapSSR( /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Descriptions, _objectSpread({
32
+ classNames: {
33
+ root: (0, _classnames.default)(hashId, prefixCls)
34
+ }
35
+ }, rest)));
36
+ }
37
+ VtxDescriptions.propTypes = {};
38
+ var _default = exports.default = VtxDescriptions;
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "VtxDescriptions", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _Descriptions.default;
10
+ }
11
+ });
12
+ exports.default = void 0;
13
+ var _Descriptions = _interopRequireDefault(require("./Descriptions"));
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+ var _default = exports.default = _Descriptions.default;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useStyle = useStyle;
7
+ var _vtxProvider = require("../../vtx-provider");
8
+ 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); }
9
+ 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; }
10
+ 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; }
11
+ 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; }
12
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
13
+ 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); }
14
+ var genStyle = function genStyle(token) {
15
+ var componentCls = token.componentCls;
16
+ return _defineProperty({}, componentCls, {});
17
+ };
18
+ function useStyle(prefixCls) {
19
+ return (0, _vtxProvider.useStyle)('VtxDescriptions', function (token) {
20
+ var _token = _objectSpread(_objectSpread({}, token), {}, {
21
+ componentCls: ".".concat(prefixCls)
22
+ });
23
+ return [genStyle(_token)];
24
+ });
25
+ }
@@ -40,7 +40,7 @@ function VtxEllipsisText(props) {
40
40
  wrapSSR = _useStyle.wrapSSR,
41
41
  hashId = _useStyle.hashId;
42
42
  var textStyle = {};
43
- if (lineClamp >= 2) {
43
+ if (lineClamp >= 1) {
44
44
  textStyle['WebkitLineClamp'] = lineClamp;
45
45
  }
46
46
  return wrapSSR( /*#__PURE__*/(0, _jsxRuntime.jsx)(_antd.Tooltip, _objectSpread(_objectSpread({
@@ -49,7 +49,7 @@ function VtxEllipsisText(props) {
49
49
  mouseEnterDelay: 0.3
50
50
  }, tooltip), {}, {
51
51
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
52
- className: (0, _classnames2.default)(prefixCls, hashId, _defineProperty(_defineProperty({}, "".concat(prefixCls, "--single"), lineClamp < 2), "".concat(prefixCls, "--multi"), lineClamp >= 2), className),
52
+ className: (0, _classnames2.default)(prefixCls, hashId, _defineProperty(_defineProperty({}, "".concat(prefixCls, "--single"), lineClamp < 1), "".concat(prefixCls, "--multi"), lineClamp >= 1), className),
53
53
  style: _objectSpread(_objectSpread({}, style), textStyle),
54
54
  children: text
55
55
  })