@titaui/pc 1.11.3 → 1.11.4-2
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/button/icon-btn/index.js +17 -8
- package/lib/components/drop-selector/index.js +25 -10
- package/lib/components/dynamic/constant.js +2 -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 +51 -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 +54 -0
- package/lib/components/dynamic/dynamic-item/dynamic-interview-share/interview-content.js +69 -0
- package/lib/components/dynamic/dynamic-item/index.js +17 -0
- package/lib/components/form/form-fields/date/index.css +24 -0
- package/lib/components/form/form-fields/date/index.js +98 -0
- package/lib/components/form/form-fields/user/index.css +1 -1
- package/lib/components/form/index.js +10 -3
- 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.js +126 -0
- package/lib/components/menus/index.js +11 -5
- package/lib/components/picker/components/panels/date-panel/date-body.js +116 -0
- package/lib/components/picker/components/panels/date-panel/date-head.js +66 -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 +87 -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 +42 -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/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 +27 -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 +195 -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 +431 -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 +290 -0
- package/lib/components/task-tree/task-item-node/task-node-render.js +43 -0
- package/lib/components/task-tree/task-tree.css +8 -0
- package/lib/components/task-tree/task-tree.js +49 -0
- package/lib/components/time-picker/index.css +117 -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 +324 -0
- package/lib/components/time-picker/timer-picker-input.js +94 -0
- package/lib/components/time-picker/utils.js +52 -0
- package/lib/index.js +24 -0
- package/lib/pages/aha2021/index.js +5 -1
- package/lib/utils/hooks.js +72 -0
- package/package.json +1 -1
- package/yarn-error.log +22184 -0
|
@@ -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;
|
|
@@ -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
|
}))
|
|
@@ -54,7 +54,7 @@ exports.EFeedType = EFeedType;
|
|
|
54
54
|
EFeedType[EFeedType["Signin"] = 80] = "Signin";
|
|
55
55
|
EFeedType[EFeedType["O"] = 101] = "O";
|
|
56
56
|
EFeedType[EFeedType["OKRsCommunication"] = 102] = "OKRsCommunication";
|
|
57
|
-
EFeedType[EFeedType["
|
|
57
|
+
EFeedType[EFeedType["Interview"] = 103] = "Interview";
|
|
58
58
|
})(EFeedType || (exports.EFeedType = EFeedType = {}));
|
|
59
59
|
|
|
60
60
|
var EShareType;
|
|
@@ -64,6 +64,7 @@ exports.EShareType = EShareType;
|
|
|
64
64
|
EShareType[EShareType["CommonShare"] = 0] = "CommonShare";
|
|
65
65
|
EShareType[EShareType["ShareToDynamic"] = 1] = "ShareToDynamic";
|
|
66
66
|
EShareType[EShareType["BiShare"] = 3] = "BiShare";
|
|
67
|
+
EShareType[EShareType["InterviewShare"] = 5] = "InterviewShare";
|
|
67
68
|
})(EShareType || (exports.EShareType = EShareType = {}));
|
|
68
69
|
|
|
69
70
|
var EObjType;
|
|
@@ -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>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.titaui-dynamic-interview__operate-desc {
|
|
2
|
+
font-size: 14px;
|
|
3
|
+
font-weight: 400;
|
|
4
|
+
color: #89919f;
|
|
5
|
+
line-height: 24px;
|
|
6
|
+
margin-left: 4px;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.titaui-dynamic-interview__content {
|
|
11
|
+
height: 56px;
|
|
12
|
+
background: rgba(40, 121, 255, 0.06);
|
|
13
|
+
border-radius: 18px;
|
|
14
|
+
display: flex;
|
|
15
|
+
padding: 0 12px;
|
|
16
|
+
align-items: center;
|
|
17
|
+
margin-left: 88px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.titaui-dynamic-interview__wifi {
|
|
21
|
+
margin: 0 8px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.titaui-dynamic-interview__name {
|
|
25
|
+
margin-left: 12px;
|
|
26
|
+
flex: 1;
|
|
27
|
+
width: 0;
|
|
28
|
+
font-size: 16px;
|
|
29
|
+
font-weight: normal;
|
|
30
|
+
line-height: 24px;
|
|
31
|
+
font-weight: 600;
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
text-overflow: ellipsis;
|
|
34
|
+
white-space: nowrap;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.titaui-dynamic-interview__name div {
|
|
38
|
+
max-width: 100%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.titaui-dynamic-interview__name a {
|
|
42
|
+
color: #141c28;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.titaui-dynamic-interview__name a:hover {
|
|
46
|
+
color: #2879ff;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.titaui-dynamic-interview .titaui-pc-avator-container {
|
|
50
|
+
height: 32px;
|
|
51
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
13
|
+
|
|
14
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
15
|
+
|
|
16
|
+
var _interviewContent = _interopRequireDefault(require("./interview-content"));
|
|
17
|
+
|
|
18
|
+
require("./index.css");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
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); }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
var preCls = "titaui-dynamic-interview";
|
|
27
|
+
|
|
28
|
+
function DynamicInterview(_ref) {
|
|
29
|
+
var data = _ref.data,
|
|
30
|
+
onDeleteFeed = _ref.onDeleteFeed;
|
|
31
|
+
var principalUser = data.principalUser,
|
|
32
|
+
publishUser = data.publishUser;
|
|
33
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
34
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
35
|
+
className: "".concat(preCls, "__operate-desc")
|
|
36
|
+
}, (0, _getLocale.getLocale)("Ooo_Feed_Initiated11"));
|
|
37
|
+
}, []);
|
|
38
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
39
|
+
className: preCls
|
|
40
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], {
|
|
41
|
+
data: data,
|
|
42
|
+
onDeleteFeed: onDeleteFeed,
|
|
43
|
+
desc: renderDesc,
|
|
44
|
+
user: principalUser || publishUser
|
|
45
|
+
}), /*#__PURE__*/_react["default"].createElement(_interviewContent["default"], {
|
|
46
|
+
data: data
|
|
47
|
+
}));
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
var _default = DynamicInterview;
|
|
51
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _avatar = _interopRequireDefault(require("../../../../components/avatar"));
|
|
11
|
+
|
|
12
|
+
var _wifi = _interopRequireDefault(require("./img/wifi.svg"));
|
|
13
|
+
|
|
14
|
+
require("./index.css");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var preCls = "titaui-dynamic-interview";
|
|
19
|
+
|
|
20
|
+
function InterviewContent(_ref) {
|
|
21
|
+
var data = _ref.data;
|
|
22
|
+
var principalUser = data.principalUser,
|
|
23
|
+
publishUser = data.publishUser,
|
|
24
|
+
interviewName = data.interviewName,
|
|
25
|
+
interviewId = data.interviewId;
|
|
26
|
+
var _window$location = window.location,
|
|
27
|
+
host = _window$location.host,
|
|
28
|
+
pathname = _window$location.pathname;
|
|
29
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
30
|
+
className: "".concat(preCls, "__content")
|
|
31
|
+
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
32
|
+
name: publishUser.name,
|
|
33
|
+
userId: publishUser.userId,
|
|
34
|
+
color: publishUser.avatar.color,
|
|
35
|
+
src: publishUser.avatar.medium,
|
|
36
|
+
size: {
|
|
37
|
+
width: 32,
|
|
38
|
+
textNum: 1,
|
|
39
|
+
fontSize: 12
|
|
40
|
+
}
|
|
41
|
+
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
42
|
+
className: "".concat(preCls, "__wifi"),
|
|
43
|
+
src: _wifi["default"],
|
|
44
|
+
alt: "wifi"
|
|
45
|
+
}), principalUser && /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
46
|
+
name: principalUser.name,
|
|
47
|
+
userId: principalUser.userId,
|
|
48
|
+
color: principalUser.avatar.color,
|
|
49
|
+
src: principalUser.avatar.medium,
|
|
50
|
+
size: {
|
|
51
|
+
width: 32,
|
|
52
|
+
textNum: 1,
|
|
53
|
+
fontSize: 12
|
|
54
|
+
}
|
|
55
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
56
|
+
className: "".concat(preCls, "__name")
|
|
57
|
+
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
58
|
+
href: "//".concat(host).concat(pathname, "#/interview?hideNavTop=true&reactRouterName=detail&recordId=").concat(interviewId, "&toUserId=").concat(principalUser.userId),
|
|
59
|
+
target: "_blank",
|
|
60
|
+
rel: "noreferrer"
|
|
61
|
+
}, interviewName || "")));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
var _default = InterviewContent;
|
|
65
|
+
exports["default"] = _default;
|
|
@@ -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>
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
.titaui-dynamic-interview-share__text {
|
|
2
|
+
font-size: 14px;
|
|
3
|
+
font-weight: 400;
|
|
4
|
+
color: #3f4755;
|
|
5
|
+
line-height: 24px;
|
|
6
|
+
margin-left: 88px;
|
|
7
|
+
margin-bottom: 12px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.titaui-dynamic-interview-share__operate-desc {
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
font-weight: 400;
|
|
13
|
+
color: #89919f;
|
|
14
|
+
line-height: 24px;
|
|
15
|
+
margin-left: 4px;
|
|
16
|
+
overflow: hidden;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.titaui-dynamic-interview-share__content {
|
|
20
|
+
height: 56px;
|
|
21
|
+
background: rgba(40, 121, 255, 0.06);
|
|
22
|
+
border-radius: 18px;
|
|
23
|
+
display: flex;
|
|
24
|
+
padding: 0 12px;
|
|
25
|
+
align-items: center;
|
|
26
|
+
margin-left: 88px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.titaui-dynamic-interview-share__wifi {
|
|
30
|
+
margin: 0 8px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.titaui-dynamic-interview-share__name {
|
|
34
|
+
margin-left: 12px;
|
|
35
|
+
flex: 1;
|
|
36
|
+
width: 0;
|
|
37
|
+
font-size: 16px;
|
|
38
|
+
font-weight: normal;
|
|
39
|
+
color: #141c28;
|
|
40
|
+
line-height: 24px;
|
|
41
|
+
font-weight: 600;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
text-overflow: ellipsis;
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.titaui-dynamic-interview-share__name div {
|
|
48
|
+
max-width: 100%;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.titaui-dynamic-interview-share__name a {
|
|
52
|
+
color: #141c28;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.titaui-dynamic-interview-share__name a:hover {
|
|
56
|
+
color: #2879ff;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.titaui-dynamic-interview-share .titaui-pc-avator-container {
|
|
60
|
+
height: 32px;
|
|
61
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
13
|
+
|
|
14
|
+
var _header = _interopRequireDefault(require("../components/header"));
|
|
15
|
+
|
|
16
|
+
var _interviewContent = _interopRequireDefault(require("./interview-content"));
|
|
17
|
+
|
|
18
|
+
require("./index.css");
|
|
19
|
+
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
|
+
|
|
22
|
+
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); }
|
|
23
|
+
|
|
24
|
+
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; }
|
|
25
|
+
|
|
26
|
+
var preCls = "titaui-dynamic-interview-share";
|
|
27
|
+
|
|
28
|
+
function DynamicInterviewShare(_ref) {
|
|
29
|
+
var data = _ref.data,
|
|
30
|
+
onDeleteFeed = _ref.onDeleteFeed;
|
|
31
|
+
var publishUser = data.publishUser,
|
|
32
|
+
content = data.content,
|
|
33
|
+
shareFeedSource = data.shareFeedSource;
|
|
34
|
+
var renderDesc = (0, _react.useMemo)(function () {
|
|
35
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
36
|
+
className: "".concat(preCls, "__operate-desc")
|
|
37
|
+
}, (0, _getLocale.getLocale)("Ooo_Mo_Sharedconver"));
|
|
38
|
+
}, []);
|
|
39
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
40
|
+
className: preCls
|
|
41
|
+
}, /*#__PURE__*/_react["default"].createElement(_header["default"], {
|
|
42
|
+
data: data,
|
|
43
|
+
onDeleteFeed: onDeleteFeed,
|
|
44
|
+
desc: renderDesc,
|
|
45
|
+
user: publishUser
|
|
46
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
47
|
+
className: "".concat(preCls, "__text")
|
|
48
|
+
}, content), /*#__PURE__*/_react["default"].createElement(_interviewContent["default"], {
|
|
49
|
+
data: shareFeedSource
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
var _default = DynamicInterviewShare;
|
|
54
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _avatar = _interopRequireDefault(require("../../../../components/avatar"));
|
|
11
|
+
|
|
12
|
+
var _wifi = _interopRequireDefault(require("./img/wifi.svg"));
|
|
13
|
+
|
|
14
|
+
require("./index.css");
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
|
+
|
|
18
|
+
var preCls = "titaui-dynamic-interview-share";
|
|
19
|
+
|
|
20
|
+
function InterviewContent(_ref) {
|
|
21
|
+
var data = _ref.data;
|
|
22
|
+
if (!data) return null;
|
|
23
|
+
|
|
24
|
+
var _ref2 = data || {},
|
|
25
|
+
toUser = _ref2.toUser,
|
|
26
|
+
fromUser = _ref2.fromUser,
|
|
27
|
+
content = _ref2.content,
|
|
28
|
+
objId = _ref2.objId;
|
|
29
|
+
|
|
30
|
+
var _window$location = window.location,
|
|
31
|
+
host = _window$location.host,
|
|
32
|
+
pathname = _window$location.pathname;
|
|
33
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
34
|
+
className: "".concat(preCls, "__content")
|
|
35
|
+
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
36
|
+
name: fromUser.name,
|
|
37
|
+
userId: fromUser.userId,
|
|
38
|
+
color: fromUser.avatar.color,
|
|
39
|
+
src: fromUser.avatar.medium,
|
|
40
|
+
size: {
|
|
41
|
+
width: 32,
|
|
42
|
+
textNum: 1,
|
|
43
|
+
fontSize: 12
|
|
44
|
+
}
|
|
45
|
+
}), /*#__PURE__*/_react["default"].createElement("img", {
|
|
46
|
+
className: "".concat(preCls, "__wifi"),
|
|
47
|
+
src: _wifi["default"],
|
|
48
|
+
alt: "wifi"
|
|
49
|
+
}), toUser && /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
50
|
+
name: toUser.name,
|
|
51
|
+
userId: toUser.userId,
|
|
52
|
+
color: toUser.avatar.color,
|
|
53
|
+
src: toUser.avatar.medium,
|
|
54
|
+
size: {
|
|
55
|
+
width: 32,
|
|
56
|
+
textNum: 1,
|
|
57
|
+
fontSize: 12
|
|
58
|
+
}
|
|
59
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
60
|
+
className: "".concat(preCls, "__name")
|
|
61
|
+
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
62
|
+
href: "//".concat(host).concat(pathname, "#/interview?hideNavTop=true&reactRouterName=detail&recordId=").concat(objId, "&toUserId=").concat(toUser.userId),
|
|
63
|
+
target: "_blank",
|
|
64
|
+
rel: "noreferrer"
|
|
65
|
+
}, content || "")));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
var _default = InterviewContent;
|
|
69
|
+
exports["default"] = _default;
|
|
@@ -69,6 +69,10 @@ var _feedOperate = _interopRequireDefault(require("./components/feed-operate"));
|
|
|
69
69
|
|
|
70
70
|
require("./index.css");
|
|
71
71
|
|
|
72
|
+
var _dynamicInterview = _interopRequireDefault(require("./dynamic-interview"));
|
|
73
|
+
|
|
74
|
+
var _dynamicInterviewShare = _interopRequireDefault(require("./dynamic-interview-share"));
|
|
75
|
+
|
|
72
76
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
73
77
|
|
|
74
78
|
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); }
|
|
@@ -300,6 +304,13 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
300
304
|
});
|
|
301
305
|
}
|
|
302
306
|
|
|
307
|
+
if (data.shareType === _constant.EShareType.InterviewShare) {
|
|
308
|
+
return /*#__PURE__*/_react["default"].createElement(_dynamicInterviewShare["default"], {
|
|
309
|
+
data: data,
|
|
310
|
+
onDeleteFeed: onDeleteFeed
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
|
|
303
314
|
return /*#__PURE__*/_react["default"].createElement(_dynamicLearning["default"], {
|
|
304
315
|
data: data
|
|
305
316
|
});
|
|
@@ -329,6 +340,12 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
329
340
|
onDeleteFeed: onDeleteFeed
|
|
330
341
|
});
|
|
331
342
|
|
|
343
|
+
case _constant.EFeedType.Interview:
|
|
344
|
+
return /*#__PURE__*/_react["default"].createElement(_dynamicInterview["default"], {
|
|
345
|
+
data: data,
|
|
346
|
+
onDeleteFeed: onDeleteFeed
|
|
347
|
+
});
|
|
348
|
+
|
|
332
349
|
default:
|
|
333
350
|
return null;
|
|
334
351
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.form-field-date__label {
|
|
2
|
+
height: 22px;
|
|
3
|
+
margin-bottom: 5px;
|
|
4
|
+
font-size: 14px;
|
|
5
|
+
font-weight: 400;
|
|
6
|
+
line-height: 22px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.form-field-date__label-text {
|
|
10
|
+
color: #3f4755;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.form-field-date__label-symbol {
|
|
14
|
+
color: red;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.form-field-date__pickers {
|
|
18
|
+
display: flex;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.form-field-date__pickers .tita-ui__picker-trigger {
|
|
22
|
+
flex: 1;
|
|
23
|
+
margin-right: 10px;
|
|
24
|
+
}
|