@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
@@ -8,37 +8,85 @@ import { useStyle as useAntdStyle } from "../../vtx-provider";
8
8
  var genVtxStyle = function genVtxStyle(token) {
9
9
  var componentCls = token.componentCls,
10
10
  antCls = token.antCls;
11
- return _defineProperty({}, componentCls, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
11
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, componentCls, _defineProperty(_defineProperty({
12
12
  position: 'relative',
13
- overflow: 'hidden'
14
- }, "".concat(antCls, "-table-wrapper"), _defineProperty(_defineProperty({}, '.ant-table', _defineProperty(_defineProperty(_defineProperty({}, '.ant-table-header', _defineProperty({}, '.ant-table-thead', {
13
+ // overflow: 'hidden',
14
+ display: 'flex',
15
+ flexDirection: 'column'
16
+ }, "".concat(antCls, "-table-cell-ellipsis"), {
17
+ whiteSpace: 'normal'
18
+ }), "".concat(antCls, "-table-wrapper"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "table", {
19
+ // minWidth: "calc(100% - 2px) !important"
20
+ }), '.ant-spin, .ant-spin-nested-loading', _defineProperty({
21
+ height: '100%'
22
+ }, '.ant-spin-container', _defineProperty({
23
+ height: '100%',
24
+ display: 'flex',
25
+ flexDirection: 'column'
26
+ }, '.ant-table', _defineProperty({
27
+ // height: '100%',
28
+ flex: 1
29
+ }, '.ant-table-container', _defineProperty(_defineProperty({
30
+ height: '100%',
31
+ borderInlineStart: 'none'
32
+ }, '.ant-table-body', {
33
+ scrollbarWidth: 'thin'
34
+ }), '.ant-table-content', _defineProperty({
35
+ height: '100%',
36
+ scrollbarWidth: 'thin'
37
+ }, 'table', {
38
+ // height: '100%',
39
+ minWidth: 'calc(100% - 1px) !important'
40
+ })))))), '.ant-table', _defineProperty(_defineProperty(_defineProperty({}, '.ant-table-header', _defineProperty({}, '.ant-table-thead', {
15
41
  '>tr>th': {
16
- background: token.colorBgContainer
42
+ background: token.colorBgContainer,
43
+ '&:first-child': {
44
+ borderInlineStart: 'var(--ant-line-width) var(--ant-line-type) var(--ant-table-border-color)'
45
+ }
17
46
  }
18
47
  })), '.ant-table-cell', {
19
- minWidth: 20
20
- }), '.ant-table-body', _defineProperty({}, '.ant-table-tbody', {
48
+ // minWidth: 10,
49
+ }), '.ant-table-tbody', {
50
+ '>tr>td': {
51
+ '&:first-child': {
52
+ borderInlineStart: 'var(--ant-line-width) var(--ant-line-type) var(--ant-table-border-color)'
53
+ }
54
+ },
21
55
  '>tr.ant-table-placeholder': {
22
56
  position: 'absolute',
23
- top: '25%',
57
+ top: 'auto',
58
+ bottom: 'auto',
24
59
  right: 0,
25
60
  left: 0,
26
61
  backgroundColor: 'transparent',
27
62
  borderTop: 'none',
63
+ // borderInlineEnd: "var(--ant-line-width) var(--ant-line-type) var(--ant-table-border-color)",
64
+ // borderBottom: "var(--ant-line-width) var(--ant-line-type) var(--ant-table-border-color)",
28
65
  '>td.ant-table-cell': {
29
- display: 'flex',
30
- alignItems: 'center',
31
- justifyContent: 'center',
66
+ padding: 0,
32
67
  width: '100%',
33
68
  height: '100%',
34
- border: 'none'
69
+ border: 'none',
70
+ '>.ant-table-expanded-row-fixed': {
71
+ display: 'flex',
72
+ alignItems: 'center',
73
+ justifyContent: 'center',
74
+ height: '100%',
75
+ width: '100%',
76
+ '&::after': {
77
+ border: 'none'
78
+ }
79
+ }
35
80
  }
36
81
  }
37
- }))), '.ant-pagination', _defineProperty({}, '.ant-pagination-item', {
82
+ })), '.ant-pagination', _defineProperty({
83
+ margin: 'var(--ant-margin) 0 0 0'
84
+ }, '.ant-pagination-item', {
38
85
  borderRadius: token.borderRadiusSM
39
- }))), "&-fit", {
40
- height: '100%'
41
- }), "&-noFit", {}), "&-no-border", _defineProperty({}, "".concat(antCls, "-table-wrapper"), _defineProperty({}, "".concat(antCls, "-table"), _defineProperty({}, '>.ant-table-container', _defineProperty(_defineProperty({
86
+ })))), "".concat(componentCls, "-fit"), {
87
+ height: '100%',
88
+ minHeight: 200
89
+ }), "".concat(componentCls, "-noFit"), {}), "".concat(componentCls, "-no-border"), _defineProperty({}, "".concat(antCls, "-table-wrapper"), _defineProperty({}, "".concat(antCls, "-table"), _defineProperty({}, '>.ant-table-container', _defineProperty(_defineProperty(_defineProperty({
42
90
  borderColor: 'transparent'
43
91
  }, '.ant-table-thead', {
44
92
  '>tr>th': {
@@ -47,8 +95,20 @@ var genVtxStyle = function genVtxStyle(token) {
47
95
  }), '.ant-table-body', {
48
96
  '>table >tbody>tr>td': {
49
97
  borderInlineColor: 'transparent !important'
98
+ },
99
+ '>table >tbody>tr.ant-table-placeholder': {
100
+ borderInlineColor: 'transparent !important',
101
+ borderBottomColor: 'transparent !important'
50
102
  }
51
- }))))), "&.vtx-datagrid-striped", _defineProperty({}, "".concat(antCls, "-table-wrapper"), _defineProperty({}, "".concat(antCls, "-table"), _defineProperty({}, '>.ant-table-container', _defineProperty({}, '.ant-table-body', {
103
+ }), '.ant-table-content', {
104
+ '>table >tbody>tr>td': {
105
+ borderInlineColor: 'transparent !important'
106
+ },
107
+ '>table >tbody>tr.ant-table-placeholder': {
108
+ borderInlineColor: 'transparent !important',
109
+ borderBottomColor: 'transparent !important'
110
+ }
111
+ }))))), "".concat(componentCls, "-striped"), _defineProperty({}, "".concat(antCls, "-table-wrapper"), _defineProperty({}, "".concat(antCls, "-table"), _defineProperty({}, '>.ant-table-container', _defineProperty(_defineProperty({}, '.ant-table-body', {
52
112
  '>table >tbody>tr:nth-child(odd)>td': {
53
113
  backgroundColor: token.colorBgLayoutTable,
54
114
  '&.ant-table-cell-row-hover': {
@@ -64,11 +124,41 @@ var genVtxStyle = function genVtxStyle(token) {
64
124
  backgroundColor: token.controlItemBgActiveHover
65
125
  }
66
126
  }
67
- }))))), "&.vtx-datagrid-header-background", _defineProperty({}, "".concat(antCls, "-table-wrapper"), _defineProperty({}, '.ant-table', _defineProperty({}, '.ant-table-header', _defineProperty({}, '.ant-table-thead', {
127
+ }), '.ant-table-tbody', {
128
+ '>tr:nth-child(odd)>td': {
129
+ backgroundColor: token.colorBgLayoutTable,
130
+ '&.ant-table-cell-row-hover': {
131
+ backgroundColor: token.colorFillAlterSolid
132
+ }
133
+ },
134
+ '>tr:nth-child(odd)>td.ant-table-column-sort': {
135
+ backgroundColor: token.colorFillAlterSolid
136
+ },
137
+ '>tr.ant-table-row-selected:nth-child(odd)>td': {
138
+ backgroundColor: token.controlItemBgActive,
139
+ '&.ant-table-cell-row-hover': {
140
+ backgroundColor: token.controlItemBgActiveHover
141
+ }
142
+ }
143
+ }))))), "".concat(componentCls, "-header-background"), _defineProperty({}, "".concat(antCls, "-table-wrapper"), _defineProperty({}, '.ant-table', _defineProperty({}, '.ant-table-header', _defineProperty({}, '.ant-table-thead', {
68
144
  '>tr>th': {
69
145
  background: token.colorBgLayoutTable
70
146
  }
71
- }))))));
147
+ }))))), "".concat(componentCls, "-no-header-background"), _defineProperty({}, "".concat(antCls, "-table-wrapper "), _defineProperty({}, '.ant-table-thead', {
148
+ '>tr>th': {
149
+ background: token.colorBgContainer
150
+ }
151
+ }))), "".concat(componentCls, "-no-data"), _defineProperty({}, "".concat(antCls, "-table-wrapper"), _defineProperty({}, '.ant-spin', _defineProperty({}, '.ant-spin-container', _defineProperty({}, '.ant-table', _defineProperty({}, '.ant-table-container', _defineProperty({
152
+ borderInlineStart: 'var(--ant-line-width) var(--ant-line-type) var(--ant-table-border-color)'
153
+ }, '.ant-table-content', _defineProperty({
154
+ borderRight: 'var(--ant-line-width) var(--ant-line-type) var(--ant-table-border-color)',
155
+ borderBottom: 'var(--ant-line-width) var(--ant-line-type) var(--ant-table-border-color)'
156
+ }, 'table', {})))))))), "".concat(componentCls, "-no-data").concat(componentCls, "-no-border"), _defineProperty({}, "".concat(antCls, "-table-wrapper"), _defineProperty({}, '.ant-spin', _defineProperty({}, '.ant-spin-container', _defineProperty({}, '.ant-table', _defineProperty({}, '.ant-table-container', _defineProperty({
157
+ borderInlineStart: 'none'
158
+ }, '.ant-table-content', {
159
+ borderRight: 'none',
160
+ borderBottom: 'none'
161
+ })))))));
72
162
  };
73
163
  export function useStyle(prefix) {
74
164
  return useAntdStyle(prefix, function (token) {
@@ -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-color-picker');
29
+ var prefixCls = getPrefixCls('', 'vtx-date-picker');
30
30
  var _useStyle = useStyle(prefixCls),
31
31
  wrapSSR = _useStyle.wrapSSR,
32
32
  hashId = _useStyle.hashId;