venus-design 0.6.9 → 0.7.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.
|
@@ -11,28 +11,28 @@ import ModelComSelect from "./model";
|
|
|
11
11
|
* 选择人员/组织/角色组件
|
|
12
12
|
*/
|
|
13
13
|
var SelectUDRBySecLevelModel = function SelectUDRBySecLevelModel(props) {
|
|
14
|
-
var _useState = useState(
|
|
14
|
+
var _useState = useState([]),
|
|
15
15
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var _useState3 = useState([]),
|
|
19
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
20
|
-
value = _useState4[0],
|
|
21
|
-
setValue = _useState4[1];
|
|
16
|
+
value = _useState2[0],
|
|
17
|
+
setValue = _useState2[1];
|
|
22
18
|
//确定
|
|
23
19
|
var handleOk = function handleOk(val) {
|
|
24
|
-
setVisible(false);
|
|
25
20
|
setValue(val);
|
|
26
21
|
if (props.onSelectEdUser) {
|
|
27
22
|
props.onSelectEdUser(val);
|
|
28
23
|
}
|
|
24
|
+
if (props.handleOk) {
|
|
25
|
+
props.handleOk(val);
|
|
26
|
+
}
|
|
29
27
|
};
|
|
30
28
|
useEffect(function () {
|
|
31
29
|
setValue(props.value == undefined ? null : props.value);
|
|
32
30
|
}, [props.value]);
|
|
33
31
|
//取消
|
|
34
32
|
var handleCanCel = function handleCanCel() {
|
|
35
|
-
|
|
33
|
+
if (props.handleCancel) {
|
|
34
|
+
props.handleCancel();
|
|
35
|
+
}
|
|
36
36
|
};
|
|
37
37
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ModelComSelect, _extends({
|
|
38
38
|
open: props.vis,
|
|
@@ -74,7 +74,7 @@ export var handleColumnFns = function handleColumnFns(columnList, showIndexColum
|
|
|
74
74
|
ellipsis: columnList[i].parameterSource.ellipsis || false,
|
|
75
75
|
render: columnList[i].fieldId == "conflictFlag" ? function (text, record) {
|
|
76
76
|
return handleConflictFlag(columnList[i], record, actions);
|
|
77
|
-
} : columnList[i].parameterSource.render != undefined ? handleRenderType(columnList[i]
|
|
77
|
+
} : columnList[i].parameterSource.render != undefined ? handleRenderType(columnList[i], actions) : radioRender,
|
|
78
78
|
//@ts-ignore
|
|
79
79
|
filteredValue: filters[columnList[i].fieldId]
|
|
80
80
|
}, getColumnSearch(columnList[i])));
|
package/dist/VenusTable/index.js
CHANGED
|
@@ -293,7 +293,7 @@ var VenusTable = function VenusTable(props) {
|
|
|
293
293
|
onChange: function onChange(selectedKeys, selectedRows, info) {
|
|
294
294
|
setSelectedRowKeys(selectedKeys);
|
|
295
295
|
if (props.onSelectRow) {
|
|
296
|
-
props.onSelectRow(
|
|
296
|
+
props.onSelectRow(selectedKeys, selectedRows);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
};
|