@zat-design/sisyphus-react 3.5.0-beta.3 → 3.5.0-beta.5
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 +1 -1
- package/dist/less.esm.css +1 -1
- package/es/ProEditTable/style/index.less +2 -1
- package/es/ProTree/components/ProTreeSelect/index.js +5 -2
- package/lib/ProEditTable/style/index.less +2 -1
- package/lib/ProTree/components/ProTreeSelect/index.js +5 -2
- package/package.json +1 -1
package/dist/index.esm.css
CHANGED
|
@@ -4423,7 +4423,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
4423
4423
|
}
|
|
4424
4424
|
.pro-edit-table .ant-table-tbody > .is-editing:not(.ant-table-measure-row) > td {
|
|
4425
4425
|
border-bottom: 0;
|
|
4426
|
-
vertical-align:
|
|
4426
|
+
vertical-align: middle;
|
|
4427
4427
|
}
|
|
4428
4428
|
.pro-edit-table .ant-table-tbody tr:nth-child(n) > td {
|
|
4429
4429
|
background-color: var(--zaui-base-bg, #ffffff);
|
package/dist/less.esm.css
CHANGED
|
@@ -4423,7 +4423,7 @@ span.ant-input-group-compact.pro-range-limit .forever-checkbox {
|
|
|
4423
4423
|
}
|
|
4424
4424
|
.pro-edit-table .ant-table-tbody > .is-editing:not(.ant-table-measure-row) > td {
|
|
4425
4425
|
border-bottom: 0;
|
|
4426
|
-
vertical-align:
|
|
4426
|
+
vertical-align: middle;
|
|
4427
4427
|
}
|
|
4428
4428
|
.pro-edit-table .ant-table-tbody tr:nth-child(n) > td {
|
|
4429
4429
|
background-color: var(--zaui-base-bg, #ffffff);
|
|
@@ -222,7 +222,8 @@
|
|
|
222
222
|
|
|
223
223
|
.@{ant-prefix}-table-tbody>.is-editing:not(.@{ant-prefix}-table-measure-row)>td {
|
|
224
224
|
border-bottom : 0;
|
|
225
|
-
vertical-align: top;
|
|
225
|
+
// vertical-align: top;
|
|
226
|
+
vertical-align: middle;
|
|
226
227
|
}
|
|
227
228
|
|
|
228
229
|
.@{ant-prefix}-table-tbody tr:nth-child(n)>td {
|
|
@@ -30,9 +30,11 @@ export var ProTreeSelect = function ProTreeSelect(props, ref) {
|
|
|
30
30
|
dics = _useProConfig$dics === void 0 ? {} : _useProConfig$dics;
|
|
31
31
|
var label = 'label';
|
|
32
32
|
var code = 'value';
|
|
33
|
+
var uuidKey = 'value';
|
|
33
34
|
if (proSelectFieldNames && Object.keys(proSelectFieldNames).length) {
|
|
34
35
|
code = proSelectFieldNames.value;
|
|
35
36
|
label = proSelectFieldNames.label;
|
|
37
|
+
uuidKey = proSelectFieldNames.uuidKey || proSelectFieldNames.value;
|
|
36
38
|
}
|
|
37
39
|
// 配置属性
|
|
38
40
|
var disabled = props.disabled,
|
|
@@ -285,6 +287,7 @@ export var ProTreeSelect = function ProTreeSelect(props, ref) {
|
|
|
285
287
|
icon = node.icon;
|
|
286
288
|
var labelText = node[label];
|
|
287
289
|
var value = node[code];
|
|
290
|
+
var key = node[uuidKey];
|
|
288
291
|
var titleHtml = _jsx("span", {
|
|
289
292
|
dangerouslySetInnerHTML: {
|
|
290
293
|
__html: labelText
|
|
@@ -315,7 +318,7 @@ export var ProTreeSelect = function ProTreeSelect(props, ref) {
|
|
|
315
318
|
checkable: node.checkable,
|
|
316
319
|
icon: icon,
|
|
317
320
|
className: "node-val-".concat(value)
|
|
318
|
-
},
|
|
321
|
+
}, key);
|
|
319
322
|
}
|
|
320
323
|
var sonGrade = grade + 1;
|
|
321
324
|
return _jsx(_TreeSelect.TreeNode, {
|
|
@@ -328,7 +331,7 @@ export var ProTreeSelect = function ProTreeSelect(props, ref) {
|
|
|
328
331
|
children: children.map(function (child) {
|
|
329
332
|
return renderTreeNode(child, sonGrade);
|
|
330
333
|
})
|
|
331
|
-
},
|
|
334
|
+
}, key);
|
|
332
335
|
};
|
|
333
336
|
/**
|
|
334
337
|
* 从树形数据中找出用户搜索得数据,并且将搜索字符串高亮标识
|
|
@@ -222,7 +222,8 @@
|
|
|
222
222
|
|
|
223
223
|
.@{ant-prefix}-table-tbody>.is-editing:not(.@{ant-prefix}-table-measure-row)>td {
|
|
224
224
|
border-bottom : 0;
|
|
225
|
-
vertical-align: top;
|
|
225
|
+
// vertical-align: top;
|
|
226
|
+
vertical-align: middle;
|
|
226
227
|
}
|
|
227
228
|
|
|
228
229
|
.@{ant-prefix}-table-tbody tr:nth-child(n)>td {
|
|
@@ -32,9 +32,11 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) {
|
|
|
32
32
|
dics = _useProConfig$dics === void 0 ? {} : _useProConfig$dics;
|
|
33
33
|
var label = 'label';
|
|
34
34
|
var code = 'value';
|
|
35
|
+
var uuidKey = 'value';
|
|
35
36
|
if (proSelectFieldNames && Object.keys(proSelectFieldNames).length) {
|
|
36
37
|
code = proSelectFieldNames.value;
|
|
37
38
|
label = proSelectFieldNames.label;
|
|
39
|
+
uuidKey = proSelectFieldNames.uuidKey || proSelectFieldNames.value;
|
|
38
40
|
}
|
|
39
41
|
// 配置属性
|
|
40
42
|
var disabled = props.disabled,
|
|
@@ -287,6 +289,7 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) {
|
|
|
287
289
|
icon = node.icon;
|
|
288
290
|
var labelText = node[label];
|
|
289
291
|
var value = node[code];
|
|
292
|
+
var key = node[uuidKey];
|
|
290
293
|
var titleHtml = (0, _jsxRuntime.jsx)("span", {
|
|
291
294
|
dangerouslySetInnerHTML: {
|
|
292
295
|
__html: labelText
|
|
@@ -317,7 +320,7 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) {
|
|
|
317
320
|
checkable: node.checkable,
|
|
318
321
|
icon: icon,
|
|
319
322
|
className: "node-val-".concat(value)
|
|
320
|
-
},
|
|
323
|
+
}, key);
|
|
321
324
|
}
|
|
322
325
|
var sonGrade = grade + 1;
|
|
323
326
|
return (0, _jsxRuntime.jsx)(_antd.TreeSelect.TreeNode, {
|
|
@@ -330,7 +333,7 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) {
|
|
|
330
333
|
children: children.map(function (child) {
|
|
331
334
|
return renderTreeNode(child, sonGrade);
|
|
332
335
|
})
|
|
333
|
-
},
|
|
336
|
+
}, key);
|
|
334
337
|
};
|
|
335
338
|
/**
|
|
336
339
|
* 从树形数据中找出用户搜索得数据,并且将搜索字符串高亮标识
|