@zat-design/sisyphus-react 3.1.5 → 3.2.0

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 (256) hide show
  1. package/dist/index.esm.css +176 -250
  2. package/es/ProAction/index.js +7 -5
  3. package/es/ProAction/index.less +3 -2
  4. package/es/ProConfigProvider/index.d.ts +2 -0
  5. package/es/ProConfigProvider/index.js +23 -2
  6. package/es/ProDownload/utils.js +6 -3
  7. package/es/ProDrawerForm/components/ProDrawer/index.js +6 -4
  8. package/es/ProDrawerForm/index.js +5 -3
  9. package/es/ProDrawerForm/style/index.less +15 -11
  10. package/es/ProEditLabel/style/index.less +2 -2
  11. package/es/ProEditTable/components/ActionButton/index.js +3 -2
  12. package/es/ProEditTable/components/RenderField/index.js +2 -1
  13. package/es/ProEditTable/index.js +7 -6
  14. package/es/ProEditTable/style/index.less +15 -8
  15. package/es/ProEditTable/utils/config.d.ts +8 -8
  16. package/es/ProEditTable/utils/config.js +20 -12
  17. package/es/ProEditTable/utils/index.js +3 -2
  18. package/es/ProEnum/hooks/useEnumRequest.js +17 -10
  19. package/es/ProEnum/index.js +9 -4
  20. package/es/ProEnum/style/index.less +1 -1
  21. package/es/ProForm/components/FormFooter/index.js +16 -20
  22. package/es/ProForm/components/base/Input/index.js +4 -3
  23. package/es/ProForm/components/base/InputNumber/index.js +4 -3
  24. package/es/ProForm/components/base/RangePicker/index.js +0 -3
  25. package/es/ProForm/components/base/Select/index.js +2 -1
  26. package/es/ProForm/components/base/Switch/index.js +9 -5
  27. package/es/ProForm/components/base/SwitchCheckbox/index.js +2 -1
  28. package/es/ProForm/components/base/TextArea/index.js +4 -2
  29. package/es/ProForm/components/base/TextArea/index.less +1 -1
  30. package/es/ProForm/components/combination/Container/style/index.less +0 -1
  31. package/es/ProForm/components/combination/FormList/components/ActionButton.js +13 -17
  32. package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +2 -1
  33. package/es/ProForm/components/combination/FormList/style/index.less +20 -19
  34. package/es/ProForm/components/combination/Group/index.js +2 -2
  35. package/es/ProForm/components/combination/ProAddressBar/index.js +83 -63
  36. package/es/ProForm/components/combination/ProAddressBar/propsType.d.ts +3 -2
  37. package/es/ProForm/components/combination/ProModalSelect/index.js +76 -15
  38. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +1 -0
  39. package/es/ProForm/components/combination/ProModalSelect/style/index.less +3 -3
  40. package/es/ProForm/components/combination/ProNumberRange/index.js +3 -2
  41. package/es/ProForm/components/combination/ProNumberRange/style/index.less +1 -1
  42. package/es/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -1
  43. package/es/ProForm/components/combination/ProRangeLimit/index.js +3 -7
  44. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +10 -5
  45. package/es/ProForm/components/combination/ProTimeLimit/index.js +4 -11
  46. package/es/ProForm/components/combination/ProTimeLimit/style/index.less +18 -1
  47. package/es/ProForm/components/old/EnumSelect/style/index.less +7 -8
  48. package/es/ProForm/components/render/Render.js +4 -2
  49. package/es/ProForm/components/render/RenderFields.js +10 -6
  50. package/es/ProForm/components/render/propsType.d.ts +5 -4
  51. package/es/ProForm/index.js +14 -2
  52. package/es/ProForm/style/index.less +77 -169
  53. package/es/ProForm/utils/index.d.ts +1 -1
  54. package/es/ProForm/utils/index.js +7 -2
  55. package/es/ProForm/utils/rulesCreator.js +2 -1
  56. package/es/ProForm/utils/useRules.js +4 -3
  57. package/es/ProForm/utils/useShouldUpdate.js +16 -16
  58. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +6 -0
  59. package/es/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +2 -2
  60. package/es/ProLayout/components/Layout/Notice/index.js +3 -2
  61. package/es/ProLayout/components/ProCollapse/style/index.less +4 -4
  62. package/es/ProLayout/components/ProHeader/components/Copy/index.js +2 -1
  63. package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.js +2 -1
  64. package/es/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +21 -0
  65. package/es/ProLayout/components/ProHeader/components/index.d.ts +1 -0
  66. package/es/ProLayout/components/ProHeader/components/index.js +2 -1
  67. package/es/ProLayout/components/ProHeader/index.js +9 -6
  68. package/es/ProLayout/components/ProHeader/style/index.less +16 -7
  69. package/es/ProLayout/utils/index.js +1 -1
  70. package/es/ProSelect/index.d.ts +3 -3
  71. package/es/ProSelect/index.js +4 -2
  72. package/es/ProStep/components/Step/index.js +3 -1
  73. package/es/ProStep/style/index.less +0 -1
  74. package/es/ProTable/components/RenderColumn/index.d.ts +5 -5
  75. package/es/ProTable/components/RenderColumn/index.js +41 -25
  76. package/es/ProTable/index.js +10 -8
  77. package/es/ProTable/propsType.d.ts +2 -0
  78. package/es/ProTable/style/index.less +14 -1
  79. package/es/ProTable/useAntdTable.d.ts +12 -4
  80. package/es/ProTable/useAntdTable.js +18 -6
  81. package/es/ProTable/utils.d.ts +1 -1
  82. package/es/ProTable/utils.js +258 -201
  83. package/es/ProTabs/style/index.less +1 -1
  84. package/es/ProThemeTools/component/PrdTools/index.js +1 -1
  85. package/es/ProThemeTools/component/PrdTools/style/index.less +3 -3
  86. package/es/ProThemeTools/index.d.ts +2 -2
  87. package/es/ProThemeTools/index.js +24 -17
  88. package/es/ProThemeTools/propsType.d.ts +8 -6
  89. package/es/ProThemeTools/style/index.less +2 -2
  90. package/es/ProThemeTools/utils/index.d.ts +7 -0
  91. package/es/ProThemeTools/utils/index.js +19 -1
  92. package/es/ProTree/components/ProTree.js +6 -5
  93. package/es/ProTree/components/SearchTitle.d.ts +2 -2
  94. package/es/ProTree/components/SearchTitle.js +11 -1
  95. package/es/ProTree/components/Tree.js +9 -2
  96. package/es/ProTree/style/index.less +193 -141
  97. package/es/ProTreeModal/components/List.js +0 -14
  98. package/es/ProTreeModal/components/Trigger.js +9 -3
  99. package/es/ProTreeModal/index.js +29 -13
  100. package/es/ProTreeModal/style/index.less +2 -6
  101. package/es/ProUpload/components/ButtonRender.js +5 -2
  102. package/es/ProUpload/components/DragRender.js +8 -8
  103. package/es/ProUpload/components/Example.js +3 -1
  104. package/es/ProUpload/components/ImageRender.js +8 -6
  105. package/es/ProUpload/index.js +8 -6
  106. package/es/ProUpload/style/index.less +41 -39
  107. package/es/index.d.ts +2 -1
  108. package/es/index.js +2 -1
  109. package/es/locale/en_US.d.ts +138 -0
  110. package/es/locale/en_US.js +137 -0
  111. package/es/locale/index.d.ts +13 -0
  112. package/es/locale/index.js +32 -0
  113. package/es/locale/zh_CN.d.ts +137 -0
  114. package/es/locale/zh_CN.js +136 -0
  115. package/es/old/ProEditableTable/style/index.less +1 -2
  116. package/es/style/components.less +0 -1
  117. package/es/style/core/normalize.less +1 -2
  118. package/es/style/theme/antd.less +3 -4
  119. package/es/style/theme/index.less +80 -79
  120. package/es/style/theme/tokens.less +1 -0
  121. package/lib/ProAction/index.js +7 -5
  122. package/lib/ProAction/index.less +3 -2
  123. package/lib/ProConfigProvider/index.d.ts +2 -0
  124. package/lib/ProConfigProvider/index.js +22 -2
  125. package/lib/ProDownload/utils.js +4 -3
  126. package/lib/ProDrawerForm/components/ProDrawer/index.js +6 -4
  127. package/lib/ProDrawerForm/index.js +5 -3
  128. package/lib/ProDrawerForm/style/index.less +15 -11
  129. package/lib/ProEditLabel/style/index.less +2 -2
  130. package/lib/ProEditTable/components/ActionButton/index.js +3 -2
  131. package/lib/ProEditTable/components/RenderField/index.js +4 -1
  132. package/lib/ProEditTable/index.js +7 -6
  133. package/lib/ProEditTable/style/index.less +15 -8
  134. package/lib/ProEditTable/utils/config.d.ts +8 -8
  135. package/lib/ProEditTable/utils/config.js +20 -12
  136. package/lib/ProEditTable/utils/index.js +3 -2
  137. package/lib/ProEnum/hooks/useEnumRequest.js +17 -10
  138. package/lib/ProEnum/index.js +9 -4
  139. package/lib/ProEnum/style/index.less +1 -1
  140. package/lib/ProForm/components/FormFooter/index.js +16 -19
  141. package/lib/ProForm/components/base/Input/index.js +4 -3
  142. package/lib/ProForm/components/base/InputNumber/index.js +4 -3
  143. package/lib/ProForm/components/base/RangePicker/index.js +1 -4
  144. package/lib/ProForm/components/base/Select/index.js +2 -1
  145. package/lib/ProForm/components/base/Switch/index.js +8 -5
  146. package/lib/ProForm/components/base/SwitchCheckbox/index.js +2 -1
  147. package/lib/ProForm/components/base/TextArea/index.js +4 -2
  148. package/lib/ProForm/components/base/TextArea/index.less +1 -1
  149. package/lib/ProForm/components/combination/Container/style/index.less +0 -1
  150. package/lib/ProForm/components/combination/FormList/components/ActionButton.js +13 -17
  151. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +2 -1
  152. package/lib/ProForm/components/combination/FormList/style/index.less +20 -19
  153. package/lib/ProForm/components/combination/Group/index.js +2 -2
  154. package/lib/ProForm/components/combination/ProAddressBar/index.js +78 -60
  155. package/lib/ProForm/components/combination/ProAddressBar/propsType.d.ts +3 -2
  156. package/lib/ProForm/components/combination/ProModalSelect/index.js +76 -15
  157. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +1 -0
  158. package/lib/ProForm/components/combination/ProModalSelect/style/index.less +3 -3
  159. package/lib/ProForm/components/combination/ProNumberRange/index.js +3 -2
  160. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +1 -1
  161. package/lib/ProForm/components/combination/ProRangeLimit/index.d.ts +1 -1
  162. package/lib/ProForm/components/combination/ProRangeLimit/index.js +3 -7
  163. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +10 -5
  164. package/lib/ProForm/components/combination/ProTimeLimit/index.js +4 -11
  165. package/lib/ProForm/components/combination/ProTimeLimit/style/index.less +18 -1
  166. package/lib/ProForm/components/old/EnumSelect/style/index.less +7 -8
  167. package/lib/ProForm/components/old/InputRange/index.js +0 -1
  168. package/lib/ProForm/components/old/ProCertValidity/index.js +1 -1
  169. package/lib/ProForm/components/render/Render.js +5 -2
  170. package/lib/ProForm/components/render/RenderFields.js +9 -5
  171. package/lib/ProForm/components/render/propsType.d.ts +5 -4
  172. package/lib/ProForm/index.js +14 -2
  173. package/lib/ProForm/style/index.less +77 -169
  174. package/lib/ProForm/utils/index.d.ts +1 -1
  175. package/lib/ProForm/utils/index.js +7 -2
  176. package/lib/ProForm/utils/rulesCreator.js +2 -1
  177. package/lib/ProForm/utils/useRules.js +4 -3
  178. package/lib/ProForm/utils/useShouldUpdate.js +16 -16
  179. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +6 -0
  180. package/lib/ProLayout/components/Layout/Menu/OpenMenu/style/index.less +2 -2
  181. package/lib/ProLayout/components/Layout/Notice/index.js +3 -2
  182. package/lib/ProLayout/components/ProCollapse/style/index.less +4 -4
  183. package/lib/ProLayout/components/ProHeader/components/Copy/index.js +2 -1
  184. package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.js +3 -1
  185. package/lib/ProLayout/components/ProHeader/components/ProBackBtn/style/index.less +21 -0
  186. package/lib/ProLayout/components/ProHeader/components/index.d.ts +1 -0
  187. package/lib/ProLayout/components/ProHeader/components/index.js +8 -1
  188. package/lib/ProLayout/components/ProHeader/index.js +9 -6
  189. package/lib/ProLayout/components/ProHeader/style/index.less +16 -7
  190. package/lib/ProLayout/utils/index.js +1 -1
  191. package/lib/ProSelect/index.d.ts +3 -3
  192. package/lib/ProSelect/index.js +4 -2
  193. package/lib/ProStep/components/Step/index.js +3 -1
  194. package/lib/ProStep/style/index.less +0 -1
  195. package/lib/ProTable/components/RenderColumn/index.d.ts +5 -5
  196. package/lib/ProTable/components/RenderColumn/index.js +38 -24
  197. package/lib/ProTable/components/TableResizable/index.js +8 -0
  198. package/lib/ProTable/index.js +10 -8
  199. package/lib/ProTable/propsType.d.ts +2 -0
  200. package/lib/ProTable/style/index.less +14 -1
  201. package/lib/ProTable/useAntdTable.d.ts +12 -4
  202. package/lib/ProTable/useAntdTable.js +19 -6
  203. package/lib/ProTable/utils.d.ts +1 -1
  204. package/lib/ProTable/utils.js +258 -201
  205. package/lib/ProTabs/index.js +1 -0
  206. package/lib/ProTabs/style/index.less +1 -1
  207. package/lib/ProThemeTools/component/PrdTools/index.js +1 -1
  208. package/lib/ProThemeTools/component/PrdTools/style/index.less +3 -3
  209. package/lib/ProThemeTools/index.d.ts +2 -2
  210. package/lib/ProThemeTools/index.js +24 -16
  211. package/lib/ProThemeTools/propsType.d.ts +8 -6
  212. package/lib/ProThemeTools/style/index.less +2 -2
  213. package/lib/ProThemeTools/utils/index.d.ts +7 -0
  214. package/lib/ProThemeTools/utils/index.js +20 -2
  215. package/lib/ProTree/components/ProTree.js +6 -5
  216. package/lib/ProTree/components/SearchTitle.d.ts +2 -2
  217. package/lib/ProTree/components/SearchTitle.js +11 -1
  218. package/lib/ProTree/components/Tree.js +16 -2
  219. package/lib/ProTree/index.js +0 -1
  220. package/lib/ProTree/style/index.less +193 -141
  221. package/lib/ProTreeModal/components/List.js +0 -14
  222. package/lib/ProTreeModal/components/Tree.js +1 -0
  223. package/lib/ProTreeModal/components/Trigger.js +10 -3
  224. package/lib/ProTreeModal/index.js +29 -13
  225. package/lib/ProTreeModal/style/index.less +2 -6
  226. package/lib/ProUpload/components/ButtonRender.js +5 -2
  227. package/lib/ProUpload/components/DragRender.js +8 -8
  228. package/lib/ProUpload/components/Example.js +3 -1
  229. package/lib/ProUpload/components/ImageRender.js +8 -6
  230. package/lib/ProUpload/index.js +14 -5
  231. package/lib/ProUpload/style/index.less +41 -39
  232. package/lib/index.d.ts +2 -1
  233. package/lib/index.js +13 -1
  234. package/lib/locale/en_US.d.ts +138 -0
  235. package/lib/locale/en_US.js +143 -0
  236. package/lib/locale/index.d.ts +13 -0
  237. package/lib/locale/index.js +41 -0
  238. package/lib/locale/zh_CN.d.ts +137 -0
  239. package/lib/locale/zh_CN.js +142 -0
  240. package/lib/old/ProCertValidity/index.js +1 -1
  241. package/lib/old/ProEditableTable/style/index.less +1 -2
  242. package/lib/style/components.less +0 -1
  243. package/lib/style/core/normalize.less +1 -2
  244. package/lib/style/theme/antd.less +3 -4
  245. package/lib/style/theme/index.less +80 -79
  246. package/lib/style/theme/tokens.less +1 -0
  247. package/package.json +1 -1
  248. package/typings.d.ts +2 -0
  249. package/es/old/ProBackBtn/style/index.less +0 -19
  250. package/lib/old/ProBackBtn/style/index.less +0 -19
  251. /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.d.ts +0 -0
  252. /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.d.ts +0 -0
  253. /package/es/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.js +0 -0
  254. /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/index.d.ts +0 -0
  255. /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.d.ts +0 -0
  256. /package/lib/{old → ProLayout/components/ProHeader/components}/ProBackBtn/propsType.js +0 -0
@@ -1,59 +1,73 @@
1
1
  .pro-tree {
2
2
  height: 100%; // tree auto css
3
- .ant-spin-nested-loading{
3
+
4
+ .ant-spin-nested-loading {
4
5
  height: 100%; // tree auto css
5
- .ant-spin-container{
6
+
7
+ .ant-spin-container {
6
8
  height: 100%; // tree auto css
7
9
  }
8
10
  }
11
+
9
12
  &-placeholder {
10
13
  color: #939499;
11
14
  }
12
- .pro-tree-search{
13
- margin-bottom: var(--zaui-space-size-sm);
15
+
16
+ .pro-tree-search {
17
+ margin-bottom: calc(var(--zaui-space-size-sm; 8px) * var(--zaui-size; 1));
14
18
  }
19
+
15
20
  &-content {
16
- display: flex; // tree auto css
21
+ display : flex; // tree auto css
17
22
  flex-direction: column; // tree auto css
18
- height: 100%;
23
+ height : 100%;
24
+
19
25
  // overflow-y: scroll;
20
- .pro-tree-header-box, .pro-tree-footer-box{
21
- display: inline-flex;
26
+ .pro-tree-header-box,
27
+ .pro-tree-footer-box {
28
+ display : inline-flex;
22
29
  flex-direction: column;
23
30
  }
24
- .pro-tree-tree-warp{
25
- height: 100%;
26
- flex: 1 1;
31
+
32
+ .pro-tree-tree-warp {
33
+ height : 100%;
34
+ flex : 1 1;
27
35
  overflow-y: auto;
28
36
  overflow-x: auto;
29
37
  }
30
- .tree-title-box{
31
- display: flex;
32
- padding-top: 10px;
38
+
39
+ .tree-title-box {
40
+ display : flex;
41
+ padding-top : 10px;
33
42
  justify-content: space-between;
34
- .tree-title-text{
35
- font-size: var(--zaui-font-size-lg);
43
+
44
+ .tree-title-text {
45
+ font-size : var(--zaui-font-size-lg);
36
46
  margin-bottom: var(--zaui-space-size-xs);
37
- font-weight: 500;
38
- padding-left: 2px;
47
+ font-weight : 500;
48
+ padding-left : 2px;
39
49
  }
40
- .expand-button{
50
+
51
+ .expand-button {
41
52
  padding-left: var(--zaui-space-size-sm);
42
- display: flex;
43
- align-items: baseline;
44
- &.expand{
45
- .expand-icon{
46
- .anticon-caret-down{
53
+ display : flex;
54
+ align-items : baseline;
55
+ cursor : pointer;
56
+ &.expand {
57
+ .expand-icon {
58
+ .anticon-caret-down {
47
59
  transform: rotate(180deg);
48
60
  }
49
61
  }
50
62
  }
51
- .expand-icon{
52
- font-size: 12px;
63
+
64
+ .expand-icon {
65
+ font-size : var(--zaui-font-size-sm, 12px);
53
66
  margin-right: var(--zaui-space-size-xs);
54
67
  }
55
68
  }
56
69
  }
70
+
57
71
  .ant-tree-checkbox {
58
72
  margin-top: 11px;
59
73
  }
@@ -61,37 +75,42 @@
61
75
  .ant-tree-switcher {
62
76
  line-height: 44px;
63
77
  }
64
- .ant-tree-switcher-leaf-line{
78
+
79
+ .ant-tree-switcher-leaf-line {
65
80
  display: none;
66
81
  }
67
82
 
68
83
  .ant-tree-treenode {
69
84
  align-items: flex-start;
70
- width: 100%;
71
- padding: 0;
72
- color: var(--zaui-text);
73
- font-size: var(--zaui-font-size);
85
+ width : 100%;
86
+ padding : 0;
87
+ color : var(--zaui-text);
88
+ font-size : var(--zaui-font-size);
74
89
  }
75
90
 
76
91
  .ant-tree-node-content-wrapper {
77
- min-height: var(--zaui-font-size-xxl);
92
+ min-height : var(--zaui-font-size-xxl);
78
93
  line-height: var(--zaui-font-size-xxl);
79
94
  }
80
95
 
81
96
  .ant-tree-node-content-wrapper {
82
97
  width: 100%;
83
- .ant-tree-title{
98
+
99
+ .ant-tree-title {
84
100
  display: block;
85
- width: 100%;
101
+ width : 100%;
86
102
  }
87
103
  }
104
+
88
105
  // 只读状态下,是否隐藏未勾选行
89
- .hide-disable-node{
90
- .ant-tree-treenode.ant-tree-treenode-disabled{
106
+ .hide-disable-node {
107
+ .ant-tree-treenode.ant-tree-treenode-disabled {
91
108
  display: none;
92
109
  }
93
- .ant-tree-treenode-checkbox-indeterminate, .ant-tree-treenode-checkbox-checked{
94
- &.ant-tree-treenode-disabled{
110
+
111
+ .ant-tree-treenode-checkbox-indeterminate,
112
+ .ant-tree-treenode-checkbox-checked {
113
+ &.ant-tree-treenode-disabled {
95
114
  display: flex;
96
115
  }
97
116
  }
@@ -99,173 +118,203 @@
99
118
  }
100
119
 
101
120
  &-tree-node {
102
- display: flex;
121
+ display : flex;
103
122
  flex-direction: row;
104
- padding: 9px var(--zaui-space-size-sm);
105
- margin-left: -8px;
106
- border-radius: var(--zaui-space-size-xs);
107
- &:hover{
123
+ padding : 9px var(--zaui-space-size-sm);
124
+ margin-left : -8px;
125
+ border-radius : var(--zaui-space-size-xs);
126
+
127
+ &:hover {
108
128
  background: #F7F9FC;
109
129
  }
130
+
110
131
  &:last-child {
111
132
  flex: 1;
112
133
  }
113
- &.checked{
134
+
135
+ &.checked {
114
136
  position: relative;
115
- z-index: 1;
116
- color: var(--zaui-brand);
117
- .brand-bg-opa-ten{
118
- position: absolute;
119
- width: 100%;
120
- height: 100%;
121
- top: 0px;
122
- left:0px;
137
+ z-index : 1;
138
+ color : var(--zaui-brand);
139
+
140
+ .brand-bg-opa-ten {
141
+ position : absolute;
142
+ width : 100%;
143
+ height : 100%;
144
+ top : 0px;
145
+ left : 0px;
123
146
  background-color: var(--zaui-brand);
124
- opacity: 0.1;
125
- z-index: 0;
126
- border-radius: var(--zaui-space-size-xs);
147
+ opacity : 0.1;
148
+ z-index : -1;
149
+ border-radius : var(--zaui-space-size-xs);
127
150
  }
128
151
  }
129
- .tree-node-show-text{
130
- display: flex;
152
+
153
+ .tree-node-show-text {
154
+ display : flex;
131
155
  flex-direction: row;
132
- width: 100%;
133
- .tree-node-show-text-label{
134
- flex: 1;
156
+ width : 100%;
157
+
158
+ .tree-node-show-text-label {
159
+ flex : 1;
135
160
  overflow: hidden;
136
- span{
161
+
162
+ span {
137
163
  width: 100%;
138
164
  }
139
- span.ellipse{
140
- display: block;
165
+
166
+ span.ellipse {
167
+ display : block;
141
168
  text-overflow: ellipsis;
142
- overflow: hidden;
143
- height: 20px;
144
- word-break: keep-all;
145
- white-space: nowrap;
169
+ overflow : hidden;
170
+ height : 20px;
171
+ word-break : keep-all;
172
+ white-space : nowrap;
146
173
  }
147
174
  }
148
175
  }
149
- .operate-tree-node-btns{
176
+
177
+ .operate-tree-node-btns {
150
178
  display: flex;
151
179
  z-index: 3;
152
- .icon-item{
180
+
181
+ .icon-item {
153
182
  transition-delay: 10s;
154
- width: 100%;
155
- margin-left: var(--zaui-space-size-xs);
183
+ width : 100%;
184
+ margin-left : var(--zaui-space-size-xs);
156
185
  }
157
- .icon-add{
158
- font-size: 12px;
186
+
187
+ .icon-add {
188
+ font-size: var(--zaui-font-size-sm, 12px);
159
189
  }
160
- .svg-icon-expand{
190
+
191
+ .svg-icon-expand {
161
192
  margin-bottom: -2px;
162
193
  }
163
194
  }
164
- .operate-tree-node-btns-absolute{
165
- visibility:visible;
166
- position: absolute;
167
- right: 0px;
195
+
196
+ .operate-tree-node-btns-absolute {
197
+ visibility: visible;
198
+ position : absolute;
199
+ right : 0px;
168
200
  }
169
201
  }
202
+
170
203
  &-tree-node-tag {
171
- display: flex;
172
- align-items: center;
204
+ display : flex;
205
+ align-items : center;
173
206
  justify-content: center;
174
- height: 20px;
175
- margin-right: var(--zaui-space-size-sm);
176
- padding: 0 var(--zaui-space-size-xs);
177
- font-weight: 400;
178
- line-height: 24px;
179
- white-space: nowrap;
180
- border-radius: 2px;
207
+ height : 20px;
208
+ margin-right : var(--zaui-space-size-sm);
209
+ padding : 0 var(--zaui-space-size-xs);
210
+ font-weight : 400;
211
+ line-height : 24px;
212
+ white-space : nowrap;
213
+ border-radius : var(--zaui-border-radius-card);
181
214
 
182
215
  span {
183
- font-size: 12px;
216
+ font-size : var(--zaui-font-size-sm, 12px);
184
217
  line-height: 20px;
185
- text-align: center;
186
- transform: scale(0.83, 0.83);
218
+ text-align : center;
219
+ transform : scale(0.83, 0.83);
187
220
  }
188
221
  }
222
+
189
223
  // 连接线、箭头宽度
190
- .ant-tree-show-line .ant-tree-indent-unit{
224
+ .ant-tree-show-line .ant-tree-indent-unit {
191
225
  width: 20px;
192
226
  }
193
- .ant-tree-switcher{
194
- width: 20px;
227
+
228
+ .ant-tree-switcher {
229
+ width : 20px;
195
230
  align-self: flex-start;
196
231
  margin-top: -4px;
197
232
  }
198
- .ant-tree-show-line .ant-tree-indent-unit::before{
233
+
234
+ .ant-tree-show-line .ant-tree-indent-unit::before {
199
235
  right: 9px;
200
236
  }
237
+
201
238
  // 底部样式
202
- .pro-tree-footer-box{
203
- z-index: 4;
204
- padding: var(--zaui-space-size-md) var(--zaui-space-size-md) var(--zaui-space-size-md) var(--zaui-space-size-sm);
205
- position: relative;
206
- box-shadow:0 -20px 5px -21px rgba(151,151,151,0.32);
239
+ .pro-tree-footer-box {
240
+ z-index : 4;
241
+ padding : var(--zaui-space-size-md) var(--zaui-space-size-md) var(--zaui-space-size-md) var(--zaui-space-size-sm);
242
+ position : relative;
243
+ box-shadow: 0 -20px 5px -21px rgba(151, 151, 151, 0.32);
207
244
  }
245
+
208
246
  // 去除antd白色背景
209
- .ant-tree-show-line .ant-tree-switcher, .ant-tree{
247
+ .ant-tree-show-line .ant-tree-switcher,
248
+ .ant-tree {
210
249
  background-color: transparent;
211
250
  }
212
- .empty-tree{
213
- color: #939599;
214
- height: 100%;
215
- text-align: center;
216
- display: flex;
217
- align-items: center;
251
+
252
+ .empty-tree {
253
+ color : #939599;
254
+ height : 100%;
255
+ text-align : center;
256
+ display : flex;
257
+ align-items : center;
218
258
  justify-content: center;
219
259
  }
220
260
  }
261
+
221
262
  // 操作按钮样式
222
- .pro-tree-operate-container{
263
+ .pro-tree-operate-container {
223
264
  padding-top: 0px;
224
- min-width: 120px;
225
- .ant-popover-inner-content{
265
+ min-width : 120px;
266
+
267
+ .ant-popover-inner-content {
226
268
  padding: 0px;
227
- width: 100%;
269
+ width : 100%;
228
270
  }
229
- .ant-popover-arrow{
271
+
272
+ .ant-popover-arrow {
230
273
  display: none;
231
274
  }
232
- .pro-tree-operate-btn-popover{
233
- .icon-item{
234
- position: relative;
235
- z-index: 1;
236
- cursor: pointer;
275
+
276
+ .pro-tree-operate-btn-popover {
277
+ .icon-item {
278
+ position : relative;
279
+ z-index : 1;
280
+ cursor : pointer;
237
281
  padding-left: var(--zaui-space-size-md);
238
- width: 100%;
239
- height: 32px;
240
- line-height: 32px;
282
+ width : 100%;
283
+ height : 32px;
284
+ line-height : 32px;
241
285
  }
242
- .icon-item:hover{
243
- &:after{
244
- position: absolute;
245
- display: block;
246
- z-index: 0;
247
- left:0;
248
- top:0;
249
- content: '';
250
- width: 120px;
251
- height: 32px;
286
+
287
+ .icon-item:hover {
288
+ &:after {
289
+ position : absolute;
290
+ display : block;
291
+ z-index : 0;
292
+ left : 0;
293
+ top : 0;
294
+ content : '';
295
+ width : 120px;
296
+ height : 32px;
252
297
  background-color: var(--zaui-brand);
253
- opacity: 0.08;
298
+ opacity : 0.08;
254
299
  }
255
300
  }
256
301
  }
257
302
  }
258
- .ant-tree .ant-tree-treenode-disabled{
259
- .ant-tree-node-content-wrapper{
303
+
304
+ .ant-tree .ant-tree-treenode-disabled {
305
+ .ant-tree-node-content-wrapper {
260
306
  color: var(--zaui-text);
261
307
  }
262
- .pro-tree-tree-node.checked{
308
+
309
+ .pro-tree-tree-node.checked {
263
310
  color: var(--zaui-text);
264
311
  }
265
- .pro-tree-tree-node.checked .brand-bg-opa-ten{
312
+
313
+ .pro-tree-tree-node.checked .brand-bg-opa-ten {
266
314
  background-color: inherit;
267
315
  }
268
316
  }
317
+
269
318
  // 中意全局样式覆盖
270
319
  // .pro-form.pro-form-view .ant-form-item * {
271
320
  // line-height: 1!important;
@@ -274,16 +323,19 @@
274
323
  // }
275
324
  // 重置ant-form view模式样式ant-tree样式
276
325
  .pro-form.pro-form-view .ant-form-item .pro-tree * {
277
- line-height: 1!important;
278
- height: auto!important;
279
- min-height: auto!important;
326
+ line-height: 1 !important;
327
+ height : auto !important;
328
+ min-height : auto !important;
280
329
  }
281
- .pro-form.pro-form-view .ant-form-item .pro-tree .ant-tree-checkbox{
330
+
331
+ .pro-form.pro-form-view .ant-form-item .pro-tree .ant-tree-checkbox {
282
332
  margin-top: var(--zaui-space-size-sm);
283
333
  }
284
- .pro-form.pro-form-view .ant-form-item .pro-tree .ant-tree-switcher{
334
+
335
+ .pro-form.pro-form-view .ant-form-item .pro-tree .ant-tree-switcher {
285
336
  padding-top: var(--zaui-font-size-sm);
286
337
  }
338
+
287
339
  .pro-form.pro-form-view .ant-form-item .pro-tree .ant-tree-checkbox * {
288
- height: 16px!important;
289
- }
340
+ height: 16px !important;
341
+ }
@@ -53,20 +53,6 @@ function List(props, ref) {
53
53
  setState({
54
54
  checkedList: treeData
55
55
  });
56
- // if (!span) {
57
- // setState({
58
- // checkedList: treeData,
59
- // });
60
- // }
61
- // // 数组长度一样不需要重新 filter、这种情况下属于右侧位置拖动
62
- // else if (flatTreeData?.length && checkedList.length !== treeData.length) {
63
- // // 如果开启 span 不用管之前的位置顺序、直接按原数据源的顺序来即可
64
- // setState({
65
- // checkedList: flatTreeData.filter((item) =>
66
- // treeData.find((data) => data[fieldNameValue] === item[fieldNameValue]),
67
- // ),
68
- // });
69
- // }
70
56
  }, [treeData]);
71
57
  var _useMemo = useMemo(function () {
72
58
  var min = -1;
@@ -5,8 +5,10 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
5
5
  import classNames from 'classnames';
6
6
  import { CloseOutlined } from '@ant-design/icons';
7
7
  import { ReactSVG } from 'react-svg';
8
+ import locale, { formatMessage } from '../../locale';
8
9
  import viewSvg from '../../assets/view.svg';
9
10
  function Trigger(props) {
11
+ var _locale$ProTreeModal, _locale$ProTreeModal2, _locale$ProTreeModal3;
10
12
  var checkedValues = props.checkedValues,
11
13
  handleClick = props.handleClick,
12
14
  handleClearAll = props.handleClearAll,
@@ -19,7 +21,9 @@ function Trigger(props) {
19
21
  children: [isView ? _jsxs("div", {
20
22
  className: "pro-tree-modal-isView",
21
23
  children: [_jsx("div", {
22
- children: checkedValues.length === 0 ? '-' : checkAll ? '全选' : "\u5DF2\u9009\u62E9".concat(checkedValues.length, "\u9879")
24
+ children: checkedValues.length === 0 ? '-' : checkAll ? locale === null || locale === void 0 ? void 0 : locale.ProTreeModal.checkAll : formatMessage(locale === null || locale === void 0 ? void 0 : (_locale$ProTreeModal = locale.ProTreeModal) === null || _locale$ProTreeModal === void 0 ? void 0 : _locale$ProTreeModal.checkNumber, {
25
+ num: checkedValues.length
26
+ })
23
27
  }), _jsx("div", {
24
28
  className: "pro-enum-input-addonAfter",
25
29
  children: _jsx(ReactSVG, {
@@ -31,7 +35,9 @@ function Trigger(props) {
31
35
  }) : _jsx(_Input, {
32
36
  className: classNames(disabled ? 'trigger-no-hover' : ''),
33
37
  onClick: handleClick,
34
- value: checkedValues.length === 0 ? null : checkAll ? '全选' : "\u5DF2\u9009\u62E9".concat(checkedValues.length, "\u9879"),
38
+ value: checkedValues.length === 0 ? null : checkAll ? locale === null || locale === void 0 ? void 0 : locale.ProTreeModal.checkAll : formatMessage(locale === null || locale === void 0 ? void 0 : (_locale$ProTreeModal2 = locale.ProTreeModal) === null || _locale$ProTreeModal2 === void 0 ? void 0 : _locale$ProTreeModal2.checkNumber, {
39
+ num: checkedValues.length
40
+ }),
35
41
  addonAfter: _jsxs("div", {
36
42
  className: "pro-enum-input-addonAfter",
37
43
  children: [checkedValues.length > 0 && !disabled && _jsx("span", {
@@ -45,7 +51,7 @@ function Trigger(props) {
45
51
  onClick: handleClick
46
52
  })]
47
53
  }),
48
- placeholder: "\u8BF7\u9009\u62E9",
54
+ placeholder: locale === null || locale === void 0 ? void 0 : (_locale$ProTreeModal3 = locale.ProTreeModal) === null || _locale$ProTreeModal3 === void 0 ? void 0 : _locale$ProTreeModal3.select,
49
55
  disabled: disabled,
50
56
  style: _objectSpread({}, triggerStyle)
51
57
  }), _jsx(_Input, {