@titaui/pc 1.11.27 → 1.11.30
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/lib/components/avatar/text-avatar/index.css +7 -0
- package/lib/components/avatar/text-avatar/index.js +32 -7
- package/lib/components/button/icon-btn/index.js +17 -8
- package/lib/components/button/rect-btn/index.js +7 -7
- package/lib/components/change-okr-modal/Item.js +14 -14
- package/lib/components/drawer/index.js +4 -4
- package/lib/components/drop-selector/index.js +25 -10
- package/lib/components/dynamic/constant.js +33 -32
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/dynamic-footer.js +9 -9
- package/lib/components/dynamic/dynamic-item/dynamic-ai-dialy/index.js +1 -1
- package/lib/components/dynamic/dynamic-item/dynamic-interview/img/wifi.svg +24 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.css +51 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview/index.js +50 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview/interview-content.js +65 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/img/wifi.svg +24 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.css +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/index.js +61 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/interview-content.js +69 -0
- package/lib/components/dynamic/dynamic-item/dynamic-kr/index.js +5 -5
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +6 -6
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +10 -10
- package/lib/components/dynamic/dynamic-item/dynamic-reply/index.js +13 -13
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +9 -9
- package/lib/components/dynamic/dynamic-item/index.js +50 -32
- package/lib/components/dynamic/dynamic-list/index.js +4 -4
- package/lib/components/e-priority/index.js +8 -8
- package/lib/components/eReport/eReportShare/index.js +11 -11
- package/lib/components/form/form-fields/date/index.css +24 -0
- package/lib/components/form/form-fields/date/index.js +102 -0
- package/lib/components/form/form-fields/input/index.js +10 -10
- package/lib/components/form/form-fields/user/index.css +23 -3
- package/lib/components/form/form-fields/user/index.js +18 -8
- package/lib/components/form/form-fields/user/user-input.js +15 -6
- package/lib/components/form/index.js +10 -3
- package/lib/components/grid-layout/sub-employee-okr/person-okr.js +5 -5
- package/lib/components/icon-button-list/index.js +3 -3
- package/lib/components/img-viewer/index.css +3 -3
- package/lib/components/img-viewer/index.js +11 -11
- package/lib/components/menus/components/menu-tree/images/interview-menu/my-interview.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/template.svg +16 -0
- package/lib/components/menus/components/menu-tree/images/interview-menu/todo.svg +16 -0
- package/lib/components/menus/components/menu-tree/index.css +4 -2
- package/lib/components/menus/components/menu-tree/tree-node/index.css +85 -1
- package/lib/components/menus/export-modules/interview-menus/constant.js +30 -0
- package/lib/components/menus/export-modules/interview-menus/handle-highlight.js +63 -0
- package/lib/components/menus/export-modules/interview-menus/index.css +7 -0
- package/lib/components/menus/export-modules/interview-menus/index.js +128 -0
- package/lib/components/menus/index.js +11 -5
- package/lib/components/nav-top/components/menu/index.js +14 -14
- package/lib/components/nav-top/components/user-message/components/inform/inform-item.js +25 -19
- package/lib/components/nav-top/components/user-message/components/remind/remind-item.js +48 -10
- package/lib/components/nav-top/components/user-message/constant.js +1 -0
- package/lib/components/nav-top/components/user-message/hrMessage.js +22 -19
- package/lib/components/nav-top/components/user-message/index.js +23 -20
- package/lib/components/nav-top/request.apis.js +3 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-priority-dropdown.js +7 -7
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.js +3 -2
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/range-picker-pop.js +10 -0
- package/lib/components/okr-detail/detail-header/actions.js +23 -23
- package/lib/components/okr-detail/index.js +19 -19
- package/lib/components/okr-detail/okr-list/index.js +5 -3
- package/lib/components/okr-flow/child-node/index.css +6 -6
- package/lib/components/okr-flow/child-node/work-node.js +21 -21
- package/lib/components/okr-flow/export-modal/index.js +37 -19
- package/lib/components/okr-flow/export-modules/okr-search-panel/index.js +14 -14
- package/lib/components/okr-flow/okr-map/index.js +5 -5
- package/lib/components/okr-flow/request-apis.js +4 -4
- package/lib/components/okr-flow/root-node/index.js +25 -24
- package/lib/components/okr-flow/utils/index.js +5 -5
- package/lib/components/okr-flow/utils/tree-handler.js +17 -17
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +30 -30
- package/lib/components/pagination/index.css +3 -3
- package/lib/components/pagination/select.css +58 -23
- package/lib/components/period-selector/index.css +3 -3
- package/lib/components/period-selector/index.js +11 -11
- package/lib/components/picker/components/panels/date-panel/date-body.js +118 -0
- package/lib/components/picker/components/panels/date-panel/date-head.js +87 -0
- package/lib/components/picker/components/panels/date-panel/index.css +14 -0
- package/lib/components/picker/components/panels/date-panel/index.js +49 -0
- package/lib/components/picker/components/panels/month-panel/index.css +27 -0
- package/lib/components/picker/components/panels/month-panel/index.js +63 -0
- package/lib/components/picker/components/panels/month-panel/month-body.js +89 -0
- package/lib/components/picker/components/panels/month-panel/month-head.js +47 -0
- package/lib/components/picker/components/panels/panel-body/index.js +53 -0
- package/lib/components/picker/components/panels/panel-head/index.js +48 -0
- package/lib/components/picker/components/panels/year-panel/index.css +23 -0
- package/lib/components/picker/components/panels/year-panel/index.js +65 -0
- package/lib/components/picker/components/panels/year-panel/year-body.js +92 -0
- package/lib/components/picker/components/panels/year-panel/year-head.js +35 -0
- package/lib/components/picker/components/picker-trigger/index.css +57 -0
- package/lib/components/picker/components/picker-trigger/index.js +94 -0
- package/lib/components/picker/context.js +15 -0
- package/lib/components/picker/index.css +121 -0
- package/lib/components/picker/index.js +13 -0
- package/lib/components/picker/picker-panels.js +182 -0
- package/lib/components/picker/picker.js +132 -0
- package/lib/components/picker/type.js +5 -0
- package/lib/components/picker/utils.js +28 -0
- package/lib/components/popup/index.js +4 -4
- package/lib/components/radio/index.css +9 -9
- package/lib/components/scrollbar/scroll-mask/index.js +1 -1
- package/lib/components/superset-charts/utils/axios.js +5 -5
- package/lib/components/survey-model/index.css +18 -18
- package/lib/components/survey-model/instance.js +1 -1
- package/lib/components/task-tree/helper.js +61 -0
- package/lib/components/task-tree/images/P1.svg +15 -0
- package/lib/components/task-tree/images/P2.svg +15 -0
- package/lib/components/task-tree/images/P3.svg +15 -0
- package/lib/components/task-tree/images/P4.svg +15 -0
- package/lib/components/task-tree/images/P5.svg +15 -0
- package/lib/components/task-tree/images/arrow.svg +9 -0
- package/lib/components/task-tree/images/empty-131.png +0 -0
- package/lib/components/task-tree/images/followed.svg +33 -0
- package/lib/components/task-tree/images/nice.svg +108 -0
- package/lib/components/task-tree/images/struc12.png +0 -0
- package/lib/components/task-tree/images/struc2.png +0 -0
- package/lib/components/task-tree/images/xialat-s.svg +13 -0
- package/lib/components/task-tree/index.js +22 -0
- package/lib/components/task-tree/mock.js +944 -0
- package/lib/components/task-tree/precls.js +8 -0
- package/lib/components/task-tree/request-apis.js +88 -0
- package/lib/components/task-tree/task-item-node/constant.js +45 -0
- package/lib/components/task-tree/task-item-node/e-empty.js +29 -0
- package/lib/components/task-tree/task-item-node/e-project.js +212 -0
- package/lib/components/task-tree/task-item-node/e-status-dropdown.js +94 -0
- package/lib/components/task-tree/task-item-node/e-task.js +426 -0
- package/lib/components/task-tree/task-item-node/get-process-color.js +62 -0
- package/lib/components/task-tree/task-item-node/index.css +289 -0
- package/lib/components/task-tree/task-item-node/task-node-render.js +43 -0
- package/lib/components/task-tree/task-tree.css +16 -0
- package/lib/components/task-tree/task-tree.js +49 -0
- package/lib/components/time-picker/index.css +123 -0
- package/lib/components/time-picker/index.js +13 -0
- package/lib/components/time-picker/time-picker-selector.js +138 -0
- package/lib/components/time-picker/time-picker.js +336 -0
- package/lib/components/time-picker/timer-picker-input.js +96 -0
- package/lib/components/time-picker/utils.js +52 -0
- package/lib/components/user-selector/select-tree/tree-nodes/tree-person-node/index.css +1 -0
- package/lib/components-v1/radio/radio.js +3 -3
- package/lib/components-v1/radio/style/index.css +8 -8
- package/lib/pages/aha2021/index.js +5 -1
- package/lib/pages/okr-map/export-modules/okr-map/header/index.js +24 -24
- package/lib/pages/okr-map/export-modules/okr-map/okr-map.js +31 -31
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +2 -2
- package/lib/pages/okr-map/export-modules/share-okr-page/header/index.js +11 -11
- package/lib/pages/okr-map/export-modules/share-okr-page/share-okr-map.js +8 -8
- package/lib/pages/okr-map/number-select/index.js +2 -2
- package/lib/utils/auth.js +6 -6
- package/lib/utils/bs-global.js +12 -12
- package/lib/utils/hooks.js +72 -0
- package/lib/utils/open-data.js +26 -26
- package/package.json +5 -2
- package/.eslintignore +0 -3
- package/.eslintrc.js +0 -223
- package/.husky/pre-commit +0 -4
- package/.prettierignore +0 -31
- package/.prettierrc.js +0 -90
- package/.vscode/settings.json +0 -5
|
@@ -17,6 +17,8 @@ var _tooltip = _interopRequireDefault(require("../../tooltip"));
|
|
|
17
17
|
|
|
18
18
|
var _userSelector = _interopRequireDefault(require("../../user-selector"));
|
|
19
19
|
|
|
20
|
+
var _default2 = _interopRequireDefault(require("../default"));
|
|
21
|
+
|
|
20
22
|
require("./index.css");
|
|
21
23
|
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -56,7 +58,11 @@ function TextAvatar(props) {
|
|
|
56
58
|
_props$nameTips = props.nameTips,
|
|
57
59
|
nameTips = _props$nameTips === void 0 ? function (name) {
|
|
58
60
|
return name;
|
|
59
|
-
} : _props$nameTips
|
|
61
|
+
} : _props$nameTips,
|
|
62
|
+
_props$showAvatar = props.showAvatar,
|
|
63
|
+
showAvatar = _props$showAvatar === void 0 ? false : _props$showAvatar,
|
|
64
|
+
_props$avatar = props.avatar,
|
|
65
|
+
avatar = _props$avatar === void 0 ? {} : _props$avatar;
|
|
60
66
|
|
|
61
67
|
var _useState = (0, _react.useState)(false),
|
|
62
68
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -78,6 +84,29 @@ function TextAvatar(props) {
|
|
|
78
84
|
|
|
79
85
|
|
|
80
86
|
var FieldPerson = editable ? _userSelector["default"] : "span";
|
|
87
|
+
|
|
88
|
+
var renderAvatar = function renderAvatar() {
|
|
89
|
+
if (showAvatar) {
|
|
90
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
91
|
+
className: "".concat(preCls, "__img")
|
|
92
|
+
}, /*#__PURE__*/_react["default"].createElement(_default2["default"], {
|
|
93
|
+
userId: id,
|
|
94
|
+
src: avatar !== null && avatar !== void 0 && avatar.HasAvatar || avatar !== null && avatar !== void 0 && avatar.hasAvatar ? avatar.medium : "",
|
|
95
|
+
color: avatar === null || avatar === void 0 ? void 0 : avatar.color,
|
|
96
|
+
name: name,
|
|
97
|
+
size: {
|
|
98
|
+
fontSize: 12,
|
|
99
|
+
width: 24,
|
|
100
|
+
textNum: 1
|
|
101
|
+
}
|
|
102
|
+
}));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
106
|
+
className: "".concat(preCls, "__icon")
|
|
107
|
+
});
|
|
108
|
+
};
|
|
109
|
+
|
|
81
110
|
return /*#__PURE__*/_react["default"].createElement(FieldPerson, {
|
|
82
111
|
multiple: false,
|
|
83
112
|
selectNodes: {},
|
|
@@ -105,9 +134,7 @@ function TextAvatar(props) {
|
|
|
105
134
|
style: {
|
|
106
135
|
maxWidth: width
|
|
107
136
|
}
|
|
108
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
109
|
-
className: "".concat(preCls, "__icon")
|
|
110
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
137
|
+
}, renderAvatar(), /*#__PURE__*/_react["default"].createElement("span", {
|
|
111
138
|
ref: text,
|
|
112
139
|
className: "".concat(preCls, "__name")
|
|
113
140
|
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
@@ -118,9 +145,7 @@ function TextAvatar(props) {
|
|
|
118
145
|
style: {
|
|
119
146
|
maxWidth: width
|
|
120
147
|
}
|
|
121
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
122
|
-
className: "".concat(preCls, "__icon")
|
|
123
|
-
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
148
|
+
}, renderAvatar(), /*#__PURE__*/_react["default"].createElement("span", {
|
|
124
149
|
ref: text,
|
|
125
150
|
className: "".concat(preCls, "__name")
|
|
126
151
|
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
@@ -11,11 +11,19 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
|
|
12
12
|
require("./index.css");
|
|
13
13
|
|
|
14
|
+
var _excluded = ["border", "theme", "onClick", "disabled", "icon"];
|
|
15
|
+
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
17
|
|
|
18
|
+
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); }
|
|
19
|
+
|
|
16
20
|
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; }
|
|
17
21
|
|
|
18
|
-
var
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
var precls = 'titaui-icon-btn';
|
|
19
27
|
|
|
20
28
|
function IconBtn(props) {
|
|
21
29
|
var _classNames;
|
|
@@ -24,15 +32,16 @@ function IconBtn(props) {
|
|
|
24
32
|
theme = props.theme,
|
|
25
33
|
onClick = props.onClick,
|
|
26
34
|
disabled = props.disabled,
|
|
27
|
-
icon = props.icon
|
|
35
|
+
icon = props.icon,
|
|
36
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
28
37
|
|
|
29
38
|
var onClickHandler = function onClickHandler() {
|
|
30
39
|
if (disabled) return;
|
|
31
|
-
onClick
|
|
40
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
32
41
|
};
|
|
33
42
|
|
|
34
43
|
var renderIcon = function renderIcon() {
|
|
35
|
-
if (typeof icon ===
|
|
44
|
+
if (typeof icon === 'string') {
|
|
36
45
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
37
46
|
className: "".concat(precls, "__icon")
|
|
38
47
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -45,18 +54,18 @@ function IconBtn(props) {
|
|
|
45
54
|
}, icon);
|
|
46
55
|
};
|
|
47
56
|
|
|
48
|
-
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
57
|
+
return /*#__PURE__*/_react["default"].createElement("span", _extends({
|
|
49
58
|
className: (0, _classnames["default"])(precls, "".concat(precls, "--").concat(theme), (_classNames = {}, _defineProperty(_classNames, "".concat(precls, "--border"), border), _defineProperty(_classNames, "".concat(precls, "--disabled"), disabled), _classNames)),
|
|
50
59
|
onClick: onClickHandler
|
|
51
|
-
}, renderIcon());
|
|
60
|
+
}, restProps), renderIcon());
|
|
52
61
|
}
|
|
53
62
|
|
|
54
63
|
IconBtn.defaultProps = {
|
|
55
64
|
border: false,
|
|
56
|
-
theme:
|
|
65
|
+
theme: 'gray',
|
|
57
66
|
onClick: function onClick() {},
|
|
58
67
|
disabled: false,
|
|
59
|
-
icon:
|
|
68
|
+
icon: 'tu-icon-smile'
|
|
60
69
|
};
|
|
61
70
|
var _default = IconBtn;
|
|
62
71
|
exports["default"] = _default;
|
|
@@ -17,27 +17,27 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
17
17
|
|
|
18
18
|
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; }
|
|
19
19
|
|
|
20
|
-
var precls =
|
|
20
|
+
var precls = 'titaui-rect-btn';
|
|
21
21
|
|
|
22
22
|
function RectBtn(props) {
|
|
23
23
|
var _props$type = props.type,
|
|
24
|
-
type = _props$type === void 0 ?
|
|
24
|
+
type = _props$type === void 0 ? 'default' : _props$type,
|
|
25
25
|
_props$icon = props.icon,
|
|
26
|
-
icon = _props$icon === void 0 ?
|
|
26
|
+
icon = _props$icon === void 0 ? '' : _props$icon,
|
|
27
27
|
_props$text = props.text,
|
|
28
|
-
text = _props$text === void 0 ? (0, _getLocale.getLocale)(
|
|
28
|
+
text = _props$text === void 0 ? (0, _getLocale.getLocale)('OKR_MyO_Butt_Determine') : _props$text,
|
|
29
29
|
_props$size = props.size,
|
|
30
|
-
size = _props$size === void 0 ?
|
|
30
|
+
size = _props$size === void 0 ? 'normal' : _props$size,
|
|
31
31
|
_props$onClick = props.onClick,
|
|
32
32
|
onClick = _props$onClick === void 0 ? function () {} : _props$onClick,
|
|
33
33
|
_props$className = props.className,
|
|
34
|
-
className = _props$className === void 0 ?
|
|
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
37
|
style = props.style;
|
|
38
38
|
|
|
39
39
|
var renderIcon = function renderIcon() {
|
|
40
|
-
if (typeof icon ===
|
|
40
|
+
if (typeof icon === 'string') {
|
|
41
41
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
42
42
|
className: "".concat(precls, "__icon")
|
|
43
43
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -54,27 +54,27 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
54
54
|
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; }
|
|
55
55
|
|
|
56
56
|
var colorMap = {
|
|
57
|
-
1:
|
|
58
|
-
2:
|
|
59
|
-
3:
|
|
60
|
-
4:
|
|
57
|
+
1: '132,117,255',
|
|
58
|
+
2: '79,115,255',
|
|
59
|
+
3: '46,156,255',
|
|
60
|
+
4: '12,192,201'
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
var formatKeywordsFunc = function formatKeywordsFunc(str, key) {
|
|
64
|
-
var reg = new RegExp("(".concat(key, ")"),
|
|
64
|
+
var reg = new RegExp("(".concat(key, ")"), 'g');
|
|
65
65
|
var newstr = str.replace(reg, "<span style=\"color: #2879ff;\">".concat(key, "</span>"));
|
|
66
66
|
return newstr;
|
|
67
67
|
};
|
|
68
68
|
|
|
69
69
|
var unFormatKeywordsFunc = function unFormatKeywordsFunc(str, key) {
|
|
70
70
|
var regExpKey = "<span style=\"color: #2879ff;\">".concat(key, "</span>");
|
|
71
|
-
var reg = new RegExp("(".concat(regExpKey, ")"),
|
|
71
|
+
var reg = new RegExp("(".concat(regExpKey, ")"), 'g');
|
|
72
72
|
var newstr = str.replace(reg, key);
|
|
73
73
|
return newstr;
|
|
74
74
|
};
|
|
75
75
|
|
|
76
76
|
var htmlToText = function htmlToText(text) {
|
|
77
|
-
var div = document.createElement(
|
|
77
|
+
var div = document.createElement('div');
|
|
78
78
|
div.innerHTML = text;
|
|
79
79
|
var newtext = div.innerText || div.textContent;
|
|
80
80
|
return newtext;
|
|
@@ -153,11 +153,11 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
153
153
|
|
|
154
154
|
_this.getCycleText = function () {
|
|
155
155
|
var data = _this.props.data;
|
|
156
|
-
var hzNum = [(0, _getLocale.getLocale)(
|
|
156
|
+
var hzNum = [(0, _getLocale.getLocale)('OKR_MyO_Pop_1stQuarter'), (0, _getLocale.getLocale)('OKR_MyO_Pop_2ndQuarter'), (0, _getLocale.getLocale)('OKR_MyO_Pop_3rdQuarter'), (0, _getLocale.getLocale)('OKR_MyO_Pop_4thQuarter')];
|
|
157
157
|
|
|
158
158
|
switch (data.cycleType) {
|
|
159
159
|
case 1:
|
|
160
|
-
return "".concat(data.annualNum).concat(_getLocale.isEn ?
|
|
160
|
+
return "".concat(data.annualNum).concat(_getLocale.isEn ? '' : '年');
|
|
161
161
|
|
|
162
162
|
case 2:
|
|
163
163
|
return hzNum[data.yqmnum - 1];
|
|
@@ -169,10 +169,10 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
169
169
|
return "".concat((0, _constant2.getMonth)()[data.yqmnum - 1], "-").concat((0, _constant2.getMonth)()[((data.yqmnum + 1) % 12 || 12) - 1]);
|
|
170
170
|
|
|
171
171
|
case 5:
|
|
172
|
-
return data.yqmnum === 1 ? (0, _getLocale.getLocale)(
|
|
172
|
+
return data.yqmnum === 1 ? (0, _getLocale.getLocale)('OKR_MyO_Pop_Firsthalf') : (0, _getLocale.getLocale)('OKR_MyO_Pop_Secondhalf');
|
|
173
173
|
|
|
174
174
|
default:
|
|
175
|
-
return (0, _getLocale.getLocale)(
|
|
175
|
+
return (0, _getLocale.getLocale)('Mod_Customization');
|
|
176
176
|
}
|
|
177
177
|
};
|
|
178
178
|
|
|
@@ -230,7 +230,7 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
230
230
|
}))));
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
return
|
|
233
|
+
return '';
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
236
|
|
|
@@ -290,12 +290,12 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
290
290
|
__html: okrData.workName
|
|
291
291
|
}
|
|
292
292
|
}))), this.isObjectiveRelevanceKr && isShowKr && data.Krs.length > 0 && /*#__PURE__*/_react["default"].createElement("span", {
|
|
293
|
-
className: "".concat(isExpand ?
|
|
293
|
+
className: "".concat(isExpand ? 'tu-icon-arrow-up' : 'tu-icon-arrow-down')
|
|
294
294
|
})), /*#__PURE__*/_react["default"].createElement(_styledComponents.ItemBottom, null, !isShowKr && [/*#__PURE__*/_react["default"].createElement("span", null, (0, _constant.getTypeMap)()[data.okrType]), /*#__PURE__*/_react["default"].createElement(_styledComponents.Separator, null)], /*#__PURE__*/_react["default"].createElement(_styledComponents.PricipleName, null, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
295
295
|
name: data.principalUser.name,
|
|
296
296
|
id: data.principalUser.userId
|
|
297
297
|
})), /*#__PURE__*/_react["default"].createElement(_styledComponents.Separator, null), /*#__PURE__*/_react["default"].createElement("span", null, data.startDate, "-", data.endDate), isShowKr && [/*#__PURE__*/_react["default"].createElement(_styledComponents.Separator, null), /*#__PURE__*/_react["default"].createElement("span", null, data.statusName)])), isShowKr && (this.isObjectiveRelevanceKr || !this.isObjectiveRelevanceKr && okrData.hasSub) && /*#__PURE__*/_react["default"].createElement(_styledComponents.ItemKrContainer, {
|
|
298
|
-
className: "".concat(isExpand ?
|
|
298
|
+
className: "".concat(isExpand ? 'slideIn' : 'slideOut')
|
|
299
299
|
}, this.renderItemKr()));
|
|
300
300
|
}
|
|
301
301
|
}]);
|
|
@@ -54,7 +54,7 @@ var Drawer = function Drawer(props) {
|
|
|
54
54
|
|
|
55
55
|
var visible = props.visible,
|
|
56
56
|
_props$placement = props.placement,
|
|
57
|
-
placement = _props$placement === void 0 ?
|
|
57
|
+
placement = _props$placement === void 0 ? 'right' : _props$placement,
|
|
58
58
|
children = props.children,
|
|
59
59
|
_props$mask = props.mask,
|
|
60
60
|
mask = _props$mask === void 0 ? false : _props$mask,
|
|
@@ -96,7 +96,7 @@ var Drawer = function Drawer(props) {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}, /*#__PURE__*/_react["default"].createElement(_rcDrawer["default"], _extends({
|
|
99
|
-
className: (0, _classnames["default"])(
|
|
99
|
+
className: (0, _classnames["default"])('titaui-drawer', 'document-mouse-event-ignore', className),
|
|
100
100
|
style: _objectSpread(_objectSpread({}, style), {}, {
|
|
101
101
|
zIndex: zIndex
|
|
102
102
|
})
|
|
@@ -146,7 +146,7 @@ function DrawerHeader(_ref) {
|
|
|
146
146
|
onClick: manager && manager.goBack
|
|
147
147
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
148
148
|
className: "tu-icon-fanhui"
|
|
149
|
-
}), (0, _getLocale.getLocale)(
|
|
149
|
+
}), (0, _getLocale.getLocale)('Mod_Back')), showBackBtn && hasContent && /*#__PURE__*/_react["default"].createElement("div", {
|
|
150
150
|
className: "titaui-drawer-header-divider"
|
|
151
151
|
}), hasContent && content, /*#__PURE__*/_react["default"].createElement("div", {
|
|
152
152
|
style: {
|
|
@@ -155,7 +155,7 @@ function DrawerHeader(_ref) {
|
|
|
155
155
|
}), /*#__PURE__*/_react["default"].createElement("div", null, actionComponent), displayActions.map(function (action) {
|
|
156
156
|
return /*#__PURE__*/_react["default"].createElement(_headerAction["default"], action);
|
|
157
157
|
}), !!collapsedActions.length && /*#__PURE__*/_react["default"].createElement(_headerAction["default"], {
|
|
158
|
-
title: (0, _getLocale.getLocale)(
|
|
158
|
+
title: (0, _getLocale.getLocale)('Mod_MoreOperate'),
|
|
159
159
|
icon: "tu-icon-10",
|
|
160
160
|
children: collapsedActions
|
|
161
161
|
}), showClose && /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -18,14 +18,12 @@ var _popup = _interopRequireDefault(require("../popup"));
|
|
|
18
18
|
|
|
19
19
|
var _checkbox = _interopRequireDefault(require("../checkbox"));
|
|
20
20
|
|
|
21
|
-
var _radio = _interopRequireDefault(require("../radio"));
|
|
22
|
-
|
|
23
21
|
require("./index.css");
|
|
24
22
|
|
|
25
23
|
var _iconItem = _interopRequireDefault(require("./icon-item"));
|
|
26
24
|
|
|
27
25
|
var _excluded = ["name", "multi", "children", "onClick", "className"],
|
|
28
|
-
_excluded2 = ["trigger", "triggerIcon", "destroyPopupOnHide", "popupPlacement", "hideOnChange", "onChange", "canEdit"];
|
|
26
|
+
_excluded2 = ["trigger", "triggerIcon", "destroyPopupOnHide", "popupPlacement", "hideOnChange", "onChange", "canEdit", "popAction", "onPopupVisibleChange"];
|
|
29
27
|
|
|
30
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
31
29
|
|
|
@@ -57,7 +55,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
57
55
|
|
|
58
56
|
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; }
|
|
59
57
|
|
|
60
|
-
var preCls =
|
|
58
|
+
var preCls = 'titaui-drop-selector';
|
|
61
59
|
var IconItem = _iconItem["default"];
|
|
62
60
|
exports.IconItem = IconItem;
|
|
63
61
|
|
|
@@ -98,7 +96,7 @@ function DropSelectorLayer(props) {
|
|
|
98
96
|
var _classNames;
|
|
99
97
|
|
|
100
98
|
var _props$className = props.className,
|
|
101
|
-
className = _props$className === void 0 ?
|
|
99
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
102
100
|
_props$multi = props.multi,
|
|
103
101
|
multi = _props$multi === void 0 ? false : _props$multi,
|
|
104
102
|
onItemClick = props.onItemClick,
|
|
@@ -135,12 +133,15 @@ function DropSelector(props) {
|
|
|
135
133
|
_props$destroyPopupOn = props.destroyPopupOnHide,
|
|
136
134
|
destroyPopupOnHide = _props$destroyPopupOn === void 0 ? true : _props$destroyPopupOn,
|
|
137
135
|
_props$popupPlacement = props.popupPlacement,
|
|
138
|
-
popupPlacement = _props$popupPlacement === void 0 ?
|
|
136
|
+
popupPlacement = _props$popupPlacement === void 0 ? 'bottom' : _props$popupPlacement,
|
|
139
137
|
_props$hideOnChange = props.hideOnChange,
|
|
140
138
|
hideOnChange = _props$hideOnChange === void 0 ? true : _props$hideOnChange,
|
|
141
139
|
onChange = props.onChange,
|
|
142
140
|
_props$canEdit = props.canEdit,
|
|
143
141
|
canEdit = _props$canEdit === void 0 ? true : _props$canEdit,
|
|
142
|
+
_props$popAction = props.popAction,
|
|
143
|
+
popAction = _props$popAction === void 0 ? ['click'] : _props$popAction,
|
|
144
|
+
onPopupVisibleChange = props.onPopupVisibleChange,
|
|
144
145
|
restProps = _objectWithoutProperties(props, _excluded2);
|
|
145
146
|
|
|
146
147
|
var _useState3 = (0, _react.useState)(false),
|
|
@@ -148,6 +149,21 @@ function DropSelector(props) {
|
|
|
148
149
|
visible = _useState4[0],
|
|
149
150
|
setVisible = _useState4[1];
|
|
150
151
|
|
|
152
|
+
var realVisible = visible;
|
|
153
|
+
|
|
154
|
+
if ('visible' in props) {
|
|
155
|
+
realVisible = props.visible;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
var handlePopVisibleChange = (0, _react.useCallback)(function (visible) {
|
|
159
|
+
console.log('visible' in props);
|
|
160
|
+
|
|
161
|
+
if (!('visible' in props)) {
|
|
162
|
+
setVisible(visible);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
onPopupVisibleChange === null || onPopupVisibleChange === void 0 ? void 0 : onPopupVisibleChange(visible);
|
|
166
|
+
}, [props.visible === undefined]);
|
|
151
167
|
(0, _react.useEffect)(function () {
|
|
152
168
|
setVisible(props.visible);
|
|
153
169
|
}, [props.visible]);
|
|
@@ -161,12 +177,11 @@ function DropSelector(props) {
|
|
|
161
177
|
};
|
|
162
178
|
|
|
163
179
|
return /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
164
|
-
popupVisible: canEdit &&
|
|
180
|
+
popupVisible: canEdit && realVisible,
|
|
165
181
|
popupPlacement: popupPlacement,
|
|
166
|
-
onPopupVisibleChange:
|
|
167
|
-
return setVisible(visible);
|
|
168
|
-
},
|
|
182
|
+
onPopupVisibleChange: handlePopVisibleChange,
|
|
169
183
|
destroyPopupOnHide: destroyPopupOnHide,
|
|
184
|
+
action: popAction,
|
|
170
185
|
popup: /*#__PURE__*/_react["default"].createElement(DropSelectorLayer, _extends({}, restProps, {
|
|
171
186
|
onItemClick: onMenuClickHandler
|
|
172
187
|
}))
|
|
@@ -10,19 +10,19 @@ var _getLocale = require("../../utils/getLocale");
|
|
|
10
10
|
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; }
|
|
11
11
|
|
|
12
12
|
var OkrRiskMapping = {
|
|
13
|
-
0:
|
|
13
|
+
0: 'normal',
|
|
14
14
|
// 正常推进
|
|
15
|
-
1:
|
|
15
|
+
1: 'normal',
|
|
16
16
|
// 正常推进
|
|
17
|
-
2:
|
|
17
|
+
2: 'risk',
|
|
18
18
|
// 注意风险
|
|
19
|
-
3:
|
|
19
|
+
3: 'delay',
|
|
20
20
|
// 已有风险
|
|
21
|
-
4:
|
|
21
|
+
4: 'end',
|
|
22
22
|
// kr及o全都完成
|
|
23
|
-
5:
|
|
23
|
+
5: 'delay',
|
|
24
24
|
// 延期完成
|
|
25
|
-
6:
|
|
25
|
+
6: 'normal' // 正常推进
|
|
26
26
|
|
|
27
27
|
};
|
|
28
28
|
exports.OkrRiskMapping = OkrRiskMapping;
|
|
@@ -52,7 +52,7 @@ exports.EFeedType = EFeedType;
|
|
|
52
52
|
EFeedType[EFeedType["Signin"] = 80] = "Signin";
|
|
53
53
|
EFeedType[EFeedType["O"] = 101] = "O";
|
|
54
54
|
EFeedType[EFeedType["OKRsCommunication"] = 102] = "OKRsCommunication";
|
|
55
|
-
EFeedType[EFeedType["
|
|
55
|
+
EFeedType[EFeedType["Interview"] = 103] = "Interview";
|
|
56
56
|
})(EFeedType || (exports.EFeedType = EFeedType = {}));
|
|
57
57
|
|
|
58
58
|
var EShareType;
|
|
@@ -62,6 +62,7 @@ exports.EShareType = EShareType;
|
|
|
62
62
|
EShareType[EShareType["CommonShare"] = 0] = "CommonShare";
|
|
63
63
|
EShareType[EShareType["ShareToDynamic"] = 1] = "ShareToDynamic";
|
|
64
64
|
EShareType[EShareType["BiShare"] = 3] = "BiShare";
|
|
65
|
+
EShareType[EShareType["InterviewShare"] = 5] = "InterviewShare";
|
|
65
66
|
})(EShareType || (exports.EShareType = EShareType = {}));
|
|
66
67
|
|
|
67
68
|
var EObjType;
|
|
@@ -81,7 +82,7 @@ exports.EObjType = EObjType;
|
|
|
81
82
|
var getObjTypeMapText = function getObjTypeMapText(key) {
|
|
82
83
|
var _data;
|
|
83
84
|
|
|
84
|
-
var data = (_data = {}, _defineProperty(_data, EObjType.Project, (0, _getLocale.getLocale)(
|
|
85
|
+
var data = (_data = {}, _defineProperty(_data, EObjType.Project, (0, _getLocale.getLocale)('Menu_Title_Projects')), _defineProperty(_data, EObjType.Task, (0, _getLocale.getLocale)('Mod_Tasks')), _defineProperty(_data, EObjType.O, (0, _getLocale.getLocale)('Mod_Objective')), _defineProperty(_data, EObjType.Kr, (0, _getLocale.getLocale)('Mod_KeyResults')), _defineProperty(_data, EObjType.MileStone, (0, _getLocale.getLocale)('Pro_page_Plan_Milestone')), _defineProperty(_data, EObjType.KanBan, (0, _getLocale.getLocale)('Pro_page_V_Tab_Kanban')), _defineProperty(_data, EObjType.Report, '总结'), _data);
|
|
85
86
|
return data[key];
|
|
86
87
|
};
|
|
87
88
|
|
|
@@ -89,34 +90,34 @@ exports.getObjTypeMapText = getObjTypeMapText;
|
|
|
89
90
|
|
|
90
91
|
var ObjectType = function ObjectType() {
|
|
91
92
|
return {
|
|
92
|
-
1: (0, _getLocale.getLocale)(
|
|
93
|
-
4: (0, _getLocale.getLocale)(
|
|
94
|
-
5: (0, _getLocale.getLocale)(
|
|
95
|
-
6: (0, _getLocale.getLocale)(
|
|
96
|
-
7: (0, _getLocale.getLocale)(
|
|
97
|
-
8: (0, _getLocale.getLocale)(
|
|
98
|
-
10: (0, _getLocale.getLocale)(
|
|
99
|
-
11: (0, _getLocale.getLocale)(
|
|
100
|
-
12: (0, _getLocale.getLocale)(
|
|
101
|
-
62: (0, _getLocale.getLocale)(
|
|
102
|
-
65: (0, _getLocale.getLocale)(
|
|
103
|
-
70: (0, _getLocale.getLocale)(
|
|
104
|
-
79: (0, _getLocale.getLocale)(
|
|
105
|
-
80: (0, _getLocale.getLocale)(
|
|
106
|
-
42: (0, _getLocale.getLocale)(
|
|
93
|
+
1: (0, _getLocale.getLocale)('Mod_sannouncement'),
|
|
94
|
+
4: (0, _getLocale.getLocale)('Menu_Title_Projects'),
|
|
95
|
+
5: (0, _getLocale.getLocale)('Mod_sPerformanceForm'),
|
|
96
|
+
6: (0, _getLocale.getLocale)('Mod_sPerformanceGoals'),
|
|
97
|
+
7: (0, _getLocale.getLocale)('Mod_stasks'),
|
|
98
|
+
8: (0, _getLocale.getLocale)('Mod_sDailySummary'),
|
|
99
|
+
10: (0, _getLocale.getLocale)('Feed_sFeed'),
|
|
100
|
+
11: (0, _getLocale.getLocale)('Pro_page_Plan'),
|
|
101
|
+
12: (0, _getLocale.getLocale)('Feed_OperationTasks'),
|
|
102
|
+
62: (0, _getLocale.getLocale)('Mod_sobjective'),
|
|
103
|
+
65: (0, _getLocale.getLocale)('Feed_Keyresults'),
|
|
104
|
+
70: (0, _getLocale.getLocale)('OKR_MyO_KRP_Review'),
|
|
105
|
+
79: (0, _getLocale.getLocale)('Mod_skeyprogress'),
|
|
106
|
+
80: (0, _getLocale.getLocale)('Feed_sAnnouncement'),
|
|
107
|
+
42: (0, _getLocale.getLocale)('OKR_MyO_E_Reward')
|
|
107
108
|
};
|
|
108
109
|
};
|
|
109
110
|
|
|
110
111
|
exports.ObjectType = ObjectType;
|
|
111
112
|
var EStatusStatus2ClassType = {
|
|
112
|
-
2:
|
|
113
|
-
1:
|
|
114
|
-
4:
|
|
115
|
-
3:
|
|
116
|
-
6:
|
|
117
|
-
0:
|
|
118
|
-
5:
|
|
113
|
+
2: 'tu-icon-finished',
|
|
114
|
+
1: 'tu-icon-running',
|
|
115
|
+
4: 'tu-icon-canceled',
|
|
116
|
+
3: 'tu-icon-deferred',
|
|
117
|
+
6: 'tu-icon-paused',
|
|
118
|
+
0: 'tu-icon-notstart',
|
|
119
|
+
5: 'tu-icon-jiantou-right'
|
|
119
120
|
};
|
|
120
121
|
exports.EStatusStatus2ClassType = EStatusStatus2ClassType;
|
|
121
|
-
var PlanReportType = [
|
|
122
|
+
var PlanReportType = ['titaPlanReport', 'titaPlanManagerReport'];
|
|
122
123
|
exports.PlanReportType = PlanReportType;
|
|
@@ -61,7 +61,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
61
61
|
|
|
62
62
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
63
63
|
|
|
64
|
-
var prefix =
|
|
64
|
+
var prefix = 'titaui-dynamic-item';
|
|
65
65
|
|
|
66
66
|
var DynamicFooter = function DynamicFooter(_ref) {
|
|
67
67
|
var _getBSGlobal;
|
|
@@ -95,8 +95,8 @@ var DynamicFooter = function DynamicFooter(_ref) {
|
|
|
95
95
|
setUpvoteModalVisible = _useState8[1];
|
|
96
96
|
|
|
97
97
|
var communicationRef = (0, _react.useRef)();
|
|
98
|
-
var hasRewardBtn = !!((_getBSGlobal = (0, _bsGlobal.getBSGlobal)(
|
|
99
|
-
return item.AppId ===
|
|
98
|
+
var hasRewardBtn = !!((_getBSGlobal = (0, _bsGlobal.getBSGlobal)('WebHead')) !== null && _getBSGlobal !== void 0 && _getBSGlobal.AppHead.find(function (item) {
|
|
99
|
+
return item.AppId === '950';
|
|
100
100
|
}));
|
|
101
101
|
|
|
102
102
|
var _useContext = (0, _react.useContext)(_context.SearchKeyContext),
|
|
@@ -108,7 +108,7 @@ var DynamicFooter = function DynamicFooter(_ref) {
|
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
var onChangeParse = function onChangeParse(type) {
|
|
111
|
-
var _getBSGlobal2 = (0, _bsGlobal.getBSGlobal)(
|
|
111
|
+
var _getBSGlobal2 = (0, _bsGlobal.getBSGlobal)('loginUserInfo'),
|
|
112
112
|
Id = _getBSGlobal2.Id;
|
|
113
113
|
|
|
114
114
|
var data = _toConsumableArray(praiseData).filter(function (item) {
|
|
@@ -116,8 +116,8 @@ var DynamicFooter = function DynamicFooter(_ref) {
|
|
|
116
116
|
});
|
|
117
117
|
|
|
118
118
|
if (type) {
|
|
119
|
-
var avatar = (0, _bsGlobal.getBSGlobal)(
|
|
120
|
-
var name = (0, _bsGlobal.getBSGlobal)(
|
|
119
|
+
var avatar = (0, _bsGlobal.getBSGlobal)('loginUserInfo').UserAvatar;
|
|
120
|
+
var name = (0, _bsGlobal.getBSGlobal)('loginUserInfo').Name;
|
|
121
121
|
avatar.color = avatar.Color;
|
|
122
122
|
avatar.medium = avatar.Medium;
|
|
123
123
|
var parseUser = {
|
|
@@ -151,7 +151,7 @@ var DynamicFooter = function DynamicFooter(_ref) {
|
|
|
151
151
|
|
|
152
152
|
var renderUpvoteCount = function renderUpvoteCount(type, count) {
|
|
153
153
|
if (count === 0) {
|
|
154
|
-
return
|
|
154
|
+
return '';
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
return count || type;
|
|
@@ -189,7 +189,7 @@ var DynamicFooter = function DynamicFooter(_ref) {
|
|
|
189
189
|
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
190
190
|
condition: hasRewardBtn
|
|
191
191
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
192
|
-
overlay: (0, _getLocale.getLocale)(
|
|
192
|
+
overlay: (0, _getLocale.getLocale)('Feed_Approval'),
|
|
193
193
|
align: {
|
|
194
194
|
offset: [0, 0]
|
|
195
195
|
},
|
|
@@ -199,7 +199,7 @@ var DynamicFooter = function DynamicFooter(_ref) {
|
|
|
199
199
|
className: (0, _classnames["default"])("".concat(prefix, "__footer-icon"), "".concat(prefix, "__footer-icon-redenvelopes"))
|
|
200
200
|
}))), /*#__PURE__*/_react["default"].createElement("span", {
|
|
201
201
|
onClick: handleCommentClick,
|
|
202
|
-
className: (0, _classnames["default"])(
|
|
202
|
+
className: (0, _classnames["default"])('tu-icon-pinglun-m', "".concat(prefix, "__footer-icon"))
|
|
203
203
|
}, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
204
204
|
condition: feedComments.total > 0
|
|
205
205
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -17,7 +17,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
17
17
|
|
|
18
18
|
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); }
|
|
19
19
|
|
|
20
|
-
var prefixCls =
|
|
20
|
+
var prefixCls = 'titaui-dynamic-item';
|
|
21
21
|
|
|
22
22
|
var DynamicAIDialy = function DynamicAIDialy(_ref) {
|
|
23
23
|
var data = _ref.data;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="26px" height="21px" viewBox="0 0 26 21" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>wife</title>
|
|
4
|
+
<g id="面谈" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="5-面谈详情页" transform="translate(-106.000000, -17.000000)" fill="#2879FF" fill-rule="nonzero">
|
|
6
|
+
<g id="面谈人员" transform="translate(58.000000, 8.000000)">
|
|
7
|
+
<g id="wife" transform="translate(48.000000, 9.000000)">
|
|
8
|
+
<g id="编组-7">
|
|
9
|
+
<path d="M12.9658057,9.52816561 C12.2775701,9.52816561 11.7154472,10.0876457 11.7154472,10.7794706 C11.7154472,11.4687707 12.2775701,12.0281656 12.9658057,12.0281656 C13.6566846,12.0281656 14.2150114,11.4687707 14.2150114,10.7794706 C14.2150114,10.0876456 13.6567127,9.52816561 12.9658057,9.52816561 Z" id="路径" transform="translate(12.965229, 10.778166) scale(-1, 1) rotate(-270.000000) translate(-12.965229, -10.778166) "></path>
|
|
10
|
+
<path d="M9.13463077,9.00453638 C7.22941357,9.00453638 5.46172542,9.94655067 4.4067363,11.531305 C4.21117005,11.8188062 4.28841241,12.2143692 4.56884115,12.4134588 C4.67951673,12.488903 4.8030426,12.5227718 4.92136651,12.5227718 C5.12207849,12.5227718 5.31891006,12.4238384 5.44114247,12.2443421 C6.26193014,11.0108739 7.64371594,10.2770207 9.13463077,10.2770207 C10.6051595,10.2770207 11.975276,10.9978496 12.7974415,12.1987571 C12.9930077,12.488903 13.3866146,12.5578919 13.6696865,12.3562145 C13.9527303,12.1584046 14.019625,11.7576376 13.8202346,11.4714161 C12.766567,9.92573457 11.0116729,9.00453638 9.13463077,9.00453638 Z" id="路径" opacity="0.75" transform="translate(9.116567, 10.763654) scale(-1, 1) rotate(-270.000000) translate(-9.116567, -10.763654) "></path>
|
|
11
|
+
<path d="M6.05410015,8.5147913 C3.20198248,8.5147913 0.543996987,9.78992023 -1.2301585,12.0095944 C-1.45015998,12.2828485 -1.40899404,12.6836155 -1.13880053,12.9047724 C-0.873780866,13.1272944 -0.480089595,13.0869418 -0.261409722,12.8137162 C1.27472015,10.8919513 3.58023651,9.78733243 6.05410012,9.78733243 C8.52942591,9.78733243 10.8310057,10.8919513 12.3723094,12.8137162 C12.4932483,12.9711167 12.675908,13.0479259 12.8560371,13.0479259 C12.994972,13.0479259 13.1326135,13.0010612 13.2484349,12.9073887 C13.5198937,12.6861749 13.555942,12.2854647 13.3371778,12.0122106 C11.5643439,9.78992023 8.91150413,8.5147913 6.05410015,8.5147913 Z" id="路径" fill-opacity="0.5" transform="translate(6.053981, 10.781599) scale(-1, 1) rotate(-270.000000) translate(-6.053981, -10.781599) "></path>
|
|
12
|
+
<path d="M12.8458611,12.5083657 C10.3885313,9.64071899 6.80164139,8 2.99995194,8 C-0.796479272,8 -4.38722148,9.64069054 -6.84325778,12.5070575 C-7.07222913,12.7724914 -7.0477939,13.1745381 -6.78662652,13.4048234 C-6.52804606,13.6351656 -6.13050251,13.609117 -5.9053553,13.346271 C-3.68352045,10.757054 -0.438836284,9.26858839 2.99992386,9.26858839 C6.43882458,9.26858839 9.6860957,10.757054 11.9040782,13.346271 C12.0301629,13.4894244 12.202503,13.5635889 12.3749556,13.5635889 C12.5190645,13.5635889 12.6708497,13.5128283 12.7866429,13.4048234 C13.0465168,13.1745665 13.0722737,12.7737995 12.8458611,12.5083657 Z" id="路径" fill-opacity="0.25" transform="translate(3.000000, 10.781794) scale(-1, 1) rotate(-270.000000) translate(-3.000000, -10.781794) "></path>
|
|
13
|
+
</g>
|
|
14
|
+
<g id="编组-7" transform="translate(18.500000, 10.500000) scale(-1, 1) translate(-18.500000, -10.500000) translate(11.000000, 0.000000)">
|
|
15
|
+
<path d="M12.9658057,9.52816561 C12.2775701,9.52816561 11.7154472,10.0876457 11.7154472,10.7794706 C11.7154472,11.4687707 12.2775701,12.0281656 12.9658057,12.0281656 C13.6566846,12.0281656 14.2150114,11.4687707 14.2150114,10.7794706 C14.2150114,10.0876456 13.6567127,9.52816561 12.9658057,9.52816561 Z" id="路径" transform="translate(12.965229, 10.778166) scale(-1, 1) rotate(-270.000000) translate(-12.965229, -10.778166) "></path>
|
|
16
|
+
<path d="M9.13463077,9.00453638 C7.22941357,9.00453638 5.46172542,9.94655067 4.4067363,11.531305 C4.21117005,11.8188062 4.28841241,12.2143692 4.56884115,12.4134588 C4.67951673,12.488903 4.8030426,12.5227718 4.92136651,12.5227718 C5.12207849,12.5227718 5.31891006,12.4238384 5.44114247,12.2443421 C6.26193014,11.0108739 7.64371594,10.2770207 9.13463077,10.2770207 C10.6051595,10.2770207 11.975276,10.9978496 12.7974415,12.1987571 C12.9930077,12.488903 13.3866146,12.5578919 13.6696865,12.3562145 C13.9527303,12.1584046 14.019625,11.7576376 13.8202346,11.4714161 C12.766567,9.92573457 11.0116729,9.00453638 9.13463077,9.00453638 Z" id="路径" opacity="0.75" transform="translate(9.116567, 10.763654) scale(-1, 1) rotate(-270.000000) translate(-9.116567, -10.763654) "></path>
|
|
17
|
+
<path d="M6.05410015,8.5147913 C3.20198248,8.5147913 0.543996987,9.78992023 -1.2301585,12.0095944 C-1.45015998,12.2828485 -1.40899404,12.6836155 -1.13880053,12.9047724 C-0.873780866,13.1272944 -0.480089595,13.0869418 -0.261409722,12.8137162 C1.27472015,10.8919513 3.58023651,9.78733243 6.05410012,9.78733243 C8.52942591,9.78733243 10.8310057,10.8919513 12.3723094,12.8137162 C12.4932483,12.9711167 12.675908,13.0479259 12.8560371,13.0479259 C12.994972,13.0479259 13.1326135,13.0010612 13.2484349,12.9073887 C13.5198937,12.6861749 13.555942,12.2854647 13.3371778,12.0122106 C11.5643439,9.78992023 8.91150413,8.5147913 6.05410015,8.5147913 Z" id="路径" fill-opacity="0.5" transform="translate(6.053981, 10.781599) scale(-1, 1) rotate(-270.000000) translate(-6.053981, -10.781599) "></path>
|
|
18
|
+
<path d="M12.8458611,12.5083657 C10.3885313,9.64071899 6.80164139,8 2.99995194,8 C-0.796479272,8 -4.38722148,9.64069054 -6.84325778,12.5070575 C-7.07222913,12.7724914 -7.0477939,13.1745381 -6.78662652,13.4048234 C-6.52804606,13.6351656 -6.13050251,13.609117 -5.9053553,13.346271 C-3.68352045,10.757054 -0.438836284,9.26858839 2.99992386,9.26858839 C6.43882458,9.26858839 9.6860957,10.757054 11.9040782,13.346271 C12.0301629,13.4894244 12.202503,13.5635889 12.3749556,13.5635889 C12.5190645,13.5635889 12.6708497,13.5128283 12.7866429,13.4048234 C13.0465168,13.1745665 13.0722737,12.7737995 12.8458611,12.5083657 Z" id="路径" fill-opacity="0.25" transform="translate(3.000000, 10.781794) scale(-1, 1) rotate(-270.000000) translate(-3.000000, -10.781794) "></path>
|
|
19
|
+
</g>
|
|
20
|
+
</g>
|
|
21
|
+
</g>
|
|
22
|
+
</g>
|
|
23
|
+
</g>
|
|
24
|
+
</svg>
|