@titaui/pc 1.11.27-beta.8 → 1.11.29
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/name-avatar/index.css +0 -1
- package/lib/components/avatar/name-avatar/index.js +13 -22
- 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.css +11 -45
- package/lib/components/button/rect-btn/index.js +13 -19
- package/lib/components/change-okr-modal/Item.js +14 -14
- package/lib/components/change-okr-modal/index.js +1 -2
- package/lib/components/create-okr-modal/index.js +1 -3
- package/lib/components/create-okr-modal/request-api.js +1 -1
- package/lib/components/dialog-confirm/index.css +2 -2
- package/lib/components/drawer/headerAction.js +1 -5
- package/lib/components/drawer/headerDrop.js +4 -42
- package/lib/components/drawer/index.css +0 -33
- package/lib/components/drawer/index.js +3 -26
- package/lib/components/drop-selector/index.js +25 -10
- package/lib/components/dynamic/advertise/components/next-btn/index.css +27 -0
- package/lib/components/dynamic/advertise/components/next-btn/index.js +32 -0
- package/lib/components/dynamic/advertise/components/pre-btn/index.css +26 -0
- package/lib/components/dynamic/advertise/components/pre-btn/index.js +32 -0
- package/lib/components/dynamic/advertise/index.css +21 -0
- package/lib/components/dynamic/advertise/index.js +126 -0
- package/lib/components/dynamic/advertise/interface.js +5 -0
- package/lib/components/dynamic/advertise/util.js +28 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +81 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.js +203 -0
- package/lib/components/dynamic/components/first-level-tabs/index.css +101 -0
- package/lib/components/dynamic/components/first-level-tabs/index.js +131 -0
- 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-like-ranking/image/like-ranking.svg +23 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-empty.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.css +146 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.js +180 -0
- package/lib/components/dynamic/dynamic-like-ranking/item.js +105 -0
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
- package/lib/components/dynamic/dynamic-liking/index.css +81 -0
- package/lib/{pages/new-okr-list/header/operate-record.js → components/dynamic/dynamic-liking/index.js} +39 -91
- package/lib/components/dynamic/dynamic-liking/item.js +75 -0
- package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
- package/lib/components/dynamic/dynamic-list/index.js +7 -15
- package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +16 -0
- package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +30 -0
- package/lib/components/dynamic/dynamic-topping/index.css +141 -0
- package/lib/components/dynamic/dynamic-topping/index.js +82 -0
- package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
- package/lib/components/dynamic/dynamic-topping/item.js +153 -0
- package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
- package/lib/components/dynamic/dynamic.css +173 -0
- package/lib/components/dynamic/dynamic.js +428 -0
- package/lib/components/dynamic/export-module/index.js +37 -0
- package/lib/components/dynamic/img/dynamic-top.svg +14 -0
- package/lib/components/dynamic/index.js +12 -9
- package/lib/components/dynamic/my-team/img/add-subordinate.png +0 -0
- package/lib/components/dynamic/my-team/img/line.png +0 -0
- package/lib/components/dynamic/my-team/img/team.png +0 -0
- package/lib/components/dynamic/my-team/index.css +184 -0
- package/lib/components/dynamic/my-team/index.js +263 -0
- package/lib/components/dynamic/my-team/request-api.js +52 -0
- package/lib/components/dynamic/my-team/util.js +20 -0
- package/lib/components/dynamic/new-ui.css +192 -0
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +58 -0
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +68 -0
- package/lib/components/dynamic/online-broadcast/data.js +77 -0
- package/lib/components/dynamic/online-broadcast/img/broadcast.svg +14 -0
- package/lib/components/dynamic/online-broadcast/img/new.png +0 -0
- package/lib/components/dynamic/online-broadcast/img/preview.png +0 -0
- package/lib/components/dynamic/online-broadcast/index.css +46 -0
- package/lib/components/dynamic/online-broadcast/index.js +61 -0
- package/lib/components/dynamic/online-broadcast/interfact.js +5 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +44 -0
- package/lib/components/dynamic/quick-operation/img/new-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-task.png +0 -0
- package/lib/components/dynamic/quick-operation/index.css +51 -0
- package/lib/components/dynamic/quick-operation/index.js +120 -0
- package/lib/components/dynamic/request-api.js +68 -7
- 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/index.js +4 -8
- package/lib/components/nav-top/request.apis.js +3 -1
- package/lib/components/okr-detail/base-info/other-infos/date-cycle/index.js +4 -20
- package/lib/components/okr-detail/base-info/other-infos/principal/index.js +1 -9
- package/lib/components/okr-detail/components/header/index.js +3 -10
- package/lib/components/okr-detail/components/header/o-name.js +3 -10
- package/lib/components/okr-detail/components/o-classify.js +1 -5
- 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 +10 -14
- 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/detail-header/delete-confirm/delete-confirm.js +43 -98
- package/lib/components/okr-detail/detail-header/delete-confirm/style.js +38 -0
- package/lib/components/okr-detail/detail-header/index.css +0 -11
- package/lib/components/okr-detail/detail-header/index.js +234 -228
- package/lib/components/okr-detail/index.js +21 -40
- package/lib/components/okr-detail/okr-list/index.js +8 -11
- package/lib/components/okr-detail/request-apis.js +4 -10
- 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 +33 -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/okr-period-selector/index.js +5 -9
- package/lib/components/okr-period-selector/select-cycle.js +19 -23
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +30 -30
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/operation-records/style.js +1 -1
- 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/publish-dynamic-modal/publish-dynamic-modal.js +10 -16
- 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-relation-modal/request-api.js +1 -2
- 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/toast/index.js +3 -5
- 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/index.js +0 -40
- package/lib/pages/aha2021/index.js +5 -1
- package/lib/pages/new-okr-list/header/index.css +0 -45
- package/lib/pages/new-okr-list/header/index.js +16 -38
- package/lib/pages/new-okr-list/index.js +1 -3
- package/lib/pages/new-okr-list/list/index.js +2 -19
- package/lib/pages/new-okr-list/request-api.js +2 -8
- 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/pages/okr-map/unsupport-ie/index.js +5 -3
- package/lib/utils/auth.js +6 -6
- package/lib/utils/bs-global.js +12 -12
- package/lib/utils/format-time.js +1 -8
- package/lib/utils/hooks.js +72 -0
- package/lib/utils/open-data.js +27 -31
- package/package.json +6 -3
- 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
- package/lib/components/okr-detail/detail-header/constant.js +0 -53
- package/lib/components/okr-detail/detail-header/delete-confirm/index.css +0 -55
- package/lib/components/okr-detail/helper.js +0 -108
- package/lib/components/textarea/index.css +0 -142
- package/lib/components/textarea/index.js +0 -259
- package/lib/pages/new-okr-list/header/common.js +0 -52
|
@@ -19,12 +19,16 @@ var _userInput = _interopRequireDefault(require("./user-input"));
|
|
|
19
19
|
|
|
20
20
|
require("./index.css");
|
|
21
21
|
|
|
22
|
+
var _excluded = ["name", "label", "placeholder", "value", "onChange", "require", "maxSize", "multiple", "getContainer"];
|
|
23
|
+
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
25
|
|
|
24
26
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
27
|
|
|
26
28
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
29
|
|
|
30
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
31
|
+
|
|
28
32
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
29
33
|
|
|
30
34
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -39,7 +43,11 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
39
43
|
|
|
40
44
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
41
45
|
|
|
42
|
-
var
|
|
46
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
47
|
+
|
|
48
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
49
|
+
|
|
50
|
+
var preCls = 'form-field-user';
|
|
43
51
|
|
|
44
52
|
function OverlayInner(_ref) {
|
|
45
53
|
var hasError = _ref.hasError,
|
|
@@ -47,12 +55,12 @@ function OverlayInner(_ref) {
|
|
|
47
55
|
tip = _ref.tip;
|
|
48
56
|
if (hasError) return /*#__PURE__*/_react["default"].createElement("span", {
|
|
49
57
|
style: {
|
|
50
|
-
color:
|
|
58
|
+
color: '#F05E5E'
|
|
51
59
|
}
|
|
52
60
|
}, tip);
|
|
53
61
|
if (hasActive) return /*#__PURE__*/_react["default"].createElement("span", {
|
|
54
62
|
style: {
|
|
55
|
-
color:
|
|
63
|
+
color: '#3F4755'
|
|
56
64
|
}
|
|
57
65
|
}, tip);
|
|
58
66
|
return /*#__PURE__*/_react["default"].createElement("span", null);
|
|
@@ -69,9 +77,10 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
69
77
|
require = props.require,
|
|
70
78
|
maxSize = props.maxSize,
|
|
71
79
|
multiple = props.multiple,
|
|
72
|
-
getContainer = props.getContainer
|
|
80
|
+
getContainer = props.getContainer,
|
|
81
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
73
82
|
|
|
74
|
-
var _useState = (0, _react.useState)(
|
|
83
|
+
var _useState = (0, _react.useState)(''),
|
|
75
84
|
_useState2 = _slicedToArray(_useState, 2),
|
|
76
85
|
tip = _useState2[0],
|
|
77
86
|
setTip = _useState2[1];
|
|
@@ -119,7 +128,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
119
128
|
var onUserSelectHandler = function onUserSelectHandler(data) {
|
|
120
129
|
setHasActive(false);
|
|
121
130
|
setHasError(false);
|
|
122
|
-
setTip(
|
|
131
|
+
setTip('');
|
|
123
132
|
var users = [];
|
|
124
133
|
|
|
125
134
|
if (multiple) {
|
|
@@ -211,7 +220,7 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
211
220
|
tip: tip
|
|
212
221
|
}),
|
|
213
222
|
getTooltipContainer: getContainer
|
|
214
|
-
}, /*#__PURE__*/_react["default"].createElement(_userSelector["default"], {
|
|
223
|
+
}, /*#__PURE__*/_react["default"].createElement(_userSelector["default"], _extends({
|
|
215
224
|
multiple: multiple,
|
|
216
225
|
selectNodes: selectNodes,
|
|
217
226
|
position: "centerRight",
|
|
@@ -229,7 +238,8 @@ var _default = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
229
238
|
group: false
|
|
230
239
|
},
|
|
231
240
|
onPopupVisibleChange: onPopupVisibleChangeHandler
|
|
232
|
-
}, /*#__PURE__*/_react["default"].createElement(_userInput["default"], {
|
|
241
|
+
}, restProps), /*#__PURE__*/_react["default"].createElement(_userInput["default"], {
|
|
242
|
+
multiple: multiple,
|
|
233
243
|
users: selectNodes.users,
|
|
234
244
|
onClear: onClearHandler,
|
|
235
245
|
placeholder: placeholder
|
|
@@ -15,21 +15,25 @@ var _tooltip = _interopRequireDefault(require("../../../tooltip"));
|
|
|
15
15
|
|
|
16
16
|
var _getLocale = require("../../../../utils/getLocale");
|
|
17
17
|
|
|
18
|
+
var _openData = require("../../../../utils/open-data");
|
|
19
|
+
|
|
18
20
|
require("./index.css");
|
|
19
21
|
|
|
20
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
23
|
|
|
22
|
-
var preCls =
|
|
24
|
+
var preCls = 'form-field-user';
|
|
23
25
|
|
|
24
26
|
function _default(props) {
|
|
25
|
-
var
|
|
27
|
+
var _props$multiple = props.multiple,
|
|
28
|
+
multiple = _props$multiple === void 0 ? false : _props$multiple,
|
|
29
|
+
users = props.users,
|
|
26
30
|
_props$placeholder = props.placeholder,
|
|
27
|
-
placeholder = _props$placeholder === void 0 ? (0, _getLocale.getLocale)(
|
|
31
|
+
placeholder = _props$placeholder === void 0 ? (0, _getLocale.getLocale)('Mod_Pleaseselect') : _props$placeholder,
|
|
28
32
|
onClear = props.onClear;
|
|
29
33
|
var userNames = [];
|
|
30
34
|
(users || []).forEach(function (user) {
|
|
31
|
-
userNames.push( /*#__PURE__*/_react["default"].createElement("
|
|
32
|
-
className: (0, _classnames["default"])("".concat(preCls, "__input-
|
|
35
|
+
userNames.push( /*#__PURE__*/_react["default"].createElement("div", {
|
|
36
|
+
className: (0, _classnames["default"])("".concat(preCls, "__input-user-info"))
|
|
33
37
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
34
38
|
overlay: user.name,
|
|
35
39
|
placement: "top"
|
|
@@ -38,6 +42,11 @@ function _default(props) {
|
|
|
38
42
|
src: user.avatar.small,
|
|
39
43
|
color: user.avatar.color,
|
|
40
44
|
userId: user.userId
|
|
45
|
+
})), !multiple && /*#__PURE__*/_react["default"].createElement("p", {
|
|
46
|
+
className: (0, _classnames["default"])("".concat(preCls, "__input-user-info__name"))
|
|
47
|
+
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
48
|
+
id: user.userId,
|
|
49
|
+
name: user.name
|
|
41
50
|
}))));
|
|
42
51
|
});
|
|
43
52
|
|
|
@@ -55,6 +64,6 @@ function _default(props) {
|
|
|
55
64
|
className: (0, _classnames["default"])("tu-icon-cross ".concat(preCls, "__input--clear")),
|
|
56
65
|
onClick: onHandleClear
|
|
57
66
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
58
|
-
className: (0, _classnames["default"])("".concat(preCls, "__input--down tu-icon-
|
|
67
|
+
className: (0, _classnames["default"])("".concat(preCls, "__input--down tu-icon-caret-down"))
|
|
59
68
|
}));
|
|
60
69
|
}
|
|
@@ -31,6 +31,8 @@ var _inputVerificationCode = _interopRequireDefault(require("./form-fields/input
|
|
|
31
31
|
|
|
32
32
|
var _password = _interopRequireDefault(require("./form-fields/password"));
|
|
33
33
|
|
|
34
|
+
var _date = _interopRequireDefault(require("./form-fields/date"));
|
|
35
|
+
|
|
34
36
|
var _layout = require("./layout");
|
|
35
37
|
|
|
36
38
|
require("./index.css");
|
|
@@ -61,7 +63,7 @@ var Form = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
61
63
|
|
|
62
64
|
var onFieldChangeHandler = function onFieldChangeHandler(name, value) {
|
|
63
65
|
fieldsValue.current[name] = value;
|
|
64
|
-
onFieldsChange
|
|
66
|
+
onFieldsChange === null || onFieldsChange === void 0 ? void 0 : onFieldsChange(fieldsValue.current);
|
|
65
67
|
};
|
|
66
68
|
|
|
67
69
|
var initFieldsValue = function initFieldsValue(name, value) {
|
|
@@ -86,7 +88,7 @@ var Form = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
86
88
|
var errors = [];
|
|
87
89
|
var fieldsKeys = Object.keys(fieldRefs.current);
|
|
88
90
|
|
|
89
|
-
for (var i = 0; i < fieldsKeys.length; i
|
|
91
|
+
for (var i = 0; i < fieldsKeys.length; i += 1) {
|
|
90
92
|
var fieldRef = fieldRefs.current[fieldsKeys[i]];
|
|
91
93
|
var fieldErrors = fieldRef.verifing();
|
|
92
94
|
|
|
@@ -133,9 +135,14 @@ var FormFields = {
|
|
|
133
135
|
DropDown: _dropdown["default"],
|
|
134
136
|
GroupFields: _group["default"],
|
|
135
137
|
VerificationInput: _inputVerificationCode["default"],
|
|
136
|
-
Password: _password["default"]
|
|
138
|
+
Password: _password["default"],
|
|
139
|
+
Date: _date["default"]
|
|
137
140
|
}; // @ts-ignore
|
|
138
141
|
|
|
139
142
|
Form.Fields = FormFields;
|
|
143
|
+
Form.defaultProps = {
|
|
144
|
+
className: "",
|
|
145
|
+
direction: "vertical"
|
|
146
|
+
};
|
|
140
147
|
var _default = Form;
|
|
141
148
|
exports["default"] = _default;
|
|
@@ -57,9 +57,9 @@ function PersonalOkr(props) {
|
|
|
57
57
|
var toolTipRef = (0, _react.useRef)();
|
|
58
58
|
(0, _react.useEffect)(function () {
|
|
59
59
|
if (updateTime) {
|
|
60
|
-
setSubUpdateTime((0, _dateTestChange.judgeTimeSpaceFromNow)(updateTime) + (0, _getLocale.getLocale)(
|
|
60
|
+
setSubUpdateTime((0, _dateTestChange.judgeTimeSpaceFromNow)(updateTime) + (0, _getLocale.getLocale)('OKR_MyO_Butt_Update'));
|
|
61
61
|
} else {
|
|
62
|
-
setSubUpdateTime((0, _getLocale.getLocale)(
|
|
62
|
+
setSubUpdateTime((0, _getLocale.getLocale)('OKR_MyO_KRP_Notupdated'));
|
|
63
63
|
}
|
|
64
64
|
}, [updateTime]);
|
|
65
65
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -97,9 +97,9 @@ function PersonalOkr(props) {
|
|
|
97
97
|
className: "subOKRComponents-PersonalOkr__right__percentNum"
|
|
98
98
|
}, num, "%"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
99
99
|
style: {
|
|
100
|
-
position:
|
|
101
|
-
right:
|
|
102
|
-
bottom:
|
|
100
|
+
position: 'absolute',
|
|
101
|
+
right: '-8px',
|
|
102
|
+
bottom: '0'
|
|
103
103
|
}
|
|
104
104
|
}, /*#__PURE__*/_react["default"].createElement(_index["default"], {
|
|
105
105
|
percent: num,
|
|
@@ -19,7 +19,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
19
19
|
|
|
20
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; }
|
|
21
21
|
|
|
22
|
-
var preCls =
|
|
22
|
+
var preCls = 'titaui-icon-button-list';
|
|
23
23
|
|
|
24
24
|
function _default(props) {
|
|
25
25
|
var items = props.items,
|
|
@@ -36,9 +36,9 @@ function _default(props) {
|
|
|
36
36
|
type = it.type,
|
|
37
37
|
overlay = it.overlay,
|
|
38
38
|
_it$placement = it.placement,
|
|
39
|
-
placement = _it$placement === void 0 ?
|
|
39
|
+
placement = _it$placement === void 0 ? 'top' : _it$placement,
|
|
40
40
|
_it$trigger = it.trigger,
|
|
41
|
-
trigger = _it$trigger === void 0 ? [
|
|
41
|
+
trigger = _it$trigger === void 0 ? ['hover'] : _it$trigger,
|
|
42
42
|
rotate = it.rotate;
|
|
43
43
|
|
|
44
44
|
var content = /*#__PURE__*/_react["default"].createElement("span", {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
.titaui-img-viewer__header-download::after {
|
|
49
|
-
content:
|
|
49
|
+
content: '';
|
|
50
50
|
display: inline-block;
|
|
51
51
|
width: 1px;
|
|
52
52
|
height: 22px;
|
|
@@ -117,12 +117,12 @@
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
.titaui-img-viewer__body-operate-btn--disable {
|
|
120
|
-
color: #
|
|
120
|
+
color: #bfc7d5;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
.titaui-img-viewer__body-operate-btn--disable:hover {
|
|
124
124
|
cursor: not-allowed;
|
|
125
|
-
color: #
|
|
125
|
+
color: #bfc7d5;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
.titaui-img-viewer__body--loading {
|
|
@@ -49,7 +49,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
49
49
|
|
|
50
50
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
51
51
|
|
|
52
|
-
var prefix =
|
|
52
|
+
var prefix = 'titaui-img-viewer';
|
|
53
53
|
var ImgViewer = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
54
54
|
var data = _ref.data,
|
|
55
55
|
_ref$showDownload = _ref.showDownload,
|
|
@@ -95,8 +95,8 @@ var ImgViewer = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
95
95
|
moveY = _useState16[0],
|
|
96
96
|
setMoveY = _useState16[1];
|
|
97
97
|
|
|
98
|
-
var imgRef = (0, _react.useRef)(document.createElement(
|
|
99
|
-
var DragRef = (0, _react.useRef)(document.createElement(
|
|
98
|
+
var imgRef = (0, _react.useRef)(document.createElement('img'));
|
|
99
|
+
var DragRef = (0, _react.useRef)(document.createElement('div'));
|
|
100
100
|
|
|
101
101
|
var showPreview = function showPreview() {
|
|
102
102
|
var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
@@ -188,22 +188,22 @@ var ImgViewer = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
188
188
|
var renderPreviewer = function renderPreviewer() {
|
|
189
189
|
if (!visible) return null;
|
|
190
190
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
191
|
-
className: (0, _classnames["default"])(prefix,
|
|
191
|
+
className: (0, _classnames["default"])(prefix, 'document-mouse-event-ignore')
|
|
192
192
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
193
193
|
className: "".concat(prefix, "__header")
|
|
194
194
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
195
195
|
className: "".concat(prefix, "__header-file-name")
|
|
196
196
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"].Text, {
|
|
197
|
-
text: currentImgData && currentImgData.fileName ||
|
|
197
|
+
text: currentImgData && currentImgData.fileName || '',
|
|
198
198
|
isPercent: true,
|
|
199
199
|
minusWidth: 60
|
|
200
200
|
})), /*#__PURE__*/_react["default"].createElement("span", null, showDownload && currentImgData && currentImgData.downloadUrl && /*#__PURE__*/_react["default"].createElement("a", {
|
|
201
201
|
className: "".concat(prefix, "__header-download"),
|
|
202
|
-
href: (currentImgData === null || currentImgData === void 0 ? void 0 : currentImgData.downloadUrl) ||
|
|
202
|
+
href: (currentImgData === null || currentImgData === void 0 ? void 0 : currentImgData.downloadUrl) || 'javascript:;'
|
|
203
203
|
}, /*#__PURE__*/_react["default"].createElement("i", {
|
|
204
|
-
className: (0, _classnames["default"])(
|
|
205
|
-
}), (0, _getLocale.getLocale)(
|
|
206
|
-
className: (0, _classnames["default"])(
|
|
204
|
+
className: (0, _classnames["default"])('tu-icon-APP-xiazai', "".concat(prefix, "__header-download-icon"))
|
|
205
|
+
}), (0, _getLocale.getLocale)('Mod_Download')), /*#__PURE__*/_react["default"].createElement("span", {
|
|
206
|
+
className: (0, _classnames["default"])('tu-icon-close', "".concat(prefix, "__header-close")),
|
|
207
207
|
onClick: hidePreview
|
|
208
208
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
209
209
|
className: "".concat(prefix, "__body"),
|
|
@@ -238,13 +238,13 @@ var ImgViewer = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
238
238
|
}))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
239
239
|
className: "".concat(prefix, "__footer")
|
|
240
240
|
}, /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
241
|
-
overlay: (0, _getLocale.getLocale)(
|
|
241
|
+
overlay: (0, _getLocale.getLocale)('OKR_Ali_Butt_Narrow'),
|
|
242
242
|
placement: "top"
|
|
243
243
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
244
244
|
className: "".concat(prefix, "__footer-btn"),
|
|
245
245
|
onClick: handleShrink
|
|
246
246
|
}, /*#__PURE__*/_react["default"].createElement(_shrink["default"], null))), /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
|
|
247
|
-
overlay: (0, _getLocale.getLocale)(
|
|
247
|
+
overlay: (0, _getLocale.getLocale)('OKR_Ali_Butt_Enlarge'),
|
|
248
248
|
placement: "top"
|
|
249
249
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
250
250
|
className: "".concat(prefix, "__footer-btn"),
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>切片</title>
|
|
4
|
+
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="1--我的面谈(空页面)" transform="translate(-36.000000, -193.000000)" fill-rule="nonzero">
|
|
6
|
+
<g id="主菜单" transform="translate(16.000000, 74.000000)">
|
|
7
|
+
<g id="编组-3" transform="translate(12.000000, 108.000000)">
|
|
8
|
+
<g id="my-uniEA10" transform="translate(8.000000, 11.000000)">
|
|
9
|
+
<path d="M8.4,13.35 L8.4,4.65 C8.4,3.3245166 7.3254834,2.25 6,2.25 L4.65,2.25 C3.3245166,2.25 2.25,3.3245166 2.25,4.65 L2.25,13.35 C2.25,14.6754834 3.3245166,15.75 4.65,15.75 L6,15.75 C7.3254834,15.75 8.4,14.6754834 8.4,13.35 Z M7.2,4.65 L7.2,13.35 C7.2,14.0127417 6.6627417,14.55 6,14.55 L4.65,14.55 C3.9872583,14.55 3.45,14.0127417 3.45,13.35 L3.45,4.65 C3.45,3.9872583 3.9872583,3.45 4.65,3.45 L6,3.45 C6.6627417,3.45 7.2,3.9872583 7.2,4.65 Z M15.75,7.05 L15.75,4.65 C15.75,3.3245166 14.6754834,2.25 13.35,2.25 L12,2.25 C10.6745166,2.25 9.6,3.3245166 9.6,4.65 L9.6,7.05 C9.6,8.3754834 10.6745166,9.45 12,9.45 L13.35,9.45 C14.6754834,9.45 15.75,8.3754834 15.75,7.05 Z M14.55,4.65 L14.55,7.05 C14.55,7.7127417 14.0127417,8.25 13.35,8.25 L12,8.25 C11.3372583,8.25 10.8,7.7127417 10.8,7.05 L10.8,4.65 C10.8,3.9872583 11.3372583,3.45 12,3.45 L13.35,3.45 C14.0127417,3.45 14.55,3.9872583 14.55,4.65 Z" id="形状结合" fill="#141C28"></path>
|
|
10
|
+
<path d="M12.825,10.125 L12.525,10.125 C11.1995166,10.125 10.125,11.1995166 10.125,12.525 L10.125,13.875 C10.125,15.2004834 11.1995166,16.275 12.525,16.275 L12.825,16.275 C14.1504834,16.275 15.225,15.2004834 15.225,13.875 L15.225,12.525 C15.225,11.1995166 14.1504834,10.125 12.825,10.125 Z M12.525,11.325 L12.825,11.325 C13.4877417,11.325 14.025,11.8622583 14.025,12.525 L14.025,13.875 C14.025,14.5377417 13.4877417,15.075 12.825,15.075 L12.525,15.075 C11.8622583,15.075 11.325,14.5377417 11.325,13.875 L11.325,12.525 C11.325,11.8622583 11.8622583,11.325 12.525,11.325 Z" id="矩形" fill="#2879FF" transform="translate(12.675000, 13.200000) rotate(-270.000000) translate(-12.675000, -13.200000) "></path>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</g>
|
|
15
|
+
</g>
|
|
16
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>切片</title>
|
|
4
|
+
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="1--我的面谈(空页面)" transform="translate(-36.000000, -193.000000)" fill-rule="nonzero">
|
|
6
|
+
<g id="主菜单" transform="translate(16.000000, 74.000000)">
|
|
7
|
+
<g id="编组-3" transform="translate(12.000000, 108.000000)">
|
|
8
|
+
<g id="my-uniEA10" transform="translate(8.000000, 11.000000)">
|
|
9
|
+
<path d="M8.4,13.35 L8.4,4.65 C8.4,3.3245166 7.3254834,2.25 6,2.25 L4.65,2.25 C3.3245166,2.25 2.25,3.3245166 2.25,4.65 L2.25,13.35 C2.25,14.6754834 3.3245166,15.75 4.65,15.75 L6,15.75 C7.3254834,15.75 8.4,14.6754834 8.4,13.35 Z M7.2,4.65 L7.2,13.35 C7.2,14.0127417 6.6627417,14.55 6,14.55 L4.65,14.55 C3.9872583,14.55 3.45,14.0127417 3.45,13.35 L3.45,4.65 C3.45,3.9872583 3.9872583,3.45 4.65,3.45 L6,3.45 C6.6627417,3.45 7.2,3.9872583 7.2,4.65 Z M15.75,7.05 L15.75,4.65 C15.75,3.3245166 14.6754834,2.25 13.35,2.25 L12,2.25 C10.6745166,2.25 9.6,3.3245166 9.6,4.65 L9.6,7.05 C9.6,8.3754834 10.6745166,9.45 12,9.45 L13.35,9.45 C14.6754834,9.45 15.75,8.3754834 15.75,7.05 Z M14.55,4.65 L14.55,7.05 C14.55,7.7127417 14.0127417,8.25 13.35,8.25 L12,8.25 C11.3372583,8.25 10.8,7.7127417 10.8,7.05 L10.8,4.65 C10.8,3.9872583 11.3372583,3.45 12,3.45 L13.35,3.45 C14.0127417,3.45 14.55,3.9872583 14.55,4.65 Z" id="形状结合" fill="#141C28"></path>
|
|
10
|
+
<path d="M12.825,10.125 L12.525,10.125 C11.1995166,10.125 10.125,11.1995166 10.125,12.525 L10.125,13.875 C10.125,15.2004834 11.1995166,16.275 12.525,16.275 L12.825,16.275 C14.1504834,16.275 15.225,15.2004834 15.225,13.875 L15.225,12.525 C15.225,11.1995166 14.1504834,10.125 12.825,10.125 Z M12.525,11.325 L12.825,11.325 C13.4877417,11.325 14.025,11.8622583 14.025,12.525 L14.025,13.875 C14.025,14.5377417 13.4877417,15.075 12.825,15.075 L12.525,15.075 C11.8622583,15.075 11.325,14.5377417 11.325,13.875 L11.325,12.525 C11.325,11.8622583 11.8622583,11.325 12.525,11.325 Z" id="矩形" fill="#2879FF" transform="translate(12.675000, 13.200000) rotate(-270.000000) translate(-12.675000, -13.200000) "></path>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</g>
|
|
15
|
+
</g>
|
|
16
|
+
</svg>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="18px" height="18px" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>切片</title>
|
|
4
|
+
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
5
|
+
<g id="1--我的面谈(空页面)" transform="translate(-36.000000, -154.000000)">
|
|
6
|
+
<g id="主菜单" transform="translate(16.000000, 74.000000)">
|
|
7
|
+
<g id="编组-2" transform="translate(12.000000, 68.000000)">
|
|
8
|
+
<g id="my-pingjia" transform="translate(8.000000, 12.000000)">
|
|
9
|
+
<path d="M8.27325151,3.13900494 C9.5964935,3.12490975 10.6807275,4.1866934 10.6949744,5.5127536 L10.6949744,5.5127536 L10.7394684,16.8508053 C10.7410247,17.2508295 10.5826695,17.6348736 10.2996546,17.9174173 L10.2996546,17.9174173 L8.55030355,19.6638553 C8.08228638,20.1310932 7.32446405,20.1306668 6.85697232,19.6629026 L6.85697232,19.6629026 L4.95309066,17.7579113 C4.67078334,17.4754395 4.51288969,17.0918689 4.51446839,16.6923966 L4.51446839,16.6923966 L4.55888072,5.54139364 C4.56409801,4.23109054 5.6197044,3.16769584 6.92917896,3.15360726 L6.92917896,3.15360726 Z M9.40618374,7.72173222 L5.74745666,7.72086621 L5.71250843,16.6971724 C5.71227163,16.7570932 5.72997546,16.8152251 5.76266186,16.8643796 L5.80023289,16.9102753 L7.70411455,18.8152666 L9.45346558,17.0688286 C9.51006857,17.0123198 9.5417396,16.935511 9.54142834,16.8555062 L9.54142834,16.8555062 L9.50557153,7.71353876 C9.47324366,7.71892786 9.4400412,7.72173222 9.40618374,7.72173222 Z M8.28613292,4.33774469 L6.94206036,4.35227626 C6.28732309,4.35932055 5.75951989,4.8910179 5.75691124,5.54616945 L5.75691124,5.54616945 L5.75245666,6.52086621 L9.40618374,6.52173222 L9.50045666,6.52886621 L9.4969851,5.52359553 C9.49031554,4.90296434 9.01342868,4.39757074 8.40868498,4.34262792 L8.28613292,4.33774469 Z M16.8128747,10.5688778 C17.0471893,10.8031923 17.0471893,11.1830913 16.8128747,11.4174059 L13.5248282,14.7054524 C13.2905136,14.939767 12.9106147,14.939767 12.6763001,14.7054524 C12.4419855,14.4711379 12.4419855,14.0912389 12.6763001,13.8569243 L15.9643466,10.5688778 C16.1986612,10.3345632 16.5785602,10.3345632 16.8128747,10.5688778 Z M15.1158185,8.8718215 C15.350133,9.10613607 15.350133,9.48603506 15.1158185,9.72034964 L13.2066302,11.6295379 C12.9723156,11.8638525 12.5924166,11.8638525 12.358102,11.6295379 C12.1237874,11.3952234 12.1237874,11.0153244 12.358102,10.7810098 L14.2672903,8.8718215 C14.5016049,8.63750692 14.8815039,8.63750692 15.1158185,8.8718215 Z" id="形状结合" fill="#141C28" fill-rule="nonzero" transform="translate(10.751534, 11.576436) rotate(-315.000000) translate(-10.751534, -11.576436) "></path>
|
|
10
|
+
<path d="M5.85312229,10.1205844 C6.18449314,10.1205844 6.45312229,10.3892136 6.45312229,10.7205844 L6.45312229,13.4205844 C6.45312229,13.7519553 6.18449314,14.0205844 5.85312229,14.0205844 C5.52175144,14.0205844 5.25312229,13.7519553 5.25312229,13.4205844 L5.25312229,10.7205844 C5.25312229,10.3892136 5.52175144,10.1205844 5.85312229,10.1205844 Z" id="矩形" fill="#2879FF" transform="translate(5.853122, 12.070584) rotate(-495.000000) translate(-5.853122, -12.070584) "></path>
|
|
11
|
+
</g>
|
|
12
|
+
</g>
|
|
13
|
+
</g>
|
|
14
|
+
</g>
|
|
15
|
+
</g>
|
|
16
|
+
</svg>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
display: inline-block;
|
|
12
12
|
height: 100%;
|
|
13
13
|
width: 100%;
|
|
14
|
-
content:
|
|
14
|
+
content: '';
|
|
15
15
|
opacity: 0;
|
|
16
16
|
background: #e9f1ff;
|
|
17
17
|
border-radius: 12px;
|
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
animation: selectMenuOpacity 0.4s 1 forwards;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.titaui-menus-tree .rc-tree-treenode-selected .titaui-menus-tree__menu-item-node-title
|
|
23
|
+
.titaui-menus-tree .rc-tree-treenode-selected .titaui-menus-tree__menu-item-node-title,
|
|
24
|
+
.titaui-menus-tree .rc-tree-treenode-selected .titaui-menus-tree__ass-template-node-title,
|
|
25
|
+
.titaui-menus-tree .rc-tree-treenode-selected .titaui-menus-tree__ass-manage-node-title {
|
|
24
26
|
color: #2879ff;
|
|
25
27
|
font-weight: 600;
|
|
26
28
|
}
|
|
@@ -122,6 +122,18 @@
|
|
|
122
122
|
background-image: url("../images/appraisal-menu/baobiao.svg");
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
+
.titaui-menus-tree__sub-menu-item-node-icon.my-interview {
|
|
126
|
+
background-image: url("../images/interview-menu/my-interview.svg");
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.titaui-menus-tree__sub-menu-item-node-icon.todo {
|
|
130
|
+
background-image: url("../images/interview-menu/todo.svg");
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.titaui-menus-tree__sub-menu-item-node-icon.template {
|
|
134
|
+
background-image: url("../images/interview-menu/template.svg");
|
|
135
|
+
}
|
|
136
|
+
|
|
125
137
|
.titaui-menus-tree__menu-item-node {
|
|
126
138
|
display: flex;
|
|
127
139
|
align-items: center;
|
|
@@ -218,6 +230,18 @@
|
|
|
218
230
|
background-image: url("../images/appraisal-menu/baobiao.svg");
|
|
219
231
|
}
|
|
220
232
|
|
|
233
|
+
.titaui-menus-tree__menu-item-node-icon.my-interview {
|
|
234
|
+
background-image: url("../images/interview-menu/my-interview.svg");
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.titaui-menus-tree__menu-item-node-icon.todo {
|
|
238
|
+
background-image: url("../images/interview-menu/todo.svg");
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.titaui-menus-tree__menu-item-node-icon.template {
|
|
242
|
+
background-image: url("../images/interview-menu/template.svg");
|
|
243
|
+
}
|
|
244
|
+
|
|
221
245
|
.titaui-menus-tree__parent-menu-node {
|
|
222
246
|
display: flex;
|
|
223
247
|
align-items: center;
|
|
@@ -314,6 +338,18 @@
|
|
|
314
338
|
background-image: url("../images/appraisal-menu/baobiao.svg");
|
|
315
339
|
}
|
|
316
340
|
|
|
341
|
+
.titaui-menus-tree__parent-menu-node-icon.my-interview {
|
|
342
|
+
background-image: url("../images/interview-menu/my-interview.svg");
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.titaui-menus-tree__parent-menu-node-icon.todo {
|
|
346
|
+
background-image: url("../images/interview-menu/todo.svg");
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.titaui-menus-tree__parent-menu-node-icon.template {
|
|
350
|
+
background-image: url("../images/interview-menu/template.svg");
|
|
351
|
+
}
|
|
352
|
+
|
|
317
353
|
.titaui-menus-tree__no-follower-node, .titaui-menus-tree__no-subordinates-node {
|
|
318
354
|
display: flex;
|
|
319
355
|
align-items: center;
|
|
@@ -482,6 +518,18 @@
|
|
|
482
518
|
background-image: url("../images/appraisal-menu/baobiao.svg");
|
|
483
519
|
}
|
|
484
520
|
|
|
521
|
+
.titaui-menus-tree__company-all-node-icon.my-interview {
|
|
522
|
+
background-image: url("../images/interview-menu/my-interview.svg");
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.titaui-menus-tree__company-all-node-icon.todo {
|
|
526
|
+
background-image: url("../images/interview-menu/todo.svg");
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.titaui-menus-tree__company-all-node-icon.template {
|
|
530
|
+
background-image: url("../images/interview-menu/template.svg");
|
|
531
|
+
}
|
|
532
|
+
|
|
485
533
|
.titaui-menus-tree__ass-template-node {
|
|
486
534
|
display: flex;
|
|
487
535
|
align-items: center;
|
|
@@ -578,6 +626,18 @@
|
|
|
578
626
|
background-image: url("../images/appraisal-menu/baobiao.svg");
|
|
579
627
|
}
|
|
580
628
|
|
|
629
|
+
.titaui-menus-tree__ass-template-node-icon.my-interview {
|
|
630
|
+
background-image: url("../images/interview-menu/my-interview.svg");
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
.titaui-menus-tree__ass-template-node-icon.todo {
|
|
634
|
+
background-image: url("../images/interview-menu/todo.svg");
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
.titaui-menus-tree__ass-template-node-icon.template {
|
|
638
|
+
background-image: url("../images/interview-menu/template.svg");
|
|
639
|
+
}
|
|
640
|
+
|
|
581
641
|
.titaui-menus-tree__ass-template-node-suffix {
|
|
582
642
|
display: inline-block;
|
|
583
643
|
height: 18px;
|
|
@@ -684,6 +744,18 @@
|
|
|
684
744
|
background-image: url("../images/appraisal-menu/baobiao.svg");
|
|
685
745
|
}
|
|
686
746
|
|
|
747
|
+
.titaui-menus-tree__ass-manage-node-icon.my-interview {
|
|
748
|
+
background-image: url("../images/interview-menu/my-interview.svg");
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
.titaui-menus-tree__ass-manage-node-icon.todo {
|
|
752
|
+
background-image: url("../images/interview-menu/todo.svg");
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
.titaui-menus-tree__ass-manage-node-icon.template {
|
|
756
|
+
background-image: url("../images/interview-menu/template.svg");
|
|
757
|
+
}
|
|
758
|
+
|
|
687
759
|
.titaui-menus-tree__ass-manage-node-suffix {
|
|
688
760
|
display: inline-block;
|
|
689
761
|
height: 18px;
|
|
@@ -791,6 +863,18 @@
|
|
|
791
863
|
background-image: url("../images/appraisal-menu/baobiao.svg");
|
|
792
864
|
}
|
|
793
865
|
|
|
866
|
+
.titaui-menus-tree__user-concern-node-icon.my-interview {
|
|
867
|
+
background-image: url("../images/interview-menu/my-interview.svg");
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
.titaui-menus-tree__user-concern-node-icon.todo {
|
|
871
|
+
background-image: url("../images/interview-menu/todo.svg");
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
.titaui-menus-tree__user-concern-node-icon.template {
|
|
875
|
+
background-image: url("../images/interview-menu/template.svg");
|
|
876
|
+
}
|
|
877
|
+
|
|
794
878
|
.titaui-menus-tree__user-concern-node-add {
|
|
795
879
|
display: inline-block;
|
|
796
880
|
position: absolute;
|
|
@@ -813,7 +897,7 @@
|
|
|
813
897
|
|
|
814
898
|
.titaui-menus-tree__user-concern-node-add:hover:before {
|
|
815
899
|
position: absolute;
|
|
816
|
-
content:
|
|
900
|
+
content: '';
|
|
817
901
|
display: inline-block;
|
|
818
902
|
width: 24px;
|
|
819
903
|
height: 24px;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _getLocale = require("../../../../utils/getLocale");
|
|
9
|
+
|
|
10
|
+
var getMenus = function getMenus() {
|
|
11
|
+
return [{
|
|
12
|
+
icon: "my-interview",
|
|
13
|
+
label: (0, _getLocale.getLocale)("Ooo_Mo_My1on1"),
|
|
14
|
+
key: "myInterview",
|
|
15
|
+
href: "#/interview?reactRouterName=myInterview"
|
|
16
|
+
}, {
|
|
17
|
+
icon: "todo",
|
|
18
|
+
label: (0, _getLocale.getLocale)("Ooo_Tas_ActionPlans"),
|
|
19
|
+
key: "todos",
|
|
20
|
+
href: "#/interview?reactRouterName=todos"
|
|
21
|
+
}, {
|
|
22
|
+
icon: "template",
|
|
23
|
+
label: (0, _getLocale.getLocale)("Ooo_Mo_Templates"),
|
|
24
|
+
key: "template",
|
|
25
|
+
href: "#/interview?reactRouterName=template"
|
|
26
|
+
}];
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
var _default = getMenus;
|
|
30
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
|
+
|
|
10
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
11
|
+
|
|
12
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
13
|
+
|
|
14
|
+
var MY_INTERVIEW = 'myInterview';
|
|
15
|
+
var TODOS = 'todos';
|
|
16
|
+
var TEMPLATE = 'template';
|
|
17
|
+
|
|
18
|
+
var JudgeManageHighLightMenu = /*#__PURE__*/function () {
|
|
19
|
+
function JudgeManageHighLightMenu(hash) {
|
|
20
|
+
_classCallCheck(this, JudgeManageHighLightMenu);
|
|
21
|
+
|
|
22
|
+
this.search = null;
|
|
23
|
+
this.search = hash;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
_createClass(JudgeManageHighLightMenu, [{
|
|
27
|
+
key: "isMyInterview",
|
|
28
|
+
value: function isMyInterview() {
|
|
29
|
+
return !!this.search.match(/\?reactRouterName=myInterview/) || !this.search.match(/\?reactRouterName=/);
|
|
30
|
+
}
|
|
31
|
+
}, {
|
|
32
|
+
key: "isTodos",
|
|
33
|
+
value: function isTodos() {
|
|
34
|
+
return !!this.search.match(/\?reactRouterName=todos/);
|
|
35
|
+
}
|
|
36
|
+
}, {
|
|
37
|
+
key: "isTemplate",
|
|
38
|
+
value: function isTemplate() {
|
|
39
|
+
return !!this.search.match(/\?reactRouterName=template/);
|
|
40
|
+
}
|
|
41
|
+
}, {
|
|
42
|
+
key: "getHighLightMenu",
|
|
43
|
+
value: function getHighLightMenu() {
|
|
44
|
+
if (this.isMyInterview()) {
|
|
45
|
+
return MY_INTERVIEW;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (this.isTodos()) {
|
|
49
|
+
return TODOS;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
if (this.isTemplate()) {
|
|
53
|
+
return TEMPLATE;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return '';
|
|
57
|
+
}
|
|
58
|
+
}]);
|
|
59
|
+
|
|
60
|
+
return JudgeManageHighLightMenu;
|
|
61
|
+
}();
|
|
62
|
+
|
|
63
|
+
exports["default"] = JudgeManageHighLightMenu;
|