@titaui/pc 1.9.77 → 1.9.82
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/.eslintrc.js +1 -1
- package/lib/components/change-okr-modal/Filter.js +1 -1
- package/lib/components/change-okr-modal/Item.js +27 -25
- package/lib/components/change-okr-modal/filterTab.js +1 -1
- package/lib/components/change-okr-modal/index.js +1 -1
- package/lib/components/change-okr-modal/styledComponents.js +5 -5
- package/lib/components/communication/CommunicationAttachments.js +1 -1
- package/lib/components/communication/ConvertUserName.js +1 -1
- package/lib/components/communication/index.js +1 -1
- package/lib/components/create-okr-modal/objectType.js +1 -1
- package/lib/components/date-picker/BodyItem.js +1 -1
- package/lib/components/date-picker/CalendarBody.js +1 -1
- package/lib/components/date-picker/CalendarHeader.js +1 -1
- package/lib/components/date-picker/index.js +1 -1
- package/lib/components/date-range-picker/index.js +1 -1
- package/lib/components/delete-confirm-pop/ConfirmPop.js +1 -1
- package/lib/components/eReport/eReportListEmpty.js +1 -1
- package/lib/components/eReport/eReportLists/reportList.js +1 -1
- package/lib/components/eReport/eReportShare/index.js +1 -1
- package/lib/components/eReport/eReportShare/toast/index.js +1 -1
- package/lib/components/edit-kr-wight/EditKrWightModal.js +1 -1
- package/lib/components/edit-kr-wight/FormItemV2.js +1 -1
- package/lib/components/emotions-selector/selector-content.js +1 -1
- package/lib/components/emotions-selector/selector-pop.js +1 -1
- package/lib/components/ereport-list/index.js +1 -1
- package/lib/components/error-boundary/index.js +1 -1
- package/lib/components/mblog/components/ConfirmPop.js +1 -1
- package/lib/components/mblog/components/MblogAction.js +1 -1
- package/lib/components/mblog/components/MblogContent.js +1 -1
- package/lib/components/mblog/index.js +1 -1
- package/lib/components/okr-detail/auth.js +1 -1
- package/lib/components/okr-detail/components/base-okr-type/confirm/buttonv2.js +1 -1
- package/lib/components/okr-detail/components/base-okr-type/confirm/confirm.js +1 -1
- package/lib/components/okr-detail/components/base-okr-type/object-type.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/edit-pop.js +1 -1
- package/lib/components/okr-detail/components/okr-tree/tree-node/kr-node/kr-score-editor/kr-push-score.js +1 -1
- package/lib/components/okr-flow/export-modal/index.js +65 -41
- package/lib/components/okr-review/ReviewPop/components/ReviewBody/index.js +1 -1
- package/lib/components/okr-review/ReviewPop/components/Toast/index.js +1 -1
- package/lib/components/okr-review/ReviewPop/index.js +1 -1
- package/lib/components/okr-review/components/ReviewItem/index.js +1 -1
- package/lib/components/okr-review/components/confirm-pop/ConfirmPop.js +1 -1
- package/lib/components/okr-review/index.js +1 -1
- package/lib/components/operation-records/OperationRecordItem.js +1 -1
- package/lib/components/operation-records/index.js +1 -1
- package/lib/components/period-selector/common.js +3 -3
- package/lib/components/point-demo/input/index.js +1 -1
- package/lib/components/praise-record/PraiseRecordItem.js +1 -1
- package/lib/components/praise-record/index.js +1 -1
- package/lib/components/range-picker-pop/index.js +1 -1
- package/lib/components/range-selector-pop/RangeList.js +1 -1
- package/lib/components/range-selector-pop/RangeSelectorPop.js +1 -1
- package/lib/components/select/Option.js +1 -1
- package/lib/components/select/index.js +1 -1
- package/lib/components/tita-chart/errorBoundary/index.js +1 -1
- package/lib/components/upload/components/uploadedPreview.js +1 -1
- package/lib/components/upload/index.js +1 -1
- package/lib/components/viewer/ImageListRender.js +1 -1
- package/lib/components/viewer/index.js +1 -1
- package/lib/components-v1/animate/AnimateChild.js +1 -1
- package/lib/components-v1/animate/animate.js +1 -1
- package/lib/components-v1/avatar/index.js +1 -1
- package/lib/components-v1/buttonv2/ButtonOutlined.js +1 -1
- package/lib/components-v1/buttonv2/ButtonRounded.js +1 -1
- package/lib/components-v1/buttonv2/DefaultButton.js +1 -1
- package/lib/components-v1/confirm/index.js +1 -1
- package/lib/components-v1/dropDownSelector/StatelessDropdown.js +1 -1
- package/lib/components-v1/dropDownSelector/dropDownSelector.js +1 -1
- package/lib/components-v1/input/Input.js +1 -1
- package/lib/components-v1/input/InputNumber.js +1 -1
- package/lib/components-v1/placement/placement.js +1 -1
- package/lib/components-v1/placement/placementInner.js +1 -1
- package/lib/components-v1/pop/Pop.js +1 -1
- package/lib/components-v1/pop/PopInner.js +1 -1
- package/lib/components-v1/portals/Portals.js +1 -1
- package/lib/components-v1/progress/CircleProgress.js +1 -1
- package/lib/components-v1/progress/LineProgress.js +1 -1
- package/lib/components-v1/progress/index.js +1 -1
- package/lib/components-v1/radio/radio.js +1 -1
- package/lib/components-v1/radio/radioGroup.js +1 -1
- package/lib/components-v1/search/index.js +1 -1
- package/lib/components-v1/select/Option.js +1 -1
- package/lib/components-v1/select/index.js +1 -1
- package/lib/components-v1/tabs/index.js +1 -1
- package/lib/components-v1/textarea/index.js +1 -1
- package/lib/components-v1/transition/index.js +1 -1
- package/lib/components-v1/userSelector/UserSelectorPop.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/CommonList.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentList.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/DepartmentTree.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/SubsList.js +1 -1
- package/lib/components-v1/userSelector/components/MultiMode/index.js +1 -1
- package/lib/components-v1/userSelector/components/SearchBar.js +1 -1
- package/lib/components-v1/userSelector/components/SingleMode.js +1 -1
- package/lib/components-v1/userSelector/components/UserItem.js +1 -1
- package/lib/components-v1/userSelector/index.js +1 -1
- package/lib/pages/appointment-demo/input/index.js +1 -1
- package/lib/pages/group-management/components/input-form/index.js +1 -1
- package/lib/pages/personal-info/components/base-info/index.js +5 -3
- package/lib/pages/personal-info/components/edit-base-info/index.js +12 -29
- package/lib/utils/auth.js +1 -1
- package/package.json +1 -1
- package/src/components/change-okr-modal/Item.tsx +22 -22
- package/src/components/change-okr-modal/styledComponents.ts +11 -5
- package/src/components/okr-flow/export-modal/index.tsx +52 -39
- package/src/components/period-selector/common.ts +3 -3
- package/src/pages/personal-info/components/base-info/index.tsx +8 -3
- package/src/pages/personal-info/components/edit-base-info/index.tsx +20 -15
- package/yarn-error.log +0 -103
|
@@ -3,7 +3,7 @@ import styled from "styled-components";
|
|
|
3
3
|
export const Wrapper = styled.div`
|
|
4
4
|
width: 589px;
|
|
5
5
|
height: 488px;
|
|
6
|
-
margin-top: ${(p: any) => (p.okrPopType
|
|
6
|
+
margin-top: ${(p: any) => (p.okrPopType === 1 ? 0 : "32px")};
|
|
7
7
|
background: #ffffff;
|
|
8
8
|
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.2);
|
|
9
9
|
border-radius: 4px;
|
|
@@ -230,11 +230,17 @@ export const Tag = styled.div`
|
|
|
230
230
|
margin: 0 12px 0 9px;
|
|
231
231
|
`;
|
|
232
232
|
export const OkrName = styled.span`
|
|
233
|
+
display: inline-block
|
|
233
234
|
flex: 1;
|
|
234
|
-
width:
|
|
235
|
+
max-width: 400px;
|
|
235
236
|
font-size: 13px;
|
|
236
237
|
font-weight: ${(p: any) => (p.isShowKr ? "normal" : "600")};
|
|
237
238
|
color: #33383d;
|
|
239
|
+
white-space: nowrap;
|
|
240
|
+
overflow: hidden;
|
|
241
|
+
word-break: keep-all;
|
|
242
|
+
text-overflow: ellipsis;
|
|
243
|
+
line-height: 1;
|
|
238
244
|
`;
|
|
239
245
|
export const ItemBottom = styled.div`
|
|
240
246
|
padding-left: 102px;
|
|
@@ -274,14 +280,14 @@ export const Button = styled.a`
|
|
|
274
280
|
padding: 0 15px;
|
|
275
281
|
box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.21);
|
|
276
282
|
border-radius: 2px;
|
|
277
|
-
background-color: ${(p: any) => (p.type
|
|
278
|
-
color: ${(p: any) => (p.type
|
|
283
|
+
background-color: ${(p: any) => (p.type !== "confirm" ? "#FAFBFC" : p.disabled ? "#E7EEF3" : "#2879FF")};
|
|
284
|
+
color: ${(p: any) => (p.type !== "confirm" ? "#565E66" : "#FFF")};
|
|
279
285
|
cursor: pointer;
|
|
280
286
|
text-align: center;
|
|
281
287
|
white-space: nowrap;
|
|
282
288
|
line-height: 27px;
|
|
283
289
|
&:hover {
|
|
284
|
-
color: ${(p: any) => (p.type
|
|
290
|
+
color: ${(p: any) => (p.type !== "confirm" ? "#565E66" : "#FFF")};
|
|
285
291
|
}
|
|
286
292
|
`;
|
|
287
293
|
export const KrItemWrapper = styled.div`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, {
|
|
2
|
-
useState, useEffect, useRef,
|
|
2
|
+
useState, useEffect, useRef, FC,
|
|
3
3
|
} from "react";
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import Html2Canvas from "html2canvas";
|
|
@@ -25,7 +25,7 @@ interface IProps {
|
|
|
25
25
|
showkr: boolean;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
const ExportMapModal: FC<IProps> = (props: IProps) => {
|
|
29
29
|
const {
|
|
30
30
|
visible = false,
|
|
31
31
|
onCloseHandler,
|
|
@@ -39,17 +39,19 @@ function ExportMapModal(props: IProps) {
|
|
|
39
39
|
const [isExport, setIsExport] = useState(false);
|
|
40
40
|
const modalRef = useRef();
|
|
41
41
|
useEffect(() => {
|
|
42
|
-
if (isWx()) {
|
|
43
|
-
window.WWOpenData
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
window.WWOpenData
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
if (isWx() && window.WWOpenData) {
|
|
43
|
+
if (window.WWOpenData.enableCanvasSharing) {
|
|
44
|
+
window.WWOpenData.enableCanvasSharing();
|
|
45
|
+
}
|
|
46
|
+
if (window.WWOpenData.initCanvas) {
|
|
47
|
+
window.WWOpenData.initCanvas();
|
|
48
|
+
}
|
|
49
49
|
}
|
|
50
50
|
}, []);
|
|
51
51
|
useEffect(() => {
|
|
52
|
-
visible && mapInstance
|
|
52
|
+
if (visible && mapInstance) {
|
|
53
|
+
mapInstance.fitView();
|
|
54
|
+
}
|
|
53
55
|
}, [visible, mapInstance]);
|
|
54
56
|
|
|
55
57
|
const downloadImg = async () => {
|
|
@@ -57,7 +59,7 @@ function ExportMapModal(props: IProps) {
|
|
|
57
59
|
const width = okrMapRef.clientWidth; // 获取dom 宽度
|
|
58
60
|
const height = okrMapRef.clientHeight; // 获取dom 高度
|
|
59
61
|
const canvas = document.createElement("canvas"); // 创建一个canvas节点
|
|
60
|
-
const scale =
|
|
62
|
+
const scale = 10; // 定义任意放大倍数 支持小数 设置成20之后企业微信工作台导出不了
|
|
61
63
|
canvas.width = width * scale; // 定义canvas 宽度 * 缩放
|
|
62
64
|
canvas.height = height * scale; // 定义canvas高度 *缩放
|
|
63
65
|
canvas.style.width = `${width}px`;
|
|
@@ -72,34 +74,41 @@ function ExportMapModal(props: IProps) {
|
|
|
72
74
|
useCORS: true, // 【重要】开启跨域配置
|
|
73
75
|
};
|
|
74
76
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
const imgUrl = result.toDataURL("image/png"); // 得到图片的base64编码数据
|
|
85
|
-
const url = await getBase64DownloadUrl(imgUrl.split(",")[1]);
|
|
86
|
-
const image = new Image();
|
|
87
|
-
|
|
88
|
-
image.setAttribute("crossOrigin", "anonymous");
|
|
89
|
-
image.onload = () => {
|
|
90
|
-
if (!url.Data.obj) {
|
|
91
|
-
Toast.Error("导出失败,请稍后重试", { canClose: false });
|
|
77
|
+
await Html2Canvas(okrMapRef, opts).then((result) => {
|
|
78
|
+
if (isWx() && window.WWOpenData) {
|
|
79
|
+
if (window.WWOpenData.enableCanvasSharing) {
|
|
80
|
+
window.WWOpenData.enableCanvasSharing();
|
|
81
|
+
}
|
|
82
|
+
if (window.WWOpenData.initCanvas) {
|
|
83
|
+
window.WWOpenData.initCanvas();
|
|
84
|
+
}
|
|
92
85
|
}
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
86
|
+
const imgUrl = result.toDataURL("image/png"); // 得到图片的base64编码数据
|
|
87
|
+
getBase64DownloadUrl(imgUrl.split(",")[1]).then((url) => {
|
|
88
|
+
const image = new Image();
|
|
89
|
+
|
|
90
|
+
image.setAttribute("crossOrigin", "anonymous");
|
|
91
|
+
image.onload = () => {
|
|
92
|
+
if (!url.Data.obj) {
|
|
93
|
+
Toast.Error("导出失败,请稍后重试", { canClose: false });
|
|
94
|
+
}
|
|
95
|
+
const a = document.createElement("a"); // 生成一个a元素
|
|
96
|
+
const event = new MouseEvent("click"); // 创建一个单击事件
|
|
97
|
+
a.download = "okr地图"; // 设置图片名称
|
|
98
|
+
a.href = url.Data.obj; // 将生成的URL设置为a.href属性
|
|
99
|
+
a.dispatchEvent(event); // 触发a的单击事件
|
|
100
|
+
Toast.Success("导出成功");
|
|
101
|
+
setIsExport(false);
|
|
102
|
+
if (onCloseHandler) {
|
|
103
|
+
onCloseHandler();
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
image.src = imgUrl;
|
|
107
|
+
});
|
|
108
|
+
}).catch((err) => {
|
|
99
109
|
setIsExport(false);
|
|
100
|
-
|
|
101
|
-
};
|
|
102
|
-
image.src = imgUrl;
|
|
110
|
+
Toast.Error(err, { canClose: false });
|
|
111
|
+
});
|
|
103
112
|
};
|
|
104
113
|
|
|
105
114
|
const confirmHandler = () => {
|
|
@@ -107,7 +116,7 @@ function ExportMapModal(props: IProps) {
|
|
|
107
116
|
Toast.Warning("正在导出中", { canClose: true });
|
|
108
117
|
return;
|
|
109
118
|
}
|
|
110
|
-
setIsExport(true);
|
|
119
|
+
// setIsExport(true);
|
|
111
120
|
downloadImg();
|
|
112
121
|
};
|
|
113
122
|
const fitViewHandler = (instance) => {
|
|
@@ -178,5 +187,9 @@ function ExportMapModal(props: IProps) {
|
|
|
178
187
|
</>
|
|
179
188
|
</Dialog>
|
|
180
189
|
);
|
|
181
|
-
}
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
ExportMapModal.defaultProps = {
|
|
193
|
+
onCloseHandler: () => {},
|
|
194
|
+
};
|
|
182
195
|
export default ExportMapModal;
|
|
@@ -5,7 +5,7 @@ import { getMonth } from "../../utils/constant";
|
|
|
5
5
|
|
|
6
6
|
export const dealSelectedPeriodData = (period: string) => {
|
|
7
7
|
const option: any = {};
|
|
8
|
-
option.cycleType = period ===
|
|
8
|
+
option.cycleType = Number(period) === -1 ? "-1" : period.substring(0, 1);
|
|
9
9
|
option.yqmNum = period.substring(2) === "" ? "0" : period.substring(2);
|
|
10
10
|
return option;
|
|
11
11
|
};
|
|
@@ -51,7 +51,7 @@ export const formatPeriod = (selected: SelectedInterface) => {
|
|
|
51
51
|
if (!selected) return "";
|
|
52
52
|
const quarter = ["", `${getLocale("OKR_MyO_Pop_1stQuarter")}`, `${getLocale("OKR_MyO_Pop_2ndQuarter")}`, `${getLocale("OKR_MyO_Pop_3rdQuarter")}`, `${getLocale("OKR_MyO_Pop_4thQuarter")}`];
|
|
53
53
|
let cycleDate = "";
|
|
54
|
-
const annualNum = selected.annualNum ===
|
|
54
|
+
const annualNum = Number(`${selected.annualNum}`) === -1 ? `${getLocale("OKR_MyO_Butt_Allyears")}` : `${selected.annualNum}${isEn ? "" : "年"}`;
|
|
55
55
|
const month = getMonth();
|
|
56
56
|
switch (`${selected.cycleType}`) {
|
|
57
57
|
case "-1":
|
|
@@ -73,7 +73,7 @@ export const formatPeriod = (selected: SelectedInterface) => {
|
|
|
73
73
|
}`;
|
|
74
74
|
break;
|
|
75
75
|
case "5":
|
|
76
|
-
cycleDate = selected.yqmNum ===
|
|
76
|
+
cycleDate = Number(`${selected.yqmNum}`) === 1 ? `${getLocale("OKR_MyO_Pop_Firsthalf")}` : `${getLocale("OKR_MyO_Pop_Secondhalf")}`;
|
|
77
77
|
break;
|
|
78
78
|
default:
|
|
79
79
|
cycleDate = `${getLocale("Mod_Customization")}`;
|
|
@@ -25,14 +25,19 @@ const BaseInfo: FC = () => {
|
|
|
25
25
|
setVisible(false);
|
|
26
26
|
};
|
|
27
27
|
|
|
28
|
-
const handleSuccessEditBaseInfo = (
|
|
29
|
-
setUserInfo({ ...
|
|
28
|
+
const handleSuccessEditBaseInfo = (data) => {
|
|
29
|
+
setUserInfo({ ...data });
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
useEffect(() => {
|
|
33
33
|
getUserInfoFun().then((resp) => {
|
|
34
34
|
if (resp.Code === 1 && resp.Data) {
|
|
35
|
-
setUserInfo({
|
|
35
|
+
setUserInfo({
|
|
36
|
+
...resp.Data,
|
|
37
|
+
position: resp.Data.positionCode,
|
|
38
|
+
deparmentId: resp.Data.departmentId,
|
|
39
|
+
deparmentName: resp.Data.departmentName,
|
|
40
|
+
});
|
|
36
41
|
}
|
|
37
42
|
});
|
|
38
43
|
}, []);
|
|
@@ -1,17 +1,26 @@
|
|
|
1
|
-
import React, {
|
|
1
|
+
import React, {
|
|
2
|
+
useState, useRef, useEffect, FC,
|
|
3
|
+
} from "react";
|
|
2
4
|
import Form from "../../../../components/form";
|
|
3
|
-
import {
|
|
5
|
+
import { saveUserInfo } from "../../request-api";
|
|
4
6
|
import Toast from "../../../../components/toast";
|
|
5
7
|
import Dialog from "../../../../components/dialog";
|
|
6
8
|
import { getLocale } from "../../../../utils/getLocale";
|
|
7
9
|
import { i18nLimitCharacters } from "../../../../utils/i18n-front-translate";
|
|
8
10
|
import "./index.scss";
|
|
9
11
|
|
|
12
|
+
interface IEditbaseInfoProps {
|
|
13
|
+
visible: boolean;
|
|
14
|
+
onCancel: Function;
|
|
15
|
+
handleSuccessEditBaseInfo: Function;
|
|
16
|
+
info: any
|
|
17
|
+
}
|
|
18
|
+
|
|
10
19
|
const { Fields } = Form;
|
|
11
20
|
|
|
12
21
|
const prefix = "titaui-edit-personal-info";
|
|
13
22
|
|
|
14
|
-
|
|
23
|
+
const EditBaseInfo: FC<IEditbaseInfoProps> = (props) => {
|
|
15
24
|
const {
|
|
16
25
|
visible, onCancel, handleSuccessEditBaseInfo, info,
|
|
17
26
|
} = props;
|
|
@@ -21,8 +30,8 @@ function EditBaseInfo(props) {
|
|
|
21
30
|
const formRef = useRef<any>();
|
|
22
31
|
|
|
23
32
|
const [isDisable, setIsDisable] = useState(false);
|
|
24
|
-
const [isEdit, setIsEdit] = useState(false);
|
|
25
|
-
const [userInfo, setUserInfo] = useState(
|
|
33
|
+
// const [isEdit, setIsEdit] = useState(false);
|
|
34
|
+
const [userInfo, setUserInfo] = useState(info);
|
|
26
35
|
|
|
27
36
|
const handleNameChange = (value) => {
|
|
28
37
|
setUserInfo({
|
|
@@ -34,7 +43,7 @@ function EditBaseInfo(props) {
|
|
|
34
43
|
} else {
|
|
35
44
|
setIsDisable(false);
|
|
36
45
|
}
|
|
37
|
-
setIsEdit(true);
|
|
46
|
+
// setIsEdit(true);
|
|
38
47
|
};
|
|
39
48
|
|
|
40
49
|
const handlePhoneChange = (value) => {
|
|
@@ -47,7 +56,7 @@ function EditBaseInfo(props) {
|
|
|
47
56
|
} else {
|
|
48
57
|
setIsDisable(false);
|
|
49
58
|
}
|
|
50
|
-
setIsEdit(true);
|
|
59
|
+
// setIsEdit(true);
|
|
51
60
|
};
|
|
52
61
|
|
|
53
62
|
const handleEmailChange = (value) => {
|
|
@@ -55,7 +64,7 @@ function EditBaseInfo(props) {
|
|
|
55
64
|
...userInfo,
|
|
56
65
|
email: value || "",
|
|
57
66
|
});
|
|
58
|
-
setIsEdit(true);
|
|
67
|
+
// setIsEdit(true);
|
|
59
68
|
};
|
|
60
69
|
|
|
61
70
|
const handleSaveUserInfo = () => {
|
|
@@ -75,12 +84,8 @@ function EditBaseInfo(props) {
|
|
|
75
84
|
};
|
|
76
85
|
|
|
77
86
|
useEffect(() => {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
setUserInfo({ ...resp.Data, position: resp.Data.positionCode });
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
}, []);
|
|
87
|
+
setUserInfo(info);
|
|
88
|
+
}, [info]);
|
|
84
89
|
|
|
85
90
|
return (
|
|
86
91
|
<Dialog
|
|
@@ -178,6 +183,6 @@ function EditBaseInfo(props) {
|
|
|
178
183
|
</div>
|
|
179
184
|
</Dialog>
|
|
180
185
|
);
|
|
181
|
-
}
|
|
186
|
+
};
|
|
182
187
|
|
|
183
188
|
export default EditBaseInfo;
|
package/yarn-error.log
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
Arguments:
|
|
2
|
-
/usr/local/bin/node /usr/local/bin/yarn
|
|
3
|
-
|
|
4
|
-
PATH:
|
|
5
|
-
/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/opt/homebrew/bin:/opt/homebrew/sbin
|
|
6
|
-
|
|
7
|
-
Yarn version:
|
|
8
|
-
1.22.10
|
|
9
|
-
|
|
10
|
-
Node version:
|
|
11
|
-
12.22.1
|
|
12
|
-
|
|
13
|
-
Platform:
|
|
14
|
-
darwin x64
|
|
15
|
-
|
|
16
|
-
Trace:
|
|
17
|
-
SyntaxError: /Users/yang/tita/titaui-pc/package.json: Unexpected token < in JSON at position 26
|
|
18
|
-
at JSON.parse (<anonymous>)
|
|
19
|
-
at /usr/local/lib/node_modules/yarn/lib/cli.js:1625:59
|
|
20
|
-
at Generator.next (<anonymous>)
|
|
21
|
-
at step (/usr/local/lib/node_modules/yarn/lib/cli.js:310:30)
|
|
22
|
-
at /usr/local/lib/node_modules/yarn/lib/cli.js:321:13
|
|
23
|
-
|
|
24
|
-
npm manifest:
|
|
25
|
-
{
|
|
26
|
-
"name": "@titaui/pc",
|
|
27
|
-
<<<<<<< HEAD
|
|
28
|
-
"version": "1.2.22",
|
|
29
|
-
=======
|
|
30
|
-
"version": "1.2.13",
|
|
31
|
-
>>>>>>> master
|
|
32
|
-
"nameCN": "",
|
|
33
|
-
"description": "",
|
|
34
|
-
"main": "src/index.js",
|
|
35
|
-
"scripts": {
|
|
36
|
-
"storybook": "start-storybook -p 6006 --no-dll",
|
|
37
|
-
"start": "dev_server=on webpack-dev-server --disableHostCheck=true --progress --colors --config webpack-stories.config.js",
|
|
38
|
-
"build-storybook": "build-storybook --docs --no-dll",
|
|
39
|
-
"build:es": "babel src -d es --ignore **/__tests__",
|
|
40
|
-
"build:lib": "cross-env OUTPUT_MODULE=commonjs babel src -d lib --ignore **/__tests__",
|
|
41
|
-
"build:umd": "webpack --config ./.scripts/webpack.umd.js",
|
|
42
|
-
"build": "npm run build:lib && npm run build:es && npm run build:umd"
|
|
43
|
-
},
|
|
44
|
-
"author": "",
|
|
45
|
-
"license": "ISC",
|
|
46
|
-
"devDependencies": {
|
|
47
|
-
"del": "^6.0.0",
|
|
48
|
-
"gulp": "^3.x",
|
|
49
|
-
"gulp-autoprefixer": "^7.0.1",
|
|
50
|
-
"gulp-babel": "^8.0.0",
|
|
51
|
-
"gulp-concat": "^2.6.1",
|
|
52
|
-
"gulp-cssbeautify": "^3.0.0",
|
|
53
|
-
"gulp-cssnano": "^2.1.3",
|
|
54
|
-
"gulp-filesize": "0.0.6",
|
|
55
|
-
"gulp-postcss": "^9.0.0",
|
|
56
|
-
"gulp-rename": "^2.0.0",
|
|
57
|
-
"gulp-replace": "^1.0.0",
|
|
58
|
-
"gulp-sass": "^4.1.0",
|
|
59
|
-
"gulp-sourcemaps": "^2.6.5",
|
|
60
|
-
"sass-resources-loader": "^2.2.1"
|
|
61
|
-
},
|
|
62
|
-
"dependencies": {
|
|
63
|
-
"@titaui/dagre": "^0.8.8-pre",
|
|
64
|
-
"@titaui/rc-tree2": "^4.1.15",
|
|
65
|
-
"@titaui/rc-trigger": "^5.2.5",
|
|
66
|
-
"@titaui/react-flow-renderer": "9.5.4",
|
|
67
|
-
"@titaui/toast": "^1.0.0",
|
|
68
|
-
"axios": "^0.21.1",
|
|
69
|
-
"classnames": "^2.2.6",
|
|
70
|
-
"clone-deep": "^4.0.1",
|
|
71
|
-
"d3-cloud": "^1.2.5",
|
|
72
|
-
"dayjs": "^1.10.4",
|
|
73
|
-
"html2canvas": "^1.0.0-rc.7",
|
|
74
|
-
"moment": "^2.29.1",
|
|
75
|
-
"qs": "^6.10.1",
|
|
76
|
-
"rc-checkbox": "^2.3.2",
|
|
77
|
-
"rc-dialog": "8.5.2",
|
|
78
|
-
"rc-drawer": "^4.3.1",
|
|
79
|
-
"rc-input-number": "^5.0.0",
|
|
80
|
-
"rc-pagination": "^3.1.6",
|
|
81
|
-
"rc-queue-anim": "1.4.1",
|
|
82
|
-
"rc-select": "^12.1.7",
|
|
83
|
-
"rc-switch": "^3.2.2",
|
|
84
|
-
"rc-table": "^7.13.2",
|
|
85
|
-
"rc-tabs": "^11.7.3",
|
|
86
|
-
"rc-tooltip": "^5.1.1",
|
|
87
|
-
"rc-tree": "^4.1.5",
|
|
88
|
-
"rc-trigger": "^5.2.3",
|
|
89
|
-
"rc-upload": "^4.2.0-alpha.0",
|
|
90
|
-
"rc-util": "^5.13.1",
|
|
91
|
-
"react-collapse": "^5.1.0",
|
|
92
|
-
"react-perfect-scrollbar": "^1.5.2",
|
|
93
|
-
"url-parse": "^1.5.1",
|
|
94
|
-
"uuid": "^3.1.0",
|
|
95
|
-
"wordcloud": "^1.2.2"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
yarn manifest:
|
|
100
|
-
No manifest
|
|
101
|
-
|
|
102
|
-
Lockfile:
|
|
103
|
-
No lockfile
|