@titaui/pc 1.12.0-beta.1 → 1.12.1

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 (218) hide show
  1. package/lib/components/avatar/name-avatar/index.css +1 -0
  2. package/lib/components/avatar/name-avatar/index.js +22 -13
  3. package/lib/components/avatar/text-avatar/index.css +2 -2
  4. package/lib/components/avatar/text-avatar/index.js +6 -6
  5. package/lib/components/button/images/blue.svg +21 -0
  6. package/lib/components/button/images/red.svg +21 -0
  7. package/lib/components/button/images/white.svg +19 -0
  8. package/lib/components/button/rect-btn/index.css +45 -11
  9. package/lib/components/button/rect-btn/index.js +12 -6
  10. package/lib/components/change-okr-modal/index.js +7 -6
  11. package/lib/components/checkbox/index.css +7 -3
  12. package/lib/{pages/aha2021 → components/contact-kefu}/img/canceled.svg +0 -0
  13. package/lib/{pages/aha2021 → components/contact-kefu}/img/kefu.svg +0 -0
  14. package/lib/{pages/aha2021 → components/contact-kefu}/img/not-try.png +0 -0
  15. package/lib/components/contact-kefu/img/notice.png +0 -0
  16. package/lib/{pages/aha2021 → components/contact-kefu}/img/try.png +0 -0
  17. package/lib/components/contact-kefu/index.css +95 -0
  18. package/lib/components/{dynamic/advertise → contact-kefu}/index.js +59 -77
  19. package/lib/components/create-okr-modal/index.js +48 -42
  20. package/lib/components/create-okr-modal/request-api.js +1 -1
  21. package/lib/components/dialog-confirm/index.css +2 -2
  22. package/lib/components/drawer/headerAction.js +5 -1
  23. package/lib/components/drawer/headerDrop.js +42 -4
  24. package/lib/components/drawer/index.css +33 -0
  25. package/lib/components/drawer/index.js +26 -3
  26. package/lib/components/dynamic/constant.js +38 -33
  27. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +48 -10
  28. package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +4 -2
  29. package/lib/components/dynamic/dynamic-list/index.js +14 -7
  30. package/lib/components/dynamic/index.js +9 -12
  31. package/lib/components/dynamic/request-api.js +7 -68
  32. package/lib/components/e-priority/index.css +4 -4
  33. package/lib/components/e-priority/index.js +10 -2
  34. package/lib/components/form/form-fields/radios/index.css +4 -0
  35. package/lib/components/form/form-fields/radios/index.js +4 -3
  36. package/lib/components/mblog/components/MblogContent.js +5 -2
  37. package/lib/components/nav-top/components/menu/img/new.svg +30 -0
  38. package/lib/components/nav-top/components/menu/img/wecome-temp.png +0 -0
  39. package/lib/components/nav-top/components/menu/index.css +91 -0
  40. package/lib/components/nav-top/components/menu/index.js +72 -24
  41. package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +2 -1
  42. package/lib/components/nav-top/components/user-message/components/todos/index.css +1 -0
  43. package/lib/components/nav-top/index.js +8 -4
  44. package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +20 -4
  45. package/lib/components/okr-detail/base-info/other-infos/principal/index.js +9 -1
  46. package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
  47. package/lib/components/okr-detail/components/base-okr-type/index.css +4 -0
  48. package/lib/components/okr-detail/components/base-okr-type/object-type.js +1 -0
  49. package/lib/components/okr-detail/components/header/index.js +10 -3
  50. package/lib/components/okr-detail/components/header/o-name.js +10 -3
  51. package/lib/components/okr-detail/components/o-classify.js +5 -1
  52. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +16 -16
  53. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +10 -0
  54. package/lib/components/okr-detail/detail-header/constant.js +53 -0
  55. package/lib/components/okr-detail/detail-header/delete-confirm/delete-confirm.js +111 -54
  56. package/lib/components/okr-detail/detail-header/delete-confirm/index.css +63 -0
  57. package/lib/components/okr-detail/detail-header/index.css +11 -0
  58. package/lib/components/okr-detail/detail-header/index.js +228 -234
  59. package/lib/components/okr-detail/e-list/index.js +2 -2
  60. package/lib/components/okr-detail/helper.js +108 -0
  61. package/lib/components/okr-detail/index.js +21 -4
  62. package/lib/components/okr-detail/okr-list/index.js +13 -6
  63. package/lib/components/okr-detail/request-apis.js +14 -8
  64. package/lib/components/okr-flow/child-node/index.css +1 -1
  65. package/lib/components/okr-flow/export-modal/index.js +66 -3
  66. package/lib/components/okr-period-selector/index.js +9 -5
  67. package/lib/components/okr-period-selector/select-cycle.js +23 -19
  68. package/lib/components/operation-records/index.js +1 -1
  69. package/lib/components/operation-records/style.js +1 -1
  70. package/lib/components/period-selector/interface.js +7 -0
  71. package/lib/components/publish-dynamic-modal/publish-dynamic-modal.js +16 -10
  72. package/lib/components/radio/index.css +3 -3
  73. package/lib/components/search-input/index.css +1 -1
  74. package/lib/components/select-layer/index.css +1 -1
  75. package/lib/components/survey-model/index.js +3 -0
  76. package/lib/components/task-relation-modal/helper.js +139 -2
  77. package/lib/components/task-relation-modal/image/loading.gif +0 -0
  78. package/lib/components/task-relation-modal/index.js +9 -1
  79. package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.css +18 -0
  80. package/lib/components/task-relation-modal/okr-relation/relation-task-model/index.js +262 -0
  81. package/lib/components/task-relation-modal/okr-relation/relation-task-model/search-form.js +135 -0
  82. package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.css +0 -0
  83. package/lib/components/task-relation-modal/okr-relation/relation-work-model/index.js +129 -0
  84. package/lib/components/task-relation-modal/okr-relation/request-api.js +106 -0
  85. package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.css +120 -0
  86. package/lib/components/task-relation-modal/okr-relation/tree/task-tree/index.js +185 -0
  87. package/lib/components/task-relation-modal/request-api.js +30 -3
  88. package/lib/components/task-relation-modal/search/okr-status-select.js +3 -3
  89. package/lib/components/task-relation-modal/search/principal.js +36 -19
  90. package/lib/components/task-relation-modal/search/search-dropdown/index.css +2 -1
  91. package/lib/components/task-relation-modal/search/search-dropdown/index.js +1 -1
  92. package/lib/components/{dynamic/dynamic-topping/index.js → task-relation-modal/search/task-relation.js} +45 -44
  93. package/lib/components/task-relation-modal/search/task-status-select.js +87 -0
  94. package/lib/components/{dynamic/dynamic-liking/index.js → task-relation-modal/search/work-relation.js} +43 -39
  95. package/lib/components/task-relation-modal/search/work-status-select.js +74 -0
  96. package/lib/components/task-relation-modal/tree/okr-tree/index.css +1 -1
  97. package/lib/components/task-relation-modal/tree/okr-tree/search-form.js +16 -2
  98. package/lib/components/task-relation-modal/tree/task-list/index.css +0 -0
  99. package/lib/components/task-relation-modal/tree/task-list/index.js +1 -0
  100. package/lib/components/task-relation-modal/tree/work-list/index.css +14 -0
  101. package/lib/components/task-relation-modal/tree/work-list/index.js +176 -0
  102. package/lib/components/task-relation-modal/tree/work-list/search-form.js +123 -0
  103. package/lib/components/task-relation-modal/tree-node/category-node/index.css +0 -11
  104. package/lib/components/task-relation-modal/tree-node/category-node/index.js +1 -3
  105. package/lib/components/task-relation-modal/tree-node/kr-node/index.css +0 -16
  106. package/lib/components/task-relation-modal/tree-node/kr-node/index.js +0 -6
  107. package/lib/components/task-relation-modal/tree-node/milestone-node/index.css +0 -16
  108. package/lib/components/task-relation-modal/tree-node/milestone-node/index.js +0 -4
  109. package/lib/components/task-relation-modal/tree-node/work-node/index.js +3 -1
  110. package/lib/components/task-relation-modal/work-relation/index.css +0 -0
  111. package/lib/components/task-relation-modal/work-relation/index.js +256 -0
  112. package/lib/components/task-tree/index.js +1 -7
  113. package/lib/components/task-tree/task-item-node/constant.js +39 -22
  114. package/lib/components/task-tree/task-item-node/e-status-dropdown.js +38 -8
  115. package/lib/components/task-tree/task-item-node/e-task.js +24 -24
  116. package/lib/components/task-tree/task-item-node/index.css +28 -18
  117. package/lib/components/task-tree/task-tree.css +1 -1
  118. package/lib/components/textarea/index.css +142 -0
  119. package/lib/components/textarea/index.js +262 -0
  120. package/lib/components/time-picker/time-picker.js +34 -102
  121. package/lib/components/time-picker/timer-picker-input.js +0 -6
  122. package/lib/components/toast/index.js +5 -3
  123. package/lib/components/tooltip/index.js +3 -0
  124. package/lib/components/tooltip/tooltip-rows/index.css +26 -0
  125. package/lib/components/tooltip/tooltip-rows/index.js +106 -0
  126. package/lib/components/user-selector/category-selector-panel/index.js +6 -1
  127. package/lib/components/{dynamic/quick-operation/components/create-task/index.js → user-selector/category-selector-panel/subordinate-tree.js} +37 -20
  128. package/lib/components/user-selector/constant.js +10 -2
  129. package/lib/components/user-selector/empty/index.css +5 -0
  130. package/lib/components/user-selector/empty/index.js +9 -3
  131. package/lib/components/user-selector/export-modules/depart-search-selector/index.js +45 -17
  132. package/lib/components/user-selector/export-modules/field-tree-selector/index.js +3 -1
  133. package/lib/components/user-selector/images/no-auth.png +0 -0
  134. package/lib/components/user-selector/request-apis.js +28 -9
  135. package/lib/components/user-selector/searched-panel/index.js +21 -7
  136. package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.js +46 -18
  137. package/lib/components-v1/radio/radio.js +1 -1
  138. package/lib/index.js +48 -0
  139. package/lib/pages/aha2021/index.css +1 -26
  140. package/lib/pages/aha2021/index.js +3 -82
  141. package/lib/pages/new-okr-list/header/common.js +52 -0
  142. package/lib/pages/new-okr-list/header/index.css +45 -0
  143. package/lib/pages/new-okr-list/header/index.js +40 -16
  144. package/lib/pages/new-okr-list/header/operate-record.js +136 -0
  145. package/lib/pages/new-okr-list/index.js +4 -2
  146. package/lib/pages/new-okr-list/list/index.js +19 -2
  147. package/lib/pages/new-okr-list/request-api.js +8 -2
  148. package/lib/pages/okr-map/unsupport-ie/index.js +3 -5
  149. package/lib/utils/format-time.js +8 -1
  150. package/lib/utils/open-data.js +5 -1
  151. package/lib/utils/planDataJson.js +11115 -0
  152. package/package.json +2 -2
  153. package/lib/components/dynamic/advertise/components/next-btn/index.css +0 -27
  154. package/lib/components/dynamic/advertise/components/next-btn/index.js +0 -32
  155. package/lib/components/dynamic/advertise/components/pre-btn/index.css +0 -26
  156. package/lib/components/dynamic/advertise/components/pre-btn/index.js +0 -32
  157. package/lib/components/dynamic/advertise/index.css +0 -21
  158. package/lib/components/dynamic/advertise/interface.js +0 -5
  159. package/lib/components/dynamic/advertise/util.js +0 -28
  160. package/lib/components/dynamic/components/dynamic-search-input/index.css +0 -81
  161. package/lib/components/dynamic/components/dynamic-search-input/index.js +0 -203
  162. package/lib/components/dynamic/components/first-level-tabs/index.css +0 -101
  163. package/lib/components/dynamic/components/first-level-tabs/index.js +0 -131
  164. package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +0 -23
  165. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
  166. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
  167. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
  168. package/lib/components/dynamic/dynamic-like-ranking/image/ranking-empty.png +0 -0
  169. package/lib/components/dynamic/dynamic-like-ranking/index.css +0 -146
  170. package/lib/components/dynamic/dynamic-like-ranking/index.js +0 -180
  171. package/lib/components/dynamic/dynamic-like-ranking/item.js +0 -105
  172. package/lib/components/dynamic/dynamic-like-ranking/mock.js +0 -84
  173. package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +0 -30
  174. package/lib/components/dynamic/dynamic-liking/index.css +0 -81
  175. package/lib/components/dynamic/dynamic-liking/item.js +0 -75
  176. package/lib/components/dynamic/dynamic-liking/mock.js +0 -83
  177. package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +0 -16
  178. package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +0 -30
  179. package/lib/components/dynamic/dynamic-topping/index.css +0 -141
  180. package/lib/components/dynamic/dynamic-topping/interface.js +0 -5
  181. package/lib/components/dynamic/dynamic-topping/item.js +0 -153
  182. package/lib/components/dynamic/dynamic-topping/request-api.js +0 -36
  183. package/lib/components/dynamic/dynamic.css +0 -173
  184. package/lib/components/dynamic/dynamic.js +0 -428
  185. package/lib/components/dynamic/export-module/index.js +0 -37
  186. package/lib/components/dynamic/img/dynamic-top.svg +0 -14
  187. package/lib/components/dynamic/my-team/img/add-subordinate.png +0 -0
  188. package/lib/components/dynamic/my-team/img/line.png +0 -0
  189. package/lib/components/dynamic/my-team/img/team.png +0 -0
  190. package/lib/components/dynamic/my-team/index.css +0 -184
  191. package/lib/components/dynamic/my-team/index.js +0 -263
  192. package/lib/components/dynamic/my-team/request-api.js +0 -52
  193. package/lib/components/dynamic/my-team/util.js +0 -20
  194. package/lib/components/dynamic/new-ui.css +0 -192
  195. package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +0 -58
  196. package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +0 -68
  197. package/lib/components/dynamic/online-broadcast/data.js +0 -77
  198. package/lib/components/dynamic/online-broadcast/img/broadcast.svg +0 -14
  199. package/lib/components/dynamic/online-broadcast/img/new.png +0 -0
  200. package/lib/components/dynamic/online-broadcast/img/preview.png +0 -0
  201. package/lib/components/dynamic/online-broadcast/index.css +0 -46
  202. package/lib/components/dynamic/online-broadcast/index.js +0 -61
  203. package/lib/components/dynamic/online-broadcast/interfact.js +0 -5
  204. package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +0 -25
  205. package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +0 -39
  206. package/lib/components/dynamic/quick-operation/components/create-okr/index.css +0 -25
  207. package/lib/components/dynamic/quick-operation/components/create-okr/index.js +0 -39
  208. package/lib/components/dynamic/quick-operation/components/create-share/index.css +0 -25
  209. package/lib/components/dynamic/quick-operation/components/create-share/index.js +0 -39
  210. package/lib/components/dynamic/quick-operation/components/create-task/index.css +0 -25
  211. package/lib/components/dynamic/quick-operation/img/new-announcement.png +0 -0
  212. package/lib/components/dynamic/quick-operation/img/new-okr.png +0 -0
  213. package/lib/components/dynamic/quick-operation/img/new-share.png +0 -0
  214. package/lib/components/dynamic/quick-operation/img/new-task.png +0 -0
  215. package/lib/components/dynamic/quick-operation/index.css +0 -51
  216. package/lib/components/dynamic/quick-operation/index.js +0 -120
  217. package/lib/components/okr-detail/detail-header/delete-confirm/style.js +0 -38
  218. package/lib/components/task-tree/mock.js +0 -944
@@ -55,4 +55,5 @@
55
55
  font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
56
56
  color: #6F7886;
57
57
  line-height: 20px;
58
+ margin-left: 4px;
58
59
  }
@@ -58,7 +58,10 @@ var NameAvatar = function NameAvatar(props) {
58
58
  onDelUser = props.onDelUser,
59
59
  _props$textWidth = props.textWidth,
60
60
  textWidth = _props$textWidth === void 0 ? 42 : _props$textWidth,
61
- textClass = props.textClass;
61
+ textClass = props.textClass,
62
+ renderRightTopCmp = props.renderRightTopCmp,
63
+ _props$avatarTips = props.avatarTips,
64
+ avatarTips = _props$avatarTips === void 0 ? '' : _props$avatarTips;
62
65
  var hasAvatar = src && !src.match(/default\w*.jpg$/);
63
66
 
64
67
  var _useState = (0, _react.useState)(false),
@@ -103,7 +106,7 @@ var NameAvatar = function NameAvatar(props) {
103
106
  style: {
104
107
  width: size.width,
105
108
  height: size.width,
106
- verticalAlign: "top"
109
+ verticalAlign: 'top'
107
110
  },
108
111
  src: src
109
112
  });
@@ -120,11 +123,11 @@ var NameAvatar = function NameAvatar(props) {
120
123
  }
121
124
  }, /*#__PURE__*/_react["default"].createElement("div", {
122
125
  style: {
123
- display: "inline-block",
126
+ display: 'inline-block',
124
127
  width: "".concat(size.fontSize, "px"),
125
- margin: "0 auto",
126
- overflow: "hidden",
127
- whiteSpace: "nowrap",
128
+ margin: '0 auto',
129
+ overflow: 'hidden',
130
+ whiteSpace: 'nowrap',
128
131
  fontSize: "".concat(size.fontSize, "px"),
129
132
  lineHeight: "".concat(size.width, "px")
130
133
  }
@@ -134,7 +137,7 @@ var NameAvatar = function NameAvatar(props) {
134
137
  })));
135
138
  }
136
139
 
137
- var cuttedName = "";
140
+ var cuttedName = '';
138
141
  var cuttedNameLen = 0;
139
142
 
140
143
  for (var i = 0, lent = name.length; i < lent; i++) {
@@ -167,11 +170,11 @@ var NameAvatar = function NameAvatar(props) {
167
170
  className: "titaui-pc-avator__name-avatar-container",
168
171
  onMouseEnter: handleMouseEnter,
169
172
  onMouseLeave: handleMouseLeave
170
- }, /*#__PURE__*/_react["default"].createElement("div", {
173
+ }, renderRightTopCmp, /*#__PURE__*/_react["default"].createElement("div", {
171
174
  onClick: handleDelUser,
172
175
  onMouseLeave: handleCloseIconMouseLeave,
173
176
  onMouseEnter: handleCloseIconMouseEnter,
174
- className: "titaui-pc-avator__delete-wrapper ".concat(canDelUser && mouseIsEnterUser ? "titaui-pc-avator--enter" : ""),
177
+ className: "titaui-pc-avator__delete-wrapper ".concat(canDelUser && mouseIsEnterUser ? 'titaui-pc-avator--enter' : ''),
175
178
  style: {
176
179
  left: "".concat(size.width - 14, "px")
177
180
  }
@@ -185,7 +188,10 @@ var NameAvatar = function NameAvatar(props) {
185
188
  onClick: onClick,
186
189
  onMouseEnter: onMouseEnter,
187
190
  onMouseLeave: onMouseLeave
188
- }, hasAvatar ? renderImgAvatar() : renderTextAvatar()), showNameTips && isNameOverflow ? /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
191
+ }, avatarTips && /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
192
+ overlay: avatarTips,
193
+ placement: "top"
194
+ }, hasAvatar ? renderImgAvatar() : renderTextAvatar()), !avatarTips && (hasAvatar ? renderImgAvatar() : renderTextAvatar())), showNameTips && isNameOverflow ? /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
189
195
  overlay: /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
190
196
  name: name,
191
197
  id: userId
@@ -194,14 +200,17 @@ var NameAvatar = function NameAvatar(props) {
194
200
  }, /*#__PURE__*/_react["default"].createElement("span", {
195
201
  className: "titaui-pc-avator__name ".concat(textClass),
196
202
  style: {
197
- width: textWidth
203
+ maxWidth: textWidth
198
204
  }
199
205
  }, /*#__PURE__*/_react["default"].createElement("span", {
200
206
  ref: textRef
201
- }, name))) : /*#__PURE__*/_react["default"].createElement("span", {
207
+ }, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
208
+ name: name,
209
+ id: userId
210
+ })))) : /*#__PURE__*/_react["default"].createElement("span", {
202
211
  className: "titaui-pc-avator__name ".concat(textClass),
203
212
  style: {
204
- width: textWidth
213
+ maxWidth: textWidth
205
214
  }
206
215
  }, /*#__PURE__*/_react["default"].createElement("span", {
207
216
  ref: textRef
@@ -37,6 +37,6 @@
37
37
 
38
38
  .titaui-text-avatar--editable:hover {
39
39
  cursor: pointer;
40
- border-radius: 4px;
41
- border-color: #e9ecf0;
40
+ border-radius: 8px;
41
+ border-color: #dfe3ea;
42
42
  }
@@ -41,7 +41,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
41
41
 
42
42
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
43
43
 
44
- var preCls = "titaui-text-avatar";
44
+ var preCls = 'titaui-text-avatar';
45
45
 
46
46
  function TextAvatar(props) {
47
47
  var name = props.name,
@@ -54,7 +54,7 @@ function TextAvatar(props) {
54
54
  _props$isGetRoot = props.isGetRoot,
55
55
  isGetRoot = _props$isGetRoot === void 0 ? false : _props$isGetRoot,
56
56
  _props$extraCls = props.extraCls,
57
- extraCls = _props$extraCls === void 0 ? "" : _props$extraCls,
57
+ extraCls = _props$extraCls === void 0 ? '' : _props$extraCls,
58
58
  _props$nameTips = props.nameTips,
59
59
  nameTips = _props$nameTips === void 0 ? function (name) {
60
60
  return name;
@@ -83,7 +83,7 @@ function TextAvatar(props) {
83
83
  }; // 非编辑态,不可以弹出选人组件
84
84
 
85
85
 
86
- var FieldPerson = editable ? _userSelector["default"] : "span";
86
+ var FieldPerson = editable ? _userSelector["default"] : 'span';
87
87
 
88
88
  var renderAvatar = function renderAvatar() {
89
89
  if (showAvatar) {
@@ -91,7 +91,7 @@ function TextAvatar(props) {
91
91
  className: "".concat(preCls, "__img")
92
92
  }, /*#__PURE__*/_react["default"].createElement(_default2["default"], {
93
93
  userId: id,
94
- src: avatar !== null && avatar !== void 0 && avatar.HasAvatar || avatar !== null && avatar !== void 0 && avatar.hasAvatar ? avatar.medium : "",
94
+ src: avatar !== null && avatar !== void 0 && avatar.HasAvatar || avatar !== null && avatar !== void 0 && avatar.hasAvatar ? avatar.medium : '',
95
95
  color: avatar === null || avatar === void 0 ? void 0 : avatar.color,
96
96
  name: name,
97
97
  size: {
@@ -132,7 +132,7 @@ function TextAvatar(props) {
132
132
  }, /*#__PURE__*/_react["default"].createElement("span", {
133
133
  className: (0, _classnames["default"])(preCls, extraCls, _defineProperty({}, "".concat(preCls, "--editable"), editable)),
134
134
  style: {
135
- maxWidth: width
135
+ width: width
136
136
  }
137
137
  }, renderAvatar(), /*#__PURE__*/_react["default"].createElement("span", {
138
138
  ref: text,
@@ -143,7 +143,7 @@ function TextAvatar(props) {
143
143
  })))), !showTooltip && /*#__PURE__*/_react["default"].createElement("span", {
144
144
  className: (0, _classnames["default"])(preCls, extraCls, _defineProperty({}, "".concat(preCls, "--editable"), editable)),
145
145
  style: {
146
- maxWidth: width
146
+ width: width
147
147
  }
148
148
  }, renderAvatar(), /*#__PURE__*/_react["default"].createElement("span", {
149
149
  ref: text,
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>椭圆形</title>
4
+ <defs>
5
+ <pattern id="pattern-1" width="100%" height="100%" patternUnits="objectBoundingBox">
6
+ <use xlink:href="#image-2"></use>
7
+ </pattern>
8
+ <image id="image-2" width="14" height="14" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAADqADAAQAAAABAAAADgAAAAC98Dn6AAABo0lEQVQoFTWSwU7kMBBEq912WAYhJEba6+6BAwjxhfwcH8MVBJdhiGOb145IlHTHruqqbscense/WtW2oW3p2vq11vOn6uur1vs7nSWtY6jKtJoETJsNtVRX5VLkyyJvprSe5f0G2O81NMzUAkyBGdnaspsyZJVFsqThVd26XI+QzxoDkiAApq42YkW1Zb5yctnaZEuRTisKDcAHxCM5oADPB7tTNYhULwDdXD660uEKFL3+/+B7V8EPBOmbIlEAiSCaFpIed5fyoAg9y//OwVRsfgE+EaPAJJGPDGlR9IZ7euz4+kPPl9EzRd4BvwGMqTZUodA3i1MRgDEOg2UMKymrYPuJ/RdAt+wWbDokm3cQeTgIpSSlaXUHHfB9TKY3CCFxCDKTco7FibZbhYRq5OHgArUDsaBQAZ3I6QOBwdqu7JkKAXA2Mz1GfoHZwno46MSYKB3MK841XLbcIUKiQ82cxcyEM0CLYUHcz5FCoYzt+JNQ3AfkYRXgTmJA0QcF4g/gPcnx19gksxxgp4pHRD0sJaxxQBCNd9jlIY/jwEC0K/0AOvvST1WxS68AAAAASUVORK5CYII="></image>
9
+ </defs>
10
+ <g id="2、按钮" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
11
+ <g id="线性按钮Bottun" transform="translate(-881.000000, -339.000000)" fill="url(#pattern-1)" fill-rule="nonzero">
12
+ <g id="6" transform="translate(30.000000, 248.000000)">
13
+ <g id="编组-7" transform="translate(287.000000, 40.000000)">
14
+ <g id="编组-8" transform="translate(548.000000, 40.000000)">
15
+ <path d="M23,11 C26.8659932,11 30,14.1340068 30,18 C30,21.8659932 26.8659932,25 23,25 C19.1340068,25 16,21.8659932 16,18 C16,14.1340068 19.1340068,11 23,11 Z M23,12.2 C19.7967485,12.2 17.2,14.7967485 17.2,18 C17.2,21.2032515 19.7967485,23.8 23,23.8 C26.2032515,23.8 28.8,21.2032515 28.8,18 C28.8,14.7967485 26.2032515,12.2 23,12.2 Z" id="椭圆形"></path>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </g>
21
+ </svg>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>椭圆形</title>
4
+ <defs>
5
+ <pattern id="pattern-1" width="100%" height="100%" patternUnits="objectBoundingBox">
6
+ <use xlink:href="#image-2"></use>
7
+ </pattern>
8
+ <image id="image-2" width="14" height="14" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAADqADAAQAAAABAAAADgAAAAC98Dn6AAABx0lEQVQoFT2SQW7bQAxFSQ4l2YabhbtJgQA5Qc/RE3ST03bXO2TVRXdpArSL2JrRDPsoFDUwHor8n5/8kl6fnh7fVftS6/bHfftkVn/W2r6L1C+Hwy1Ua4g043lEbKq6iUi3tXc/RRQ7HssHd/tN/HC76VeqECT4KcAE/z80sDZNvnJ029xac4P4S7XIy4uKKoK6E1DrqUaTlrcfUIzetZaiMy3fzcIvl03u71Wu1xRNQqNJg1QZoJPsxtATQ89b70tzX85jzE7ux/Nz2UkJ5jDzCqmSq7mv8zeH+6Aw+hiupRRfVznf3d1SBdIVAv5pklO98xyu7rP2HmmVlzLY5bCaHc/ns6wib4Bfc9R/BgXPkfM7wFxNMUXHGGDU+E3N7LNGfEP1Qn2KMQoxfLBJpDgLyCTkqAmieiL+SO6Veoqc9jxuD5FCTh3QTMVQc/j4ogvxifwEuEHK/QjxIiKb7mRc2QEFU7LJxOgLwIk9jIY5e76CkmRy+TE4dvdUmACUTKA0sWHezp06A3AnTmXL3Wgcw6x47oWbhYSzfJqVyqmmTCPsM8h3zoZBureDvJOo58tO1bKPiFHEcHDGbH/HfHs9HeTOgvwFtVIeevLXjdUAAAAASUVORK5CYII="></image>
9
+ </defs>
10
+ <g id="2、按钮" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
11
+ <g id="线性按钮Bottun" transform="translate(-881.000000, -547.000000)" fill="url(#pattern-1)" fill-rule="nonzero">
12
+ <g id="6" transform="translate(30.000000, 248.000000)">
13
+ <g id="编组-7" transform="translate(287.000000, 40.000000)">
14
+ <g id="编组-8" transform="translate(548.000000, 248.000000)">
15
+ <path d="M23,11 C26.8659932,11 30,14.1340068 30,18 C30,21.8659932 26.8659932,25 23,25 C19.1340068,25 16,21.8659932 16,18 C16,14.1340068 19.1340068,11 23,11 Z M23,12.2 C19.7967485,12.2 17.2,14.7967485 17.2,18 C17.2,21.2032515 19.7967485,23.8 23,23.8 C26.2032515,23.8 28.8,21.2032515 28.8,18 C28.8,14.7967485 26.2032515,12.2 23,12.2 Z" id="椭圆形"></path>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ </g>
21
+ </svg>
@@ -0,0 +1,19 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="14px" height="14px" viewBox="0 0 14 14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <title>椭圆形</title>
4
+ <defs>
5
+ <pattern id="pattern-1" width="100%" height="100%" patternUnits="objectBoundingBox">
6
+ <use xlink:href="#image-2"></use>
7
+ </pattern>
8
+ <image id="image-2" width="14" height="14" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAADqADAAQAAAABAAAADgAAAAC98Dn6AAAA+UlEQVQoFVXSSVLDQBBEUQkzL+EAnID7b7kQLBltRL4OpaOpiB+tkjNraGvdtu1pWZZTOO585/wJzs/9bF7N6TI/QGzhNxwCQcN7hWeOs5FwNq97/s+Qd7qfOxJBMOs4G4k77iik41UwHi6CYJQT2RVfYXTLOTpe58FuUIhBuBjCj/AemDv2RshoPMF8G+4kibfwGtqJbmhr7I5O4xr/ObyEh9B1qhuj6UiM7nyf58egm5DXbJW1HWuS30xCI9pPaHA2t4MqfWYkUMzOLqUXZj+6cautUqMT9mF0kzorJJgPFbVjcyJGUXM/Cu/G38E0w1Sj6ow1t9jyBy9lWT02rrfMAAAAAElFTkSuQmCC"></image>
9
+ </defs>
10
+ <g id="2、按钮" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
11
+ <g id="面性按钮Bottun" transform="translate(-909.000000, -339.000000)" fill="url(#pattern-1)" fill-rule="nonzero">
12
+ <g id="6" transform="translate(30.000000, 248.000000)">
13
+ <g id="编组-7" transform="translate(209.000000, 40.000000)">
14
+ <path d="M677,51 C680.865993,51 684,54.1340068 684,58 C684,61.8659932 680.865993,65 677,65 C673.134007,65 670,61.8659932 670,58 C670,54.1340068 673.134007,51 677,51 Z M677,52.2 C673.796748,52.2 671.2,54.7967485 671.2,58 C671.2,61.2032515 673.796748,63.8 677,63.8 C680.203252,63.8 682.8,61.2032515 682.8,58 C682.8,54.7967485 680.203252,52.2 677,52.2 Z" id="椭圆形"></path>
15
+ </g>
16
+ </g>
17
+ </g>
18
+ </g>
19
+ </svg>
@@ -13,7 +13,7 @@
13
13
  align-items: center;
14
14
  justify-content: center;
15
15
  min-width: 64px;
16
- font-size: 13px;
16
+ font-size: 14px;
17
17
  padding: 0 12px;
18
18
  }
19
19
 
@@ -60,21 +60,35 @@
60
60
  background: #5c8eff;
61
61
  }
62
62
 
63
+ .titaui-rect-btn--secondary {
64
+ font-size: 14px;
65
+ font-weight: normal;
66
+ color: #2879ff;
67
+ line-height: 28px;
68
+ background: rgba(40, 121, 255, 0.2);
69
+ margin-right: 16px;
70
+ }
71
+
72
+ .titaui-rect-btn--secondary:hover {
73
+ color: #fff;
74
+ background-color: #2879ff;
75
+ }
76
+
63
77
  .titaui-rect-btn--cancel {
64
- color: #6F7886;
65
- border: 1px solid #DFE3EA;
66
- background: #FFFFFF;
78
+ color: #6f7886;
79
+ border: 1px solid #dfe3ea;
80
+ background: #ffffff;
67
81
  }
68
82
 
69
83
  .titaui-rect-btn--cancel:hover {
70
- color: #2879FF;
71
- border: 1px solid #2879FF;
84
+ color: #2879ff;
85
+ border: 1px solid #2879ff;
72
86
  }
73
87
 
74
88
  .titaui-rect-btn--delete {
75
- background: #FFFFFF;
76
- color: #F05E5E;
77
- border: 1px solid #F05E5E;
89
+ background: #ffffff;
90
+ color: #f05e5e;
91
+ border: 1px solid #f05e5e;
78
92
  }
79
93
 
80
94
  .titaui-rect-btn--delete:hover {
@@ -92,11 +106,31 @@
92
106
  user-select: none;
93
107
  }
94
108
 
109
+ .titaui-rect-btn--disabled:hover .titaui-rect-btn--default:hover {
110
+ background: #fff;
111
+ }
112
+
113
+ .titaui-rect-btn--disabled:hover .titaui-rect-btn--primary:hover {
114
+ background: #2879ff;
115
+ }
116
+
117
+ .titaui-rect-btn--disabled:hover .titaui-rect-btn--secondary:hover {
118
+ background: rgba(40, 121, 255, 0.2);
119
+ }
120
+
121
+ .titaui-rect-btn--disabled:hover .titaui-rect-btn--cancel:hover {
122
+ background: #ffffff;
123
+ }
124
+
125
+ .titaui-rect-btn--disabled:hover .titaui-rect-btn--delete:hover {
126
+ background: #ffffff;
127
+ }
128
+
95
129
  .titaui-rect-btn--primary.titaui-rect-btn--disabled {
96
- background: #93BCFF;
130
+ background: #93bcff;
97
131
  opacity: 1;
98
132
  }
99
133
 
100
134
  .titaui-rect-btn--primary.titaui-rect-btn--disabled:hover {
101
- background: #93BCFF;
135
+ background: #93bcff;
102
136
  }
@@ -34,7 +34,10 @@ function RectBtn(props) {
34
34
  className = _props$className === void 0 ? '' : _props$className,
35
35
  _props$disabled = props.disabled,
36
36
  disabled = _props$disabled === void 0 ? false : _props$disabled,
37
- style = props.style;
37
+ _props$loading = props.loading,
38
+ loading = _props$loading === void 0 ? false : _props$loading,
39
+ style = props.style,
40
+ children = props.children;
38
41
 
39
42
  var renderIcon = function renderIcon() {
40
43
  if (typeof icon === 'string') {
@@ -50,16 +53,19 @@ function RectBtn(props) {
50
53
  }, icon);
51
54
  };
52
55
 
53
- var onClickHandler = function onClickHandler() {
54
- if (disabled) return;
55
- onClick && onClick();
56
+ var onClickHandler = function onClickHandler(e) {
57
+ if (disabled || loading) return;
58
+
59
+ if (onClick) {
60
+ onClick(e);
61
+ }
56
62
  };
57
63
 
58
64
  return /*#__PURE__*/_react["default"].createElement("span", {
59
- className: (0, _classnames["default"])(precls, "".concat(precls, "--").concat(type), "".concat(precls, "--").concat(size), _defineProperty({}, "".concat(precls, "--disabled"), disabled), className),
65
+ className: (0, _classnames["default"])(precls, "".concat(precls, "--").concat(type), "".concat(precls, "--").concat(size), _defineProperty({}, "".concat(precls, "--disabled"), disabled || loading), className),
60
66
  style: style,
61
67
  onClick: onClickHandler
62
- }, icon && renderIcon(), props.children || text);
68
+ }, icon && renderIcon(), children || text);
63
69
  }
64
70
 
65
71
  var _default = RectBtn;
@@ -504,7 +504,7 @@ var _initialiseProps = function _initialiseProps() {
504
504
 
505
505
  this.getListData = /*#__PURE__*/function () {
506
506
  var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(isLoading) {
507
- var _this4$state2, keywords, type, users, departments, data, nextPage, toUserId, _this4$state3, status, cycle, year, okrPopType, url;
507
+ var _this4$state2, keywords, type, users, departments, data, nextPage, toUserId, _this4$state3, status, cycle, year, _this4$props2, okrPopType, _this4$props2$include, includeCreateFailApprovalOkr, url;
508
508
 
509
509
  return regeneratorRuntime.wrap(function _callee$(_context) {
510
510
  while (1) {
@@ -520,7 +520,7 @@ var _initialiseProps = function _initialiseProps() {
520
520
  case 2:
521
521
  _this4$state2 = _this4.state, keywords = _this4$state2.keywords, type = _this4$state2.type, users = _this4$state2.users, departments = _this4$state2.departments, data = _this4$state2.data, nextPage = _this4$state2.nextPage, toUserId = _this4$state2.toUserId;
522
522
  _this4$state3 = _this4.state, status = _this4$state3.status, cycle = _this4$state3.cycle, year = _this4$state3.year;
523
- okrPopType = _this4.props.okrPopType;
523
+ _this4$props2 = _this4.props, okrPopType = _this4$props2.okrPopType, _this4$props2$include = _this4$props2.includeCreateFailApprovalOkr, includeCreateFailApprovalOkr = _this4$props2$include === void 0 ? false : _this4$props2$include;
524
524
  cycle = cycle || '-1';
525
525
  year = year || -1;
526
526
  status = status || 0;
@@ -564,7 +564,8 @@ var _initialiseProps = function _initialiseProps() {
564
564
  }).join(','),
565
565
  searchKr: okrPopType,
566
566
  // 是否搜索KR:默认为0-不搜索,1-只有对齐目标弹层可以搜索KR
567
- toUserId: toUserId
567
+ toUserId: toUserId,
568
+ includeCreateFailApprovalOkr: includeCreateFailApprovalOkr
568
569
  }).then(function (res) {
569
570
  _this4.pending = false;
570
571
  var resData = res && res.Data && res.Data.works || [];
@@ -629,9 +630,9 @@ var _initialiseProps = function _initialiseProps() {
629
630
  var _this4$state4 = _this4.state,
630
631
  selected = _this4$state4.selected,
631
632
  selectOkr = _this4$state4.selectOkr;
632
- var _this4$props2 = _this4.props,
633
- onConfirm = _this4$props2.onConfirm,
634
- parentId = _this4$props2.parentId;
633
+ var _this4$props3 = _this4.props,
634
+ onConfirm = _this4$props3.onConfirm,
635
+ parentId = _this4$props3.parentId;
635
636
  var parentType = selected && selected.mileStoneId ? 2 : 1; // 临时注入
636
637
 
637
638
  var data = _objectSpread(_objectSpread({}, selected), {}, {
@@ -2,19 +2,23 @@
2
2
  display: inline-block;
3
3
  width: 16px;
4
4
  height: 16px;
5
- background: #FFFFFF;
5
+ background: #ffffff;
6
6
  border-radius: 4px;
7
- border: 1px solid #DFE3EA;
7
+ border: 1px solid #bfc7d5;
8
8
  cursor: pointer;
9
9
  box-sizing: border-box;
10
10
  }
11
11
 
12
+ .titaui-checkbox:hover {
13
+ border: 1px solid #2879ff;
14
+ }
15
+
12
16
  .titaui-checkbox--checked {
13
17
  background: url(./checked.svg) transparent no-repeat 50% 50%;
14
18
  border: none;
15
19
  }
16
20
 
17
21
  .titaui-checkbox--disabled {
18
- background-color: #F0F2F5;
22
+ background-color: #f0f2f5;
19
23
  cursor: not-allowed;
20
24
  }
@@ -0,0 +1,95 @@
1
+ .contact-kefu {
2
+ position: relative;
3
+ height: 100vh;
4
+ background: #f0f4fa;
5
+ overflow: hidden;
6
+ }
7
+
8
+ .contact-kefu__kefu {
9
+ position: absolute;
10
+ bottom: 74px;
11
+ right: 24px;
12
+ z-index: 2;
13
+ }
14
+
15
+ .contact-kefu__try-kefu {
16
+ position: absolute;
17
+ bottom: 134px;
18
+ right: 24px;
19
+ z-index: 2;
20
+ }
21
+
22
+ .contact-kefu__kefu {
23
+ width: 42px;
24
+ height: 42px;
25
+ background: url("./img/kefu.svg") no-repeat;
26
+ background-color: #fff;
27
+ background-size: 42px;
28
+ box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
29
+ cursor: pointer;
30
+ border-radius: 50%;
31
+ }
32
+
33
+ .contact-kefu__hidden {
34
+ background-image: none;
35
+ }
36
+
37
+ .contact-kefu__cancel {
38
+ height: 100%;
39
+ background: url("./img/canceled.svg") 50% 50% no-repeat;
40
+ animation-duration: 0.3s;
41
+ animation-name: kefuActive;
42
+ }
43
+
44
+ .contact-kefu__popup {
45
+ width: 332px;
46
+ height: 376px;
47
+ display: flex;
48
+ flex-direction: column;
49
+ justify-content: center;
50
+ align-items: center;
51
+ background: #ffffff;
52
+ box-shadow: 0px 8px 24px 0px rgba(127, 145, 180, 0.16);
53
+ border-radius: 24px;
54
+ }
55
+
56
+ .contact-kefu__popup-title {
57
+ font-size: 20px;
58
+ font-weight: 600;
59
+ color: #141c28;
60
+ line-height: 30px;
61
+ }
62
+
63
+ .contact-kefu__popup-content {
64
+ margin-top: 4px;
65
+ font-size: 14px;
66
+ font-weight: normal;
67
+ color: #6f7886;
68
+ line-height: 22px;
69
+ }
70
+
71
+ .contact-kefu__popup-img {
72
+ width: 200px;
73
+ height: 200px;
74
+ margin-top: 24px;
75
+ }
76
+
77
+ @keyframes contentOpacity {
78
+ from {
79
+ opacity: 0;
80
+ }
81
+
82
+ to {
83
+ opacity: 1;
84
+ }
85
+ }
86
+
87
+ @keyframes kefuActive {
88
+ 0% {
89
+ transform: rotate(0deg);
90
+ }
91
+
92
+ 100% {
93
+ transform: rotate(-90deg);
94
+ }
95
+ }