@zat-design/sisyphus-react 3.6.10 → 3.6.11
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.
- package/dist/index.esm.css +52 -54
- package/dist/less.esm.css +52 -54
- package/es/ProEditTable/components/RenderField/ListChanged.d.ts +16 -0
- package/es/ProEditTable/components/RenderField/ListChanged.js +124 -0
- package/es/ProEditTable/components/RenderField/index.js +27 -46
- package/es/ProEditTable/style/index.less +2 -1
- package/es/ProEditTable/utils/index.d.ts +1 -1
- package/es/ProEditTable/utils/index.js +19 -13
- package/es/ProEditTable/utils/tools.d.ts +6 -0
- package/es/ProEditTable/utils/tools.js +15 -2
- package/es/ProForm/components/combination/ProCascader/index.js +8 -14
- package/es/ProForm/components/render/Changed.d.ts +14 -0
- package/es/ProForm/components/render/Changed.js +64 -0
- package/es/ProForm/components/render/Render.js +17 -37
- package/es/ProForm/style/index.less +52 -52
- package/es/ProForm/utils/diffOriginal.d.ts +0 -1
- package/es/ProForm/utils/diffOriginal.js +4 -27
- package/es/ProForm/utils/useChanged.js +1 -2
- package/es/ProForm/utils/useListChanged.js +3 -3
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +3 -1
- package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +108 -41
- package/es/ProTable/components/RcTable/components/DraggableTable/index.js +14 -1
- package/es/ProTable/index.js +6 -2
- package/es/ProTable/propsType.d.ts +22 -0
- package/es/ProTable/style/index.less +27 -32
- package/es/ProThemeTools/component/{PrdTools → ProTools}/index.d.ts +2 -2
- package/es/ProThemeTools/component/{PrdTools → ProTools}/index.js +2 -2
- package/es/ProThemeTools/component/index.d.ts +1 -2
- package/es/ProThemeTools/component/index.js +1 -2
- package/es/ProThemeTools/index.js +2 -2
- package/es/ProThemeTools/style/index.less +1 -1
- package/es/ProTreeModal/components/List.js +30 -4
- package/lib/ProEditTable/components/RenderField/ListChanged.d.ts +16 -0
- package/lib/ProEditTable/components/RenderField/ListChanged.js +129 -0
- package/lib/ProEditTable/components/RenderField/index.js +26 -41
- package/lib/ProEditTable/style/index.less +2 -1
- package/lib/ProEditTable/utils/index.d.ts +1 -1
- package/lib/ProEditTable/utils/index.js +17 -11
- package/lib/ProEditTable/utils/tools.d.ts +6 -0
- package/lib/ProEditTable/utils/tools.js +15 -1
- package/lib/ProForm/components/combination/ProCascader/index.js +6 -12
- package/lib/ProForm/components/render/Changed.d.ts +14 -0
- package/lib/ProForm/components/render/Changed.js +69 -0
- package/lib/ProForm/components/render/Render.js +17 -35
- package/lib/ProForm/style/index.less +52 -52
- package/lib/ProForm/utils/diffOriginal.d.ts +0 -1
- package/lib/ProForm/utils/diffOriginal.js +3 -27
- package/lib/ProForm/utils/useChanged.js +1 -2
- package/lib/ProForm/utils/useListChanged.js +2 -2
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.d.ts +3 -1
- package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +108 -41
- package/lib/ProTable/components/RcTable/components/DraggableTable/index.js +13 -1
- package/lib/ProTable/index.js +6 -2
- package/lib/ProTable/propsType.d.ts +22 -0
- package/lib/ProTable/style/index.less +27 -32
- package/lib/ProThemeTools/component/{PrdTools → ProTools}/index.d.ts +2 -2
- package/lib/ProThemeTools/component/{PrdTools → ProTools}/index.js +2 -2
- package/lib/ProThemeTools/component/index.d.ts +1 -2
- package/lib/ProThemeTools/component/index.js +3 -3
- package/lib/ProThemeTools/index.js +1 -1
- package/lib/ProThemeTools/style/index.less +1 -1
- package/lib/ProTreeModal/components/List.js +30 -4
- package/package.json +1 -1
- /package/es/ProThemeTools/component/{PrdTools → ProTools}/style/index.less +0 -0
- /package/lib/ProThemeTools/component/{PrdTools → ProTools}/style/index.less +0 -0
|
@@ -125,11 +125,32 @@ function List(props, ref) {
|
|
|
125
125
|
document.body.removeChild(temp);
|
|
126
126
|
return len * 20;
|
|
127
127
|
}
|
|
128
|
+
var handleCommonTitle = function handleCommonTitle(item) {
|
|
129
|
+
if (isCASCADER) {
|
|
130
|
+
return item === null || item === void 0 ? void 0 : item.title;
|
|
131
|
+
}
|
|
132
|
+
return item[fieldNameLabel];
|
|
133
|
+
};
|
|
134
|
+
var handleGetTitle = function handleGetTitle(item) {
|
|
135
|
+
if (showCodeName) {
|
|
136
|
+
if (isCASCADER) {
|
|
137
|
+
if (item[fieldNameValue] && (item === null || item === void 0 ? void 0 : item.title)) {
|
|
138
|
+
return "".concat(item[fieldNameValue], "-").concat(item.title);
|
|
139
|
+
}
|
|
140
|
+
return handleCommonTitle(item);
|
|
141
|
+
}
|
|
142
|
+
if (item[fieldNameValue] && item[fieldNameValue]) {
|
|
143
|
+
return "".concat(item[fieldNameValue], "-").concat(item[fieldNameLabel]);
|
|
144
|
+
}
|
|
145
|
+
return handleCommonTitle(item);
|
|
146
|
+
}
|
|
147
|
+
return handleCommonTitle(item);
|
|
148
|
+
};
|
|
128
149
|
var _useVirtualList = (0, _ahooks.useVirtualList)(originalList, {
|
|
129
150
|
containerTarget: containerRef,
|
|
130
151
|
wrapperTarget: wrapperRef,
|
|
131
152
|
itemHeight: function itemHeight(index, item) {
|
|
132
|
-
var title =
|
|
153
|
+
var title = handleGetTitle(item);
|
|
133
154
|
return Math.floor(getLineHeight(title, 406)) + 12;
|
|
134
155
|
}
|
|
135
156
|
}),
|
|
@@ -185,7 +206,7 @@ function List(props, ref) {
|
|
|
185
206
|
children: (0, _jsxRuntime.jsx)(_antd.Row, {
|
|
186
207
|
children: list.map(function (_item) {
|
|
187
208
|
var item = _item.data;
|
|
188
|
-
var title =
|
|
209
|
+
var title = handleGetTitle(item);
|
|
189
210
|
var content = optionRender ? optionRender(item, searchStr) : (0, _jsxRuntime.jsx)(_SearchTitle.default, {
|
|
190
211
|
label: title,
|
|
191
212
|
searchStr: searchStr
|
|
@@ -223,7 +244,7 @@ function List(props, ref) {
|
|
|
223
244
|
value: checkedValues,
|
|
224
245
|
children: (0, _jsxRuntime.jsx)(_antd.Row, {
|
|
225
246
|
children: treeData.map(function (item) {
|
|
226
|
-
var title =
|
|
247
|
+
var title = handleGetTitle(item);
|
|
227
248
|
var content = optionRender ? optionRender(item, searchStr) : (0, _jsxRuntime.jsx)(_SearchTitle.default, {
|
|
228
249
|
label: title,
|
|
229
250
|
searchStr: searchStr
|
|
@@ -260,7 +281,12 @@ function List(props, ref) {
|
|
|
260
281
|
ref: wrapperRef,
|
|
261
282
|
children: list.map(function (_item) {
|
|
262
283
|
var item = _item.data;
|
|
263
|
-
var title =
|
|
284
|
+
var title = item[fieldNameLabel];
|
|
285
|
+
if (showCodeName) {
|
|
286
|
+
if (item[fieldNameValue] && item[fieldNameLabel]) {
|
|
287
|
+
title = "".concat(item[fieldNameValue], "-").concat(item[fieldNameLabel]);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
264
290
|
return (0, _jsxRuntime.jsxs)("div", {
|
|
265
291
|
className: "pro-tree-modal-checkbox-content",
|
|
266
292
|
children: [(0, _jsxRuntime.jsx)("div", {
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|