@zat-design/sisyphus-react 3.7.3 → 3.8.0-beat.2

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 (229) hide show
  1. package/coverage/lcov-report/src/.umi/core/devScripts.ts.html +241 -0
  2. package/coverage/lcov-report/src/.umi/core/history.ts.html +148 -0
  3. package/coverage/lcov-report/src/.umi/core/index.html +206 -0
  4. package/coverage/lcov-report/src/.umi/core/plugin.ts.html +109 -0
  5. package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +160 -0
  6. package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +97 -0
  7. package/coverage/lcov-report/src/.umi/core/routes.ts.html +26050 -0
  8. package/coverage/lcov-report/src/.umi/core/umiExports.ts.html +112 -0
  9. package/coverage/lcov-report/src/.umi/dumi/demos/index.html +116 -0
  10. package/coverage/lcov-report/src/.umi/dumi/demos/index.ts.html +6340 -0
  11. package/coverage/lcov-report/src/.umi/dumi/index.html +116 -0
  12. package/coverage/lcov-report/src/.umi/dumi/layout.tsx.html +109 -0
  13. package/coverage/lcov-report/src/.umi/index.html +116 -0
  14. package/coverage/lcov-report/src/.umi/plugin-antd/index.html +116 -0
  15. package/coverage/lcov-report/src/.umi/plugin-antd/runtime.tsx.html +172 -0
  16. package/coverage/lcov-report/src/.umi/plugin-helmet/exports.ts.html +94 -0
  17. package/coverage/lcov-report/src/.umi/plugin-helmet/index.html +116 -0
  18. package/coverage/lcov-report/src/.umi/plugin-initial-state/Provider.tsx.html +196 -0
  19. package/coverage/lcov-report/src/.umi/plugin-initial-state/exports.ts.html +106 -0
  20. package/coverage/lcov-report/src/.umi/plugin-initial-state/index.html +146 -0
  21. package/coverage/lcov-report/src/.umi/plugin-initial-state/models/index.html +116 -0
  22. package/coverage/lcov-report/src/.umi/plugin-initial-state/models/initialState.ts.html +88 -0
  23. package/coverage/lcov-report/src/.umi/plugin-initial-state/runtime.tsx.html +124 -0
  24. package/coverage/lcov-report/src/.umi/plugin-locale/SelectLang.tsx.html +1246 -0
  25. package/coverage/lcov-report/src/.umi/plugin-locale/index.html +161 -0
  26. package/coverage/lcov-report/src/.umi/plugin-locale/locale.tsx.html +268 -0
  27. package/coverage/lcov-report/src/.umi/plugin-locale/localeExports.ts.html +778 -0
  28. package/coverage/lcov-report/src/.umi/plugin-locale/runtime.tsx.html +115 -0
  29. package/coverage/lcov-report/src/.umi/plugin-model/Provider.tsx.html +202 -0
  30. package/coverage/lcov-report/src/.umi/plugin-model/helpers/constant.tsx.html +97 -0
  31. package/coverage/lcov-report/src/.umi/plugin-model/helpers/dispatcher.tsx.html +142 -0
  32. package/coverage/lcov-report/src/.umi/plugin-model/helpers/executor.tsx.html +334 -0
  33. package/coverage/lcov-report/src/.umi/plugin-model/helpers/index.html +146 -0
  34. package/coverage/lcov-report/src/.umi/plugin-model/index.html +146 -0
  35. package/coverage/lcov-report/src/.umi/plugin-model/runtime.tsx.html +121 -0
  36. package/coverage/lcov-report/src/.umi/plugin-model/useModel.tsx.html +298 -0
  37. package/coverage/lcov-report/src/.umi/plugin-request/index.html +116 -0
  38. package/coverage/lcov-report/src/.umi/plugin-request/request.ts.html +919 -0
  39. package/coverage/lcov-report/src/.umi/umi.ts.html +268 -0
  40. package/dist/index.esm.css +100 -4
  41. package/dist/less.esm.css +97 -4
  42. package/es/ProAction/index.js +1 -1
  43. package/es/ProDownload/index.js +3 -3
  44. package/es/ProDownload/utils.js +3 -3
  45. package/es/ProDrawerForm/components/ProDrawer/index.js +4 -4
  46. package/es/ProDrawerForm/components/ProModal/index.js +3 -3
  47. package/es/ProEditLabel/index.js +3 -3
  48. package/es/ProEditTable/components/ActionButton/index.js +3 -3
  49. package/es/ProEditTable/components/RenderField/{ListChanged.d.ts → ListChangedWrapper.d.ts} +4 -3
  50. package/es/ProEditTable/components/RenderField/{ListChanged.js → ListChangedWrapper.js} +22 -10
  51. package/es/ProEditTable/components/RenderField/index.js +8 -8
  52. package/es/ProEditTable/components/RenderToolbar/index.js +1 -1
  53. package/es/ProEditTable/utils/config.js +2 -2
  54. package/es/ProEditTable/utils/index.js +5 -5
  55. package/es/ProEditTable/utils/tools.js +1 -1
  56. package/es/ProEnum/components/Group.js +10 -2
  57. package/es/ProEnum/hooks/useEnumRequest.js +2 -2
  58. package/es/ProEnum/index.js +6 -5
  59. package/es/ProEnum/style/index.less +14 -4
  60. package/es/ProEnum/utils/index.d.ts +1 -1
  61. package/es/ProEnum/utils/index.js +4 -0
  62. package/es/ProForm/components/combination/Container/index.js +5 -3
  63. package/es/ProForm/components/combination/Container/propsType.d.ts +2 -1
  64. package/es/ProForm/components/combination/FormList/components/ActionButton.js +2 -2
  65. package/es/ProForm/components/combination/FormList/components/BlockTitle.js +1 -1
  66. package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +1 -1
  67. package/es/ProForm/components/combination/FormList/utils.js +6 -5
  68. package/es/ProForm/components/combination/Group/component/ComRender.js +1 -1
  69. package/es/ProForm/components/combination/Group/utils.js +8 -1
  70. package/es/ProForm/components/combination/ProCascader/index.js +1 -1
  71. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +1 -1
  72. package/es/ProForm/components/combination/ProModalSelect/index.js +50 -45
  73. package/es/ProForm/components/combination/ProNumberRange/index.js +14 -5
  74. package/es/ProForm/components/combination/ProNumberRange/style/index.less +5 -1
  75. package/es/ProForm/components/old/ProAddress/index.js +1 -1
  76. package/es/ProForm/components/render/ChangedWrapper.d.ts +17 -0
  77. package/es/ProForm/components/render/ChangedWrapper.js +108 -0
  78. package/es/ProForm/components/render/ConfirmWrapper.js +1 -1
  79. package/es/ProForm/components/render/Render.js +10 -11
  80. package/es/ProForm/components/render/RenderFields.d.ts +2 -3
  81. package/es/ProForm/components/render/RenderFields.js +3 -4
  82. package/es/ProForm/components/render/propsType.d.ts +5 -4
  83. package/es/ProForm/index.js +4 -7
  84. package/es/ProForm/propsType.d.ts +13 -2
  85. package/es/ProForm/style/index.less +103 -5
  86. package/es/ProForm/utils/diffOriginal.d.ts +4 -4
  87. package/es/ProForm/utils/diffOriginal.js +18 -7
  88. package/es/ProForm/utils/transformValue.js +17 -11
  89. package/es/ProForm/utils/useForm.js +1 -1
  90. package/es/ProForm/utils/useShouldUpdate.d.ts +2 -2
  91. package/es/ProForm/utils/useShouldUpdate.js +1 -1
  92. package/es/ProSelect/index.js +12 -11
  93. package/es/ProSelect/propsType.d.ts +4 -0
  94. package/es/ProSelect/utils/index.js +5 -4
  95. package/es/ProStep/components/Listener/index.d.ts +1 -1
  96. package/es/ProStep/components/Listener/index.js +6 -3
  97. package/es/ProStep/index.d.ts +1 -1
  98. package/es/ProStep/index.js +25 -18
  99. package/es/ProTable/components/FormatColumn/index.d.ts +7 -1
  100. package/es/ProTable/components/FormatColumn/index.js +14 -8
  101. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +2 -2
  102. package/es/ProTable/hooks/useAntdTable.js +3 -3
  103. package/es/ProTable/index.js +30 -13
  104. package/es/ProTable/propsType.d.ts +14 -1
  105. package/es/ProTable/style/index.less +1 -1
  106. package/es/ProTree/components/AdaptiveTooltip.d.ts +4 -0
  107. package/es/ProTree/components/AdaptiveTooltip.js +55 -0
  108. package/es/ProTree/components/List.js +15 -3
  109. package/es/ProTree/components/ProTree.js +1 -1
  110. package/es/ProTree/components/ProTreeSelect/index.js +28 -8
  111. package/es/ProTree/components/ProTreeSelect/propsType.d.ts +2 -0
  112. package/es/ProTree/components/ProTreeSelect/style/index.less +2 -2
  113. package/es/ProTree/components/SearchTitle.d.ts +2 -0
  114. package/es/ProTree/components/SearchTitle.js +17 -8
  115. package/es/ProTree/components/Tree.js +1 -1
  116. package/es/ProTree/style/index.less +14 -0
  117. package/es/ProTreeModal/components/Tree.js +15 -17
  118. package/es/ProTreeModal/index.js +62 -7
  119. package/es/ProTreeModal/utils.d.ts +1 -0
  120. package/es/ProTreeModal/utils.js +21 -1
  121. package/es/ProUpload/components/ImageRender.js +1 -1
  122. package/es/ProViewer/index.js +2 -2
  123. package/es/old/ProEditableTable/index.js +4 -4
  124. package/es/style/theme/antd.less +5 -0
  125. package/es/style/theme/index.less +2 -1
  126. package/es/style/theme/tokens.less +1 -0
  127. package/es/utils/index.d.ts +2 -0
  128. package/es/utils/index.js +13 -0
  129. package/lib/ProAction/index.js +1 -1
  130. package/lib/ProDownload/index.js +3 -3
  131. package/lib/ProDownload/utils.js +3 -3
  132. package/lib/ProDrawerForm/components/ProDrawer/index.js +4 -4
  133. package/lib/ProDrawerForm/components/ProModal/index.js +3 -3
  134. package/lib/ProEditLabel/index.js +3 -3
  135. package/lib/ProEditTable/components/ActionButton/index.js +3 -3
  136. package/lib/ProEditTable/components/RenderField/{ListChanged.d.ts → ListChangedWrapper.d.ts} +4 -3
  137. package/lib/ProEditTable/components/RenderField/{ListChanged.js → ListChangedWrapper.js} +25 -11
  138. package/lib/ProEditTable/components/RenderField/index.js +8 -8
  139. package/lib/ProEditTable/components/RenderToolbar/index.js +1 -1
  140. package/lib/ProEditTable/utils/config.js +2 -2
  141. package/lib/ProEditTable/utils/index.js +5 -5
  142. package/lib/ProEditTable/utils/tools.js +1 -1
  143. package/lib/ProEnum/components/Group.js +10 -2
  144. package/lib/ProEnum/hooks/useEnumRequest.js +2 -2
  145. package/lib/ProEnum/index.js +6 -5
  146. package/lib/ProEnum/style/index.less +14 -4
  147. package/lib/ProEnum/utils/index.d.ts +1 -1
  148. package/lib/ProEnum/utils/index.js +4 -0
  149. package/lib/ProForm/components/combination/Container/index.js +5 -3
  150. package/lib/ProForm/components/combination/Container/propsType.d.ts +2 -1
  151. package/lib/ProForm/components/combination/FormList/components/ActionButton.js +2 -2
  152. package/lib/ProForm/components/combination/FormList/components/BlockTitle.js +1 -1
  153. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +1 -1
  154. package/lib/ProForm/components/combination/FormList/utils.js +5 -4
  155. package/lib/ProForm/components/combination/Group/component/ComRender.js +1 -1
  156. package/lib/ProForm/components/combination/Group/utils.js +8 -1
  157. package/lib/ProForm/components/combination/ProCascader/index.js +1 -1
  158. package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +1 -1
  159. package/lib/ProForm/components/combination/ProModalSelect/index.js +49 -44
  160. package/lib/ProForm/components/combination/ProNumberRange/index.js +14 -5
  161. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +5 -1
  162. package/lib/ProForm/components/old/ProAddress/index.js +1 -1
  163. package/lib/ProForm/components/render/ChangedWrapper.d.ts +17 -0
  164. package/lib/ProForm/components/render/ChangedWrapper.js +113 -0
  165. package/lib/ProForm/components/render/ConfirmWrapper.js +1 -1
  166. package/lib/ProForm/components/render/Render.js +10 -11
  167. package/lib/ProForm/components/render/RenderFields.d.ts +2 -3
  168. package/lib/ProForm/components/render/RenderFields.js +3 -4
  169. package/lib/ProForm/components/render/propsType.d.ts +5 -4
  170. package/lib/ProForm/index.js +4 -7
  171. package/lib/ProForm/propsType.d.ts +13 -2
  172. package/lib/ProForm/style/index.less +103 -5
  173. package/lib/ProForm/utils/diffOriginal.d.ts +4 -4
  174. package/lib/ProForm/utils/diffOriginal.js +18 -7
  175. package/lib/ProForm/utils/transformValue.js +17 -11
  176. package/lib/ProForm/utils/useForm.js +1 -1
  177. package/lib/ProForm/utils/useShouldUpdate.d.ts +2 -2
  178. package/lib/ProForm/utils/useShouldUpdate.js +1 -1
  179. package/lib/ProSelect/index.js +12 -11
  180. package/lib/ProSelect/propsType.d.ts +4 -0
  181. package/lib/ProSelect/utils/index.js +5 -4
  182. package/lib/ProStep/components/Listener/index.d.ts +1 -1
  183. package/lib/ProStep/components/Listener/index.js +6 -3
  184. package/lib/ProStep/index.d.ts +1 -1
  185. package/lib/ProStep/index.js +25 -18
  186. package/lib/ProTable/components/FormatColumn/index.d.ts +7 -1
  187. package/lib/ProTable/components/FormatColumn/index.js +14 -8
  188. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +2 -2
  189. package/lib/ProTable/hooks/useAntdTable.js +3 -3
  190. package/lib/ProTable/index.js +30 -13
  191. package/lib/ProTable/propsType.d.ts +14 -1
  192. package/lib/ProTable/style/index.less +1 -1
  193. package/lib/ProTree/components/AdaptiveTooltip.d.ts +4 -0
  194. package/lib/ProTree/components/AdaptiveTooltip.js +61 -0
  195. package/lib/ProTree/components/List.js +15 -3
  196. package/lib/ProTree/components/ProTree.js +1 -1
  197. package/lib/ProTree/components/ProTreeSelect/index.js +28 -8
  198. package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +2 -0
  199. package/lib/ProTree/components/ProTreeSelect/style/index.less +2 -2
  200. package/lib/ProTree/components/SearchTitle.d.ts +2 -0
  201. package/lib/ProTree/components/SearchTitle.js +19 -7
  202. package/lib/ProTree/components/Tree.js +1 -1
  203. package/lib/ProTree/style/index.less +14 -0
  204. package/lib/ProTreeModal/components/Tree.js +15 -17
  205. package/lib/ProTreeModal/index.js +61 -6
  206. package/lib/ProTreeModal/utils.d.ts +1 -0
  207. package/lib/ProTreeModal/utils.js +20 -0
  208. package/lib/ProUpload/components/ImageRender.js +1 -1
  209. package/lib/ProViewer/index.js +2 -2
  210. package/lib/old/ProEditableTable/index.js +4 -4
  211. package/lib/style/theme/antd.less +5 -0
  212. package/lib/style/theme/index.less +2 -1
  213. package/lib/style/theme/tokens.less +1 -0
  214. package/lib/utils/index.d.ts +2 -0
  215. package/lib/utils/index.js +19 -0
  216. package/package.json +3 -1
  217. package/patches/rc-table+7.26.0.patch +49 -0
  218. package/es/ProForm/components/render/Changed.d.ts +0 -14
  219. package/es/ProForm/components/render/Changed.js +0 -64
  220. package/lib/ProForm/components/render/Changed.d.ts +0 -14
  221. package/lib/ProForm/components/render/Changed.js +0 -69
  222. /package/es/ProForm/utils/{useChanged.d.ts → _useChanged.d.ts} +0 -0
  223. /package/es/ProForm/utils/{useChanged.js → _useChanged.js} +0 -0
  224. /package/es/ProForm/utils/{useListChanged.d.ts → _useListChanged.d.ts} +0 -0
  225. /package/es/ProForm/utils/{useListChanged.js → _useListChanged.js} +0 -0
  226. /package/lib/ProForm/utils/{useChanged.d.ts → _useChanged.d.ts} +0 -0
  227. /package/lib/ProForm/utils/{useChanged.js → _useChanged.js} +0 -0
  228. /package/lib/ProForm/utils/{useListChanged.d.ts → _useListChanged.d.ts} +0 -0
  229. /package/lib/ProForm/utils/{useListChanged.js → _useListChanged.js} +0 -0
@@ -82,7 +82,7 @@ var ProStep = function ProStep(_ref) {
82
82
  return null;
83
83
  }
84
84
  var subEvent = /*#__PURE__*/function () {
85
- var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
85
+ var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
86
86
  var value, _form$validateFields, _error$errorFields;
87
87
  return _regeneratorRuntime().wrap(function _callee$(_context) {
88
88
  while (1) switch (_context.prev = _context.next) {
@@ -128,47 +128,54 @@ var ProStep = function ProStep(_ref) {
128
128
  registerMap.current[id] = record;
129
129
  };
130
130
  var notify = /*#__PURE__*/function () {
131
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
132
- var events, res, nextErrorCollection;
131
+ var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(params) {
132
+ var _ref7, excludes, triggerIds, events, res, nextErrorCollection;
133
133
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
134
134
  while (1) switch (_context2.prev = _context2.next) {
135
135
  case 0:
136
- events = Object.values(registerMap.current).map(function (item) {
137
- var _item$subEvent;
138
- return item === null || item === void 0 ? void 0 : (_item$subEvent = item.subEvent) === null || _item$subEvent === void 0 ? void 0 : _item$subEvent.call(item);
136
+ _ref7 = params || {}, excludes = _ref7.excludes;
137
+ triggerIds = Object.keys(registerMap.current); // 排除指定模块不触发校验
138
+ if (excludes === null || excludes === void 0 ? void 0 : excludes.length) {
139
+ triggerIds = triggerIds.filter(function (id) {
140
+ return !excludes.includes(id);
141
+ });
142
+ }
143
+ events = triggerIds.map(function (id) {
144
+ var _registerMap$current$, _registerMap$current$2;
145
+ return (_registerMap$current$ = registerMap.current[id]) === null || _registerMap$current$ === void 0 ? void 0 : (_registerMap$current$2 = _registerMap$current$.subEvent) === null || _registerMap$current$2 === void 0 ? void 0 : _registerMap$current$2.call(_registerMap$current$);
139
146
  });
140
- _context2.next = 3;
147
+ _context2.next = 6;
141
148
  return Promise.all(events);
142
- case 3:
149
+ case 6:
143
150
  res = _context2.sent;
144
151
  nextErrorCollection = {};
145
- Object.keys(registerMap.current).forEach(function (id, index) {
146
- var _ref7 = (res === null || res === void 0 ? void 0 : res[index]) || {},
147
- errorFields = _ref7.errorFields;
152
+ triggerIds.forEach(function (id, index) {
153
+ var _ref8 = (res === null || res === void 0 ? void 0 : res[index]) || {},
154
+ errorFields = _ref8.errorFields;
148
155
  nextErrorCollection[id] = (errorFields === null || errorFields === void 0 ? void 0 : errorFields.length) || 0;
149
156
  });
150
157
  setErrorCollection(nextErrorCollection);
151
158
  return _context2.abrupt("return", res);
152
- case 8:
159
+ case 11:
153
160
  case "end":
154
161
  return _context2.stop();
155
162
  }
156
163
  }, _callee2);
157
164
  }));
158
- return function notify() {
165
+ return function notify(_x) {
159
166
  return _ref6.apply(this, arguments);
160
167
  };
161
168
  }();
162
169
  var triggerTo = /*#__PURE__*/function () {
163
- var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(keys) {
170
+ var _ref9 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(keys) {
164
171
  var events, result, nextErrorCollection;
165
172
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
166
173
  while (1) switch (_context3.prev = _context3.next) {
167
174
  case 0:
168
175
  events = [];
169
176
  keys === null || keys === void 0 ? void 0 : keys.forEach(function (key) {
170
- var _registerMap$current, _registerMap$current$, _registerMap$current$2;
171
- events.push(registerMap === null || registerMap === void 0 ? void 0 : (_registerMap$current = registerMap.current) === null || _registerMap$current === void 0 ? void 0 : (_registerMap$current$ = _registerMap$current[key]) === null || _registerMap$current$ === void 0 ? void 0 : (_registerMap$current$2 = _registerMap$current$.subEvent) === null || _registerMap$current$2 === void 0 ? void 0 : _registerMap$current$2.call(_registerMap$current$));
177
+ var _registerMap$current, _registerMap$current$3, _registerMap$current$4;
178
+ events.push(registerMap === null || registerMap === void 0 ? void 0 : (_registerMap$current = registerMap.current) === null || _registerMap$current === void 0 ? void 0 : (_registerMap$current$3 = _registerMap$current[key]) === null || _registerMap$current$3 === void 0 ? void 0 : (_registerMap$current$4 = _registerMap$current$3.subEvent) === null || _registerMap$current$4 === void 0 ? void 0 : _registerMap$current$4.call(_registerMap$current$3));
172
179
  });
173
180
  _context3.next = 4;
174
181
  return Promise.all(events);
@@ -190,8 +197,8 @@ var ProStep = function ProStep(_ref) {
190
197
  }
191
198
  }, _callee3);
192
199
  }));
193
- return function triggerTo(_x) {
194
- return _ref8.apply(this, arguments);
200
+ return function triggerTo(_x2) {
201
+ return _ref9.apply(this, arguments);
195
202
  };
196
203
  }();
197
204
  useDeepCompareEffect(function () {
@@ -1,6 +1,12 @@
1
1
  import React from 'react';
2
2
  import { ProTableColumn } from '../../propsType';
3
- export declare const formatColumn: (column: ProTableColumn, originalObj: any, dataSourceObj: any, rowKey: any) => void;
3
+ export declare const formatColumn: ({ column, originalObj, dataSourceObj, rowKey, diffToolTip, }: {
4
+ column: ProTableColumn;
5
+ originalObj: any;
6
+ dataSourceObj: any;
7
+ rowKey: any;
8
+ diffToolTip?: boolean;
9
+ }) => void;
4
10
  /**
5
11
  * 查找最近的父级className
6
12
  * @param element 当前node节点
@@ -11,7 +11,12 @@ import RenderColumn from '../RenderColumn';
11
11
  import { getDecimalDigits, getOriginalValue } from '../../utils';
12
12
  import getEnumLabel from '../../../ProEnum/utils/getEnumLabel';
13
13
  import ProForm from '../../../ProForm';
14
- export var formatColumn = function formatColumn(column, originalObj, dataSourceObj, rowKey) {
14
+ export var formatColumn = function formatColumn(_ref) {
15
+ var column = _ref.column,
16
+ originalObj = _ref.originalObj,
17
+ dataSourceObj = _ref.dataSourceObj,
18
+ rowKey = _ref.rowKey,
19
+ diffToolTip = _ref.diffToolTip;
15
20
  var title = column.title,
16
21
  valueType = column.valueType,
17
22
  _column$format = column.format,
@@ -31,6 +36,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
31
36
  originalDiffTip = _column$originalDiffT === void 0 ? true : _column$originalDiffT,
32
37
  _column$toolTipProps = column.toolTipProps,
33
38
  toolTipProps = _column$toolTipProps === void 0 ? {} : _column$toolTipProps;
39
+ var _originalDiffTip = diffToolTip !== null && diffToolTip !== void 0 ? diffToolTip : originalDiffTip;
34
40
  // 前缀处理
35
41
  var prefixNode = function prefixNode(value, record, index) {
36
42
  if (!prefix) {
@@ -98,7 +104,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
98
104
  node: node,
99
105
  value: value,
100
106
  currentValue: renderValue,
101
- originalDiffTip: originalDiffTip,
107
+ originalDiffTip: _originalDiffTip,
102
108
  toolTipProps: toolTipProps
103
109
  });
104
110
  };
@@ -128,7 +134,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
128
134
  node: node,
129
135
  value: value,
130
136
  currentValue: renderValue,
131
- originalDiffTip: originalDiffTip,
137
+ originalDiffTip: _originalDiffTip,
132
138
  toolTipProps: toolTipProps
133
139
  });
134
140
  };
@@ -181,7 +187,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
181
187
  node: node,
182
188
  value: value,
183
189
  currentValue: renderValue,
184
- originalDiffTip: originalDiffTip,
190
+ originalDiffTip: _originalDiffTip,
185
191
  toolTipProps: toolTipProps
186
192
  });
187
193
  };
@@ -219,7 +225,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
219
225
  node: node,
220
226
  value: value,
221
227
  currentValue: renderValue,
222
- originalDiffTip: originalDiffTip,
228
+ originalDiffTip: _originalDiffTip,
223
229
  toolTipProps: toolTipProps
224
230
  });
225
231
  };
@@ -246,7 +252,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
246
252
  node: node,
247
253
  value: value,
248
254
  currentValue: renderValue,
249
- originalDiffTip: originalDiffTip,
255
+ originalDiffTip: _originalDiffTip,
250
256
  toolTipProps: toolTipProps
251
257
  });
252
258
  };
@@ -323,7 +329,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
323
329
  node: value,
324
330
  value: value,
325
331
  currentValue: value || '-',
326
- originalDiffTip: originalDiffTip,
332
+ originalDiffTip: _originalDiffTip,
327
333
  toolTipProps: toolTipProps
328
334
  }), suffixNode(value, record, index)]
329
335
  });
@@ -346,7 +352,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
346
352
  node: node,
347
353
  value: value,
348
354
  currentValue: value || '-',
349
- originalDiffTip: originalDiffTip,
355
+ originalDiffTip: _originalDiffTip,
350
356
  toolTipProps: toolTipProps
351
357
  });
352
358
  };
@@ -74,7 +74,7 @@ var DndWrapper = function DndWrapper(_ref2) {
74
74
  onDragStartGuard = _ref2.onDragStartGuard,
75
75
  onDragEndGuard = _ref2.onDragEndGuard;
76
76
  var onDragStart = /*#__PURE__*/function () {
77
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref3) {
77
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref3) {
78
78
  var active, _transformedValue, activeObject;
79
79
  return _regeneratorRuntime().wrap(function _callee$(_context) {
80
80
  while (1) switch (_context.prev = _context.next) {
@@ -105,7 +105,7 @@ var DndWrapper = function DndWrapper(_ref2) {
105
105
  };
106
106
  }();
107
107
  var onDragEnd = /*#__PURE__*/function () {
108
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref5) {
108
+ var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref5) {
109
109
  var active, over, transformedValue, activeObject, overObject, activeLevel, activeParentId, overLevel, overParentId, nextDataSource, _flatTree, activeIndex, overIndex, nextValue;
110
110
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
111
111
  while (1) switch (_context2.prev = _context2.next) {
@@ -276,7 +276,7 @@ function useAntdTable(service, options, useRequestOptions) {
276
276
  }
277
277
  };
278
278
  var handleRefresh = /*#__PURE__*/function () {
279
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
279
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
280
280
  var res;
281
281
  return _regeneratorRuntime().wrap(function _callee$(_context) {
282
282
  while (1) switch (_context.prev = _context.next) {
@@ -388,7 +388,7 @@ function useAntdTable(service, options, useRequestOptions) {
388
388
  total: total
389
389
  }),
390
390
  onSelect: function () {
391
- var _onSelect = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(changeableRowKeys) {
391
+ var _onSelect = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(changeableRowKeys) {
392
392
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
393
393
  while (1) switch (_context2.prev = _context2.next) {
394
394
  case 0:
@@ -412,7 +412,7 @@ function useAntdTable(service, options, useRequestOptions) {
412
412
  key: 'uncheckAll',
413
413
  text: locale === null || locale === void 0 ? void 0 : (_locale$ProTable4 = locale.ProTable) === null || _locale$ProTable4 === void 0 ? void 0 : _locale$ProTable4.deselect,
414
414
  onSelect: function () {
415
- var _onSelect2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
415
+ var _onSelect2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
416
416
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
417
417
  while (1) switch (_context3.prev = _context3.next) {
418
418
  case 0:
@@ -5,7 +5,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
5
5
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
6
6
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
7
7
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
8
- var _excluded = ["tableId", "headerRender", "footerRender", "quickConfig", "stripe", "columns", "className", "draggable", "disabled", "isView", "rowDisabled", "summary", "emptyText", "originalDataSource", "onDragStart", "onDragEnd"],
8
+ var _excluded = ["tableId", "headerRender", "footerRender", "quickConfig", "stripe", "columns", "className", "draggable", "disabled", "isView", "rowDisabled", "summary", "emptyText", "diffConfig", "onDragStart", "onDragEnd"],
9
9
  _excluded2 = ["resizeColumn", "columnConfig", "cacheTime", "storage"];
10
10
  import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
11
11
  import { useEffect, useMemo, useState, createContext } from 'react';
@@ -52,10 +52,15 @@ function ProTable(props) {
52
52
  summary = props.summary,
53
53
  _props$emptyText = props.emptyText,
54
54
  emptyText = _props$emptyText === void 0 ? locale === null || locale === void 0 ? void 0 : (_locale$ProTable = locale.ProTable) === null || _locale$ProTable === void 0 ? void 0 : _locale$ProTable.noData : _props$emptyText,
55
- originalDataSource = props.originalDataSource,
55
+ diffConfig = props.diffConfig,
56
56
  onDragStartGuard = props.onDragStart,
57
57
  onDragEndGuard = props.onDragEnd,
58
58
  restProps = _objectWithoutProperties(props, _excluded);
59
+ var _ref3 = diffConfig || {},
60
+ originalDataSource = _ref3.originalDataSource,
61
+ changeTipColor = _ref3.changeTipColor,
62
+ addTipColor = _ref3.addTipColor,
63
+ toolTip = _ref3.toolTip;
59
64
  var quickTableConfig = quickConfig ? _objectSpread({
60
65
  columnConfig: true,
61
66
  cacheTime: true
@@ -71,10 +76,10 @@ function ProTable(props) {
71
76
  _quickTableConfig$sto = quickTableConfig.storage,
72
77
  storage = _quickTableConfig$sto === void 0 ? configStorage : _quickTableConfig$sto,
73
78
  tableProps = _objectWithoutProperties(quickTableConfig, _excluded2);
74
- var _ref3 = tableProps || {},
75
- pagination = _ref3.pagination,
76
- dataSource = _ref3.dataSource,
77
- rowKey = _ref3.rowKey;
79
+ var _ref4 = tableProps || {},
80
+ pagination = _ref4.pagination,
81
+ dataSource = _ref4.dataSource,
82
+ rowKey = _ref4.rowKey;
78
83
  var initDataSource = dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item) {
79
84
  return _objectSpread(_objectSpread({}, item), {}, {
80
85
  rowKey: getRowKey(rowKey, item)
@@ -157,8 +162,8 @@ function ProTable(props) {
157
162
  };
158
163
  // 列宽resize函数
159
164
  var handleResize = function handleResize(index) {
160
- return function (e, _ref4) {
161
- var size = _ref4.size;
165
+ return function (e, _ref5) {
166
+ var size = _ref5.size;
162
167
  var nextColumns = _toConsumableArray(curColumns);
163
168
  nextColumns[index] = _objectSpread(_objectSpread({}, nextColumns[index]), {}, {
164
169
  width: size.width
@@ -188,7 +193,13 @@ function ProTable(props) {
188
193
  return !(item === null || item === void 0 ? void 0 : item.delete);
189
194
  });
190
195
  newColumns === null || newColumns === void 0 ? void 0 : newColumns.forEach(function (item) {
191
- formatColumn(item, originalObj, dataSourceObj, 'rowKey');
196
+ formatColumn({
197
+ column: item,
198
+ originalObj: originalObj,
199
+ dataSourceObj: dataSourceObj,
200
+ rowKey: 'rowKey',
201
+ diffToolTip: toolTip
202
+ });
192
203
  });
193
204
  return newColumns;
194
205
  }, [curColumns, handleResize]);
@@ -205,7 +216,7 @@ function ProTable(props) {
205
216
  });
206
217
  }, [columns]);
207
218
  var handleColumnConfig = /*#__PURE__*/function () {
208
- var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(checkList) {
219
+ var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(checkList) {
209
220
  var newColumns, _columnConfig$onColum, catchColumns;
210
221
  return _regeneratorRuntime().wrap(function _callee$(_context) {
211
222
  while (1) switch (_context.prev = _context.next) {
@@ -241,7 +252,7 @@ function ProTable(props) {
241
252
  }, _callee);
242
253
  }));
243
254
  return function handleColumnConfig(_x) {
244
- return _ref5.apply(this, arguments);
255
+ return _ref6.apply(this, arguments);
245
256
  };
246
257
  }();
247
258
  useDebounceEffect(function () {
@@ -314,7 +325,7 @@ function ProTable(props) {
314
325
  return _rowSelection;
315
326
  };
316
327
  var onDataSourceChange = /*#__PURE__*/function () {
317
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(nextDataSource) {
328
+ var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(nextDataSource) {
318
329
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
319
330
  while (1) switch (_context2.prev = _context2.next) {
320
331
  case 0:
@@ -330,7 +341,7 @@ function ProTable(props) {
330
341
  }, _callee2);
331
342
  }));
332
343
  return function onDataSourceChange(_x2) {
333
- return _ref6.apply(this, arguments);
344
+ return _ref7.apply(this, arguments);
334
345
  };
335
346
  }();
336
347
  var _rowClassName = function _rowClassName(record, index) {
@@ -339,6 +350,11 @@ function ProTable(props) {
339
350
  }
340
351
  };
341
352
  var TableComponent = draggable ? DraggableTable : BaseTable;
353
+ // 标记样式
354
+ var tagStyle = {
355
+ '--zaui-contract-bg': changeTipColor,
356
+ '--zaui-contract-bg-add': addTipColor
357
+ };
342
358
  return _jsx(TableContext.Provider, {
343
359
  value: {
344
360
  pathKey: pathKey,
@@ -362,6 +378,7 @@ function ProTable(props) {
362
378
  }
363
379
  }), _jsxs("div", {
364
380
  className: "pro-table-container",
381
+ style: tagStyle,
365
382
  children: [_jsx(TableComponent, _objectSpread(_objectSpread({}, restProps), {}, {
366
383
  draggableProps: {
367
384
  onChange: onDataSourceChange,
@@ -59,6 +59,16 @@ export interface DragStartGuardProps {
59
59
  activeObject: any;
60
60
  currentDataSource: any[];
61
61
  }
62
+ export interface TableDiffConfigProps {
63
+ /** 比对原始数据源 */
64
+ originalDataSource: any[];
65
+ /** 是否显示对比值气泡 */
66
+ toolTip?: boolean;
67
+ /** 变更提示颜色 */
68
+ changeTipColor?: string;
69
+ /** 新增提示颜色 */
70
+ addTipColor?: string;
71
+ }
62
72
  export interface ProTableProps<T = any> extends Omit<TableProps<any>, 'summary' | 'columns'> {
63
73
  tableId?: string;
64
74
  rowKey?: string | GetRowKey<any>;
@@ -84,7 +94,10 @@ export interface ProTableProps<T = any> extends Omit<TableProps<any>, 'summary'
84
94
  */
85
95
  stripe?: boolean;
86
96
  columns: ProTableColumn[];
87
- originalDataSource?: any[];
97
+ /**
98
+ * 比对配置
99
+ */
100
+ diffConfig?: TableDiffConfigProps;
88
101
  /**
89
102
  * 拖拽额外配置
90
103
  */
@@ -270,7 +270,7 @@
270
270
  .@{ant-prefix}-table-cell .varied-cell {
271
271
  margin-left: -8px;
272
272
  padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-sm, 8px);
273
- background: var(--zaui-contract-bg, #fffaa1);
273
+ background: var(--zaui-contract-bg; #fffaa1) !important;
274
274
  border-radius: var(--zaui-border-radius, 8px);
275
275
  }
276
276
 
@@ -0,0 +1,4 @@
1
+ declare const AdaptiveTooltip: ({ children }: {
2
+ children: any;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default AdaptiveTooltip;
@@ -0,0 +1,55 @@
1
+ import "antd/es/tooltip/style";
2
+ import _Tooltip from "antd/es/tooltip";
3
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
5
+ /*
6
+ * @Author: za-xuwenli xuwenli@zhongan.io
7
+ * @Date: 2024-09-20 10:26:04
8
+ * @LastEditors: za-xuwenli xuwenli@zhongan.io
9
+ * @LastEditTime: 2024-09-26 14:12:44
10
+ * @FilePath: /za-material-warehouse/src/ProTree/components/AdaptiveTooltip.tsx
11
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
12
+ */
13
+
14
+ import { useEffect, useState } from 'react';
15
+ var AdaptiveTooltip = function AdaptiveTooltip(_ref) {
16
+ var children = _ref.children;
17
+ var _useState = useState('right'),
18
+ _useState2 = _slicedToArray(_useState, 2),
19
+ placement = _useState2[0],
20
+ setPlacement = _useState2[1];
21
+ useEffect(function () {
22
+ var handleResize = function handleResize() {
23
+ var tooltipElement = document.getElementById('adaptive-tooltip');
24
+ if (tooltipElement) {
25
+ var boundingRect = tooltipElement.getBoundingClientRect();
26
+ var windowWidth = window.innerWidth;
27
+ if (windowWidth - boundingRect.right < 150) {
28
+ setPlacement('left');
29
+ } else {
30
+ setPlacement('right');
31
+ }
32
+ }
33
+ };
34
+ window.addEventListener('resize', handleResize);
35
+ handleResize();
36
+ return function () {
37
+ window.removeEventListener('resize', handleResize);
38
+ };
39
+ }, [children]);
40
+ return _jsx(_Tooltip, {
41
+ placement: placement,
42
+ title: _jsx("div", {
43
+ onMouseDown: function onMouseDown(e) {
44
+ return e.stopPropagation();
45
+ },
46
+ children: children
47
+ }),
48
+ id: "adaptive-tooltip",
49
+ children: _jsxs("span", {
50
+ className: "pro-tree-wrap-ellipse",
51
+ children: [" ", children]
52
+ })
53
+ });
54
+ };
55
+ export default AdaptiveTooltip;
@@ -1,6 +1,17 @@
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
1
2
  import "antd/es/checkbox/style";
2
3
  import _Checkbox from "antd/es/checkbox";
4
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
5
+ var _excluded = ["checkedValues", "disabled", "treeData", "searchStr", "showCodeName", "mode", "fieldNames", "handleOnChange", "handleFilterClose", "optionRender"];
3
6
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
7
+ /*
8
+ * @Author: za-xuwenli xuwenli@zhongan.io
9
+ * @Date: 2024-07-03 11:02:19
10
+ * @LastEditors: za-xuwenli xuwenli@zhongan.io
11
+ * @LastEditTime: 2024-09-26 14:30:26
12
+ * @FilePath: /za-material-warehouse/src/ProTree/components/List.tsx
13
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
14
+ */
4
15
  import { memo } from 'react';
5
16
  import SearchTitle from './SearchTitle';
6
17
  import CloseIcon from './CloseIcon';
@@ -15,7 +26,8 @@ function List(props) {
15
26
  fieldNames = props.fieldNames,
16
27
  handleOnChange = props.handleOnChange,
17
28
  handleFilterClose = props.handleFilterClose,
18
- optionRender = props.optionRender;
29
+ optionRender = props.optionRender,
30
+ other = _objectWithoutProperties(props, _excluded);
19
31
  var fieldNameLabel = fieldNames.label;
20
32
  var fieldNameValue = fieldNames.value;
21
33
  if (mode === 'render') {
@@ -37,10 +49,10 @@ function List(props) {
37
49
  value: item[fieldNameValue],
38
50
  disabled: item.disabled,
39
51
  children: _jsx("span", {
40
- children: optionRender ? optionRender(item, searchStr) : _jsx(SearchTitle, {
52
+ children: optionRender ? optionRender(item, searchStr) : _jsx(SearchTitle, _objectSpread({
41
53
  label: title,
42
54
  searchStr: searchStr
43
- })
55
+ }, other))
44
56
  })
45
57
  })
46
58
  }, item[fieldNameValue]);
@@ -359,7 +359,7 @@ var ProTree = function ProTree(props) {
359
359
  };
360
360
  /** 点击了树节点开始loading,改变自身state并将值通过onchange上传到form */
361
361
  var onSelectTreeNode = /*#__PURE__*/function () {
362
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(props, info) {
362
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(props, info) {
363
363
  var _options$;
364
364
  var values, options, option;
365
365
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -21,6 +21,7 @@ import { useImperativeHandle, forwardRef } from 'react';
21
21
  import { cloneDeep } from 'lodash';
22
22
  import { useProConfig } from '../../../ProConfigProvider';
23
23
  import Container from '../../../ProForm/components/Container';
24
+ import AdaptiveTooltip from '../AdaptiveTooltip';
24
25
  var SHOW_PARENT = _TreeSelect.SHOW_PARENT;
25
26
  export var ProTreeSelect = function ProTreeSelect(props, ref) {
26
27
  // 全局属性配置在ConfigProvider
@@ -74,9 +75,14 @@ export var ProTreeSelect = function ProTreeSelect(props, ref) {
74
75
  selectProps = _objectWithoutProperties(props, _excluded);
75
76
  var _props$value = props.value,
76
77
  value = _props$value === void 0 ? undefined : _props$value;
77
- var _ref2 = otherProps || {},
78
- isView = _ref2.isView,
79
- viewEmpty = _ref2.viewEmpty;
78
+ var _props$showEllipse = props.showEllipse,
79
+ showEllipse = _props$showEllipse === void 0 ? true : _props$showEllipse;
80
+ var _ref2 = otherProps !== null && otherProps !== void 0 ? otherProps : {},
81
+ isDiffChange = _ref2.isDiffChange;
82
+ var _showEllipse = showEllipse && !isDiffChange;
83
+ var _ref3 = otherProps || {},
84
+ isView = _ref3.isView,
85
+ viewEmpty = _ref3.viewEmpty;
80
86
  if (fieldNames && Object.keys(fieldNames).length) {
81
87
  code = fieldNames.value || 'value';
82
88
  label = fieldNames.label || 'label';
@@ -209,8 +215,8 @@ export var ProTreeSelect = function ProTreeSelect(props, ref) {
209
215
  return undefined;
210
216
  }
211
217
  // 如果配置手动加载,不执行请求
212
- var _ref3 = (useRequest === null || useRequest === void 0 ? void 0 : useRequest.options) || {},
213
- defaultParams = _ref3.defaultParams;
218
+ var _ref4 = (useRequest === null || useRequest === void 0 ? void 0 : useRequest.options) || {},
219
+ defaultParams = _ref4.defaultParams;
214
220
  // 执行用户配置的枚举服务,拉取枚举数据进行更新
215
221
  fetchFunction.run(defaultParams);
216
222
  }, [useRequest === null || useRequest === void 0 ? void 0 : useRequest.service, defaultDisableValue]);
@@ -288,9 +294,9 @@ export var ProTreeSelect = function ProTreeSelect(props, ref) {
288
294
  var _renderTreeNode = function renderTreeNode(node, grade) {
289
295
  var children = node.children,
290
296
  icon = node.icon;
291
- var labelText = node[label];
292
- var value = node[code];
293
- var key = node[uuidKey];
297
+ var labelText = node === null || node === void 0 ? void 0 : node.label;
298
+ var value = node === null || node === void 0 ? void 0 : node.value;
299
+ var key = uuidKey === proSelectFieldNames.value ? node === null || node === void 0 ? void 0 : node.value : node[uuidKey];
294
300
  var titleHtml = _jsx("span", {
295
301
  dangerouslySetInnerHTML: {
296
302
  __html: labelText
@@ -312,6 +318,20 @@ export var ProTreeSelect = function ProTreeSelect(props, ref) {
312
318
  children: _jsx(Icon, {})
313
319
  }) : null]
314
320
  });
321
+ if (_showEllipse) {
322
+ title = _jsx(AdaptiveTooltip, {
323
+ children: treeCheckable ? titleHtml : _jsxs("span", {
324
+ className: "check-option-text",
325
+ children: [_jsx("span", {
326
+ className: "check-option-text-content",
327
+ children: titleHtml
328
+ }), !disabled ? _jsx("span", {
329
+ className: "check-mark-icon",
330
+ children: _jsx(Icon, {})
331
+ }) : null]
332
+ })
333
+ });
334
+ }
315
335
  if (!children) {
316
336
  return _jsx(_TreeSelect.TreeNode, {
317
337
  value: value,
@@ -73,6 +73,8 @@ export interface PropTreeSelectProps extends Omit<TreeSelectProps, 'onSearch'> {
73
73
  expandedKeys?: any[];
74
74
  checkStrictly?: boolean;
75
75
  checkable?: boolean;
76
+ showEllipse?: boolean;
77
+ isDiffChange?: boolean;
76
78
  }
77
79
  export interface ProSelectAction {
78
80
  /** 获取发生请求的 useRequest 的 ref */
@@ -70,7 +70,7 @@
70
70
  }
71
71
  }
72
72
  .@{ant-prefix}-select-tree-treenode:hover{
73
- background-color: #f5f5f5;
73
+ background-color: var(--zaui-disabled-bg);
74
74
  }
75
75
  .check-option-text{
76
76
  .check-mark-icon{
@@ -90,7 +90,7 @@
90
90
  padding-left: 7px;
91
91
  }
92
92
  .@{ant-prefix}-select-tree-treenode:hover{
93
- background-color: #f5f5f5;
93
+ background-color: var(--zaui-disabled-bg);;
94
94
  }
95
95
  .@{ant-prefix}-select-tree-node-content-wrapper{
96
96
  padding-right: var(--zaui-space-size-md);
@@ -1,9 +1,11 @@
1
1
  /// <reference types="react" />
2
+ import { ProFormOtherProps } from '../../ProForm/propsType';
2
3
  declare function SearchTitle(props: {
3
4
  searchStr?: string;
4
5
  label?: string;
5
6
  showEllipse?: boolean;
6
7
  ellipseWidth?: string;
8
+ otherProps?: ProFormOtherProps;
7
9
  }): import("react/jsx-runtime").JSX.Element;
8
10
  declare const _default: import("react").MemoExoticComponent<typeof SearchTitle>;
9
11
  export default _default;