@titaui/pc 1.11.4-5 → 1.11.4-8

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 (72) hide show
  1. package/lib/components/date-picker/BodyItem.js +3 -3
  2. package/lib/components/date-picker/CalendarHeader.js +3 -3
  3. package/lib/components/delete-confirm-pop/ConfirmPop.js +3 -3
  4. package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +4 -4
  5. package/lib/components/eReport/eReportLists/reportList.js +3 -3
  6. package/lib/components/emotions-selector/selector-pop.js +3 -3
  7. package/lib/components/ereport-list/index.js +3 -3
  8. package/lib/components/form/form-fields/date/index.js +15 -11
  9. package/lib/components/form/form-fields/user/index.css +22 -2
  10. package/lib/components/form/form-fields/user/index.js +18 -8
  11. package/lib/components/form/form-fields/user/user-input.js +15 -6
  12. package/lib/components/mblog/components/MblogAction.js +3 -3
  13. package/lib/components/menus/components/menu-tree/images/interview-menu/my-interview.svg +16 -0
  14. package/lib/components/menus/components/menu-tree/images/interview-menu/template.svg +16 -0
  15. package/lib/components/menus/components/menu-tree/images/interview-menu/todo.svg +16 -0
  16. package/lib/components/menus/components/menu-tree/index.css +4 -2
  17. package/lib/components/menus/components/menu-tree/tree-node/index.css +85 -1
  18. package/lib/components/menus/export-modules/interview-menus/constant.js +3 -3
  19. package/lib/components/menus/export-modules/interview-menus/index.css +7 -0
  20. package/lib/components/menus/export-modules/interview-menus/index.js +4 -2
  21. package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +48 -10
  22. package/lib/components/nav-top/request.apis.js +3 -1
  23. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +3 -3
  24. package/lib/components/okr-review/components/ReviewItem/index.js +3 -3
  25. package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +3 -3
  26. package/lib/components/picker/components/panels/date-panel/date-body.js +21 -19
  27. package/lib/components/picker/components/panels/date-panel/date-head.js +29 -8
  28. package/lib/components/picker/components/panels/month-panel/month-body.js +6 -4
  29. package/lib/components/picker/components/picker-trigger/index.css +15 -0
  30. package/lib/components/picker/components/picker-trigger/index.js +8 -8
  31. package/lib/components/popup/index.js +4 -4
  32. package/lib/components/radio/index.css +9 -9
  33. package/lib/components/range-selector-pop/RangeSelectorPop.js +3 -3
  34. package/lib/components/rich-editor/models/schema.js +6 -6
  35. package/lib/components/rich-editor/plugins/block/block-quote/index.js +8 -8
  36. package/lib/components/rich-editor/plugins/block/heading/index.js +8 -8
  37. package/lib/components/rich-editor/plugins/block/lists/index.js +14 -14
  38. package/lib/components/rich-editor/plugins/block/paragraph/index.js +5 -5
  39. package/lib/components/rich-editor/plugins/core/index.js +4 -4
  40. package/lib/components/rich-editor/plugins/extension/alignment/index.js +5 -5
  41. package/lib/components/rich-editor/plugins/extension/placeholder/index.js +4 -4
  42. package/lib/components/rich-editor/plugins/inline/color/index.js +11 -11
  43. package/lib/components/rich-editor/plugins/inline/delete-line/index.js +8 -8
  44. package/lib/components/rich-editor/plugins/inline/em/index.js +5 -5
  45. package/lib/components/rich-editor/plugins/inline/link/index.js +8 -8
  46. package/lib/components/rich-editor/plugins/inline/strong/index.js +8 -8
  47. package/lib/components/rich-editor/plugins/inline/under-line/index.js +8 -8
  48. package/lib/components/rich-editor/react/uiProvider.js +3 -3
  49. package/lib/components/rich-editor/ui/Popup/index.js +3 -3
  50. package/lib/components/scrollbar/scroll-mask/index.js +1 -1
  51. package/lib/components/select/Option.js +3 -3
  52. package/lib/components/task-tree/request-apis.js +1 -1
  53. package/lib/components/task-tree/task-item-node/constant.js +20 -20
  54. package/lib/components/task-tree/task-item-node/e-status-dropdown.js +10 -10
  55. package/lib/components/task-tree/task-item-node/e-task.js +24 -23
  56. package/lib/components/task-tree/task-item-node/index.css +0 -1
  57. package/lib/components/task-tree/task-tree.css +9 -1
  58. package/lib/components/time-picker/index.css +6 -0
  59. package/lib/components/time-picker/time-picker.js +27 -27
  60. package/lib/components/tita-chart/errorBoundary/index.js +3 -3
  61. package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.css +1 -0
  62. package/lib/components-v1/animate/AnimateChild.js +3 -3
  63. package/lib/components-v1/avatar/index.js +3 -3
  64. package/lib/components-v1/dropDownSelector/StatelessDropdown.js +3 -3
  65. package/lib/components-v1/progress/CircleProgress.js +3 -3
  66. package/lib/components-v1/radio/radio.js +3 -3
  67. package/lib/components-v1/radio/style/index.css +8 -8
  68. package/lib/components-v1/select/Option.js +3 -3
  69. package/lib/components-v1/userSelector/UserSelectorPop.js +3 -3
  70. package/lib/components-v1/userSelector/components/MultiMode/index.js +3 -3
  71. package/lib/components-v1/userSelector/components/UserItem.js +3 -3
  72. package/package.json +1 -1
@@ -47,7 +47,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
47
47
  var _super = _createSuper(BodyItem);
48
48
 
49
49
  function BodyItem() {
50
- var _temp, _this;
50
+ var _this;
51
51
 
52
52
  _classCallCheck(this, BodyItem);
53
53
 
@@ -55,7 +55,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
55
55
  args[_key] = arguments[_key];
56
56
  }
57
57
 
58
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.getClass = function () {
58
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.getClass = function () {
59
59
  var _this$props = _this.props,
60
60
  isAllowSelect = _this$props.isAllowSelect,
61
61
  date = _this$props.date,
@@ -86,7 +86,7 @@ var BodyItem = /*#__PURE__*/function (_Component) {
86
86
  if (_this.disabled) return;
87
87
 
88
88
  _this.props.onSelectDate((0, _moment["default"])(date.format("YYYY/MM/DD")));
89
- }, _temp));
89
+ }, _assertThisInitialized(_this)));
90
90
  }
91
91
 
92
92
  _createClass(BodyItem, [{
@@ -87,7 +87,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
87
87
  var _super = _createSuper(CalendarHeader);
88
88
 
89
89
  function CalendarHeader() {
90
- var _temp, _this;
90
+ var _this;
91
91
 
92
92
  _classCallCheck(this, CalendarHeader);
93
93
 
@@ -95,7 +95,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
95
95
  args[_key] = arguments[_key];
96
96
  }
97
97
 
98
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.setDate = function (func) {
98
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.setDate = function (func) {
99
99
  var date = (0, _moment["default"])(_this.props.date);
100
100
 
101
101
  for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
@@ -113,7 +113,7 @@ var CalendarHeader = /*#__PURE__*/function (_Component) {
113
113
  }
114
114
 
115
115
  return years;
116
- }, _temp));
116
+ }, _assertThisInitialized(_this)));
117
117
  }
118
118
 
119
119
  _createClass(CalendarHeader, [{
@@ -49,7 +49,7 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
49
49
  var _super = _createSuper(ConfirmPop);
50
50
 
51
51
  function ConfirmPop() {
52
- var _temp, _this;
52
+ var _this;
53
53
 
54
54
  _classCallCheck(this, ConfirmPop);
55
55
 
@@ -57,13 +57,13 @@ var ConfirmPop = /*#__PURE__*/function (_PureComponent) {
57
57
  args[_key] = arguments[_key];
58
58
  }
59
59
 
60
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
60
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
61
61
  // @ts-ignore
62
62
  _this.refs.pop.show(_this.refs.trigger);
63
63
  }, _this.handleHide = function () {
64
64
  // @ts-ignore
65
65
  _this.refs.pop.hide();
66
- }, _temp));
66
+ }, _assertThisInitialized(_this)));
67
67
  }
68
68
 
69
69
  _createClass(ConfirmPop, [{
@@ -17,6 +17,10 @@
17
17
  margin-left: 88px;
18
18
  }
19
19
 
20
+ .titaui-dynamic-interview__content .titaui-pc-avator-container {
21
+ height: 32px;
22
+ }
23
+
20
24
  .titaui-dynamic-interview__wifi {
21
25
  margin: 0 8px;
22
26
  }
@@ -45,7 +49,3 @@
45
49
  .titaui-dynamic-interview__name a:hover {
46
50
  color: #2879ff;
47
51
  }
48
-
49
- .titaui-dynamic-interview .titaui-pc-avator-container {
50
- height: 32px;
51
- }
@@ -55,7 +55,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
55
55
  var _super = _createSuper(EReportList);
56
56
 
57
57
  function EReportList() {
58
- var _temp, _this;
58
+ var _this;
59
59
 
60
60
  _classCallCheck(this, EReportList);
61
61
 
@@ -63,7 +63,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
63
63
  args[_key] = arguments[_key];
64
64
  }
65
65
 
66
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
66
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
67
67
  selectedPeriodValue: "",
68
68
  showDatePick: false,
69
69
  eReportWeekList: [],
@@ -176,7 +176,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
176
176
  return _this.handlerEReportShareSubmit(submitStatus);
177
177
  }
178
178
  })));
179
- }, _temp));
179
+ }, _assertThisInitialized(_this)));
180
180
  }
181
181
 
182
182
  _createClass(EReportList, [{
@@ -47,7 +47,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
47
47
  var _super = _createSuper(EmotionsSelectorPop);
48
48
 
49
49
  function EmotionsSelectorPop() {
50
- var _temp, _this;
50
+ var _this;
51
51
 
52
52
  _classCallCheck(this, EmotionsSelectorPop);
53
53
 
@@ -55,7 +55,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
55
55
  args[_key] = arguments[_key];
56
56
  }
57
57
 
58
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
58
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.handleShowPop = function () {
59
59
  setTimeout(function () {
60
60
  // @ts-ignore
61
61
  _this.refs.pop.show(_this.refs.trigger);
@@ -63,7 +63,7 @@ var EmotionsSelectorPop = /*#__PURE__*/function (_PureComponent) {
63
63
  }, _this.handleHide = function () {
64
64
  // @ts-ignore
65
65
  _this.refs.pop.hide();
66
- }, _temp));
66
+ }, _assertThisInitialized(_this)));
67
67
  }
68
68
 
69
69
  _createClass(EmotionsSelectorPop, [{
@@ -57,7 +57,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
57
57
  var _super = _createSuper(EReportList);
58
58
 
59
59
  function EReportList() {
60
- var _temp, _this;
60
+ var _this;
61
61
 
62
62
  _classCallCheck(this, EReportList);
63
63
 
@@ -65,7 +65,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
65
65
  args[_key] = arguments[_key];
66
66
  }
67
67
 
68
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
68
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
69
69
  selectedPeriodValue: "",
70
70
  showDatePick: false,
71
71
  eReportWeekList: [],
@@ -178,7 +178,7 @@ var EReportList = /*#__PURE__*/function (_React$Component) {
178
178
  return _this.handlerEReportShareSubmit(submitStatus);
179
179
  }
180
180
  })));
181
- }, _temp));
181
+ }, _assertThisInitialized(_this)));
182
182
  }
183
183
 
184
184
  _createClass(EReportList, [{
@@ -17,7 +17,7 @@ var _timePicker = _interopRequireDefault(require("../../../time-picker"));
17
17
 
18
18
  require("./index.css");
19
19
 
20
- var _excluded = ["label", "layout", "require", "value", "onChange"];
20
+ var _excluded = ["label", "layout", "require", "value", "onChange", "datePopupAlign", "timePopupAlign"];
21
21
 
22
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
23
 
@@ -29,7 +29,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
29
29
 
30
30
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
31
31
 
32
- var prefixCls = "form-field-date";
32
+ var prefixCls = 'form-field-date';
33
33
 
34
34
  var Date = function Date(props) {
35
35
  var label = props.label,
@@ -38,13 +38,15 @@ var Date = function Date(props) {
38
38
  _props$value = props.value,
39
39
  value = _props$value === void 0 ? (0, _moment["default"])() : _props$value,
40
40
  onChange = props.onChange,
41
+ datePopupAlign = props.datePopupAlign,
42
+ timePopupAlign = props.timePopupAlign,
41
43
  restProps = _objectWithoutProperties(props, _excluded);
42
44
 
43
45
  var onDateChange = function onDateChange(date, type) {
44
46
  var newDate;
45
47
 
46
48
  switch (type) {
47
- case "date":
49
+ case 'date':
48
50
  newDate = (0, _moment["default"])(value || (0, _moment["default"])()).set({
49
51
  year: (0, _moment["default"])(date).year(),
50
52
  month: (0, _moment["default"])(date).month(),
@@ -52,10 +54,10 @@ var Date = function Date(props) {
52
54
  });
53
55
  break;
54
56
 
55
- case "time":
57
+ case 'time':
56
58
  newDate = (0, _moment["default"])(value || (0, _moment["default"])()).set({
57
- hour: (0, _moment["default"])(date, "HH:mm").hour(),
58
- minute: (0, _moment["default"])(date, "HH:mm").minute()
59
+ hour: (0, _moment["default"])(date, 'HH:mm').hour(),
60
+ minute: (0, _moment["default"])(date, 'HH:mm').minute()
59
61
  });
60
62
  break;
61
63
 
@@ -67,7 +69,7 @@ var Date = function Date(props) {
67
69
  };
68
70
 
69
71
  return /*#__PURE__*/_react["default"].createElement("div", {
70
- className: (0, _classnames["default"])(prefixCls, _defineProperty({}, "".concat(prefixCls, "-row"), layout === "row"))
72
+ className: (0, _classnames["default"])(prefixCls, _defineProperty({}, "".concat(prefixCls, "-row"), layout === 'row'))
71
73
  }, !!label && /*#__PURE__*/_react["default"].createElement("div", {
72
74
  className: "".concat(prefixCls, "__label")
73
75
  }, /*#__PURE__*/_react["default"].createElement("span", {
@@ -79,19 +81,21 @@ var Date = function Date(props) {
79
81
  }, /*#__PURE__*/_react["default"].createElement(_picker["default"], _extends({
80
82
  value: value,
81
83
  onChange: function onChange(date) {
82
- return onDateChange(date, "date");
83
- }
84
+ return onDateChange(date, 'date');
85
+ },
86
+ popupAlign: datePopupAlign
84
87
  }, restProps)), /*#__PURE__*/_react["default"].createElement(_timePicker["default"], _extends({
85
88
  value: value,
89
+ popupAlign: timePopupAlign,
86
90
  onChange: function onChange(time) {
87
- return onDateChange(time, "time");
91
+ return onDateChange(time, 'time');
88
92
  }
89
93
  }, restProps))));
90
94
  };
91
95
 
92
96
  Date.defaultProps = {
93
97
  disabled: false,
94
- layout: "column",
98
+ layout: 'column',
95
99
  require: false
96
100
  };
97
101
  var _default = Date;
@@ -42,6 +42,7 @@
42
42
  font-weight: 400;
43
43
  color: #3f4755;
44
44
  cursor: pointer;
45
+ display: flex;
45
46
  position: relative;
46
47
  }
47
48
 
@@ -49,8 +50,21 @@
49
50
  display: block;
50
51
  }
51
52
 
52
- .form-field-user__input-avatar {
53
+ .form-field-user__input-user-info {
53
54
  margin-right: 5px;
55
+ display: flex;
56
+ align-items: center;
57
+ }
58
+
59
+ .form-field-user__input-user-info .titaui-pc-avator-container {
60
+ display: flex;
61
+ }
62
+
63
+ .form-field-user__input-user-info__name {
64
+ margin-left: 4px;
65
+ overflow: hidden;
66
+ text-overflow: ellipsis;
67
+ white-space: nowrap;
54
68
  }
55
69
 
56
70
  .form-field-user__input--placeholder {
@@ -72,10 +86,16 @@
72
86
  }
73
87
 
74
88
  .form-field-user__input--down {
75
- color: #c2cbd1;
89
+ font-size: 16px;
90
+ color: #3f4755;
76
91
  position: absolute;
77
92
  right: -32px;
78
93
  top: 50%;
79
94
  transform: translate(0, -50%);
80
95
  cursor: pointer;
81
96
  }
97
+
98
+ .form-field-user__input--down::before {
99
+ transform: scale(0.5);
100
+ display: inline-block;
101
+ }
@@ -19,12 +19,16 @@ var _userInput = _interopRequireDefault(require("./user-input"));
19
19
 
20
20
  require("./index.css");
21
21
 
22
+ var _excluded = ["name", "label", "placeholder", "value", "onChange", "require", "maxSize", "multiple", "getContainer"];
23
+
22
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
23
25
 
24
26
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
25
27
 
26
28
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
27
29
 
30
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
31
+
28
32
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
29
33
 
30
34
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -39,7 +43,11 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
39
43
 
40
44
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
41
45
 
42
- var preCls = "form-field-user";
46
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
47
+
48
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
49
+
50
+ var preCls = 'form-field-user';
43
51
 
44
52
  function OverlayInner(_ref) {
45
53
  var hasError = _ref.hasError,
@@ -47,12 +55,12 @@ function OverlayInner(_ref) {
47
55
  tip = _ref.tip;
48
56
  if (hasError) return /*#__PURE__*/_react["default"].createElement("span", {
49
57
  style: {
50
- color: "#F05E5E"
58
+ color: '#F05E5E'
51
59
  }
52
60
  }, tip);
53
61
  if (hasActive) return /*#__PURE__*/_react["default"].createElement("span", {
54
62
  style: {
55
- color: "#3F4755"
63
+ color: '#3F4755'
56
64
  }
57
65
  }, tip);
58
66
  return /*#__PURE__*/_react["default"].createElement("span", null);
@@ -69,9 +77,10 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
69
77
  require = props.require,
70
78
  maxSize = props.maxSize,
71
79
  multiple = props.multiple,
72
- getContainer = props.getContainer;
80
+ getContainer = props.getContainer,
81
+ restProps = _objectWithoutProperties(props, _excluded);
73
82
 
74
- var _useState = (0, _react.useState)(""),
83
+ var _useState = (0, _react.useState)(''),
75
84
  _useState2 = _slicedToArray(_useState, 2),
76
85
  tip = _useState2[0],
77
86
  setTip = _useState2[1];
@@ -119,7 +128,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
119
128
  var onUserSelectHandler = function onUserSelectHandler(data) {
120
129
  setHasActive(false);
121
130
  setHasError(false);
122
- setTip("");
131
+ setTip('');
123
132
  var users = [];
124
133
 
125
134
  if (multiple) {
@@ -211,7 +220,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
211
220
  tip: tip
212
221
  }),
213
222
  getTooltipContainer: getContainer
214
- }, /*#__PURE__*/_react["default"].createElement(_userSelector["default"], {
223
+ }, /*#__PURE__*/_react["default"].createElement(_userSelector["default"], _extends({
215
224
  multiple: multiple,
216
225
  selectNodes: selectNodes,
217
226
  position: "centerRight",
@@ -229,7 +238,8 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
229
238
  group: false
230
239
  },
231
240
  onPopupVisibleChange: onPopupVisibleChangeHandler
232
- }, /*#__PURE__*/_react["default"].createElement(_userInput["default"], {
241
+ }, restProps), /*#__PURE__*/_react["default"].createElement(_userInput["default"], {
242
+ multiple: multiple,
233
243
  users: selectNodes.users,
234
244
  onClear: onClearHandler,
235
245
  placeholder: placeholder
@@ -15,21 +15,25 @@ var _tooltip = _interopRequireDefault(require("../../../tooltip"));
15
15
 
16
16
  var _getLocale = require("../../../../utils/getLocale");
17
17
 
18
+ var _openData = require("../../../../utils/open-data");
19
+
18
20
  require("./index.css");
19
21
 
20
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
21
23
 
22
- var preCls = "form-field-user";
24
+ var preCls = 'form-field-user';
23
25
 
24
26
  function _default(props) {
25
- var users = props.users,
27
+ var _props$multiple = props.multiple,
28
+ multiple = _props$multiple === void 0 ? false : _props$multiple,
29
+ users = props.users,
26
30
  _props$placeholder = props.placeholder,
27
- placeholder = _props$placeholder === void 0 ? (0, _getLocale.getLocale)("Mod_Pleaseselect") : _props$placeholder,
31
+ placeholder = _props$placeholder === void 0 ? (0, _getLocale.getLocale)('Mod_Pleaseselect') : _props$placeholder,
28
32
  onClear = props.onClear;
29
33
  var userNames = [];
30
34
  (users || []).forEach(function (user) {
31
- userNames.push( /*#__PURE__*/_react["default"].createElement("span", {
32
- className: (0, _classnames["default"])("".concat(preCls, "__input-avatar"))
35
+ userNames.push( /*#__PURE__*/_react["default"].createElement("div", {
36
+ className: (0, _classnames["default"])("".concat(preCls, "__input-user-info"))
33
37
  }, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
34
38
  overlay: user.name,
35
39
  placement: "top"
@@ -38,6 +42,11 @@ function _default(props) {
38
42
  src: user.avatar.small,
39
43
  color: user.avatar.color,
40
44
  userId: user.userId
45
+ })), !multiple && /*#__PURE__*/_react["default"].createElement("p", {
46
+ className: (0, _classnames["default"])("".concat(preCls, "__input-user-info__name"))
47
+ }, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
48
+ id: user.userId,
49
+ name: user.name
41
50
  }))));
42
51
  });
43
52
 
@@ -55,6 +64,6 @@ function _default(props) {
55
64
  className: (0, _classnames["default"])("tu-icon-cross ".concat(preCls, "__input--clear")),
56
65
  onClick: onHandleClear
57
66
  }), /*#__PURE__*/_react["default"].createElement("span", {
58
- className: (0, _classnames["default"])("".concat(preCls, "__input--down tu-icon-sort-down"))
67
+ className: (0, _classnames["default"])("".concat(preCls, "__input--down tu-icon-caret-down"))
59
68
  }));
60
69
  }
@@ -83,7 +83,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
83
83
  var _super = _createSuper(MblogAction);
84
84
 
85
85
  function MblogAction() {
86
- var _temp, _this;
86
+ var _this;
87
87
 
88
88
  _classCallCheck(this, MblogAction);
89
89
 
@@ -91,7 +91,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
91
91
  args[_key] = arguments[_key];
92
92
  }
93
93
 
94
- return _possibleConstructorReturn(_this, (_temp = _this = _super.call.apply(_super, [this].concat(args)), _this.state = {
94
+ return _possibleConstructorReturn(_this, (_this = _super.call.apply(_super, [this].concat(args)), _this.state = {
95
95
  isSendSms: false,
96
96
  // 是否短信通知
97
97
  isShowConfirmPop: false
@@ -121,7 +121,7 @@ var MblogAction = /*#__PURE__*/function (_PureComponent) {
121
121
  isSendSms: false
122
122
  });
123
123
  }
124
- }, _temp));
124
+ }, _assertThisInitialized(_this)));
125
125
  }
126
126
 
127
127
  _createClass(MblogAction, [{
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>切片</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="1--我的面谈(空页面)" transform="translate(-36.000000, -193.000000)" fill-rule="nonzero">
6
+ <g id="主菜单" transform="translate(16.000000, 74.000000)">
7
+ <g id="编组-3" transform="translate(12.000000, 108.000000)">
8
+ <g id="my-uniEA10" transform="translate(8.000000, 11.000000)">
9
+ <path d="M8.4,13.35 L8.4,4.65 C8.4,3.3245166 7.3254834,2.25 6,2.25 L4.65,2.25 C3.3245166,2.25 2.25,3.3245166 2.25,4.65 L2.25,13.35 C2.25,14.6754834 3.3245166,15.75 4.65,15.75 L6,15.75 C7.3254834,15.75 8.4,14.6754834 8.4,13.35 Z M7.2,4.65 L7.2,13.35 C7.2,14.0127417 6.6627417,14.55 6,14.55 L4.65,14.55 C3.9872583,14.55 3.45,14.0127417 3.45,13.35 L3.45,4.65 C3.45,3.9872583 3.9872583,3.45 4.65,3.45 L6,3.45 C6.6627417,3.45 7.2,3.9872583 7.2,4.65 Z M15.75,7.05 L15.75,4.65 C15.75,3.3245166 14.6754834,2.25 13.35,2.25 L12,2.25 C10.6745166,2.25 9.6,3.3245166 9.6,4.65 L9.6,7.05 C9.6,8.3754834 10.6745166,9.45 12,9.45 L13.35,9.45 C14.6754834,9.45 15.75,8.3754834 15.75,7.05 Z M14.55,4.65 L14.55,7.05 C14.55,7.7127417 14.0127417,8.25 13.35,8.25 L12,8.25 C11.3372583,8.25 10.8,7.7127417 10.8,7.05 L10.8,4.65 C10.8,3.9872583 11.3372583,3.45 12,3.45 L13.35,3.45 C14.0127417,3.45 14.55,3.9872583 14.55,4.65 Z" id="形状结合" fill="#141C28"></path>
10
+ <path d="M12.825,10.125 L12.525,10.125 C11.1995166,10.125 10.125,11.1995166 10.125,12.525 L10.125,13.875 C10.125,15.2004834 11.1995166,16.275 12.525,16.275 L12.825,16.275 C14.1504834,16.275 15.225,15.2004834 15.225,13.875 L15.225,12.525 C15.225,11.1995166 14.1504834,10.125 12.825,10.125 Z M12.525,11.325 L12.825,11.325 C13.4877417,11.325 14.025,11.8622583 14.025,12.525 L14.025,13.875 C14.025,14.5377417 13.4877417,15.075 12.825,15.075 L12.525,15.075 C11.8622583,15.075 11.325,14.5377417 11.325,13.875 L11.325,12.525 C11.325,11.8622583 11.8622583,11.325 12.525,11.325 Z" id="矩形" fill="#2879FF" transform="translate(12.675000, 13.200000) rotate(-270.000000) translate(-12.675000, -13.200000) "></path>
11
+ </g>
12
+ </g>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </svg>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>切片</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="1--我的面谈(空页面)" transform="translate(-36.000000, -193.000000)" fill-rule="nonzero">
6
+ <g id="主菜单" transform="translate(16.000000, 74.000000)">
7
+ <g id="编组-3" transform="translate(12.000000, 108.000000)">
8
+ <g id="my-uniEA10" transform="translate(8.000000, 11.000000)">
9
+ <path d="M8.4,13.35 L8.4,4.65 C8.4,3.3245166 7.3254834,2.25 6,2.25 L4.65,2.25 C3.3245166,2.25 2.25,3.3245166 2.25,4.65 L2.25,13.35 C2.25,14.6754834 3.3245166,15.75 4.65,15.75 L6,15.75 C7.3254834,15.75 8.4,14.6754834 8.4,13.35 Z M7.2,4.65 L7.2,13.35 C7.2,14.0127417 6.6627417,14.55 6,14.55 L4.65,14.55 C3.9872583,14.55 3.45,14.0127417 3.45,13.35 L3.45,4.65 C3.45,3.9872583 3.9872583,3.45 4.65,3.45 L6,3.45 C6.6627417,3.45 7.2,3.9872583 7.2,4.65 Z M15.75,7.05 L15.75,4.65 C15.75,3.3245166 14.6754834,2.25 13.35,2.25 L12,2.25 C10.6745166,2.25 9.6,3.3245166 9.6,4.65 L9.6,7.05 C9.6,8.3754834 10.6745166,9.45 12,9.45 L13.35,9.45 C14.6754834,9.45 15.75,8.3754834 15.75,7.05 Z M14.55,4.65 L14.55,7.05 C14.55,7.7127417 14.0127417,8.25 13.35,8.25 L12,8.25 C11.3372583,8.25 10.8,7.7127417 10.8,7.05 L10.8,4.65 C10.8,3.9872583 11.3372583,3.45 12,3.45 L13.35,3.45 C14.0127417,3.45 14.55,3.9872583 14.55,4.65 Z" id="形状结合" fill="#141C28"></path>
10
+ <path d="M12.825,10.125 L12.525,10.125 C11.1995166,10.125 10.125,11.1995166 10.125,12.525 L10.125,13.875 C10.125,15.2004834 11.1995166,16.275 12.525,16.275 L12.825,16.275 C14.1504834,16.275 15.225,15.2004834 15.225,13.875 L15.225,12.525 C15.225,11.1995166 14.1504834,10.125 12.825,10.125 Z M12.525,11.325 L12.825,11.325 C13.4877417,11.325 14.025,11.8622583 14.025,12.525 L14.025,13.875 C14.025,14.5377417 13.4877417,15.075 12.825,15.075 L12.525,15.075 C11.8622583,15.075 11.325,14.5377417 11.325,13.875 L11.325,12.525 C11.325,11.8622583 11.8622583,11.325 12.525,11.325 Z" id="矩形" fill="#2879FF" transform="translate(12.675000, 13.200000) rotate(-270.000000) translate(-12.675000, -13.200000) "></path>
11
+ </g>
12
+ </g>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </svg>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>切片</title>
4
+ <g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
+ <g id="1--我的面谈(空页面)" transform="translate(-36.000000, -154.000000)">
6
+ <g id="主菜单" transform="translate(16.000000, 74.000000)">
7
+ <g id="编组-2" transform="translate(12.000000, 68.000000)">
8
+ <g id="my-pingjia" transform="translate(8.000000, 12.000000)">
9
+ <path d="M8.27325151,3.13900494 C9.5964935,3.12490975 10.6807275,4.1866934 10.6949744,5.5127536 L10.6949744,5.5127536 L10.7394684,16.8508053 C10.7410247,17.2508295 10.5826695,17.6348736 10.2996546,17.9174173 L10.2996546,17.9174173 L8.55030355,19.6638553 C8.08228638,20.1310932 7.32446405,20.1306668 6.85697232,19.6629026 L6.85697232,19.6629026 L4.95309066,17.7579113 C4.67078334,17.4754395 4.51288969,17.0918689 4.51446839,16.6923966 L4.51446839,16.6923966 L4.55888072,5.54139364 C4.56409801,4.23109054 5.6197044,3.16769584 6.92917896,3.15360726 L6.92917896,3.15360726 Z M9.40618374,7.72173222 L5.74745666,7.72086621 L5.71250843,16.6971724 C5.71227163,16.7570932 5.72997546,16.8152251 5.76266186,16.8643796 L5.80023289,16.9102753 L7.70411455,18.8152666 L9.45346558,17.0688286 C9.51006857,17.0123198 9.5417396,16.935511 9.54142834,16.8555062 L9.54142834,16.8555062 L9.50557153,7.71353876 C9.47324366,7.71892786 9.4400412,7.72173222 9.40618374,7.72173222 Z M8.28613292,4.33774469 L6.94206036,4.35227626 C6.28732309,4.35932055 5.75951989,4.8910179 5.75691124,5.54616945 L5.75691124,5.54616945 L5.75245666,6.52086621 L9.40618374,6.52173222 L9.50045666,6.52886621 L9.4969851,5.52359553 C9.49031554,4.90296434 9.01342868,4.39757074 8.40868498,4.34262792 L8.28613292,4.33774469 Z M16.8128747,10.5688778 C17.0471893,10.8031923 17.0471893,11.1830913 16.8128747,11.4174059 L13.5248282,14.7054524 C13.2905136,14.939767 12.9106147,14.939767 12.6763001,14.7054524 C12.4419855,14.4711379 12.4419855,14.0912389 12.6763001,13.8569243 L15.9643466,10.5688778 C16.1986612,10.3345632 16.5785602,10.3345632 16.8128747,10.5688778 Z M15.1158185,8.8718215 C15.350133,9.10613607 15.350133,9.48603506 15.1158185,9.72034964 L13.2066302,11.6295379 C12.9723156,11.8638525 12.5924166,11.8638525 12.358102,11.6295379 C12.1237874,11.3952234 12.1237874,11.0153244 12.358102,10.7810098 L14.2672903,8.8718215 C14.5016049,8.63750692 14.8815039,8.63750692 15.1158185,8.8718215 Z" id="形状结合" fill="#141C28" fill-rule="nonzero" transform="translate(10.751534, 11.576436) rotate(-315.000000) translate(-10.751534, -11.576436) "></path>
10
+ <path d="M5.85312229,10.1205844 C6.18449314,10.1205844 6.45312229,10.3892136 6.45312229,10.7205844 L6.45312229,13.4205844 C6.45312229,13.7519553 6.18449314,14.0205844 5.85312229,14.0205844 C5.52175144,14.0205844 5.25312229,13.7519553 5.25312229,13.4205844 L5.25312229,10.7205844 C5.25312229,10.3892136 5.52175144,10.1205844 5.85312229,10.1205844 Z" id="矩形" fill="#2879FF" transform="translate(5.853122, 12.070584) rotate(-495.000000) translate(-5.853122, -12.070584) "></path>
11
+ </g>
12
+ </g>
13
+ </g>
14
+ </g>
15
+ </g>
16
+ </svg>
@@ -11,7 +11,7 @@
11
11
  display: inline-block;
12
12
  height: 100%;
13
13
  width: 100%;
14
- content: "";
14
+ content: '';
15
15
  opacity: 0;
16
16
  background: #e9f1ff;
17
17
  border-radius: 12px;
@@ -20,7 +20,9 @@
20
20
  animation: selectMenuOpacity 0.4s 1 forwards;
21
21
  }
22
22
 
23
- .titaui-menus-tree .rc-tree-treenode-selected .titaui-menus-tree__menu-item-node-title {
23
+ .titaui-menus-tree .rc-tree-treenode-selected .titaui-menus-tree__menu-item-node-title,
24
+ .titaui-menus-tree .rc-tree-treenode-selected .titaui-menus-tree__ass-template-node-title,
25
+ .titaui-menus-tree .rc-tree-treenode-selected .titaui-menus-tree__ass-manage-node-title {
24
26
  color: #2879ff;
25
27
  font-weight: 600;
26
28
  }