zmdms-webui 2.3.2 → 2.3.3

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 (255) hide show
  1. package/dist/es/alert/alert.d.ts +5 -0
  2. package/dist/es/alert/index.css +1 -0
  3. package/dist/es/alert/index.d.ts +5 -0
  4. package/dist/es/alert/interface.d.ts +14 -0
  5. package/dist/es/applayout/appLayout.d.ts +11 -0
  6. package/dist/es/applayout/index.css +1 -0
  7. package/dist/es/applayout/index.d.ts +5 -0
  8. package/dist/es/applayoutheader/appLayoutHeader.d.ts +16 -0
  9. package/dist/es/applayoutheader/index.d.ts +5 -0
  10. package/dist/es/applayoutsider/appLayoutSider.d.ts +57 -0
  11. package/dist/es/applayoutsider/index.d.ts +5 -0
  12. package/dist/es/authloading/authLoading.d.ts +5 -0
  13. package/dist/es/authloading/index.css +1 -0
  14. package/dist/es/authloading/index.d.ts +5 -0
  15. package/dist/es/button/button.d.ts +5 -0
  16. package/dist/es/button/buttonDownload.d.ts +25 -0
  17. package/dist/es/button/buttonExport.d.ts +15 -0
  18. package/dist/es/button/buttonFullScreen.d.ts +9 -0
  19. package/dist/es/button/buttonPreview.d.ts +26 -0
  20. package/dist/es/button/index.css +1 -0
  21. package/dist/es/button/index.d.ts +5 -0
  22. package/dist/es/button/interface.d.ts +34 -0
  23. package/dist/es/calendar/index.d.ts +7 -0
  24. package/dist/es/canvastable/canvasTable.d.ts +6 -0
  25. package/dist/es/canvastable/index.css +1 -0
  26. package/dist/es/canvastable/index.d.ts +5 -0
  27. package/dist/es/canvastable/interface.d.ts +375 -0
  28. package/dist/es/cascader/index.css +1 -0
  29. package/dist/es/collapse/collapse.d.ts +7 -0
  30. package/dist/es/collapse/index.css +1 -0
  31. package/dist/es/collapse/index.d.ts +5 -0
  32. package/dist/es/collapse/interface.d.ts +25 -0
  33. package/dist/es/config/ZtxkContext.d.ts +32 -0
  34. package/dist/es/container/container.d.ts +51 -0
  35. package/dist/es/container/index.css +1 -0
  36. package/dist/es/container/index.d.ts +5 -0
  37. package/dist/es/datepicker/index.css +1 -0
  38. package/dist/es/datepicker/index.d.ts +48 -0
  39. package/dist/es/datepicker/interface.d.ts +56 -0
  40. package/dist/es/descriptions/descriptions.d.ts +5 -0
  41. package/dist/es/descriptions/index.css +1 -0
  42. package/dist/es/descriptions/index.d.ts +5 -0
  43. package/dist/es/descriptions/interface.d.ts +12 -0
  44. package/dist/es/detaillist/index.css +1 -0
  45. package/dist/es/detaillist/index.d.ts +5 -0
  46. package/dist/es/detaillist/item.d.ts +35 -0
  47. package/dist/es/detaillist/list.d.ts +17 -0
  48. package/dist/es/differences/differences.d.ts +5 -0
  49. package/dist/es/differences/index.css +1 -0
  50. package/dist/es/differences/index.d.ts +5 -0
  51. package/dist/es/differences/interface.d.ts +17 -0
  52. package/dist/es/dynamicsetting/dynamicSetting.d.ts +6 -0
  53. package/dist/es/dynamicsetting/index.css +1 -0
  54. package/dist/es/dynamicsetting/index.d.ts +5 -0
  55. package/dist/es/dynamicsetting/interface.d.ts +43 -0
  56. package/dist/es/electronsignatures/index.css +1 -0
  57. package/dist/es/electronsignatures/index.d.ts +6 -0
  58. package/dist/es/electronsignatures/interface.d.ts +500 -0
  59. package/dist/es/enhanceselect/enhance-select.d.ts +6 -0
  60. package/dist/es/enhanceselect/index.d.ts +5 -0
  61. package/dist/es/enhanceselect/interface.d.ts +71 -0
  62. package/dist/es/footer/footer.d.ts +6 -0
  63. package/dist/es/footer/index.css +1 -0
  64. package/dist/es/footer/index.d.ts +5 -0
  65. package/dist/es/footer/interface.d.ts +34 -0
  66. package/dist/es/form/form.d.ts +18 -0
  67. package/dist/es/form/index.css +1 -0
  68. package/dist/es/form/index.d.ts +5 -0
  69. package/dist/es/form/interface.d.ts +91 -0
  70. package/dist/es/formitem/formItem.d.ts +115 -0
  71. package/dist/es/formitem/index.css +1 -0
  72. package/dist/es/formitem/index.d.ts +5 -0
  73. package/dist/es/icon/icon-oss.d.ts +6 -0
  74. package/dist/es/icon/index.d.ts +6 -0
  75. package/dist/es/input/TextArea.d.ts +13 -0
  76. package/dist/es/input/index.css +1 -0
  77. package/dist/es/input/index.d.ts +5 -0
  78. package/dist/es/input/input.d.ts +23 -0
  79. package/dist/es/inputnumber/index.css +1 -0
  80. package/dist/es/inputnumber/index.d.ts +5 -0
  81. package/dist/es/inputnumber/inputNumber.d.ts +28 -0
  82. package/dist/es/inputnumber/interface.d.ts +4 -0
  83. package/dist/es/leftcontent/index.css +1 -0
  84. package/dist/es/leftcontent/index.d.ts +5 -0
  85. package/dist/es/leftcontent/leftContent.d.ts +31 -0
  86. package/dist/es/login/index.css +1 -0
  87. package/dist/es/login/index.d.ts +37 -0
  88. package/dist/es/message/index.css +1 -0
  89. package/dist/es/message/index.d.ts +5 -0
  90. package/dist/es/microloading/index.css +1 -0
  91. package/dist/es/microloading/index.d.ts +5 -0
  92. package/dist/es/microloading/micro-loading.d.ts +8 -0
  93. package/dist/es/modal/index.css +1 -0
  94. package/dist/es/modal/index.d.ts +5 -0
  95. package/dist/es/modal/interface.d.ts +91 -0
  96. package/dist/es/modal/modal.d.ts +5 -0
  97. package/dist/es/notauthpage/index.css +0 -0
  98. package/dist/es/notauthpage/index.d.ts +5 -0
  99. package/dist/es/notauthpage/notAuthPage.d.ts +8 -0
  100. package/dist/es/notroutepage/index.css +0 -0
  101. package/dist/es/notroutepage/index.d.ts +5 -0
  102. package/dist/es/notroutepage/notRoutePage.d.ts +8 -0
  103. package/dist/es/operationbtn/index.d.ts +5 -0
  104. package/dist/es/operationbtn/interface.d.ts +34 -0
  105. package/dist/es/operationbtn/operationBtn.d.ts +6 -0
  106. package/dist/es/pagination/index.css +1 -0
  107. package/dist/es/pagination/index.d.ts +5 -0
  108. package/dist/es/pagination/pagination.d.ts +8 -0
  109. package/dist/es/placeholder/index.css +1 -0
  110. package/dist/es/placeholder/index.d.ts +5 -0
  111. package/dist/es/placeholder/interface.d.ts +12 -0
  112. package/dist/es/placeholder/placeholder.d.ts +5 -0
  113. package/dist/es/print/index.css +1 -0
  114. package/dist/es/print/index.d.ts +5 -0
  115. package/dist/es/print/interface.d.ts +69 -0
  116. package/dist/es/print/print-page.d.ts +6 -0
  117. package/dist/es/print/print.d.ts +5 -0
  118. package/dist/es/protectedroute/index.d.ts +24 -0
  119. package/dist/es/select/hooks.d.ts +16 -0
  120. package/dist/es/select/index.css +1 -0
  121. package/dist/es/select/index.d.ts +5 -0
  122. package/dist/es/select/interface.d.ts +82 -0
  123. package/dist/es/select/select-render.d.ts +31 -0
  124. package/dist/es/select/select.d.ts +5 -0
  125. package/dist/es/sortable/index.d.ts +5 -0
  126. package/dist/es/sortable/sortable-item.d.ts +14 -0
  127. package/dist/es/sortable/sortable.d.ts +13 -0
  128. package/dist/es/suspensecomponent/index.d.ts +10 -0
  129. package/dist/es/table/components/Badge.d.ts +24 -0
  130. package/dist/es/table/components/TitleDirectionColumn.d.ts +11 -0
  131. package/dist/es/table/constant.d.ts +3 -0
  132. package/dist/es/table/index.css +1 -0
  133. package/dist/es/table/index.d.ts +5 -0
  134. package/dist/es/table/interface.d.ts +613 -0
  135. package/dist/es/table/table.d.ts +11 -0
  136. package/dist/es/tabs/index.css +1 -0
  137. package/dist/es/tabs/index.d.ts +5 -0
  138. package/dist/es/tabs/interface.d.ts +52 -0
  139. package/dist/es/tabs/tabs.d.ts +5 -0
  140. package/dist/es/tag/index.css +1 -0
  141. package/dist/es/tag/index.d.ts +5 -0
  142. package/dist/es/tag/interface.d.ts +9 -0
  143. package/dist/es/tag/tag.d.ts +5 -0
  144. package/dist/es/timepicker/index.d.ts +19 -0
  145. package/dist/es/title/index.css +1 -0
  146. package/dist/es/title/index.d.ts +5 -0
  147. package/dist/es/title/interface.d.ts +35 -0
  148. package/dist/es/title/title.d.ts +5 -0
  149. package/dist/es/tree/index.css +1 -0
  150. package/dist/es/tree/index.d.ts +5 -0
  151. package/dist/es/tree/interface.d.ts +44 -0
  152. package/dist/es/tree/tree.d.ts +5 -0
  153. package/dist/es/treeselect/index.css +1 -0
  154. package/dist/es/treeselect/index.d.ts +5 -0
  155. package/dist/es/treeselect/interface.d.ts +32 -0
  156. package/dist/es/treeselect/treeSelect.d.ts +5 -0
  157. package/dist/es/uploadlist/index.css +1 -0
  158. package/dist/es/uploadlist/index.d.ts +5 -0
  159. package/dist/es/uploadlist/interface.d.ts +113 -0
  160. package/dist/es/uploadlist/uploadList.d.ts +5 -0
  161. package/dist/es/watermark/index.css +1 -0
  162. package/dist/es/watermark/index.d.ts +5 -0
  163. package/dist/es/watermark/interface.d.ts +23 -0
  164. package/dist/es/watermark/watermark.d.ts +5 -0
  165. package/dist/es/zttransfer/index.css +1 -0
  166. package/dist/es/zttransfer/index.d.ts +5 -0
  167. package/dist/es/zttransfer/interface.d.ts +38 -0
  168. package/dist/es/zttransfer/zt-transfer.d.ts +6 -0
  169. package/dist/index.build.d.ts +69 -0
  170. package/dist/index.dark.css +2 -0
  171. package/dist/index.default.css +2 -0
  172. package/dist/index.es.css +1 -1
  173. package/dist/less/components/Alert/style/index.less +53 -0
  174. package/dist/less/components/Alert/style/style.less +4 -0
  175. package/dist/less/components/AppLayout/style/index.less +546 -0
  176. package/dist/less/components/AppLayout/style/style.less +2 -0
  177. package/dist/less/components/AppLayout/style.less +5 -0
  178. package/dist/less/components/AuthLoading/style/index.less +15 -0
  179. package/dist/less/components/AuthLoading/style/style.less +2 -0
  180. package/dist/less/components/Button/style/index.less +160 -0
  181. package/dist/less/components/Button/style/style.less +5 -0
  182. package/dist/less/components/CanvasTable/style/index.less +104 -0
  183. package/dist/less/components/CanvasTable/style/style.less +1 -0
  184. package/dist/less/components/Cascader/style/index.less +9 -0
  185. package/dist/less/components/Cascader/style/style.less +2 -0
  186. package/dist/less/components/Collapse/style/index.less +117 -0
  187. package/dist/less/components/Collapse/style/style.less +2 -0
  188. package/dist/less/components/Container/style/index.less +64 -0
  189. package/dist/less/components/Container/style/style.less +2 -0
  190. package/dist/less/components/DatePicker/style/index.less +7 -0
  191. package/dist/less/components/DatePicker/style/style.less +4 -0
  192. package/dist/less/components/Descriptions/style/index.less +32 -0
  193. package/dist/less/components/Descriptions/style/style.less +5 -0
  194. package/dist/less/components/DetailList/style/index.less +105 -0
  195. package/dist/less/components/DetailList/style/style.less +2 -0
  196. package/dist/less/components/Differences/style/index.less +5 -0
  197. package/dist/less/components/Differences/style/style.less +2 -0
  198. package/dist/less/components/DynamicSetting/style/index.less +96 -0
  199. package/dist/less/components/DynamicSetting/style/style.less +2 -0
  200. package/dist/less/components/ElectronSignatures/style/index.less +331 -0
  201. package/dist/less/components/ElectronSignatures/style/style.less +1 -0
  202. package/dist/less/components/Footer/style/index.less +28 -0
  203. package/dist/less/components/Footer/style/style.less +2 -0
  204. package/dist/less/components/Form/style/index.less +150 -0
  205. package/dist/less/components/Form/style/style.less +5 -0
  206. package/dist/less/components/FormItem/style/index.less +456 -0
  207. package/dist/less/components/FormItem/style/style.less +2 -0
  208. package/dist/less/components/Input/style/index.less +15 -0
  209. package/dist/less/components/Input/style/style.less +4 -0
  210. package/dist/less/components/InputNumber/style/index.less +30 -0
  211. package/dist/less/components/InputNumber/style/style.less +4 -0
  212. package/dist/less/components/LeftContent/style/index.less +62 -0
  213. package/dist/less/components/LeftContent/style/style.less +2 -0
  214. package/dist/less/components/Login/style/index.less +63 -0
  215. package/dist/less/components/Login/style/style.less +2 -0
  216. package/dist/less/components/Message/style/index.less +19 -0
  217. package/dist/less/components/Message/style/style.less +2 -0
  218. package/dist/less/components/MicroLoading/style/index.less +15 -0
  219. package/dist/less/components/MicroLoading/style/style.less +2 -0
  220. package/dist/less/components/Modal/style/index.less +43 -0
  221. package/dist/less/components/Modal/style/style.less +2 -0
  222. package/dist/less/components/NotAuthPage/style/index.less +0 -0
  223. package/dist/less/components/NotAuthPage/style/style.less +2 -0
  224. package/dist/less/components/NotRoutePage/style/index.less +0 -0
  225. package/dist/less/components/NotRoutePage/style/style.less +2 -0
  226. package/dist/less/components/Pagination/style/index.less +107 -0
  227. package/dist/less/components/Pagination/style/style.less +5 -0
  228. package/dist/less/components/Placeholder/style/index.less +3 -0
  229. package/dist/less/components/Placeholder/style/style.less +2 -0
  230. package/dist/less/components/Print/style/index.less +65 -0
  231. package/dist/less/components/Print/style/style.less +3 -0
  232. package/dist/less/components/Select/style/index.less +55 -0
  233. package/dist/less/components/Select/style/style.less +4 -0
  234. package/dist/less/components/Table/style/index.less +362 -0
  235. package/dist/less/components/Table/style/style.less +4 -0
  236. package/dist/less/components/Tabs/style/index.less +118 -0
  237. package/dist/less/components/Tabs/style/style.less +4 -0
  238. package/dist/less/components/Tag/style/index.less +3 -0
  239. package/dist/less/components/Tag/style/style.less +4 -0
  240. package/dist/less/components/Title/style/index.less +54 -0
  241. package/dist/less/components/Title/style/style.less +2 -0
  242. package/dist/less/components/Tree/style/index.less +58 -0
  243. package/dist/less/components/Tree/style/style.less +4 -0
  244. package/dist/less/components/TreeSelect/style/index.less +0 -0
  245. package/dist/less/components/TreeSelect/style/style.less +4 -0
  246. package/dist/less/components/UploadList/style/index.less +61 -0
  247. package/dist/less/components/UploadList/style/style.less +4 -0
  248. package/dist/less/components/Watermark/style/index.less +7 -0
  249. package/dist/less/components/Watermark/style/style.less +3 -0
  250. package/dist/less/components/ZtTransfer/style/index.less +136 -0
  251. package/dist/less/components/ZtTransfer/style/style.less +2 -0
  252. package/dist/less/styles/default.less +100 -0
  253. package/dist/less/styles/index.less +88 -0
  254. package/dist/less/styles/reset.less +189 -0
  255. package/package.json +1 -1
@@ -0,0 +1,43 @@
1
+ @qynModalHeaderHeight: 40px;
2
+
3
+ .ztxk-modal {
4
+ top: 8vh;
5
+ .ant-modal-content {
6
+ border-radius: 8px;
7
+ > .ant-modal-close {
8
+ color: #333333;
9
+ width: @qynModalHeaderHeight;
10
+ height: @qynModalHeaderHeight;
11
+ > .ant-modal-close-x {
12
+ width: @qynModalHeaderHeight;
13
+ height: @qynModalHeaderHeight;
14
+ line-height: @qynModalHeaderHeight;
15
+ font-weight: normal;
16
+ }
17
+ }
18
+ > .ant-modal-header {
19
+ padding: 9px 20px 9px 24px;
20
+ border-bottom: 1px solid #f0f0f0;
21
+ border-radius: 8px 8px 0 0;
22
+ > .ant-modal-title {
23
+ color: #333333;
24
+ line-height: 22px;
25
+ text-align: center;
26
+ font-weight: normal;
27
+ }
28
+ }
29
+ > .ant-modal-body {
30
+ padding: 10px;
31
+ // 去掉最小高度
32
+ // min-height: 200px;
33
+ // 默认不超出高度
34
+ max-height: 75vh;
35
+ overflow: auto;
36
+ }
37
+ > .ant-modal-footer {
38
+ text-align: center;
39
+ border-top: 0;
40
+ padding: 10px 0 10px 0;
41
+ }
42
+ }
43
+ }
@@ -0,0 +1,2 @@
1
+ @import "../../../styles/default.less";
2
+ @import "./index.less";
@@ -0,0 +1,2 @@
1
+ @import "../../../styles/default.less";
2
+ @import "./index.less";
@@ -0,0 +1,2 @@
1
+ @import "../../../styles/default.less";
2
+ @import "./index.less";
@@ -0,0 +1,107 @@
1
+ .ztxk-pagination {
2
+ font-size: @font-size-text;
3
+ &.ztxk-table-pagination {
4
+ display: block;
5
+ .ant-pagination-prev {
6
+ border-left: 1px solid #d9d9d9;
7
+ }
8
+ .ant-pagination-options .ant-select-selector {
9
+ border-right: none;
10
+ }
11
+ }
12
+ .ant-pagination-total-text {
13
+ float: left;
14
+ margin-right: 0;
15
+ padding: 0 10px;
16
+ color: @link-color;
17
+ border: 1px solid @system;
18
+ border-right: 0;
19
+ border-radius: @border-radius-base 0 0 @border-radius-base;
20
+ }
21
+ .ant-pagination-options {
22
+ float: left;
23
+ margin-left: 0;
24
+ border-radius: 0;
25
+ .ant-select-selector {
26
+ border-radius: 0;
27
+ }
28
+ }
29
+ .ant-pagination-prev {
30
+ margin-right: 0;
31
+ &.ant-pagination-disabled {
32
+ &:hover > button {
33
+ color: rgba(0, 0, 0, 0.25);
34
+ border: 1px solid @border-color-base;
35
+ border-right: 0;
36
+ border-left: 0;
37
+ cursor: not-allowed;
38
+ background: @bg-white;
39
+ }
40
+ }
41
+ &:hover {
42
+ > button {
43
+ border: 0;
44
+ color: @bg-white;
45
+ background: @primary-color;
46
+ }
47
+ }
48
+ > button {
49
+ border-right: 0;
50
+ border-left: 0;
51
+ border-radius: 0;
52
+ }
53
+ }
54
+ .ant-pagination-item {
55
+ margin-right: 0;
56
+ border-radius: 0;
57
+ border-right: 0;
58
+ &:focus,
59
+ &:hover,
60
+ &.ant-pagination-item-active {
61
+ border: 0;
62
+ color: @bg-white;
63
+ background: @primary-color;
64
+ > a {
65
+ color: @bg-white;
66
+ }
67
+ }
68
+ }
69
+ .ant-pagination-jump-prev {
70
+ margin-right: 0;
71
+ border-left: 1px solid @border-color-base;
72
+ border-radius: 0;
73
+ }
74
+ .ant-pagination-jump-next {
75
+ margin-right: 0;
76
+ border-left: 1px solid @border-color-base;
77
+ border-radius: 0;
78
+ }
79
+ .ant-pagination-next {
80
+ &.ant-pagination-disabled {
81
+ &:hover > button {
82
+ color: rgba(0, 0, 0, 0.25);
83
+ border: 1px solid @border-color-base;
84
+ cursor: not-allowed;
85
+ background: @bg-white;
86
+ }
87
+ }
88
+ &:hover {
89
+ > button {
90
+ border: 0;
91
+ color: @bg-white;
92
+ background: @primary-color;
93
+ }
94
+ }
95
+ > button {
96
+ border-radius: 0 @border-radius-base @border-radius-base 0;
97
+ }
98
+ }
99
+ .ant-select-selection-item {
100
+ // UI审查 分页器颜色修改 lint-color => text-color
101
+ color: @text-color;
102
+ }
103
+ .ant-select-item {
104
+ font-weight: 400;
105
+ font-size: @font-size-base;
106
+ }
107
+ }
@@ -0,0 +1,5 @@
1
+ // 包含antd pagination 和 自定义样式
2
+ @import "antd/lib/pagination/style/index.less";
3
+
4
+ @import "../../../styles/default.less";
5
+ @import "./index.less";
@@ -0,0 +1,3 @@
1
+ .ztxk-placeholder {
2
+ display: inline-block;
3
+ }
@@ -0,0 +1,2 @@
1
+ @import "../../../styles/default.less";
2
+ @import "./index.less";
@@ -0,0 +1,65 @@
1
+ .ztxk-print {
2
+ .ztxk-print--header {
3
+ padding: @padding-base;
4
+ position: sticky;
5
+ top: 0;
6
+ background-color: #fff;
7
+ z-index: 100;
8
+ // 每项定义一个边距
9
+ .ph__item,
10
+ button {
11
+ margin-left: 10px;
12
+ &:first-child {
13
+ margin-left: 0;
14
+ }
15
+ }
16
+ }
17
+ .ztxk-print--content {
18
+ width: 100%;
19
+ min-height: 500px;
20
+ font-family: microsoft-yahei;
21
+ .ztxk-print--main {
22
+ width: 1000px;
23
+ margin: auto;
24
+ .ztxk-print--page {
25
+ min-height: 200px;
26
+ }
27
+ }
28
+ }
29
+ .ztxk-print--page-break__before {
30
+ display: block;
31
+ page-break-before: always;
32
+ }
33
+ .ztxk-print--page__pagination {
34
+ text-align: center;
35
+ margin: @margin-base 0;
36
+ }
37
+ .ztxk-print--page-break__after {
38
+ display: block;
39
+ page-break-after: always;
40
+ &:last-child {
41
+ display: none;
42
+ page-break-after: auto;
43
+ }
44
+ }
45
+ }
46
+
47
+ @media print {
48
+ .non-printable {
49
+ visibility: hidden;
50
+ display: none;
51
+ }
52
+ // 这个样式会影响整个页面
53
+ // body * {
54
+ // visibility: hidden;
55
+ // }
56
+ .ztxk-print--content,
57
+ .ztxk-print--content * {
58
+ visibility: visible;
59
+ }
60
+ footer.ztxk-print--page__pagination {
61
+ position: fixed;
62
+ bottom: 0;
63
+ width: 100%;
64
+ }
65
+ }
@@ -0,0 +1,3 @@
1
+ // 包含antd form 和 自定义样式
2
+ @import "../../../styles/default.less";
3
+ @import "./index.less";
@@ -0,0 +1,55 @@
1
+ .ztxk-select--feed-item {
2
+ font-size: 12px;
3
+ line-height: 16px;
4
+ opacity: 0.86;
5
+ overflow: hidden;
6
+ text-overflow: ellipsis;
7
+ white-space: nowrap;
8
+ width: 100%;
9
+ }
10
+
11
+ .ztxk-tabs.ztxk-select--tabs {
12
+ .ant-tabs-nav {
13
+ margin-bottom: 0 !important;
14
+ }
15
+ }
16
+
17
+ .rc-virtual-list-scrollbar.rc-virtual-list-scrollbar-vertical {
18
+ visibility: visible !important;
19
+ }
20
+
21
+ .ztxk-select--list {
22
+ .ant-list-item {
23
+ padding: 5px 12px;
24
+ min-height: 32px;
25
+ color: #333;
26
+ font-size: 13px;
27
+ line-height: 22px;
28
+ cursor: pointer;
29
+ border-bottom: none;
30
+ display: flex;
31
+ flex-direction: row;
32
+ align-items: flex-start;
33
+ overflow: hidden;
34
+ white-space: nowrap;
35
+ text-overflow: ellipsis;
36
+ &:hover {
37
+ background-color: #f5f5f5;
38
+ }
39
+ .ztxk-select--item-text {
40
+ flex: 1;
41
+ overflow: hidden;
42
+ white-space: nowrap;
43
+ text-overflow: ellipsis;
44
+ }
45
+ .ztxk-select--item-icon {
46
+ color: #5b76f6;
47
+ margin-top: 5px;
48
+ }
49
+ &.active {
50
+ color: #333333;
51
+ font-weight: 600;
52
+ background-color: #f0f5ff;
53
+ }
54
+ }
55
+ }
@@ -0,0 +1,4 @@
1
+ @import "antd/lib/select/style/index.less";
2
+
3
+ @import "../../../styles/default.less";
4
+ @import "./index.less";
@@ -0,0 +1,362 @@
1
+ .ztxk-table {
2
+ /* 基础样式 */
3
+ // 表头颜色设置
4
+ .ant-table-thead > tr > th {
5
+ background: @title-head-bg;
6
+ .ant-table-column-sorters {
7
+ padding: 0;
8
+ }
9
+ }
10
+ // 这种方式修复表格无数据不出现滚动条,会导致固定列时,列头不对齐
11
+ // .ant-table-scroll-horizontal {
12
+ // 修复:表格数据不够撑开滚动条时,表格body也会预留滚动条位置
13
+ // .ant-table-body {
14
+ // overflow: auto !important;
15
+ // }
16
+ // 修复:表格无数据时,出现滚动条
17
+ // .ant-table-expanded-row-fixed {
18
+ // margin: 0 !important;
19
+ // }
20
+ // }
21
+ // 让一些元素能换行显示
22
+ .ant-table-tbody > tr > td {
23
+ button {
24
+ overflow-wrap: break-word;
25
+ white-space: pre-wrap;
26
+ word-break: break-all;
27
+ }
28
+ }
29
+ // 行hover
30
+ .ant-table-tbody > tr.ant-table-row:hover > td {
31
+ background-color: @col-head-bg;
32
+ }
33
+ .ant-table-tbody > tr.ant-table-row > td.ztxk-table--info-td {
34
+ background-color: @global-color;
35
+ }
36
+ .ant-table-tbody > tr.ant-table-row > td.ztxk-table--error-td {
37
+ background-color: @stress-color;
38
+ }
39
+ // 显示行差异
40
+ .ant-table-tbody > tr.ztxk-table--differences {
41
+ background-color: @global-color;
42
+ &:hover {
43
+ > td {
44
+ background-color: @global-color;
45
+ }
46
+ }
47
+ > td {
48
+ background-color: @global-color;
49
+ }
50
+ }
51
+ .react-resizable {
52
+ position: relative;
53
+ background-clip: padding-box;
54
+ }
55
+ .react-resizable-handle {
56
+ position: absolute;
57
+ right: -5px;
58
+ bottom: 0;
59
+ z-index: 1;
60
+ width: 10px;
61
+ height: 100%;
62
+ cursor: col-resize;
63
+ }
64
+ .react-resizable-handle.active::before {
65
+ content: "";
66
+ position: absolute;
67
+ left: 50%;
68
+ top: 0;
69
+ bottom: 0;
70
+ border-left: dotted 3px #40a9ff;
71
+ }
72
+ // 设置内容最小高度
73
+ .ant-table-body {
74
+ // 2023-12-13 去掉最小高度
75
+ // min-height: 100px;
76
+ // 无数据时,修改fixed的样式
77
+ .ant-table-expanded-row-fixed {
78
+ // width: 100% !important;
79
+ margin: 0;
80
+ padding: 0;
81
+ }
82
+ }
83
+ // 设置单元格高度
84
+ .ant-table-thead > tr > th,
85
+ .ant-table-tbody > tr > td,
86
+ .ant-table-summary > tr > td {
87
+ height: 36px;
88
+ padding: 0 5px;
89
+ vertical-align: middle;
90
+ // 表格字体颜色设置
91
+ color: rgb(51, 51, 51);
92
+ .ant-select {
93
+ width: 100%;
94
+ .ant-select-selector {
95
+ // 2023-08-09 表格编辑显示边框
96
+ // border: none;
97
+ }
98
+ }
99
+ }
100
+ // tbody文字换行方式
101
+ .ant-table-tbody > tr > td {
102
+ word-break: break-all;
103
+ }
104
+ //总结栏样式
105
+ .ant-table-summary > tr > td {
106
+ text-align: left;
107
+ font-weight: bold;
108
+ &:first-child {
109
+ text-align: center;
110
+ }
111
+ }
112
+ .ztxk-column--adddel-icon {
113
+ font-size: @font-size-text;
114
+ line-height: @font-size-text;
115
+ // color: @weight-3;
116
+ color: @link-color;
117
+ &:hover {
118
+ color: @link-hover-color;
119
+ }
120
+ &:first-child {
121
+ margin-bottom: 4px;
122
+ }
123
+ &:last-child {
124
+ margin-bottom: 0;
125
+ }
126
+ }
127
+ // 单元格错误样式
128
+ td.error-td {
129
+ background: rgb(255, 136, 136) !important;
130
+ border: 1px solid rgb(255, 136, 136) !important;
131
+ }
132
+ /* 基础样式 */
133
+
134
+ /* 表头图标样式 */
135
+ .thead-icon {
136
+ cursor: pointer;
137
+ }
138
+
139
+ // 可编辑列样式
140
+ .ztxk-table__enhance-cell {
141
+ margin: 0;
142
+ font-size: @font-size-text;
143
+ input,
144
+ .ant-input-affix-wrapper,
145
+ .ant-input-number,
146
+ .ant-select-selector {
147
+ border: none;
148
+ width: 100%;
149
+ }
150
+ &.input-model__input {
151
+ border: 1px solid #d9d9d9;
152
+ }
153
+ .ant-form-item-control-input {
154
+ min-height: auto;
155
+ }
156
+ .ant-input-number {
157
+ min-height: 30px;
158
+ input {
159
+ min-height: 28px;
160
+ }
161
+ }
162
+ .ant-input-affix-wrapper {
163
+ min-height: 30px;
164
+ padding: 0 11px;
165
+ input {
166
+ min-height: 28px;
167
+ }
168
+ }
169
+ .ant-select-single:not(.ant-select-customize-input) .ant-select-selector,
170
+ .ant-select-selector {
171
+ min-height: 30px;
172
+ input {
173
+ min-height: 28px;
174
+ }
175
+ }
176
+ .ant-input-number-input {
177
+ text-align: left !important;
178
+ }
179
+ }
180
+ .ztxk-table__enhance-cell-wrap {
181
+ padding: 4px;
182
+ min-height: 30px;
183
+ cursor: pointer;
184
+ border: 1px solid #d9d9d9;
185
+ &:hover {
186
+ border-color: #40a9ff;
187
+ }
188
+ }
189
+ .ztxk-table__enhance-cell-wrap--disabled {
190
+ color: rgba(0, 0, 0, 0.25);
191
+ background-color: #f5f5f5;
192
+ border-color: #d9d9d9;
193
+ box-shadow: none;
194
+ cursor: not-allowed;
195
+ opacity: 1;
196
+ &:hover {
197
+ border-color: #d9d9d9;
198
+ }
199
+ }
200
+ .ztxk-table__enhance-row {
201
+ &:hover {
202
+ .ztxk-table__enhance-cell-wrap {
203
+ border-radius: 2px;
204
+ }
205
+ }
206
+ &.drop-over-downward td {
207
+ border-bottom: 2px dashed #1890ff;
208
+ }
209
+ &.drop-over-upward td {
210
+ border-top: 2px dashed #1890ff;
211
+ }
212
+ }
213
+
214
+ // 其他样式
215
+ .zt-btn-link {
216
+ padding: 0;
217
+ margin-right: 5px;
218
+ }
219
+ .ant-dropdown-trigger {
220
+ margin-right: 0;
221
+ }
222
+
223
+ // flex布局
224
+ &.ztxk-table--flex {
225
+ height: 100%;
226
+ > .ant-spin-nested-loading {
227
+ height: 100%;
228
+ > .ant-spin-container {
229
+ height: 100%;
230
+ > .ant-table {
231
+ height: 100%;
232
+ > .ant-table-container {
233
+ height: 100%;
234
+ display: flex;
235
+ flex-direction: column;
236
+ > .ant-table-body {
237
+ flex: 1;
238
+ max-height: none !important;
239
+ }
240
+ }
241
+ }
242
+ }
243
+ }
244
+ }
245
+
246
+ // 必填
247
+ .ztxk-column--required {
248
+ font-style: normal;
249
+ color: @stress;
250
+ }
251
+
252
+ .ztxk-table--title-stress {
253
+ font-style: normal;
254
+ color: @stress;
255
+ }
256
+
257
+ // 排序相关样式
258
+ .ztxk-table--sorter {
259
+ display: flex;
260
+ align-items: center;
261
+ justify-content: space-between;
262
+ flex: 1;
263
+ .ztxk-table--sorter-title {
264
+ flex-grow: 1;
265
+ }
266
+ .ztxk-table--sorter-icon {
267
+ color: #bfbfbf;
268
+ font-size: 0;
269
+ display: inline-flex;
270
+ flex-direction: column;
271
+ align-items: center;
272
+ cursor: pointer;
273
+ }
274
+ }
275
+
276
+ // 过滤列的样式问题
277
+ .ant-table-filter-trigger {
278
+ margin: 0;
279
+ }
280
+ }
281
+
282
+ .ztxk-table--wrapper-container {
283
+ .ztxk-table--exit-fullscreen {
284
+ position: absolute;
285
+ width: 100px;
286
+ text-align: center;
287
+ margin-left: -50px;
288
+ top: 30px;
289
+ left: 50%;
290
+ z-index: 1001;
291
+ background: @white;
292
+ padding: 10px;
293
+ font-size: 16px;
294
+ opacity: 0;
295
+ transition: opacity 0.8s;
296
+ cursor: pointer;
297
+ border-radius: 10px;
298
+ color: @global-text-color;
299
+ }
300
+ &:hover {
301
+ .ztxk-table--exit-fullscreen {
302
+ opacity: 0.8;
303
+ }
304
+ }
305
+ }
306
+
307
+ .error-popover {
308
+ .ant-popover-inner-content {
309
+ padding: 6px 10px;
310
+ color: rgb(255, 136, 136);
311
+ }
312
+ }
313
+
314
+ // 兼容全屏时,分页器弹出层样式
315
+ .ztxk-table--fullscreen {
316
+ .ant-pagination-options {
317
+ .ant-select-dropdown {
318
+ top: -140px !important;
319
+ }
320
+ }
321
+ }
322
+ .ztxk-table--pagination--select-top {
323
+ top: -140px !important;
324
+ }
325
+
326
+ // 列头过滤相关样式
327
+ .ztxk-table--filter {
328
+ padding: 6px;
329
+ max-width: 220px;
330
+ input::placeholder {
331
+ font-size: 12px;
332
+ }
333
+ .ztxk-table--filter__checkbox-container {
334
+ display: flex;
335
+ flex-direction: column;
336
+ margin-top: 8px;
337
+ margin-bottom: 8px;
338
+ max-height: 200px;
339
+ width: 200px;
340
+ overflow-y: auto;
341
+ .ant-checkbox-wrapper {
342
+ margin-left: 0;
343
+ }
344
+ .ant-checkbox + span {
345
+ text-overflow: ellipsis;
346
+ display: block;
347
+ white-space: nowrap;
348
+ overflow: hidden;
349
+ }
350
+ }
351
+ .ztxk-table--filter__btn-container {
352
+ button {
353
+ margin-right: 10px;
354
+ &:last-child {
355
+ margin-right: 0;
356
+ }
357
+ .anticon {
358
+ line-height: inherit;
359
+ }
360
+ }
361
+ }
362
+ }
@@ -0,0 +1,4 @@
1
+ @import "antd/lib/table/style/index.less";
2
+
3
+ @import "../../../styles/default.less";
4
+ @import "./index.less";