@vtx/components 3.1.76 → 3.1.78

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 (306) hide show
  1. package/lib/_util/filterSpecialCharacters.js +44 -55
  2. package/lib/_util/filterSpecialCharacters.js.map +1 -1
  3. package/lib/_util/getComponentProps.js +4 -1
  4. package/lib/_util/getComponentProps.js.map +1 -1
  5. package/lib/_util/getToken.js +15 -7
  6. package/lib/_util/getToken.js.map +1 -1
  7. package/lib/_util/getUrlParam.js +8 -1
  8. package/lib/_util/getUrlParam.js.map +1 -1
  9. package/lib/_util/isFunction.js +1 -0
  10. package/lib/_util/isFunction.js.map +1 -1
  11. package/lib/_util/isObject.js +1 -0
  12. package/lib/_util/isObject.js.map +1 -1
  13. package/lib/_util/useColSize.js +12 -2
  14. package/lib/_util/useColSize.js.map +1 -1
  15. package/lib/_util/useInterval.js +3 -0
  16. package/lib/_util/useInterval.js.map +1 -1
  17. package/lib/_util/useSet.js +39 -23
  18. package/lib/_util/useSet.js.map +1 -1
  19. package/lib/config.js +2 -1
  20. package/lib/config.js.map +1 -1
  21. package/lib/index.js +29 -0
  22. package/lib/index.js.map +1 -1
  23. package/lib/style/index.less +2 -2
  24. package/lib/style/themes/compact.less +1 -1
  25. package/lib/style/themes/dark.less +9 -9
  26. package/lib/style/themes/default.less +7 -7
  27. package/lib/style/themes/index.less +1 -1
  28. package/lib/style/themes/variable.less +5 -5
  29. package/lib/vtx-color-picker/index.js +26 -9
  30. package/lib/vtx-color-picker/index.js.map +1 -1
  31. package/lib/vtx-color-picker/style/css.js +2 -0
  32. package/lib/vtx-color-picker/style/css.js.map +1 -1
  33. package/lib/vtx-color-picker/style/index.js +2 -0
  34. package/lib/vtx-color-picker/style/index.js.map +1 -1
  35. package/lib/vtx-combogrid/Combogrid.js +86 -46
  36. package/lib/vtx-combogrid/Combogrid.js.map +1 -1
  37. package/lib/vtx-combogrid/index.js +59 -30
  38. package/lib/vtx-combogrid/index.js.map +1 -1
  39. package/lib/vtx-combogrid/style/css.js +7 -0
  40. package/lib/vtx-combogrid/style/css.js.map +1 -1
  41. package/lib/vtx-combogrid/style/index.js +7 -0
  42. package/lib/vtx-combogrid/style/index.js.map +1 -1
  43. package/lib/vtx-datagrid/Alert.js +13 -4
  44. package/lib/vtx-datagrid/Alert.js.map +1 -1
  45. package/lib/vtx-datagrid/ColumnSetting.js +75 -36
  46. package/lib/vtx-datagrid/ColumnSetting.js.map +1 -1
  47. package/lib/vtx-datagrid/ResizeableTitle.js +15 -3
  48. package/lib/vtx-datagrid/ResizeableTitle.js.map +1 -1
  49. package/lib/vtx-datagrid/index.js +170 -100
  50. package/lib/vtx-datagrid/index.js.map +1 -1
  51. package/lib/vtx-datagrid/renderColumnButtons.js +38 -7
  52. package/lib/vtx-datagrid/renderColumnButtons.js.map +1 -1
  53. package/lib/vtx-datagrid/style/css.js +10 -0
  54. package/lib/vtx-datagrid/style/css.js.map +1 -1
  55. package/lib/vtx-datagrid/style/index.js +10 -0
  56. package/lib/vtx-datagrid/style/index.js.map +1 -1
  57. package/lib/vtx-date-picker/QdatePicker.js +51 -21
  58. package/lib/vtx-date-picker/QdatePicker.js.map +1 -1
  59. package/lib/vtx-date-picker/generatePicker.js +65 -24
  60. package/lib/vtx-date-picker/generatePicker.js.map +1 -1
  61. package/lib/vtx-date-picker/index.js +7 -1
  62. package/lib/vtx-date-picker/index.js.map +1 -1
  63. package/lib/vtx-date-picker/style/css.js +1 -0
  64. package/lib/vtx-date-picker/style/css.js.map +1 -1
  65. package/lib/vtx-date-picker/style/index.js +1 -0
  66. package/lib/vtx-date-picker/style/index.js.map +1 -1
  67. package/lib/vtx-date-picker/style/index.less +39 -39
  68. package/lib/vtx-editor/index.js +28 -9
  69. package/lib/vtx-editor/index.js.map +1 -1
  70. package/lib/vtx-editor/style/css.js +1 -0
  71. package/lib/vtx-editor/style/css.js.map +1 -1
  72. package/lib/vtx-editor/style/index.js +1 -0
  73. package/lib/vtx-editor/style/index.js.map +1 -1
  74. package/lib/vtx-editor/style/index.less +8 -8
  75. package/lib/vtx-ellipsis-text/index.js +27 -14
  76. package/lib/vtx-ellipsis-text/index.js.map +1 -1
  77. package/lib/vtx-ellipsis-text/style/css.js +1 -0
  78. package/lib/vtx-ellipsis-text/style/css.js.map +1 -1
  79. package/lib/vtx-ellipsis-text/style/index.js +1 -0
  80. package/lib/vtx-ellipsis-text/style/index.js.map +1 -1
  81. package/lib/vtx-ellipsis-text/style/index.less +13 -13
  82. package/lib/vtx-export/index.js +61 -28
  83. package/lib/vtx-export/index.js.map +1 -1
  84. package/lib/vtx-export/style/css.js +5 -0
  85. package/lib/vtx-export/style/css.js.map +1 -1
  86. package/lib/vtx-export/style/index.js +5 -0
  87. package/lib/vtx-export/style/index.js.map +1 -1
  88. package/lib/vtx-export-async/History.js +93 -56
  89. package/lib/vtx-export-async/History.js.map +1 -1
  90. package/lib/vtx-export-async/index.js +97 -56
  91. package/lib/vtx-export-async/index.js.map +1 -1
  92. package/lib/vtx-export-async/style/css.js.map +1 -1
  93. package/lib/vtx-export-async/style/index.js.map +1 -1
  94. package/lib/vtx-export-async/util.js +13 -2
  95. package/lib/vtx-export-async/util.js.map +1 -1
  96. package/lib/vtx-form-layout/Card.js +33 -11
  97. package/lib/vtx-form-layout/Card.js.map +1 -1
  98. package/lib/vtx-form-layout/Divider.js +11 -5
  99. package/lib/vtx-form-layout/Divider.js.map +1 -1
  100. package/lib/vtx-form-layout/FormItem.js +33 -11
  101. package/lib/vtx-form-layout/FormItem.js.map +1 -1
  102. package/lib/vtx-form-layout/Pane.js +9 -3
  103. package/lib/vtx-form-layout/Pane.js.map +1 -1
  104. package/lib/vtx-form-layout/Row.js +8 -1
  105. package/lib/vtx-form-layout/Row.js.map +1 -1
  106. package/lib/vtx-form-layout/context.js +4 -1
  107. package/lib/vtx-form-layout/context.js.map +1 -1
  108. package/lib/vtx-form-layout/demo/Modal.less +43 -43
  109. package/lib/vtx-form-layout/index.js +24 -9
  110. package/lib/vtx-form-layout/index.js.map +1 -1
  111. package/lib/vtx-form-layout/style/css.js +7 -0
  112. package/lib/vtx-form-layout/style/css.js.map +1 -1
  113. package/lib/vtx-form-layout/style/index.js +7 -0
  114. package/lib/vtx-form-layout/style/index.js.map +1 -1
  115. package/lib/vtx-form-layout/style/index.less +216 -216
  116. package/lib/vtx-image/Image.js +113 -73
  117. package/lib/vtx-image/Image.js.map +1 -1
  118. package/lib/vtx-image/Preview.js +59 -30
  119. package/lib/vtx-image/Preview.js.map +1 -1
  120. package/lib/vtx-image/PreviewGroup.js +47 -17
  121. package/lib/vtx-image/PreviewGroup.js.map +1 -1
  122. package/lib/vtx-image/index.js +11 -4
  123. package/lib/vtx-image/index.js.map +1 -1
  124. package/lib/vtx-image/style/css.js +1 -0
  125. package/lib/vtx-image/style/css.js.map +1 -1
  126. package/lib/vtx-image/style/index.js +1 -0
  127. package/lib/vtx-image/style/index.js.map +1 -1
  128. package/lib/vtx-import/index.js +78 -45
  129. package/lib/vtx-import/index.js.map +1 -1
  130. package/lib/vtx-import/result.js +28 -10
  131. package/lib/vtx-import/result.js.map +1 -1
  132. package/lib/vtx-import/style/css.js +3 -0
  133. package/lib/vtx-import/style/css.js.map +1 -1
  134. package/lib/vtx-import/style/index.js +3 -0
  135. package/lib/vtx-import/style/index.js.map +1 -1
  136. package/lib/vtx-import/style/index.less +8 -8
  137. package/lib/vtx-import2/CheckResult.js +8 -1
  138. package/lib/vtx-import2/CheckResult.js.map +1 -1
  139. package/lib/vtx-import2/Content.js +33 -11
  140. package/lib/vtx-import2/Content.js.map +1 -1
  141. package/lib/vtx-import2/DownloadSvg.js +6 -1
  142. package/lib/vtx-import2/DownloadSvg.js.map +1 -1
  143. package/lib/vtx-import2/ImportResult.js +14 -7
  144. package/lib/vtx-import2/ImportResult.js.map +1 -1
  145. package/lib/vtx-import2/UploadSvg.js +6 -1
  146. package/lib/vtx-import2/UploadSvg.js.map +1 -1
  147. package/lib/vtx-import2/index.js +107 -52
  148. package/lib/vtx-import2/index.js.map +1 -1
  149. package/lib/vtx-import2/style/css.js +3 -0
  150. package/lib/vtx-import2/style/css.js.map +1 -1
  151. package/lib/vtx-import2/style/index.js +3 -0
  152. package/lib/vtx-import2/style/index.js.map +1 -1
  153. package/lib/vtx-import2/style/index.less +102 -102
  154. package/lib/vtx-input/TextArea.js +27 -10
  155. package/lib/vtx-input/TextArea.js.map +1 -1
  156. package/lib/vtx-input/index.js +45 -20
  157. package/lib/vtx-input/index.js.map +1 -1
  158. package/lib/vtx-input/style/css.js +1 -0
  159. package/lib/vtx-input/style/css.js.map +1 -1
  160. package/lib/vtx-input/style/index.js +1 -0
  161. package/lib/vtx-input/style/index.js.map +1 -1
  162. package/lib/vtx-input/style/index.less +24 -24
  163. package/lib/vtx-input/useLength.js +20 -7
  164. package/lib/vtx-input/useLength.js.map +1 -1
  165. package/lib/vtx-modal/Title.js +8 -2
  166. package/lib/vtx-modal/Title.js.map +1 -1
  167. package/lib/vtx-modal/index.js +82 -49
  168. package/lib/vtx-modal/index.js.map +1 -1
  169. package/lib/vtx-modal/style/css.js +1 -0
  170. package/lib/vtx-modal/style/css.js.map +1 -1
  171. package/lib/vtx-modal/style/index.js +1 -0
  172. package/lib/vtx-modal/style/index.js.map +1 -1
  173. package/lib/vtx-page-layout/Basic.js +8 -3
  174. package/lib/vtx-page-layout/Basic.js.map +1 -1
  175. package/lib/vtx-page-layout/Content.js +26 -15
  176. package/lib/vtx-page-layout/Content.js.map +1 -1
  177. package/lib/vtx-page-layout/Pane.js +12 -3
  178. package/lib/vtx-page-layout/Pane.js.map +1 -1
  179. package/lib/vtx-page-layout/TableLayout.js +60 -30
  180. package/lib/vtx-page-layout/TableLayout.js.map +1 -1
  181. package/lib/vtx-page-layout/TableWrap.js +22 -11
  182. package/lib/vtx-page-layout/TableWrap.js.map +1 -1
  183. package/lib/vtx-page-layout/container.js +51 -23
  184. package/lib/vtx-page-layout/container.js.map +1 -1
  185. package/lib/vtx-page-layout/index.js +10 -1
  186. package/lib/vtx-page-layout/index.js.map +1 -1
  187. package/lib/vtx-page-layout/style/css.js.map +1 -1
  188. package/lib/vtx-page-layout/style/index.js.map +1 -1
  189. package/lib/vtx-page-layout/style/index.less +138 -138
  190. package/lib/vtx-rps-frame/index.js +57 -37
  191. package/lib/vtx-rps-frame/index.js.map +1 -1
  192. package/lib/vtx-rps-frame/style/css.js.map +1 -1
  193. package/lib/vtx-rps-frame/style/index.js.map +1 -1
  194. package/lib/vtx-scrollable-row/index.js +64 -30
  195. package/lib/vtx-scrollable-row/index.js.map +1 -1
  196. package/lib/vtx-scrollable-row/style/css.js.map +1 -1
  197. package/lib/vtx-scrollable-row/style/index.js.map +1 -1
  198. package/lib/vtx-scrollable-row/style/index.less +113 -113
  199. package/lib/vtx-search/VtxCol.js +26 -7
  200. package/lib/vtx-search/VtxCol.js.map +1 -1
  201. package/lib/vtx-search/VtxRow.js +14 -7
  202. package/lib/vtx-search/VtxRow.js.map +1 -1
  203. package/lib/vtx-search/index.js +106 -61
  204. package/lib/vtx-search/index.js.map +1 -1
  205. package/lib/vtx-search/style/css.js +4 -0
  206. package/lib/vtx-search/style/css.js.map +1 -1
  207. package/lib/vtx-search/style/index.js +4 -0
  208. package/lib/vtx-search/style/index.js.map +1 -1
  209. package/lib/vtx-search-map-input/index.js +89 -56
  210. package/lib/vtx-search-map-input/index.js.map +1 -1
  211. package/lib/vtx-search-map-input/style/css.js +2 -0
  212. package/lib/vtx-search-map-input/style/css.js.map +1 -1
  213. package/lib/vtx-search-map-input/style/index.js +2 -0
  214. package/lib/vtx-search-map-input/style/index.js.map +1 -1
  215. package/lib/vtx-select/index.js +87 -37
  216. package/lib/vtx-select/index.js.map +1 -1
  217. package/lib/vtx-select/style/css.js +8 -0
  218. package/lib/vtx-select/style/css.js.map +1 -1
  219. package/lib/vtx-select/style/index.js +8 -0
  220. package/lib/vtx-select/style/index.js.map +1 -1
  221. package/lib/vtx-select/style/index.less +68 -68
  222. package/lib/vtx-signature/index.js +33 -18
  223. package/lib/vtx-signature/index.js.map +1 -1
  224. package/lib/vtx-signature/style/css.js +2 -0
  225. package/lib/vtx-signature/style/css.js.map +1 -1
  226. package/lib/vtx-signature/style/index.js +2 -0
  227. package/lib/vtx-signature/style/index.js.map +1 -1
  228. package/lib/vtx-signature/style/index.less +33 -33
  229. package/lib/vtx-split-pane/Pane.js +22 -11
  230. package/lib/vtx-split-pane/Pane.js.map +1 -1
  231. package/lib/vtx-split-pane/Resizer.js +39 -19
  232. package/lib/vtx-split-pane/Resizer.js.map +1 -1
  233. package/lib/vtx-split-pane/SplitPane.js +107 -51
  234. package/lib/vtx-split-pane/SplitPane.js.map +1 -1
  235. package/lib/vtx-split-pane/index.js +6 -1
  236. package/lib/vtx-split-pane/index.js.map +1 -1
  237. package/lib/vtx-split-pane/style/css.js +3 -0
  238. package/lib/vtx-split-pane/style/css.js.map +1 -1
  239. package/lib/vtx-split-pane/style/index.js +3 -0
  240. package/lib/vtx-split-pane/style/index.js.map +1 -1
  241. package/lib/vtx-split-pane/style/index.less +76 -76
  242. package/lib/vtx-statistics-column/Back.js +9 -2
  243. package/lib/vtx-statistics-column/Back.js.map +1 -1
  244. package/lib/vtx-statistics-column/Item.js +30 -14
  245. package/lib/vtx-statistics-column/Item.js.map +1 -1
  246. package/lib/vtx-statistics-column/Total.js +30 -14
  247. package/lib/vtx-statistics-column/Total.js.map +1 -1
  248. package/lib/vtx-statistics-column/context.js +4 -1
  249. package/lib/vtx-statistics-column/context.js.map +1 -1
  250. package/lib/vtx-statistics-column/index.js +18 -1
  251. package/lib/vtx-statistics-column/index.js.map +1 -1
  252. package/lib/vtx-statistics-column/style/css.js.map +1 -1
  253. package/lib/vtx-statistics-column/style/index.js.map +1 -1
  254. package/lib/vtx-statistics-column/style/index.less +59 -59
  255. package/lib/vtx-time-picker/index.js +18 -4
  256. package/lib/vtx-time-picker/index.js.map +1 -1
  257. package/lib/vtx-time-picker/style/css.js.map +1 -1
  258. package/lib/vtx-time-picker/style/index.js.map +1 -1
  259. package/lib/vtx-tree/index.js +114 -49
  260. package/lib/vtx-tree/index.js.map +1 -1
  261. package/lib/vtx-tree/style/css.js +2 -0
  262. package/lib/vtx-tree/style/css.js.map +1 -1
  263. package/lib/vtx-tree/style/index.js +2 -0
  264. package/lib/vtx-tree/style/index.js.map +1 -1
  265. package/lib/vtx-tree/style/index.less +53 -53
  266. package/lib/vtx-tree/utils.js +27 -6
  267. package/lib/vtx-tree/utils.js.map +1 -1
  268. package/lib/vtx-tree-select/index.js +71 -27
  269. package/lib/vtx-tree-select/index.js.map +1 -1
  270. package/lib/vtx-tree-select/style/css.js +3 -0
  271. package/lib/vtx-tree-select/style/css.js.map +1 -1
  272. package/lib/vtx-tree-select/style/index.js +3 -0
  273. package/lib/vtx-tree-select/style/index.js.map +1 -1
  274. package/lib/vtx-upload/FilePreview.js +33 -15
  275. package/lib/vtx-upload/FilePreview.js.map +1 -1
  276. package/lib/vtx-upload/index.js +169 -90
  277. package/lib/vtx-upload/index.js.map +1 -1
  278. package/lib/vtx-upload/style/css.js +7 -0
  279. package/lib/vtx-upload/style/css.js.map +1 -1
  280. package/lib/vtx-upload/style/index.js +7 -0
  281. package/lib/vtx-upload/style/index.js.map +1 -1
  282. package/lib/vtx-upload/style/index.less +61 -61
  283. package/lib/vtx-wang-editor/index.js +116 -74
  284. package/lib/vtx-wang-editor/index.js.map +1 -1
  285. package/lib/vtx-wang-editor/style/css.js +1 -0
  286. package/lib/vtx-wang-editor/style/css.js.map +1 -1
  287. package/lib/vtx-wang-editor/style/index.js +1 -0
  288. package/lib/vtx-wang-editor/style/index.js.map +1 -1
  289. package/lib/vtx-wang-editor/style/index.less +12 -12
  290. package/lib/vtx-wang-editor/wangEditorUtil.js +136 -75
  291. package/lib/vtx-wang-editor/wangEditorUtil.js.map +1 -1
  292. package/lib/vtx-ztree/index.js +119 -69
  293. package/lib/vtx-ztree/index.js.map +1 -1
  294. package/lib/vtx-ztree/style/css.js +1 -0
  295. package/lib/vtx-ztree/style/css.js.map +1 -1
  296. package/lib/vtx-ztree/style/index.js +1 -0
  297. package/lib/vtx-ztree/style/index.js.map +1 -1
  298. package/lib/vtx-ztree/style/index.less +45 -45
  299. package/lib/vtx-ztree-select/index.js +142 -73
  300. package/lib/vtx-ztree-select/index.js.map +1 -1
  301. package/lib/vtx-ztree-select/style/css.js +3 -0
  302. package/lib/vtx-ztree-select/style/css.js.map +1 -1
  303. package/lib/vtx-ztree-select/style/index.js +3 -0
  304. package/lib/vtx-ztree-select/style/index.js.map +1 -1
  305. package/lib/vtx-ztree-select/style/index.less +107 -107
  306. package/package.json +127 -126
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
 
3
3
  require("antd/lib/popover/style/css");
4
+
4
5
  require("antd/lib/input/style/css");
6
+
5
7
  require("antd/lib/tag/style/css");
8
+
6
9
  require("./index.css");
7
10
  //# sourceMappingURL=css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"css.js","names":["require"],"sources":["vtx-ztree-select/style/index.js"],"sourcesContent":["import 'antd/lib/popover/style';\r\nimport 'antd/lib/input/style';\r\nimport 'antd/lib/tag/style';\r\nimport './index.less';\r\n"],"mappings":";;AAAAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA","ignoreList":[]}
1
+ {"version":3,"file":"css.js","names":[],"sources":["vtx-ztree-select/style/index.js"],"sourcesContent":["import 'antd/lib/popover/style';\nimport 'antd/lib/input/style';\nimport 'antd/lib/tag/style';\nimport './index.less';\n"],"mappings":";;AAAA;;AACA;;AACA;;AACA"}
@@ -1,7 +1,10 @@
1
1
  "use strict";
2
2
 
3
3
  require("antd/lib/popover/style");
4
+
4
5
  require("antd/lib/input/style");
6
+
5
7
  require("antd/lib/tag/style");
8
+
6
9
  require("./index.less");
7
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["require"],"sources":["vtx-ztree-select/style/index.js"],"sourcesContent":["import 'antd/lib/popover/style';\r\nimport 'antd/lib/input/style';\r\nimport 'antd/lib/tag/style';\r\nimport './index.less';\r\n"],"mappings":";;AAAAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["vtx-ztree-select/style/index.js"],"sourcesContent":["import 'antd/lib/popover/style';\nimport 'antd/lib/input/style';\nimport 'antd/lib/tag/style';\nimport './index.less';\n"],"mappings":";;AAAA;;AACA;;AACA;;AACA"}
@@ -1,108 +1,108 @@
1
- @import (reference) '~antd/lib/style/themes/index.less';
2
- @prefix-cls: vtx-ztree-select;
3
-
4
- .@{prefix-cls} {
5
- position: relative;
6
- display: inline-block;
7
- width: 100%;
8
- &-close-icon {
9
- display: none;
10
- color: @disabled-color;
11
- cursor: pointer;
12
- &:hover {
13
- color: @text-color-secondary;
14
- }
15
- }
16
- &-arrow-icon, &-arrow2-icon {
17
- color: @disabled-color;
18
- user-select: none;
19
- font-size: 12px;
20
- }
21
- &:hover {
22
- .vtx-ztree-select-close-icon {
23
- display: block;
24
- }
25
- .vtx-ztree-select-arrow2-icon {
26
- display: none;
27
- }
28
- }
29
- input {
30
- overflow: hidden;
31
- text-overflow: ellipsis;
32
- }
33
- &-multiple-box {
34
- display: flex;
35
- width: fit-content;
36
- .vtx-tree-count {
37
- border-left: none;
38
- }
39
- }
40
- &-multiple {
41
- position: relative;
42
- flex: 1;
43
- padding-right: 18px;
44
- overflow: hidden;
45
- white-space: nowrap;
46
- text-overflow: ellipsis;
47
- &-close-icon {
48
- position: absolute;
49
- top: 8px;
50
- right: 5px;
51
- display: none;
52
- color: @disabled-color;
53
- cursor: pointer;
54
- &:hover {
55
- color: @text-color-secondary;
56
- }
57
- }
58
- &:hover {
59
- .vtx-ztree-select-multiple-close-icon {
60
- display: block;
61
- }
62
- }
63
- }
64
- &-multiple-disabled {
65
- color: @disabled-color;
66
- background-color: @input-disabled-bg;
67
- cursor: not-allowed;
68
- opacity: 1;
69
- &:hover {
70
- border-color: #d9d9d9;
71
- }
72
- }
73
- }
74
-
75
- .vtx-ztree-select-popover {
76
- min-width: 200px;
77
- height: 300px;
78
- overflow: auto;
79
- &::-webkit-scrollbar {
80
- width: 8px;
81
- height: 8px;
82
- background-color: hsla(0, 0%, 76%, 0.07);
83
- }
84
- &::-webkit-scrollbar-thumb {
85
- background-color: rgba(193, 193, 193, 0.6);
86
- border-radius: 3px;
87
- box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.3);
88
- }
89
- }
90
-
91
- .vtx-ztree-select-placeholder {
92
- color: @input-placeholder-color;
93
- }
94
- .vtx-tree-count-head {
95
- display: flex;
96
- justify-content: space-between;
97
- margin-bottom: 5px;
98
- .disabled-count {
99
- color: #aaa;
100
- cursor: not-allowed;
101
- }
102
- .clear-count {
103
- cursor: pointer;
104
- &:hover {
105
- color: #40a9ff;
106
- }
107
- }
1
+ @import (reference) '~antd/lib/style/themes/index.less';
2
+ @prefix-cls: vtx-ztree-select;
3
+
4
+ .@{prefix-cls} {
5
+ position: relative;
6
+ display: inline-block;
7
+ width: 100%;
8
+ &-close-icon {
9
+ display: none;
10
+ color: @disabled-color;
11
+ cursor: pointer;
12
+ &:hover {
13
+ color: @text-color-secondary;
14
+ }
15
+ }
16
+ &-arrow-icon, &-arrow2-icon {
17
+ color: @disabled-color;
18
+ user-select: none;
19
+ font-size: 12px;
20
+ }
21
+ &:hover {
22
+ .vtx-ztree-select-close-icon {
23
+ display: block;
24
+ }
25
+ .vtx-ztree-select-arrow2-icon {
26
+ display: none;
27
+ }
28
+ }
29
+ input {
30
+ overflow: hidden;
31
+ text-overflow: ellipsis;
32
+ }
33
+ &-multiple-box {
34
+ display: flex;
35
+ width: fit-content;
36
+ .vtx-tree-count {
37
+ border-left: none;
38
+ }
39
+ }
40
+ &-multiple {
41
+ position: relative;
42
+ flex: 1;
43
+ padding-right: 18px;
44
+ overflow: hidden;
45
+ white-space: nowrap;
46
+ text-overflow: ellipsis;
47
+ &-close-icon {
48
+ position: absolute;
49
+ top: 8px;
50
+ right: 5px;
51
+ display: none;
52
+ color: @disabled-color;
53
+ cursor: pointer;
54
+ &:hover {
55
+ color: @text-color-secondary;
56
+ }
57
+ }
58
+ &:hover {
59
+ .vtx-ztree-select-multiple-close-icon {
60
+ display: block;
61
+ }
62
+ }
63
+ }
64
+ &-multiple-disabled {
65
+ color: @disabled-color;
66
+ background-color: @input-disabled-bg;
67
+ cursor: not-allowed;
68
+ opacity: 1;
69
+ &:hover {
70
+ border-color: #d9d9d9;
71
+ }
72
+ }
73
+ }
74
+
75
+ .vtx-ztree-select-popover {
76
+ min-width: 200px;
77
+ height: 300px;
78
+ overflow: auto;
79
+ &::-webkit-scrollbar {
80
+ width: 8px;
81
+ height: 8px;
82
+ background-color: hsla(0, 0%, 76%, 0.07);
83
+ }
84
+ &::-webkit-scrollbar-thumb {
85
+ background-color: rgba(193, 193, 193, 0.6);
86
+ border-radius: 3px;
87
+ box-shadow: inset 0 0 0 rgba(0, 0, 0, 0.3);
88
+ }
89
+ }
90
+
91
+ .vtx-ztree-select-placeholder {
92
+ color: @input-placeholder-color;
93
+ }
94
+ .vtx-tree-count-head {
95
+ display: flex;
96
+ justify-content: space-between;
97
+ margin-bottom: 5px;
98
+ .disabled-count {
99
+ color: #aaa;
100
+ cursor: not-allowed;
101
+ }
102
+ .clear-count {
103
+ cursor: pointer;
104
+ &:hover {
105
+ color: #40a9ff;
106
+ }
107
+ }
108
108
  }
package/package.json CHANGED
@@ -1,126 +1,127 @@
1
- {
2
- "name": "@vtx/components",
3
- "version": "3.1.76",
4
- "description": "React components for Vortex",
5
- "keywords": [
6
- "react",
7
- "react-component"
8
- ],
9
- "files": [
10
- "lib"
11
- ],
12
- "main": "lib/index.js",
13
- "scripts": {
14
- "start": "dumi dev",
15
- "build": "dumi build",
16
- "compile": "gulp compile",
17
- "lint": "npm run lint:script && npm run lint:style",
18
- "lint:script": "eslint components --ext .js,.jsx",
19
- "lint:style": "stylelint components/**/*.less --syntax less",
20
- "fix": "eslint --fix --ext .js,.jsx components && npm run style:fix",
21
- "style:fix": "stylelint components/**/*.less --syntax less --fix",
22
- "prettier": "prettier -c --write **/*",
23
- "pretty-quick": "pretty-quick",
24
- "pub": "npm publish --access=public",
25
- "bump": "gulp bump --prerelease",
26
- "release": "release-it --no-npm.publish",
27
- "version": "npm run changelog && git add CHANGELOG.md",
28
- "changelog": "conventional-changelog -p custom-config -i CHANGELOG.md -s -r 0"
29
- },
30
- "repository": {
31
- "type": "git",
32
- "url": "https://git.cloudhw.cn:3443/front-end/react-components.git"
33
- },
34
- "license": "ISC",
35
- "bugs": {
36
- "url": "https://git.cloudhw.cn:3443/front-end/react-components/-/issues"
37
- },
38
- "homepage": "https://git.cloudhw.cn:3443/front-end/react-components.git",
39
- "husky": {
40
- "hooks": {
41
- "pre-commit": "npm run lint",
42
- "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
43
- }
44
- },
45
- "release-it": {
46
- "git": {
47
- "commitMessage": "chore: release v${version}"
48
- }
49
- },
50
- "changelog": {
51
- "emojis": true,
52
- "authorName": true
53
- },
54
- "dependencies": {
55
- "@ant-design/icons": "4.7.0",
56
- "@vtx/map": "^1.1.35",
57
- "@vtx/utils": "latest",
58
- "@wangeditor/editor": "^5.1.21",
59
- "@wangeditor/editor-for-react": "^1.0.5",
60
- "@wangeditor/plugin-upload-attachment": "^1.1.0",
61
- "ahooks": "^3.1.5",
62
- "antd": "4.20.5",
63
- "axios": "^0.21.1",
64
- "braft-editor": "^2.3.9",
65
- "braft-utils": "^3.0.12",
66
- "classnames": "^2.2.6",
67
- "lodash.clonedeep": "^4.5.0",
68
- "lodash.debounce": "^4.0.8",
69
- "lodash.difference": "^4.5.0",
70
- "lodash.isequal": "^4.5.0",
71
- "lodash.merge": "^4.6.2",
72
- "moment": "^2.29.1",
73
- "rc-color-picker": "^1.2.6",
74
- "react-resizable": "^1.11.1",
75
- "signature_pad": "3.0.0-beta.4",
76
- "viewerjs": "1.3.3",
77
- "xgplayer": "2.18.3"
78
- },
79
- "peerDependencies": {
80
- "react": ">=16.12.0",
81
- "react-dom": ">=16.12.0"
82
- },
83
- "devDependencies": {
84
- "@babel/cli": "^7.6.4",
85
- "@babel/core": "^7.6.4",
86
- "@babel/plugin-proposal-class-properties": "^7.5.5",
87
- "@babel/plugin-transform-runtime": "^7.6.2",
88
- "@babel/preset-env": "^7.6.3",
89
- "@babel/preset-react": "^7.6.3",
90
- "@babel/runtime": "^7.6.3",
91
- "@commitlint/cli": "^8.3.4",
92
- "@commitlint/config-conventional": "^8.3.4",
93
- "@umijs/plugin-locale": "^0.10.8",
94
- "babel-eslint": "^10.1.0",
95
- "babel-plugin-import": "^1.13.3",
96
- "conventional-changelog-cli": "^2.1.1",
97
- "conventional-changelog-custom-config": "^0.3.1",
98
- "dumi": "^1.0.10",
99
- "eslint": "^6.6.0",
100
- "eslint-plugin-react": "^7.21.5",
101
- "eslint-plugin-react-hooks": "^4.2.0",
102
- "gulp": "^4.0.2",
103
- "gulp-babel": "^8.0.0",
104
- "gulp-bump": "^3.1.3",
105
- "gulp-clean": "^0.4.0",
106
- "gulp-less": "5.0.0",
107
- "gulp-sourcemaps": "^2.6.5",
108
- "husky": "^4.0.7",
109
- "jquery": "^3.6.0",
110
- "less": "^3.10.3",
111
- "less-plugin-autoprefix": "^2.0.0",
112
- "less-plugin-npm-import": "^2.1.0",
113
- "merge2": "^1.3.0",
114
- "prettier": "^1.18.2",
115
- "pretty-quick": "^2.0.0",
116
- "release-it": "^14.6.1",
117
- "rimraf": "^3.0.0",
118
- "stylelint": "11.0.0",
119
- "stylelint-config-prettier": "^6.0.0",
120
- "stylelint-config-rational-order": "^0.1.2",
121
- "stylelint-config-standard": "^19.0.0",
122
- "stylelint-declaration-block-no-ignored-properties": "^2.1.0",
123
- "stylelint-order": "^3.0.0",
124
- "through2": "^3.0.1"
125
- }
126
- }
1
+ {
2
+ "name": "@vtx/components",
3
+ "version": "3.1.78",
4
+ "description": "React components for Vortex",
5
+ "keywords": [
6
+ "react",
7
+ "react-component"
8
+ ],
9
+ "files": [
10
+ "lib"
11
+ ],
12
+ "main": "lib/index.js",
13
+ "scripts": {
14
+ "start": "dumi dev",
15
+ "build": "dumi build",
16
+ "compile": "gulp compile",
17
+ "lint": "npm run lint:script && npm run lint:style",
18
+ "lint:script": "eslint components --ext .js,.jsx",
19
+ "lint:style": "stylelint components/**/*.less --syntax less",
20
+ "fix": "eslint --fix --ext .js,.jsx components && npm run style:fix",
21
+ "style:fix": "stylelint components/**/*.less --syntax less --fix",
22
+ "prettier": "prettier -c --write **/*",
23
+ "pretty-quick": "pretty-quick",
24
+ "pub": "npm publish --access=public",
25
+ "bump": "gulp bump --prerelease",
26
+ "release": "release-it --no-npm.publish",
27
+ "version": "npm run changelog && git add CHANGELOG.md",
28
+ "changelog": "conventional-changelog -p custom-config -i CHANGELOG.md -s -r 0"
29
+ },
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://git.cloudhw.cn:3443/front-end/react-components.git"
33
+ },
34
+ "license": "ISC",
35
+ "bugs": {
36
+ "url": "https://git.cloudhw.cn:3443/front-end/react-components/-/issues"
37
+ },
38
+ "homepage": "https://git.cloudhw.cn:3443/front-end/react-components.git",
39
+ "husky": {
40
+ "hooks": {
41
+ "pre-commit": "npm run lint",
42
+ "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
43
+ }
44
+ },
45
+ "release-it": {
46
+ "git": {
47
+ "commitMessage": "chore: release v${version}"
48
+ }
49
+ },
50
+ "changelog": {
51
+ "emojis": true,
52
+ "authorName": true
53
+ },
54
+ "dependencies": {
55
+ "@ant-design/icons": "4.7.0",
56
+ "@vtx/map": "^1.1.35",
57
+ "@vtx/utils": "latest",
58
+ "@wangeditor/editor": "^5.1.21",
59
+ "@wangeditor/editor-for-react": "^1.0.5",
60
+ "@wangeditor/plugin-upload-attachment": "^1.1.0",
61
+ "antd-img-crop": "^4.22.0",
62
+ "ahooks": "^3.1.5",
63
+ "antd": "4.20.5",
64
+ "axios": "^0.21.1",
65
+ "braft-editor": "^2.3.9",
66
+ "braft-utils": "^3.0.12",
67
+ "classnames": "^2.2.6",
68
+ "lodash.clonedeep": "^4.5.0",
69
+ "lodash.debounce": "^4.0.8",
70
+ "lodash.difference": "^4.5.0",
71
+ "lodash.isequal": "^4.5.0",
72
+ "lodash.merge": "^4.6.2",
73
+ "moment": "^2.29.1",
74
+ "rc-color-picker": "^1.2.6",
75
+ "react-resizable": "^1.11.1",
76
+ "signature_pad": "3.0.0-beta.4",
77
+ "viewerjs": "1.3.3",
78
+ "xgplayer": "2.18.3"
79
+ },
80
+ "peerDependencies": {
81
+ "react": ">=16.12.0",
82
+ "react-dom": ">=16.12.0"
83
+ },
84
+ "devDependencies": {
85
+ "@babel/cli": "^7.6.4",
86
+ "@babel/core": "^7.6.4",
87
+ "@babel/plugin-proposal-class-properties": "^7.5.5",
88
+ "@babel/plugin-transform-runtime": "^7.6.2",
89
+ "@babel/preset-env": "^7.6.3",
90
+ "@babel/preset-react": "^7.6.3",
91
+ "@babel/runtime": "^7.6.3",
92
+ "@commitlint/cli": "^8.3.4",
93
+ "@commitlint/config-conventional": "^8.3.4",
94
+ "@umijs/plugin-locale": "^0.10.8",
95
+ "babel-eslint": "^10.1.0",
96
+ "babel-plugin-import": "^1.13.3",
97
+ "conventional-changelog-cli": "^2.1.1",
98
+ "conventional-changelog-custom-config": "^0.3.1",
99
+ "dumi": "^1.0.10",
100
+ "eslint": "^6.6.0",
101
+ "eslint-plugin-react": "^7.21.5",
102
+ "eslint-plugin-react-hooks": "^4.2.0",
103
+ "gulp": "^4.0.2",
104
+ "gulp-babel": "^8.0.0",
105
+ "gulp-bump": "^3.1.3",
106
+ "gulp-clean": "^0.4.0",
107
+ "gulp-less": "5.0.0",
108
+ "gulp-sourcemaps": "^2.6.5",
109
+ "husky": "^4.0.7",
110
+ "jquery": "^3.6.0",
111
+ "less": "^3.10.3",
112
+ "less-plugin-autoprefix": "^2.0.0",
113
+ "less-plugin-npm-import": "^2.1.0",
114
+ "merge2": "^1.3.0",
115
+ "prettier": "^1.18.2",
116
+ "pretty-quick": "^2.0.0",
117
+ "release-it": "^14.6.1",
118
+ "rimraf": "^3.0.0",
119
+ "stylelint": "11.0.0",
120
+ "stylelint-config-prettier": "^6.0.0",
121
+ "stylelint-config-rational-order": "^0.1.2",
122
+ "stylelint-config-standard": "^19.0.0",
123
+ "stylelint-declaration-block-no-ignored-properties": "^2.1.0",
124
+ "stylelint-order": "^3.0.0",
125
+ "through2": "^3.0.1"
126
+ }
127
+ }