@titaui/pc 1.15.47-beta.14 → 1.15.47-beta.17
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/default.js +7 -2
- package/lib/components/avatar/name-avatar/index.css +2 -3
- package/lib/components/avatar/name-avatar/index.js +14 -24
- package/lib/components/book-demo/components/pc/components/content/index.js +1 -6
- package/lib/components/book-demo/constant.js +3 -0
- package/lib/components/button/icon-btn/index.css +19 -1
- package/lib/components/button/icon-btn/index.js +4 -2
- package/lib/components/checkbox/index.css +1 -0
- package/lib/components/create-okr-modal/fields/okr-visibility.js +3 -0
- package/lib/components/dialog-confirm/index.css +8 -2
- package/lib/components/dialog-confirm/index.js +26 -16
- package/lib/components/drawer/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/components/summary-header/index.js +6 -6
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +4 -4
- package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js +3 -2
- package/lib/components/expiration-reminder/img/emoji-wail.png +0 -0
- package/lib/components/expiration-reminder/index.css +17 -12
- package/lib/components/expiration-reminder/index.js +18 -11
- package/lib/{pages/like-ranking → components}/filter-buttons/department.js +20 -6
- package/lib/{pages/like-ranking → components}/filter-buttons/group.js +2 -2
- package/lib/{pages/like-ranking → components}/filter-buttons/index.css +4 -0
- package/lib/components/filter-buttons/index.js +84 -0
- package/lib/{pages/like-ranking → components}/filter-buttons/modular.js +3 -3
- package/lib/{pages/like-ranking → components}/filter-buttons/name.js +13 -11
- package/lib/{pages/like-ranking → components}/filter-buttons/search-dropdown/index.css +0 -0
- package/lib/{pages/like-ranking → components}/filter-buttons/search-dropdown/index.js +0 -0
- package/lib/{pages/like-ranking → components}/filter-buttons/timer.js +3 -3
- package/lib/components/form/form-fields/cycle/index.css +135 -0
- package/lib/components/form/form-fields/cycle/index.js +190 -0
- package/lib/components/form/form-fields/cycle/interface.js +5 -0
- package/lib/components/form/form-fields/cycle/utils.js +47 -0
- package/lib/components/form/form-fields/dropdown/index.css +9 -0
- package/lib/components/form/form-fields/dropdown/index.js +8 -3
- package/lib/components/form/form-fields/input/index.js +21 -5
- package/lib/components/form/index.js +4 -1
- package/lib/components/guide-order/index.css +205 -0
- package/lib/components/guide-order/index.js +279 -0
- package/lib/components/menus/components/menu-tree/images/survey-menu/involved.svg +8 -0
- package/lib/components/menus/components/menu-tree/images/survey-menu/manage.svg +11 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.css +56 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.js +21 -2
- package/lib/components/menus/components/menu-tree/tree-node/same-level-user/index.js +4 -34
- package/lib/components/menus/components/menu-tree/tree-node/subordinates.js +1 -5
- package/lib/components/menus/components/menu-tree/tree-node/summary-follower/index.css +47 -0
- package/lib/components/menus/components/menu-tree/tree-node/summary-follower/index.js +77 -0
- package/lib/components/menus/components/menu-tree/tree-node/summary-share.js +7 -6
- package/lib/components/menus/components/menu-tree/tree-node/summary-tongji.js +1 -5
- package/lib/components/menus/components/menu-tree/tree-node/summary-user-concern.js +95 -0
- package/lib/components/menus/context.js +6 -2
- package/lib/components/menus/export-modules/demo-menus/index.js +10 -9
- package/lib/components/menus/export-modules/demo-menus/menu-highlight.js +8 -2
- package/lib/components/menus/export-modules/demo-menus/menus.js +73 -26
- package/lib/components/menus/export-modules/summary-menus/depart-menus/index.js +1 -1
- package/lib/components/menus/export-modules/summary-menus/menus.js +124 -2
- package/lib/components/menus/export-modules/summary-menus/summary-front-menus.js +49 -3
- package/lib/components/menus/export-modules/survey-menu/index.css +9 -0
- package/lib/components/menus/export-modules/survey-menu/index.js +120 -0
- package/lib/components/menus/export-modules/survey-menu/menu-highlight.js +52 -0
- package/lib/components/menus/export-modules/survey-menu/menus.js +87 -0
- package/lib/components/menus/export-modules/survey-menu/request-api.js +5 -0
- package/lib/components/menus/export-modules/survey-menu/survey-front-menus.js +178 -0
- package/lib/components/menus/index.js +6 -0
- package/lib/components/menus/request-apis.js +38 -2
- package/lib/components/nav-top/components/app-center/images/survey.svg +20 -0
- package/lib/components/nav-top/components/app-center/index.css +8 -0
- package/lib/components/nav-top/components/app-center/index.js +33 -17
- package/lib/components/okr-detail/index.js +15 -0
- package/lib/components/okr-detail/okr-list/index.js +1 -1
- package/lib/components/okr-excel/hooks.js +314 -0
- package/lib/components/okr-excel/index.css +145 -0
- package/lib/components/okr-excel/index.js +195 -0
- package/lib/components/okr-excel/renders.js +360 -0
- package/lib/components/okr-excel/setting.js +21 -0
- package/lib/components/okr-excel/type.js +5 -0
- package/lib/components/okr-filter-drawer/filter-form.js +6 -2
- package/lib/components/okr-flow/child-node/fields/creator.js +4 -5
- package/lib/components/okr-guide/index.js +0 -4
- package/lib/components/okr-type-icon/assets/okr-classify-nuo-copy.svg +71 -0
- package/lib/components/okr-type-icon/assets/okr-classify-yuan-copy.svg +71 -0
- package/lib/components/okr-type-icon/index.css +10 -0
- package/lib/components/okr-type-icon/index.js +49 -0
- package/lib/components/okrcase-library/index.js +2 -1
- package/lib/components/pagination/index.css +9 -0
- package/lib/components/pagination/pagination.js +6 -6
- package/lib/components/picker/picker.js +9 -5
- package/lib/components/picker/range-picker/components/picker-trigger/index.js +3 -1
- package/lib/components/picker/range-picker/index.js +4 -1
- package/lib/components/popup-select/index.css +63 -0
- package/lib/components/popup-select/index.js +144 -0
- package/lib/components/progress/okr-progress/index.css +28 -0
- package/lib/components/progress/okr-progress/index.js +36 -0
- package/lib/components/quick-entrance/index.js +17 -0
- package/lib/components/radio/index.css +4 -0
- package/lib/components/radio/radio.js +11 -4
- package/lib/components/rich-editor-at/components/index.js +15 -4
- package/lib/components/rich-editor-at/index.js +3 -1
- package/lib/components/table/index.css +2 -2
- package/lib/components/table/index.js +45 -17
- package/lib/components/table-excel/index.css +62 -0
- package/lib/components/table-excel/index.js +37 -0
- package/lib/components/tabs/index.css +20 -0
- package/lib/components/tabs/index.js +4 -1
- package/lib/components/tabs/tabBtns.js +69 -0
- package/lib/components/tag/index.css +14 -0
- package/lib/components/tag/index.js +52 -0
- package/lib/components/user-selector/request-apis.js +6 -3
- package/lib/components/wechat-btn/index.js +8 -0
- package/lib/index.js +48 -0
- package/lib/pages/like-ranking/index.js +1 -1
- package/lib/pages/new-okr-list/header/index.css +42 -1
- package/lib/pages/new-okr-list/header/index.js +148 -16
- package/lib/pages/new-okr-list/index.css +5 -0
- package/lib/pages/new-okr-list/index.js +90 -19
- package/lib/pages/new-okr-list/list/index.js +6 -1
- package/lib/pages/personal-info/components/edit-base-info/index.js +3 -3
- package/lib/utils/auth.js +5 -0
- package/lib/utils/hooks.js +58 -0
- package/lib/utils/open-data.js +19 -65
- package/package.json +2 -2
- package/lib/components/expiration-reminder/img/emoji.svg +0 -16
- package/lib/pages/like-ranking/filter-buttons/index.js +0 -36
|
@@ -59,7 +59,9 @@ var Avatar = function Avatar(props) {
|
|
|
59
59
|
showNameTips = _props$showNameTips === void 0 ? false : _props$showNameTips,
|
|
60
60
|
color = props.color,
|
|
61
61
|
canDelUser = props.canDelUser,
|
|
62
|
-
onDelUser = props.onDelUser
|
|
62
|
+
onDelUser = props.onDelUser,
|
|
63
|
+
_props$isDept = props.isDept,
|
|
64
|
+
isDept = _props$isDept === void 0 ? false : _props$isDept;
|
|
63
65
|
|
|
64
66
|
var _useState = (0, _react.useState)(false),
|
|
65
67
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -124,7 +126,10 @@ var Avatar = function Avatar(props) {
|
|
|
124
126
|
lineHeight: "".concat(size.width, "px"),
|
|
125
127
|
borderRadius: '50%'
|
|
126
128
|
}
|
|
127
|
-
}, /*#__PURE__*/_react["default"].createElement(_openData.
|
|
129
|
+
}, isDept && /*#__PURE__*/_react["default"].createElement(_openData.OpenDepartmentName, {
|
|
130
|
+
name: name,
|
|
131
|
+
id: userId
|
|
132
|
+
}), !isDept && /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
128
133
|
name: name,
|
|
129
134
|
id: userId
|
|
130
135
|
})));
|
|
@@ -30,12 +30,11 @@
|
|
|
30
30
|
z-index: 1;
|
|
31
31
|
width: 14px;
|
|
32
32
|
height: 14px;
|
|
33
|
-
background: #f0f2f5;
|
|
34
|
-
box-shadow: 0px 2px 4px 0px rgba(127, 145, 180, 0.2);
|
|
35
33
|
align-items: center;
|
|
36
34
|
justify-content: center;
|
|
37
35
|
border-radius: 50%;
|
|
38
36
|
display: none;
|
|
37
|
+
color: #BFC7D5;
|
|
39
38
|
}
|
|
40
39
|
|
|
41
40
|
.titaui-pc-avator__name-avatar-container .titaui-pc-avator__delete-wrapper:hover {
|
|
@@ -53,7 +52,7 @@
|
|
|
53
52
|
word-break: keep-all;
|
|
54
53
|
font-size: 14px;
|
|
55
54
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
56
|
-
color: #
|
|
55
|
+
color: #374755;
|
|
57
56
|
line-height: 20px;
|
|
58
57
|
margin-left: 4px;
|
|
59
58
|
}
|
|
@@ -13,10 +13,6 @@ var _openData = require("../../../utils/open-data");
|
|
|
13
13
|
|
|
14
14
|
var _tooltip = _interopRequireDefault(require("../../tooltip"));
|
|
15
15
|
|
|
16
|
-
var _avatarCloseNormal = _interopRequireDefault(require("../img/avatar-close-normal.svg"));
|
|
17
|
-
|
|
18
|
-
var _avatarCloseRed = _interopRequireDefault(require("../img/avatar-close-red.svg"));
|
|
19
|
-
|
|
20
16
|
require("./index.css");
|
|
21
17
|
|
|
22
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -72,12 +68,8 @@ var NameAvatar = function NameAvatar(props) {
|
|
|
72
68
|
var _useState3 = (0, _react.useState)(false),
|
|
73
69
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
74
70
|
isNameOverflow = _useState4[0],
|
|
75
|
-
setIsNameOverflow = _useState4[1];
|
|
71
|
+
setIsNameOverflow = _useState4[1]; // const [mouseIsEnterCloseIcon, setMouseIsEnterCloseIcon] = useState(false)
|
|
76
72
|
|
|
77
|
-
var _useState5 = (0, _react.useState)(false),
|
|
78
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
79
|
-
mouseIsEnterCloseIcon = _useState6[0],
|
|
80
|
-
setMouseIsEnterCloseIcon = _useState6[1];
|
|
81
73
|
|
|
82
74
|
var textRef = (0, _react.useRef)();
|
|
83
75
|
|
|
@@ -93,13 +85,12 @@ var NameAvatar = function NameAvatar(props) {
|
|
|
93
85
|
}, []);
|
|
94
86
|
var handleMouseLeave = (0, _react.useCallback)(function () {
|
|
95
87
|
setMouseIsEnterUser(false);
|
|
96
|
-
}, []);
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}, []);
|
|
88
|
+
}, []); // const handleCloseIconMouseEnter = useCallback(() => {
|
|
89
|
+
// setMouseIsEnterCloseIcon(true)
|
|
90
|
+
// }, [])
|
|
91
|
+
// const handleCloseIconMouseLeave = useCallback(() => {
|
|
92
|
+
// setMouseIsEnterCloseIcon(false)
|
|
93
|
+
// }, [])
|
|
103
94
|
|
|
104
95
|
var renderImgAvatar = function renderImgAvatar() {
|
|
105
96
|
return /*#__PURE__*/_react["default"].createElement("img", {
|
|
@@ -171,17 +162,16 @@ var NameAvatar = function NameAvatar(props) {
|
|
|
171
162
|
onMouseEnter: handleMouseEnter,
|
|
172
163
|
onMouseLeave: handleMouseLeave
|
|
173
164
|
}, renderRightTopCmp, /*#__PURE__*/_react["default"].createElement("div", {
|
|
174
|
-
onClick: handleDelUser
|
|
175
|
-
|
|
176
|
-
|
|
165
|
+
onClick: handleDelUser // onMouseLeave={handleCloseIconMouseLeave}
|
|
166
|
+
// onMouseEnter={handleCloseIconMouseEnter}
|
|
167
|
+
,
|
|
177
168
|
className: "titaui-pc-avator__delete-wrapper ".concat(canDelUser && mouseIsEnterUser ? 'titaui-pc-avator--enter' : ''),
|
|
178
169
|
style: {
|
|
179
|
-
|
|
170
|
+
right: -12,
|
|
171
|
+
top: -6
|
|
180
172
|
}
|
|
181
|
-
}, /*#__PURE__*/_react["default"].createElement("
|
|
182
|
-
|
|
183
|
-
height: 6,
|
|
184
|
-
src: mouseIsEnterCloseIcon ? _avatarCloseRed["default"] : _avatarCloseNormal["default"]
|
|
173
|
+
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
174
|
+
className: "tu-icon-cross"
|
|
185
175
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
186
176
|
className: "titaui-pc-avator-wrapper",
|
|
187
177
|
style: style,
|
|
@@ -178,12 +178,7 @@ var BookDemoPCContent = function BookDemoPCContent(_ref) {
|
|
|
178
178
|
if (res.data.Code) {
|
|
179
179
|
(0, _request.sendBookDemoJson)((0, _utils.bookDemoTransformDataToJson)(result, source > 0 ? source : Source, _constant.DemoTypeTextMap[type], content, uid));
|
|
180
180
|
|
|
181
|
-
_toast["default"].Success("提交成功"
|
|
182
|
-
style: {
|
|
183
|
-
position: "fixed"
|
|
184
|
-
},
|
|
185
|
-
canClose: false
|
|
186
|
-
});
|
|
181
|
+
_toast["default"].Success("提交成功");
|
|
187
182
|
|
|
188
183
|
if (onSubmitSuccess) {
|
|
189
184
|
onSubmitSuccess();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.titaui-icon-btn {
|
|
2
2
|
display: inline-flex;
|
|
3
3
|
align-items: center;
|
|
4
|
-
font-size: 14px;
|
|
5
4
|
cursor: pointer;
|
|
5
|
+
border-radius: 50%;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.titaui-icon-btn--gray {
|
|
@@ -38,3 +38,21 @@
|
|
|
38
38
|
.titaui-icon-btn--border:hover {
|
|
39
39
|
border-color: #2879FF;
|
|
40
40
|
}
|
|
41
|
+
|
|
42
|
+
.titaui-icon-btn--normal {
|
|
43
|
+
font-size: 14px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.titaui-icon-btn--big {
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
font-size: 18px;
|
|
51
|
+
box-sizing: border-box;
|
|
52
|
+
width: 36px;
|
|
53
|
+
height: 36px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.titaui-icon-btn--big__icon {
|
|
57
|
+
font-size: 18px;
|
|
58
|
+
}
|
|
@@ -11,7 +11,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
11
11
|
|
|
12
12
|
require("./index.css");
|
|
13
13
|
|
|
14
|
-
var _excluded = ["border", "theme", "onClick", "disabled", "icon"];
|
|
14
|
+
var _excluded = ["border", "theme", "onClick", "disabled", "icon", "size"];
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
17
|
|
|
@@ -33,6 +33,8 @@ function IconBtn(props) {
|
|
|
33
33
|
onClick = props.onClick,
|
|
34
34
|
disabled = props.disabled,
|
|
35
35
|
icon = props.icon,
|
|
36
|
+
_props$size = props.size,
|
|
37
|
+
size = _props$size === void 0 ? 'normal' : _props$size,
|
|
36
38
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
37
39
|
|
|
38
40
|
var onClickHandler = function onClickHandler() {
|
|
@@ -55,7 +57,7 @@ function IconBtn(props) {
|
|
|
55
57
|
};
|
|
56
58
|
|
|
57
59
|
return /*#__PURE__*/_react["default"].createElement("span", _extends({
|
|
58
|
-
className: (0, _classnames["default"])(precls, "".concat(precls, "--").concat(theme), (_classNames = {}, _defineProperty(_classNames, "".concat(precls, "--border"), border), _defineProperty(_classNames, "".concat(precls, "--disabled"), disabled), _classNames)),
|
|
60
|
+
className: (0, _classnames["default"])(precls, "".concat(precls, "--").concat(theme), "".concat(precls, "--").concat(size), (_classNames = {}, _defineProperty(_classNames, "".concat(precls, "--border"), border), _defineProperty(_classNames, "".concat(precls, "--disabled"), disabled), _classNames)),
|
|
59
61
|
onClick: onClickHandler
|
|
60
62
|
}, restProps), renderIcon());
|
|
61
63
|
}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = _default;
|
|
9
|
+
exports.visibilityMapText = void 0;
|
|
9
10
|
|
|
10
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
12
|
|
|
@@ -52,6 +53,8 @@ var visibilityMapText = function visibilityMapText() {
|
|
|
52
53
|
};
|
|
53
54
|
};
|
|
54
55
|
|
|
56
|
+
exports.visibilityMapText = visibilityMapText;
|
|
57
|
+
|
|
55
58
|
function _default(_ref) {
|
|
56
59
|
var visibility = _ref.visibility,
|
|
57
60
|
setVisibility = _ref.setVisibility,
|
|
@@ -61,6 +61,14 @@
|
|
|
61
61
|
border: 1px solid #f05e5e;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
.titaui-dialog-confirm__btn-warning--disabled {
|
|
65
|
+
opacity: 0.4;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.titaui-dialog-confirm__btn-warning--disabled:hover {
|
|
69
|
+
background: #fff;
|
|
70
|
+
}
|
|
71
|
+
|
|
64
72
|
.titaui-dialog-confirm__btn-warning-text {
|
|
65
73
|
font-size: 14px;
|
|
66
74
|
font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica, sans-serif, PingFang SC, Microsoft YaHei;
|
|
@@ -100,7 +108,6 @@
|
|
|
100
108
|
.titaui-dialog-confirm__body-title {
|
|
101
109
|
display: inline-flex;
|
|
102
110
|
align-items: center;
|
|
103
|
-
margin-left: 6px;
|
|
104
111
|
}
|
|
105
112
|
|
|
106
113
|
.titaui-dialog-confirm__body-title-icon {
|
|
@@ -127,5 +134,4 @@
|
|
|
127
134
|
color: #6f7886;
|
|
128
135
|
line-height: 22px;
|
|
129
136
|
padding-left: 20px;
|
|
130
|
-
margin-left: 6px;
|
|
131
137
|
}
|
|
@@ -28,7 +28,9 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
28
28
|
|
|
29
29
|
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; }
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
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; }
|
|
32
|
+
|
|
33
|
+
var preCls = 'titaui-dialog-confirm';
|
|
32
34
|
|
|
33
35
|
function CancelButton(props) {
|
|
34
36
|
var onClick = props.onClick,
|
|
@@ -56,11 +58,19 @@ function SureButton(props) {
|
|
|
56
58
|
|
|
57
59
|
function WarningButton(props) {
|
|
58
60
|
var onClick = props.onClick,
|
|
59
|
-
children = props.children
|
|
61
|
+
children = props.children,
|
|
62
|
+
disabled = props.disabled;
|
|
63
|
+
|
|
64
|
+
var onClickHandler = function onClickHandler() {
|
|
65
|
+
if (!disabled) {
|
|
66
|
+
onClick();
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
|
|
60
70
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
61
71
|
key: "warning",
|
|
62
|
-
className: (0, _classnames["default"])("".concat(preCls, "__btn-warning"), "".concat(preCls, "__btn")),
|
|
63
|
-
onClick:
|
|
72
|
+
className: (0, _classnames["default"])("".concat(preCls, "__btn-warning"), "".concat(preCls, "__btn"), _defineProperty({}, "".concat(preCls, "__btn-warning--disabled"), disabled)),
|
|
73
|
+
onClick: onClickHandler
|
|
64
74
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
65
75
|
className: (0, _classnames["default"])("".concat(preCls, "__btn-warning-text"))
|
|
66
76
|
}, children));
|
|
@@ -71,7 +81,7 @@ function DialogConfirm(props) {
|
|
|
71
81
|
visible = props.visible,
|
|
72
82
|
type = props.type,
|
|
73
83
|
_props$className = props.className,
|
|
74
|
-
className = _props$className === void 0 ?
|
|
84
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
75
85
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
76
86
|
|
|
77
87
|
var footer = [];
|
|
@@ -80,46 +90,46 @@ function DialogConfirm(props) {
|
|
|
80
90
|
|
|
81
91
|
_react["default"].Children.forEach(children, function (child) {
|
|
82
92
|
if (child) {
|
|
83
|
-
if (child.props.type ==
|
|
84
|
-
if (child.props.type ==
|
|
85
|
-
if (child.props.type ==
|
|
93
|
+
if (child.props.type == 'button') footer.push(child);
|
|
94
|
+
if (child.props.type == 'title') titleInstance = child;
|
|
95
|
+
if (child.props.type == 'content') contentInstance = child;
|
|
86
96
|
}
|
|
87
97
|
});
|
|
88
98
|
|
|
89
99
|
var getConfirmIcon = function getConfirmIcon(type) {
|
|
90
100
|
switch (type) {
|
|
91
|
-
case
|
|
101
|
+
case 'warning':
|
|
92
102
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
93
103
|
className: "tu-icon-tishi",
|
|
94
104
|
style: {
|
|
95
|
-
color:
|
|
105
|
+
color: '#FFBC00',
|
|
96
106
|
fontSize: '18px',
|
|
97
107
|
verticalAlign: '-2px'
|
|
98
108
|
}
|
|
99
109
|
});
|
|
100
110
|
|
|
101
|
-
case
|
|
111
|
+
case 'success':
|
|
102
112
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
103
113
|
className: "tu-icon-check",
|
|
104
114
|
style: {
|
|
105
|
-
color:
|
|
115
|
+
color: '#5AD8A6'
|
|
106
116
|
}
|
|
107
117
|
});
|
|
108
118
|
|
|
109
|
-
case
|
|
119
|
+
case 'error':
|
|
110
120
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
111
121
|
className: "tu-icon-cross",
|
|
112
122
|
style: {
|
|
113
|
-
color:
|
|
123
|
+
color: '#F05E5E'
|
|
114
124
|
}
|
|
115
125
|
});
|
|
116
126
|
|
|
117
|
-
case
|
|
127
|
+
case 'confirm':
|
|
118
128
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
119
129
|
className: "tu-icon-tishi"
|
|
120
130
|
});
|
|
121
131
|
|
|
122
|
-
case
|
|
132
|
+
case 'info':
|
|
123
133
|
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
124
134
|
className: "tu-icon-warning"
|
|
125
135
|
});
|
|
@@ -160,28 +160,28 @@ var DynamicItemHeader = function DynamicItemHeader(_ref) {
|
|
|
160
160
|
departmentName = _ref3.departmentName,
|
|
161
161
|
departmentId = _ref3.departmentId;
|
|
162
162
|
|
|
163
|
-
console.log('
|
|
163
|
+
console.log('visibilityScope', visibilityScope);
|
|
164
164
|
var departmentsRender = (0, _react.useMemo)(function () {
|
|
165
165
|
return (departments === null || departments === void 0 ? void 0 : departments.length) !== 0 && departments.map(function (item, index) {
|
|
166
166
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_openData.OpenDepartmentName, {
|
|
167
167
|
name: item.name,
|
|
168
168
|
id: item.id
|
|
169
|
-
}), /*#__PURE__*/_react["default"].createElement("span", null, ","));
|
|
169
|
+
}), index + 1 !== (departments === null || departments === void 0 ? void 0 : departments.length) && /*#__PURE__*/_react["default"].createElement("span", null, ","));
|
|
170
170
|
});
|
|
171
|
-
}, [departments]);
|
|
171
|
+
}, [departments, users, str]);
|
|
172
172
|
var usersRender = (0, _react.useMemo)(function () {
|
|
173
173
|
return (users === null || users === void 0 ? void 0 : users.length) !== 0 && users.map(function (item, index) {
|
|
174
174
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_openData.OpenUserName, {
|
|
175
175
|
name: item.name,
|
|
176
176
|
id: item.userId
|
|
177
|
-
}), /*#__PURE__*/_react["default"].createElement("span", null, ","));
|
|
177
|
+
}), index + 1 !== (users === null || users === void 0 ? void 0 : users.length) && /*#__PURE__*/_react["default"].createElement("span", null, ","));
|
|
178
178
|
});
|
|
179
|
-
}, [users]);
|
|
179
|
+
}, [users, str]);
|
|
180
180
|
var typeTootips = {
|
|
181
181
|
2: (0, _getLocale.getLocale)('Rep_NewS_RefeSummary'),
|
|
182
182
|
3: /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)('Per_Ass_New_Appr_detail_Affiliat'), (0, _getLocale.getLocale)('OKR_MyO_Text_Visible')),
|
|
183
183
|
1: /*#__PURE__*/_react["default"].createElement("span", null, (0, _getLocale.getLocale)('OKR_MyO_Pop_Company'), (0, _getLocale.getLocale)('Rep_Tab_Subor_EveryoneSee')),
|
|
184
|
-
5: /*#__PURE__*/_react["default"].createElement("span", null, departmentsRender, usersRender, str)
|
|
184
|
+
5: /*#__PURE__*/_react["default"].createElement("span", null, departmentsRender, (usersRender || str) && /*#__PURE__*/_react["default"].createElement("span", null, ","), usersRender, str && /*#__PURE__*/_react["default"].createElement("span", null, ","), str)
|
|
185
185
|
};
|
|
186
186
|
var url = '';
|
|
187
187
|
var loginUserId = (0, _bsGlobal.getUserInfo)().Id;
|
|
@@ -92,10 +92,10 @@ var DynamicCreateO = function DynamicCreateO(_ref) {
|
|
|
92
92
|
// 个人
|
|
93
93
|
2: {
|
|
94
94
|
icon: 'tu-icon-liebiao-xiashu',
|
|
95
|
-
text: okrTypeId === -1 ? '默认部门' :
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
95
|
+
text: okrTypeId === -1 ? '默认部门' :
|
|
96
|
+
/*#__PURE__*/
|
|
97
|
+
// <OpenDepartmentName id={okrTypeId} name={okrTypeName} />
|
|
98
|
+
_react["default"].createElement("span", null, (0, _openData.parseString)(okrTypeName))
|
|
99
99
|
},
|
|
100
100
|
// 部门
|
|
101
101
|
3: {
|
package/lib/components/dynamic/dynamic-item/dynamic-new-report/components/remind-user-view/index.js
CHANGED
|
@@ -62,10 +62,11 @@ var RemindUserView = function RemindUserView(props) {
|
|
|
62
62
|
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
63
63
|
userId: item.Id,
|
|
64
64
|
name: item === null || item === void 0 ? void 0 : item.Name,
|
|
65
|
-
color: "#3296fa"
|
|
65
|
+
color: "#3296fa",
|
|
66
|
+
isDept: true
|
|
66
67
|
}), /*#__PURE__*/_react["default"].createElement("span", {
|
|
67
68
|
className: "".concat(preCls, "__user-name")
|
|
68
|
-
}, /*#__PURE__*/_react["default"].createElement(_openData.
|
|
69
|
+
}, /*#__PURE__*/_react["default"].createElement(_openData.OpenDepartmentName, {
|
|
69
70
|
name: item === null || item === void 0 ? void 0 : item.Name,
|
|
70
71
|
id: item.Id
|
|
71
72
|
}))));
|
|
Binary file
|
|
@@ -30,6 +30,12 @@
|
|
|
30
30
|
color: #89919F;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
+
.titaui-expiration-reminder__contact-out {
|
|
34
|
+
color: #2879ff;
|
|
35
|
+
margin-left: 16px;
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
}
|
|
38
|
+
|
|
33
39
|
.titaui-expiration-reminder__contact-number::selection {
|
|
34
40
|
background-color: #2879ff;
|
|
35
41
|
color: #ffffff;
|
|
@@ -37,15 +43,15 @@
|
|
|
37
43
|
|
|
38
44
|
.titaui-expiration-reminder__description {
|
|
39
45
|
margin: 24px 0 28px;
|
|
40
|
-
font-size:
|
|
41
|
-
line-height:
|
|
42
|
-
color: #
|
|
46
|
+
font-size: 16px;
|
|
47
|
+
line-height: 32px;
|
|
48
|
+
color: #3f4755;
|
|
43
49
|
text-align: center;
|
|
44
50
|
}
|
|
45
51
|
|
|
46
52
|
.titaui-expiration-reminder__description .titaui-text-btn {
|
|
47
|
-
font-size:
|
|
48
|
-
line-height:
|
|
53
|
+
font-size: 16px;
|
|
54
|
+
line-height: 32px;
|
|
49
55
|
}
|
|
50
56
|
|
|
51
57
|
.titaui-expiration-reminder__footer {
|
|
@@ -54,9 +60,9 @@
|
|
|
54
60
|
|
|
55
61
|
.titaui-expiration-reminder__footer .titaui-rect-btn {
|
|
56
62
|
width: 356px;
|
|
57
|
-
height:
|
|
63
|
+
height: 48px;
|
|
58
64
|
margin: 0 auto 10px;
|
|
59
|
-
font-size:
|
|
65
|
+
font-size: 16px;
|
|
60
66
|
line-height: 24px;
|
|
61
67
|
border-radius: 26px;
|
|
62
68
|
}
|
|
@@ -93,12 +99,12 @@
|
|
|
93
99
|
}
|
|
94
100
|
|
|
95
101
|
.titaui-expiration-reminder__remain-day {
|
|
96
|
-
font-size:
|
|
102
|
+
font-size: 32px;
|
|
97
103
|
color: #2879ff;
|
|
98
104
|
}
|
|
99
105
|
|
|
100
106
|
.titaui-expiration-reminder__title {
|
|
101
|
-
font-size:
|
|
107
|
+
font-size: 24px;
|
|
102
108
|
font-weight: 600;
|
|
103
109
|
line-height: 34px;
|
|
104
110
|
color: #141C28;
|
|
@@ -106,7 +112,6 @@
|
|
|
106
112
|
}
|
|
107
113
|
|
|
108
114
|
.titaui-expiration-reminder__title img {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
left: -4px;
|
|
115
|
+
width: 28px;
|
|
116
|
+
margin-right: 4px;
|
|
112
117
|
}
|
|
@@ -31,7 +31,7 @@ var _mirroring = _interopRequireDefault(require("../mirroring"));
|
|
|
31
31
|
|
|
32
32
|
var _toast = _interopRequireDefault(require("../toast"));
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _emojiWail = _interopRequireDefault(require("./img/emoji-wail.png"));
|
|
35
35
|
|
|
36
36
|
var _qrcodeTrial = _interopRequireDefault(require("./img/qrcode-trial.png"));
|
|
37
37
|
|
|
@@ -62,6 +62,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
62
62
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
63
63
|
|
|
64
64
|
var prefixCls = 'titaui-expiration-reminder';
|
|
65
|
+
var ua = navigator.userAgent.toLowerCase();
|
|
66
|
+
var isOffiial = ua.indexOf('micromessenger') === -1 && ua.indexOf('lark') === -1 && ua.indexOf('dingtalk') === -1;
|
|
65
67
|
|
|
66
68
|
var ExpirationReminder = function ExpirationReminder() {
|
|
67
69
|
var _trialVersion, _officialVersion;
|
|
@@ -161,7 +163,7 @@ var ExpirationReminder = function ExpirationReminder() {
|
|
|
161
163
|
return setMirrorSwitch('on');
|
|
162
164
|
},
|
|
163
165
|
type: "primary",
|
|
164
|
-
text: " \u8054\u7CFB\u987E\u95EE "
|
|
166
|
+
text: " \u8BF7\u8054\u7CFB\u987E\u95EE "
|
|
165
167
|
}), /*#__PURE__*/_react["default"].createElement("span", null, "\u7D22\u53D6\u4F18\u60E0~")))
|
|
166
168
|
}), _defineProperty(_trialVersion, _utils.ApplicationState.Expired, {
|
|
167
169
|
closeEnable: false,
|
|
@@ -170,7 +172,7 @@ var ExpirationReminder = function ExpirationReminder() {
|
|
|
170
172
|
title: /*#__PURE__*/_react["default"].createElement("h2", {
|
|
171
173
|
className: "".concat(prefixCls, "__title")
|
|
172
174
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
173
|
-
src:
|
|
175
|
+
src: _emojiWail["default"],
|
|
174
176
|
alt: "Emoji"
|
|
175
177
|
}), "\u60A8\u7684 Tita \u8BD5\u7528\u5DF2\u5230\u671F"),
|
|
176
178
|
content: /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -180,7 +182,7 @@ var ExpirationReminder = function ExpirationReminder() {
|
|
|
180
182
|
return setMirrorSwitch('on');
|
|
181
183
|
},
|
|
182
184
|
type: "primary",
|
|
183
|
-
text: " \u8054\u7CFB\u987E\u95EE"
|
|
185
|
+
text: " \u8BF7\u8054\u7CFB\u987E\u95EE"
|
|
184
186
|
})))
|
|
185
187
|
}), _defineProperty(_trialVersion, "button", /*#__PURE__*/_react["default"].createElement(_button["default"].Rect, {
|
|
186
188
|
onClick: showBookDemo,
|
|
@@ -203,7 +205,7 @@ var ExpirationReminder = function ExpirationReminder() {
|
|
|
203
205
|
}, " ", Day, " "), "\u5929"),
|
|
204
206
|
content: /*#__PURE__*/_react["default"].createElement("div", {
|
|
205
207
|
className: "".concat(prefixCls, "__description")
|
|
206
|
-
}, /*#__PURE__*/_react["default"].createElement("p", null, "\u7EED\u8D39\u670D\u52A1 \u8054\u7CFB\u987E\u95EE"))
|
|
208
|
+
}, /*#__PURE__*/_react["default"].createElement("p", null, "\u7EED\u8D39\u670D\u52A1 \u8BF7\u8054\u7CFB\u987E\u95EE"))
|
|
207
209
|
}), _defineProperty(_officialVersion, _utils.ApplicationState.Expired, {
|
|
208
210
|
closeEnable: false,
|
|
209
211
|
height: 466,
|
|
@@ -211,12 +213,12 @@ var ExpirationReminder = function ExpirationReminder() {
|
|
|
211
213
|
title: /*#__PURE__*/_react["default"].createElement("h2", {
|
|
212
214
|
className: "".concat(prefixCls, "__title")
|
|
213
215
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
214
|
-
src:
|
|
216
|
+
src: _emojiWail["default"],
|
|
215
217
|
alt: "Emoji"
|
|
216
218
|
}), "\u60A8\u7684 Tita \u7CFB\u7EDF\u4F7F\u7528\u5DF2\u5230\u671F"),
|
|
217
219
|
content: /*#__PURE__*/_react["default"].createElement("div", {
|
|
218
220
|
className: "".concat(prefixCls, "__description")
|
|
219
|
-
}, /*#__PURE__*/_react["default"].createElement("p", null, "\u9519\u8FC7\u4E86\u4E00\u5927\u6CE2\u4EA7\u54C1\u5347\u7EA7\u54E6~"), /*#__PURE__*/_react["default"].createElement("p", null, "\u4E86\u89E3 Tita \u65B0\u529F\u80FD \u9884\u7EA6\u987E\u95EE\u6F14\u793A"))
|
|
221
|
+
}, /*#__PURE__*/_react["default"].createElement("p", null, "\u9519\u8FC7\u4E86\u4E00\u5927\u6CE2\u4EA7\u54C1\u5347\u7EA7\u54E6~"), /*#__PURE__*/_react["default"].createElement("p", null, "\u4E86\u89E3 Tita \u65B0\u529F\u80FD \u8BF7\u9884\u7EA6\u987E\u95EE\u6F14\u793A"))
|
|
220
222
|
}), _defineProperty(_officialVersion, "button", /*#__PURE__*/_react["default"].createElement(_button["default"].Rect, {
|
|
221
223
|
onClick: function onClick() {
|
|
222
224
|
return setMirrorSwitch('on');
|
|
@@ -250,12 +252,17 @@ var ExpirationReminder = function ExpirationReminder() {
|
|
|
250
252
|
}, title, content, /*#__PURE__*/_react["default"].createElement("div", {
|
|
251
253
|
className: "".concat(prefixCls, "__footer")
|
|
252
254
|
}, /*#__PURE__*/_react["default"].createElement("p", null, button), /*#__PURE__*/_react["default"].createElement("p", {
|
|
253
|
-
className: "".concat(prefixCls, "__contact")
|
|
254
|
-
onClick: onCopy
|
|
255
|
+
className: "".concat(prefixCls, "__contact")
|
|
255
256
|
}, "\u8054\u7CFB\u7535\u8BDD:", /*#__PURE__*/_react["default"].createElement("span", {
|
|
256
257
|
className: "".concat(prefixCls, "__contact-number"),
|
|
258
|
+
onClick: onCopy,
|
|
257
259
|
ref: telRef
|
|
258
|
-
}, _utils.ContactNumber)
|
|
260
|
+
}, _utils.ContactNumber), isOffiial && /*#__PURE__*/_react["default"].createElement("span", {
|
|
261
|
+
className: "".concat(prefixCls, "__contact-out"),
|
|
262
|
+
onClick: function onClick() {
|
|
263
|
+
return window.open('/Account/Logout', '_self ');
|
|
264
|
+
}
|
|
265
|
+
}, "\u9000\u51FA\u767B\u5F55"))), closeEnable && /*#__PURE__*/_react["default"].createElement("div", {
|
|
259
266
|
className: "".concat(prefixCls, "__close"),
|
|
260
267
|
onClick: deleteCache
|
|
261
268
|
}), /*#__PURE__*/_react["default"].createElement(_errorBoundary["default"], {
|
|
@@ -282,7 +289,7 @@ var ExpirationReminder = function ExpirationReminder() {
|
|
|
282
289
|
className: "".concat(prefixCls, "__qrcode-title")
|
|
283
290
|
}, "\u5FAE\u4FE1/\u4F01\u4E1A\u5FAE\u4FE1\u626B\u4E00\u626B"), /*#__PURE__*/_react["default"].createElement("h3", {
|
|
284
291
|
className: "".concat(prefixCls, "__qrcode-subtitle")
|
|
285
|
-
}, "\u4E13\u5C5E\u5BA2\u670D\u4E3A\
|
|
292
|
+
}, "\u4E13\u5C5E\u5BA2\u670D\u4E3A\u60A8\u63D0\u4F9B\u54A8\u8BE2\u670D\u52A1"), /*#__PURE__*/_react["default"].createElement("img", {
|
|
286
293
|
className: "".concat(prefixCls, "__qrcode-img"),
|
|
287
294
|
src: qrCode,
|
|
288
295
|
alt: "\u5FAE\u4FE1/\u4F01\u4E1A\u5FAE\u4FE1\u626B\u4E00\u626B",
|