@titaui/pc 1.9.15 → 1.9.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/lib/components/change-okr-modal/Item.js +41 -18
  2. package/lib/components/change-okr-modal/styledComponents.js +1 -1
  3. package/lib/components/create-okr-modal/fields/index.css +1 -1
  4. package/lib/components/create-okr-modal/index.css +1 -0
  5. package/lib/components/create-okr-modal/index.js +2 -2
  6. package/lib/components/create-okr-modal/request-api.js +1 -7
  7. package/lib/components/dialog-confirm/index.css +8 -3
  8. package/lib/components/dialog-confirm/index.js +17 -15
  9. package/lib/components/drawer/index.css +1 -1
  10. package/lib/components/dynamic/dynamic-item/dynamic-align/index.css +2 -4
  11. package/lib/components/dynamic/dynamic-item/dynamic-announcement/index.css +2 -4
  12. package/lib/components/dynamic/dynamic-item/dynamic-assessment/index.css +2 -4
  13. package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.css +2 -4
  14. package/lib/components/dynamic/dynamic-item/dynamic-kr/index.css +2 -4
  15. package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +1 -3
  16. package/lib/components/dynamic/dynamic-item/dynamic-okrs-communication/index.css +2 -4
  17. package/lib/components/dynamic/dynamic-item/dynamic-plan-communication/index.css +2 -4
  18. package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +2 -4
  19. package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +2 -4
  20. package/lib/components/dynamic/dynamic-item/dynamic-relative/index.css +2 -4
  21. package/lib/components/dynamic/dynamic-item/dynamic-replay/index.css +2 -4
  22. package/lib/components/dynamic/dynamic-item/dynamic-report/index.css +2 -4
  23. package/lib/components/dynamic/dynamic-item/dynamic-reward/index.css +2 -3
  24. package/lib/components/dynamic/dynamic-item/dynamic-share/index.css +2 -4
  25. package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +2 -4
  26. package/lib/components/dynamic/dynamic-topping/index.css +1 -1
  27. package/lib/components/grid-layout/okr-align/index.js +1 -1
  28. package/lib/components/grid-layout/okr-progress/index.js +1 -1
  29. package/lib/components/img-viewer/index.js +3 -3
  30. package/lib/components/menus/components/flip-menu-card/index.js +12 -1
  31. package/lib/components/menus/components/menu-tree/index.css +2 -2
  32. package/lib/components/menus/export-modules/okr-menus/depart-menus/index.css +1 -1
  33. package/lib/components/okr-detail/base-info/base-info.js +14 -13
  34. package/lib/components/okr-detail/base-info/o-desc/index.css +1 -1
  35. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +2 -2
  36. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -2
  37. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -2
  38. package/lib/components/okr-detail/components/okr-tree/tree-node/index.css +1 -1
  39. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/index.css +1 -1
  40. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +5 -2
  41. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +10 -2
  42. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +6 -6
  43. package/lib/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.css +1 -1
  44. package/lib/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.css +1 -1
  45. package/lib/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.css +1 -1
  46. package/lib/components/okr-detail/detail-footer/index.css +1 -1
  47. package/lib/components/okr-detail/e-list/search-form/fields/index.css +1 -0
  48. package/lib/components/okr-detail/okr-list/index.css +2 -2
  49. package/lib/components/okr-progress-modal/helper.js +2 -2
  50. package/lib/components/okr-progress-modal/index.css +2 -2
  51. package/lib/components/okrcase-library/index.css +1 -1
  52. package/lib/components/pagination/select.css +1 -1
  53. package/lib/components/search-dropdown/index.css +1 -1
  54. package/lib/components/switch/index.css +1 -1
  55. package/lib/components/tabs/index.css +1 -1
  56. package/lib/components/tita-chart/charts/pie.js +3 -1
  57. package/lib/components/tooltip/tooltip-text/index.js +3 -1
  58. package/lib/components/version-change-modal/index.css +1 -1
  59. package/lib/components/weekly-report/index.css +1 -1
  60. package/lib/components-v1/confirm/index.js +1 -1
  61. package/lib/components-v1/dropDownSelector/styles/index.js +1 -1
  62. package/lib/pages/appointment-demo/index.css +1 -1
  63. package/lib/pages/group-management/page-view/importGroupStaff/index.css +2 -2
  64. package/lib/pages/okr-map/export-modules/okr-map/header/index.css +1 -1
  65. package/lib/pages/okr-map/export-modules/share-okr-page/header/index.css +1 -1
  66. package/package.json +1 -1
  67. package/src/components/change-okr-modal/Item.tsx +11 -3
  68. package/src/components/change-okr-modal/styledComponents.ts +0 -1
  69. package/src/components/create-okr-modal/fields/index.scss +1 -1
  70. package/src/components/create-okr-modal/index.scss +1 -0
  71. package/src/components/create-okr-modal/index.tsx +2 -2
  72. package/src/components/create-okr-modal/request-api.ts +2 -3
  73. package/src/components/dialog-confirm/index.js +95 -58
  74. package/src/components/dialog-confirm/index.scss +16 -12
  75. package/src/components/drawer/index.scss +1 -1
  76. package/src/components/dynamic/dynamic-item/dynamic-align/index.scss +2 -4
  77. package/src/components/dynamic/dynamic-item/dynamic-announcement/index.scss +2 -4
  78. package/src/components/dynamic/dynamic-item/dynamic-assessment/index.scss +2 -4
  79. package/src/components/dynamic/dynamic-item/dynamic-create-o/index.scss +2 -4
  80. package/src/components/dynamic/dynamic-item/dynamic-kr/index.scss +2 -4
  81. package/src/components/dynamic/dynamic-item/dynamic-milestone/index.scss +1 -3
  82. package/src/components/dynamic/dynamic-item/dynamic-okrs-communication/index.scss +2 -4
  83. package/src/components/dynamic/dynamic-item/dynamic-plan-communication/index.scss +2 -4
  84. package/src/components/dynamic/dynamic-item/dynamic-progress/index.scss +2 -4
  85. package/src/components/dynamic/dynamic-item/dynamic-project/index.scss +2 -4
  86. package/src/components/dynamic/dynamic-item/dynamic-relative/index.scss +2 -4
  87. package/src/components/dynamic/dynamic-item/dynamic-replay/index.scss +2 -4
  88. package/src/components/dynamic/dynamic-item/dynamic-report/index.scss +2 -4
  89. package/src/components/dynamic/dynamic-item/dynamic-reward/index.scss +2 -3
  90. package/src/components/dynamic/dynamic-item/dynamic-share/index.scss +2 -4
  91. package/src/components/dynamic/dynamic-item/dynamic-task/index.scss +2 -4
  92. package/src/components/dynamic/dynamic-topping/index.scss +1 -1
  93. package/src/components/grid-layout/okr-align/index.tsx +1 -1
  94. package/src/components/grid-layout/okr-progress/index.tsx +1 -1
  95. package/src/components/img-viewer/index.tsx +3 -3
  96. package/src/components/menus/components/flip-menu-card/index.tsx +8 -1
  97. package/src/components/menus/components/menu-tree/index.scss +2 -2
  98. package/src/components/menus/export-modules/okr-menus/depart-menus/index.scss +1 -1
  99. package/src/components/okr-detail/base-info/base-info.tsx +39 -27
  100. package/src/components/okr-detail/base-info/o-desc/index.scss +1 -1
  101. package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +2 -2
  102. package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -2
  103. package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -2
  104. package/src/components/okr-detail/components/okr-tree/tree-node/index.scss +1 -1
  105. package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/index.scss +1 -1
  106. package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.tsx +2 -2
  107. package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.tsx +3 -3
  108. package/src/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/style.js +2 -6
  109. package/src/components/okr-detail/components/okr-tree/tree-node/kr-parent-node/index.scss +1 -1
  110. package/src/components/okr-detail/components/okr-tree/tree-node/o-child-node/index.scss +1 -1
  111. package/src/components/okr-detail/components/okr-tree/tree-node/o-parent-node/index.scss +1 -1
  112. package/src/components/okr-detail/detail-footer/index.scss +1 -1
  113. package/src/components/okr-detail/e-list/search-form/fields/index.scss +1 -0
  114. package/src/components/okr-detail/okr-list/index.scss +1 -1
  115. package/src/components/okr-progress-modal/helper.js +2 -2
  116. package/src/components/okr-progress-modal/index.scss +2 -2
  117. package/src/components/okrcase-library/index.scss +1 -1
  118. package/src/components/pagination/select.scss +1 -1
  119. package/src/components/search-dropdown/index.scss +1 -1
  120. package/src/components/switch/index.scss +1 -1
  121. package/src/components/tabs/index.scss +1 -1
  122. package/src/components/tita-chart/charts/pie.tsx +2 -1
  123. package/src/components/tooltip/tooltip-text/index.tsx +4 -1
  124. package/src/components/version-change-modal/index.scss +1 -1
  125. package/src/components/weekly-report/index.scss +1 -1
  126. package/src/components-v1/confirm/index.tsx +0 -1
  127. package/src/components-v1/dropDownSelector/styles/index.tsx +1 -1
  128. package/src/pages/appointment-demo/index.scss +1 -1
  129. package/src/pages/group-management/page-view/importGroupStaff/index.scss +2 -2
  130. package/src/pages/okr-map/export-modules/okr-map/header/index.scss +1 -1
  131. package/src/pages/okr-map/export-modules/share-okr-page/header/index.scss +1 -1
@@ -241,6 +241,7 @@ $FontFamily: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica,
241
241
  }
242
242
  .create-success-model__o-name-text {
243
243
  display: inline-block;
244
+ word-break: break-all;
244
245
  }
245
246
  }
246
247
  .create-success-model__kr-wrapper {
@@ -156,7 +156,7 @@ function CreateOkrModal(
156
156
 
157
157
  //权重未自定义过或总计为100为合法权重
158
158
  const krWeightValid =
159
- !isCustomWeight || total == 100 || krDatas.length == 0 || !openKrWeight;
159
+ !isCustomWeight || Number(total.toFixed(1)) == 100 || krDatas.length == 0 || !openKrWeight;
160
160
  const allKrHasName =
161
161
  krDatas.filter((kr) => !kr.mileStoneName.trim().length).length == 0;
162
162
 
@@ -584,7 +584,7 @@ function CreateOkrModal(
584
584
  maskClosable={false}
585
585
  footerLeftContent={renderFooterTeachWriteOKr}
586
586
  zIndex={1200}
587
- bodyStyle={{flexBasis: '0%'}}
587
+ bodyStyle={{flexBasis: 'auto'}}
588
588
  >
589
589
  <Wrapper ref={wrapperRef}>
590
590
  <FieldONewName
@@ -40,9 +40,8 @@ export const createWidthKr = async function(data: any) {
40
40
  transformRequest: qs.stringify,
41
41
  }
42
42
  );
43
- if (res.data.Code == 1) {
44
- return res.data.Data;
45
- }
43
+ return res.data.Data;
44
+
46
45
  };
47
46
 
48
47
  export const getKrAnalysisInfos = async function(params) {
@@ -1,85 +1,122 @@
1
- import React from 'react';
2
- import classNames from 'classnames';
3
- import Dialog from 'rc-dialog';
1
+ import React from "react";
2
+ import classNames from "classnames";
3
+ import Dialog from "rc-dialog";
4
4
 
5
- import 'rc-dialog/assets/index.css';
6
- import './index.scss';
5
+ import "rc-dialog/assets/index.css";
6
+ import "./index.scss";
7
7
 
8
- const preCls = 'titaui-dialog-confirm';
8
+ const preCls = "titaui-dialog-confirm";
9
9
 
10
- export const CancelButton = props => {
10
+ export const CancelButton = (props) => {
11
11
  const { onClick, children } = props;
12
- return <span key="cancel" className={classNames(`${preCls}__btn-cancel`, `${preCls}__btn`)} onClick={onClick}>
13
- <span className={classNames(`${preCls}__btn-cancel-text`)}>{children}</span>
14
- </span>;
15
- }
12
+ return (
13
+ <span
14
+ key="cancel"
15
+ className={classNames(`${preCls}__btn-cancel`, `${preCls}__btn`)}
16
+ onClick={onClick}
17
+ >
18
+ <span className={classNames(`${preCls}__btn-cancel-text`)}>
19
+ {children}
20
+ </span>
21
+ </span>
22
+ );
23
+ };
16
24
 
17
- export const SureButton = props => {
25
+ export const SureButton = (props) => {
18
26
  const { onClick, children } = props;
19
- return <span key="sure" className={classNames(`${preCls}__btn-sure`, `${preCls}__btn`)} onClick={onClick}>
20
- <span className={classNames(`${preCls}__btn-sure-text`)}>{children}</span>
21
- </span>;
22
- }
27
+ return (
28
+ <span
29
+ key="sure"
30
+ className={classNames(`${preCls}__btn-sure`, `${preCls}__btn`)}
31
+ onClick={onClick}
32
+ >
33
+ <span className={classNames(`${preCls}__btn-sure-text`)}>{children}</span>
34
+ </span>
35
+ );
36
+ };
23
37
 
24
- export const WarningButton = props => {
38
+ export const WarningButton = (props) => {
25
39
  const { onClick, children } = props;
26
- return <span key="warning" className={classNames(`${preCls}__btn-warning`, `${preCls}__btn`)} onClick={onClick}>
27
- <span className={classNames(`${preCls}__btn-warning-text`)}>{children}</span>
28
- </span>;
29
- }
40
+ return (
41
+ <span
42
+ key="warning"
43
+ className={classNames(`${preCls}__btn-warning`, `${preCls}__btn`)}
44
+ onClick={onClick}
45
+ >
46
+ <span className={classNames(`${preCls}__btn-warning-text`)}>
47
+ {children}
48
+ </span>
49
+ </span>
50
+ );
51
+ };
30
52
 
31
- const DialogConfirm = props => {
32
- const { children, visible, type, className="", ...restProps } = props;
53
+ const DialogConfirm = (props) => {
54
+ const { children, visible, type, className = "", ...restProps } = props;
33
55
 
34
56
  let footer = [];
35
57
  let titleInstance;
36
58
  let contentInstance;
37
59
 
38
- React.Children.forEach(children, child => {
39
- if (child.props.type == 'button') footer.push(child);
40
- if (child.props.type == 'title') titleInstance = child;
41
- if (child.props.type == 'content') contentInstance = child;
60
+ React.Children.forEach(children, (child) => {
61
+ if (child.props.type == "button") footer.push(child);
62
+ if (child.props.type == "title") titleInstance = child;
63
+ if (child.props.type == "content") contentInstance = child;
42
64
  });
43
65
 
44
- const getConfirmIcon = type => {
66
+ const getConfirmIcon = (type) => {
45
67
  switch (type) {
46
- case 'warning':
47
- return <span className="tu-icon-tishi" style={{ 'color': '#FFBC00' }} />;
48
- case 'success':
49
- return <span className="tu-icon-check" style={{ 'color': '#5AD8A6' }} />;
50
- case 'error':
51
- return <span className="tu-icon-cross" style={{ 'color': '#F05E5E' }} />;
52
- case 'confirm':
68
+ case "warning":
69
+ return (
70
+ <span className="tu-icon-tishi" style={{ "color": "#FFBC00" }} />
71
+ );
72
+ case "success":
73
+ return (
74
+ <span className="tu-icon-check" style={{ "color": "#5AD8A6" }} />
75
+ );
76
+ case "error":
77
+ return (
78
+ <span className="tu-icon-cross" style={{ "color": "#F05E5E" }} />
79
+ );
80
+ case "confirm":
53
81
  return <span className="tu-icon-tishi" />;
54
- case 'info':
82
+ case "info":
55
83
  return <span className="tu-icon-warning" />;
56
- default: return;
84
+ default:
85
+ return;
57
86
  }
58
- }
87
+ };
59
88
 
60
- return <Dialog
61
- className={classNames(preCls, `${preCls}--no-bottom-line`,className)}
62
- visible={visible}
63
- closeIcon={<span />}
64
- animation="slide-fade"
65
- maskAnimation="fade"
66
- footer={footer}
67
- maskClosable={false}
68
- {...restProps}
69
- >
70
- <div className={classNames(`${preCls}__body`)}>
71
- <span className={classNames(`${preCls}__body-icon`)}>
72
- {getConfirmIcon(type)}
73
- </span>
74
- <div className={classNames(`${preCls}__body-title`)}>{titleInstance}</div>
75
- <div className={classNames(`${preCls}__body-content`)}>{contentInstance}</div>
76
- </div>
77
- </Dialog>
78
- }
89
+ return (
90
+ <Dialog
91
+ className={classNames(preCls, `${preCls}--no-bottom-line`, className)}
92
+ visible={visible}
93
+ closeIcon={<span />}
94
+ animation="slide-fade"
95
+ maskAnimation="fade"
96
+ footer={footer}
97
+ maskClosable={false}
98
+ {...restProps}
99
+ >
100
+ <div className={classNames(`${preCls}__body`)}>
101
+ <div className={classNames(`${preCls}__body-title`)}>
102
+ <span className={classNames(`${preCls}__body-title-icon`)}>
103
+ {getConfirmIcon(type)}
104
+ </span>
105
+ <div className={classNames(`${preCls}__body-title-text`)}>
106
+ {titleInstance}
107
+ </div>
108
+ </div>
109
+ <div className={classNames(`${preCls}__body-content`)}>
110
+ {contentInstance}
111
+ </div>
112
+ </div>
113
+ </Dialog>
114
+ );
115
+ };
79
116
 
80
117
  DialogConfirm.Confirm = DialogConfirm;
81
118
  DialogConfirm.CancelButton = CancelButton;
82
119
  DialogConfirm.SureButton = SureButton;
83
120
  DialogConfirm.WarningButton = WarningButton;
84
121
 
85
- export default DialogConfirm;
122
+ export default DialogConfirm;
@@ -96,19 +96,22 @@ $font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica,
96
96
 
97
97
  &__body {
98
98
  position: relative;
99
- &-icon {
100
- display: inline-block;
101
- font-size: 14px;
102
- }
103
-
104
99
  &-title {
105
- font-size: 16px;
106
- font-family: $font-family;
107
- font-weight: 500;
108
- color: #141c28;
109
- line-height: 24px;
110
- display: inline-block;
111
- margin-left: 6px;
100
+ display: flex;
101
+ &-icon {
102
+ display: inline-block;
103
+ font-size: 14px;
104
+ }
105
+
106
+ &-text {
107
+ font-size: 16px;
108
+ font-family: $font-family;
109
+ font-weight: 600;
110
+ color: #141c28;
111
+ line-height: 24px;
112
+ display: inline-block;
113
+ margin-left: 6px;
114
+ }
112
115
  }
113
116
 
114
117
  &-content {
@@ -120,6 +123,7 @@ $font-family: -apple-system, Arial, Verdana, Helvetica Neue, Helvetica,
120
123
  color: #6f7886;
121
124
  line-height: 22px;
122
125
  padding-left: 20px;
126
+ margin-left: 6px;
123
127
  }
124
128
  }
125
129
  }
@@ -23,7 +23,7 @@
23
23
  align-items: center;
24
24
  padding: 0 32px;
25
25
  color: #141C28;
26
- font-weight: 500;
26
+ font-weight: 600;
27
27
  font-size: 16px;
28
28
 
29
29
  &-back {
@@ -68,12 +68,10 @@
68
68
  display: inline-flex;
69
69
  align-items: center;
70
70
  justify-content: center;
71
- padding: 0 2px;
71
+ padding: 0 6px;
72
72
  height: 18px;
73
73
  min-width: 40px;
74
- clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
75
- -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
76
- border-radius: 14px 10px 10px 4px;
74
+ border-radius: 10px 10px 10px 2px;
77
75
  font-size: 12px;
78
76
  color: #ffffff;
79
77
  line-height: 18px;
@@ -35,12 +35,10 @@
35
35
  display: inline-flex;
36
36
  align-items: center;
37
37
  justify-content: center;
38
- padding: 0 2px;
38
+ padding: 0 6px;
39
39
  height: 18px;
40
40
  min-width: 40px;
41
- clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
42
- -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
43
- border-radius: 14px 10px 10px 4px;
41
+ border-radius: 10px 10px 10px 2px;
44
42
  font-size: 12px;
45
43
  color: #ffffff;
46
44
  line-height: 18px;
@@ -30,12 +30,10 @@
30
30
  display: inline-flex;
31
31
  align-items: center;
32
32
  justify-content: center;
33
- padding: 0 2px;
33
+ padding: 0 6px;
34
34
  height: 18px;
35
35
  min-width: 40px;
36
- clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
37
- -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
38
- border-radius: 14px 10px 10px 4px;
36
+ border-radius: 10px 10px 10px 2px;
39
37
  font-size: 12px;
40
38
  color: #ffffff;
41
39
  line-height: 18px;
@@ -70,12 +70,10 @@
70
70
  display: inline-flex;
71
71
  align-items: center;
72
72
  justify-content: center;
73
- padding: 0 2px;
73
+ padding: 0 6px;
74
74
  height: 18px;
75
75
  min-width: 40px;
76
- clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
77
- -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
78
- border-radius: 14px 10px 10px 4px;
76
+ border-radius: 10px 10px 10px 2px;
79
77
  font-size: 12px;
80
78
  color: #ffffff;
81
79
  line-height: 18px;
@@ -46,12 +46,10 @@
46
46
  display: inline-flex;
47
47
  align-items: center;
48
48
  justify-content: center;
49
- padding: 0 2px;
49
+ padding: 0 6px;
50
50
  height: 18px;
51
51
  min-width: 40px;
52
- clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
53
- -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
54
- border-radius: 14px 10px 10px 4px;
52
+ border-radius: 10px 10px 10px 2px;
55
53
  font-size: 12px;
56
54
  color: #ffffff;
57
55
  line-height: 18px;
@@ -93,9 +93,7 @@
93
93
  padding: 0 6px;
94
94
  height: 18px;
95
95
  min-width: 40px;
96
- clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
97
- -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
98
- border-radius: 14px 10px 10px 4px;
96
+ border-radius: 10px 10px 10px 2px;
99
97
  font-size: 12px;
100
98
  color: #ffffff;
101
99
  line-height: 18px;
@@ -64,12 +64,10 @@
64
64
  display: inline-flex;
65
65
  align-items: center;
66
66
  justify-content: center;
67
- padding: 0 2px;
67
+ padding: 0 6px;
68
68
  height: 18px;
69
69
  min-width: 40px;
70
- clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
71
- -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
72
- border-radius: 14px 10px 10px 4px;
70
+ border-radius: 10px 10px 10px 2px;
73
71
  font-size: 12px;
74
72
  color: #ffffff;
75
73
  line-height: 18px;
@@ -64,12 +64,10 @@
64
64
  display: inline-flex;
65
65
  align-items: center;
66
66
  justify-content: center;
67
- padding: 0 2px;
67
+ padding: 0 6px;
68
68
  height: 18px;
69
69
  min-width: 40px;
70
- clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
71
- -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
72
- border-radius: 14px 10px 10px 4px;
70
+ border-radius: 10px 10px 10px 2px;
73
71
  font-size: 12px;
74
72
  color: #ffffff;
75
73
  line-height: 18px;
@@ -71,12 +71,10 @@
71
71
  display: inline-flex;
72
72
  align-items: center;
73
73
  justify-content: center;
74
- padding: 0 2px;
74
+ padding: 0 6px;
75
75
  height: 18px;
76
76
  min-width: 40px;
77
- clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
78
- -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
79
- border-radius: 14px 10px 10px 4px;
77
+ border-radius: 10px 10px 10px 2px;
80
78
  font-size: 12px;
81
79
  color: #ffffff;
82
80
  line-height: 18px;
@@ -76,12 +76,10 @@
76
76
  display: inline-flex;
77
77
  align-items: center;
78
78
  justify-content: center;
79
- padding: 0 2px;
79
+ padding: 0 6px;
80
80
  height: 18px;
81
81
  min-width: 40px;
82
- clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
83
- -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
84
- border-radius: 14px 10px 10px 4px;
82
+ border-radius: 10px 10px 10px 2px;
85
83
  font-size: 12px;
86
84
  color: #ffffff;
87
85
  line-height: 18px;
@@ -67,12 +67,10 @@
67
67
  display: inline-flex;
68
68
  align-items: center;
69
69
  justify-content: center;
70
- padding: 0 2px;
70
+ padding: 0 6px;
71
71
  height: 18px;
72
72
  min-width: 40px;
73
- clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
74
- -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
75
- border-radius: 14px 10px 10px 4px;
73
+ border-radius: 10px 10px 10px 2px;
76
74
  font-size: 12px;
77
75
  color: #ffffff;
78
76
  line-height: 18px;
@@ -112,12 +112,10 @@
112
112
  display: inline-flex;
113
113
  align-items: center;
114
114
  justify-content: center;
115
- padding: 0 2px;
115
+ padding: 0 6px;
116
116
  height: 18px;
117
117
  min-width: 40px;
118
- clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
119
- -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
120
- border-radius: 14px 10px 10px 4px;
118
+ border-radius: 10px 10px 10px 2px;
121
119
  font-size: 12px;
122
120
  color: #ffffff;
123
121
  line-height: 18px;
@@ -117,12 +117,10 @@
117
117
  display: inline-flex;
118
118
  align-items: center;
119
119
  justify-content: center;
120
- padding: 0 2px;
120
+ padding: 0 6px;
121
121
  height: 18px;
122
122
  min-width: 40px;
123
- clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
124
- -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
125
- border-radius: 14px 10px 10px 4px;
123
+ border-radius: 10px 10px 10px 2px;
126
124
  font-size: 12px;
127
125
  color: #ffffff;
128
126
  line-height: 18px;
@@ -57,9 +57,8 @@
57
57
  width: 40px;
58
58
  height: 18px;
59
59
  min-width: 40px;
60
- clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
61
- -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
62
- border-radius: 14px 10px 10px 4px;
60
+ border-radius: 10px 10px 10px 2px;
61
+ padding: 0 6px;
63
62
  font-size: 12px;
64
63
  color: #ffffff;
65
64
  line-height: 18px;
@@ -32,12 +32,10 @@
32
32
  display: inline-flex;
33
33
  align-items: center;
34
34
  justify-content: center;
35
- padding: 0 2px;
35
+ padding: 0 6px;
36
36
  height: 18px;
37
37
  min-width: 40px;
38
- clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
39
- -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
40
- border-radius: 14px 10px 10px 4px;
38
+ border-radius: 10px 10px 10px 2px;
41
39
  font-size: 12px;
42
40
  color: #ffffff;
43
41
  line-height: 18px;
@@ -90,12 +90,10 @@
90
90
  display: inline-flex;
91
91
  align-items: center;
92
92
  justify-content: center;
93
- padding: 0 2px;
93
+ padding: 0 6px;
94
94
  height: 18px;
95
95
  min-width: 40px;
96
- clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
97
- -webkit-clip-path: polygon(0 100%, 100% 100%, 100% 0, 15% 0);
98
- border-radius: 14px 10px 10px 4px;
96
+ border-radius: 10px 10px 10px 2px;
99
97
  font-size: 12px;
100
98
  color: #ffffff;
101
99
  line-height: 18px;
@@ -52,7 +52,7 @@
52
52
  &-name {
53
53
  margin-left: 12px;
54
54
  font-size: 12px;
55
- font-weight: 500;
55
+ font-weight: 600;
56
56
  color: #3f4755;
57
57
 
58
58
  &-text {
@@ -67,7 +67,7 @@ export default function OKRAlignComponent() {
67
67
  link: 'https://club.tita.com/18179.html'
68
68
  }} />
69
69
  : <CardFlexContent>
70
- <TitaChart.LiquidBall PrePercentNum={0} name="对齐率" percentNum={alignPercent} />
70
+ <TitaChart.LiquidBall PrePercentNum={0} name={getLocale('HP_Alignmentrate')} percentNum={alignPercent} />
71
71
  <DataItem num={hadAlignOkrNum} numColor="#3F4755" label={getLocale('OKR_Db_Aligned')} handleDataClick={() => handleDataClick('hadAlign')} />
72
72
  <DataItem num={hadNotAlignOkrNum} numColor="#3F4755" label={getLocale('OKR_Db_Unaligned')} handleDataClick={() => handleDataClick('hadNotAlign')} />
73
73
  </CardFlexContent>
@@ -85,7 +85,7 @@ export default function OKRProgressComponent() {
85
85
  <TitaChart.LiquidBall
86
86
  PrePercentNum={0}
87
87
  percentNum={UpdatePercent}
88
- name="平均完成度"
88
+ name={getLocale('HP_Completiorate')}
89
89
  />
90
90
  <DataItem
91
91
  num={hadUpdateOkrNum}
@@ -105,10 +105,10 @@ const ImgViewer: FC<IImgViewerProps> = forwardRef(
105
105
  />
106
106
  </span>
107
107
  <span>
108
- {showDownload && (
108
+ {showDownload && currentImgData && currentImgData.downloadUrl && (
109
109
  <a
110
110
  className={prefix + "__header-download"}
111
- href={currentImgData.downloadUrl}
111
+ href={currentImgData?.downloadUrl||'javascript:;'}
112
112
  >
113
113
  <i
114
114
  className={classNames(
@@ -163,7 +163,7 @@ const ImgViewer: FC<IImgViewerProps> = forwardRef(
163
163
  <img
164
164
  className={prefix+'__body-img'}
165
165
  ref={imgRef}
166
- src={currentImgData.previewUrl || currentImgData.bigImageUrl}
166
+ src={currentImgData?.previewUrl || currentImgData?.bigImageUrl}
167
167
  style={{ transform: `scale(${currentScale})` }}
168
168
  />
169
169
  </div>
@@ -5,6 +5,7 @@ import React, {
5
5
  useImperativeHandle,
6
6
  useEffect,
7
7
  } from "react";
8
+ import SimpleBar from '../../../scrollbar/simplebar/simplebar'
8
9
  import ReactDOM from "react-dom";
9
10
  import classNames from "classnames";
10
11
  import MenuCard from "../menu-card";
@@ -168,6 +169,12 @@ export default forwardRef((props: Props, ref) => {
168
169
  };
169
170
  }, []);
170
171
 
172
+ const onClickShowMore = () => {
173
+ const instance = SimpleBar.instances.get(document.querySelector(`.${preCls}__inner [data-simplebar]`))
174
+ const el = instance.getScrollElement();
175
+ el.scrollTop = el.scrollTop + 150
176
+ }
177
+
171
178
  return (
172
179
  <React.Fragment>
173
180
  <div
@@ -222,7 +229,7 @@ export default forwardRef((props: Props, ref) => {
222
229
  </div>
223
230
  </div>
224
231
  {showMore && (
225
- <div className={`${preCls}__has-more`}>
232
+ <div className={`${preCls}__has-more`} onClick={onClickShowMore}>
226
233
  </div>
227
234
  )}
228
235
  </div>
@@ -14,14 +14,14 @@
14
14
  opacity: 0;
15
15
  background: #e9f1ff;
16
16
  border-radius: 12px;
17
- font-weight: 500;
17
+ font-weight: 600;
18
18
  will-change: opacity;
19
19
  animation: selectMenuOpacity 0.4s 1 forwards;
20
20
  }
21
21
 
22
22
  .titaui-menus-tree__menu-item-node-title {
23
23
  color: #2879ff;
24
- font-weight: 500;
24
+ font-weight: 600;
25
25
  }
26
26
  .titaui-menus-tree__sub-menu-item-node-title{
27
27
  color: #2879ff;
@@ -28,7 +28,7 @@
28
28
  .rc-tree-treenode-selected {
29
29
  .titaui-menus-tree__depart-node-title {
30
30
  color: #2879ff;
31
- font-weight: 500;
31
+ font-weight: 600;
32
32
  }
33
33
  }
34
34
  }