@titaui/pc 1.7.74 → 1.7.75
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.
|
@@ -37,7 +37,9 @@ var Principal = function Principal(props) {
|
|
|
37
37
|
var onChange = props.onChange,
|
|
38
38
|
_props$initValue = props.initValue,
|
|
39
39
|
initValue = _props$initValue === void 0 ? [] : _props$initValue,
|
|
40
|
-
setRelation = props.setRelation
|
|
40
|
+
setRelation = props.setRelation,
|
|
41
|
+
_props$position = props.position,
|
|
42
|
+
position = _props$position === void 0 ? "bottom" : _props$position;
|
|
41
43
|
|
|
42
44
|
var _useState = (0, _react.useState)(initValue),
|
|
43
45
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -93,7 +95,7 @@ var Principal = function Principal(props) {
|
|
|
93
95
|
users: users
|
|
94
96
|
},
|
|
95
97
|
onOk: onSelectUser,
|
|
96
|
-
position:
|
|
98
|
+
position: position,
|
|
97
99
|
disabledDepartSelect: true,
|
|
98
100
|
panes: {
|
|
99
101
|
depart: true
|
|
@@ -79,6 +79,7 @@ var SearchForm = function SearchForm(props) {
|
|
|
79
79
|
className: "rel-work-tree__search-item"
|
|
80
80
|
}, /*#__PURE__*/_react["default"].createElement(_principal["default"], {
|
|
81
81
|
onChange: setUsers,
|
|
82
|
+
position: "bottomLeft",
|
|
82
83
|
initValue: [],
|
|
83
84
|
setRelation: setRelation
|
|
84
85
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
|
|
12
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
13
|
|
|
14
|
+
var _tooltip = _interopRequireDefault(require("../../../../tooltip"));
|
|
15
|
+
|
|
14
16
|
var _context = require("../../../context");
|
|
15
17
|
|
|
16
18
|
require("./index.css");
|
|
@@ -40,7 +42,10 @@ var _default = function _default(props) {
|
|
|
40
42
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
41
43
|
className: "perspm-group__name",
|
|
42
44
|
title: ""
|
|
43
|
-
},
|
|
45
|
+
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
46
|
+
text: data.name,
|
|
47
|
+
isPercent: true
|
|
48
|
+
})), !departOnly && /*#__PURE__*/_react["default"].createElement("span", {
|
|
44
49
|
className: "perspm-group__member-count",
|
|
45
50
|
title: ""
|
|
46
51
|
}, data.groupUserNums ? "".concat(data.groupUserNums, "\u4EBA") : ''), !isSelectedPanel ? /*#__PURE__*/_react["default"].createElement("span", {
|