@voplus/morpho-document 5.0.66 → 5.0.68
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/es/controls/QuickViewDialog/index.js +1 -1
- package/es/controls/QuickViewDialog/index.js.map +1 -1
- package/package.json +1 -1
- package/es/components/NodeQuickView/QuickModal.d.ts +0 -9
- package/es/components/NodeQuickView/QuickModal.js +0 -12
- package/es/components/NodeQuickView/QuickModal.js.map +0 -1
- package/es/components/NodeQuickView/QuickSubTab/index.d.ts +0 -16
- package/es/components/NodeQuickView/QuickSubTab/index.js +0 -55
- package/es/components/NodeQuickView/QuickSubTab/index.js.map +0 -1
- package/es/components/NodeQuickView/QuickSubTab/index.less +0 -26
- package/es/components/NodeQuickView/index.d.ts +0 -24
- package/es/components/NodeQuickView/index.js +0 -44
- package/es/components/NodeQuickView/index.js.map +0 -1
- package/es/components/NodeQuickView/index.less +0 -75
- package/es/components/NodeQuickView/state.d.ts +0 -9
- package/es/components/NodeQuickView/state.js +0 -37
- package/es/components/NodeQuickView/state.js.map +0 -1
- package/es/components/QuickViewDialog/QuickModal.d.ts +0 -9
- package/es/components/QuickViewDialog/QuickModal.js +0 -12
- package/es/components/QuickViewDialog/QuickModal.js.map +0 -1
- package/es/components/QuickViewDialog/QuickSubTab/index.d.ts +0 -29
- package/es/components/QuickViewDialog/QuickSubTab/index.js +0 -56
- package/es/components/QuickViewDialog/QuickSubTab/index.js.map +0 -1
- package/es/components/QuickViewDialog/QuickSubTab/index.less +0 -23
- package/es/components/QuickViewDialog/index.d.ts +0 -30
- package/es/components/QuickViewDialog/index.js +0 -54
- package/es/components/QuickViewDialog/index.js.map +0 -1
- package/es/components/QuickViewDialog/index.less +0 -82
- package/es/components/QuickViewDialog/state.d.ts +0 -9
- package/es/components/QuickViewDialog/state.js +0 -37
- package/es/components/QuickViewDialog/state.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","s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E,EAAE,QAAQ,SAAG;iBAC/C,CAAC;YACH,KAAK,YAAY;gBAChB,OAAO;oBACN,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,cAAc;oBACpB,KAAK,EAAE,YAAY;oBACnB,MAAM,EAAE,oBAAC,WAAW,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;iBACrC,CAAC;YACH,KAAK,MAAM;gBACV,OAAO;oBACN,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,MAAM;oBACb,MAAM,EAAE,oBAAC,KAAK,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,GAAI;iBAC/C,CAAC;SACH;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG;IAC9B,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;CAC5E,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
declare const QuickModal: (props: {
|
|
3
|
-
className?: string;
|
|
4
|
-
width?: string | number | undefined;
|
|
5
|
-
visible?: boolean;
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
onCancel?: () => void;
|
|
8
|
-
}) => React.JSX.Element;
|
|
9
|
-
export default QuickModal;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import Modal from "@voplus/morpho-ui/es/components/Modal";
|
|
3
|
-
import classNames from "classnames";
|
|
4
|
-
import { observe } from "@voplus/morpho-ui";
|
|
5
|
-
import styles from "./index.less";
|
|
6
|
-
import { useLayout } from "@voplus/morpho-data";
|
|
7
|
-
const QuickModal = (props) => {
|
|
8
|
-
const layout = useLayout();
|
|
9
|
-
return observe(() => (React.createElement(React.Fragment, null, layout.ui.mobile ? (props.children) : (React.createElement(Modal, { width: props.width, className: classNames(styles["node-quickView-modal"], props.className), open: props.visible, destroyOnClose: true, closable: false, footer: null, onCancel: props.onCancel }, props.children)))));
|
|
10
|
-
};
|
|
11
|
-
export default QuickModal;
|
|
12
|
-
//# sourceMappingURL=QuickModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuickModal.js","sourceRoot":"","sources":["../../../src/components/NodeQuickView/QuickModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,MAAM,uCAAuC,CAAC;AAC1D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,UAAU,GAAG,CAAC,KAMnB,EAAE,EAAE;IACJ,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,CAAC,QAAQ,QAEb,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CACnB,KAAK,CAAC,QAAQ,CACd,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,IACL,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,sBAAsB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,EACtE,IAAI,EAAE,KAAK,CAAC,OAAO,EACnB,cAAc,EAAE,IAAI,EACpB,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAEvB,KAAK,CAAC,QAAQ,CACR,CACR,CACe,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export type QuickViewProps = {
|
|
3
|
-
functionButtons?: ("document" | "activities" | "link")[];
|
|
4
|
-
isProperties?: boolean;
|
|
5
|
-
showSubTab?: (params?: any) => void;
|
|
6
|
-
};
|
|
7
|
-
declare const QuickSubTab: (props: QuickViewProps) => React.JSX.Element;
|
|
8
|
-
declare const QuickSubContent: (props: {
|
|
9
|
-
id: string;
|
|
10
|
-
type?: string;
|
|
11
|
-
className?: string;
|
|
12
|
-
propertiesView?: React.ReactNode;
|
|
13
|
-
exclude?: string[];
|
|
14
|
-
onCancel?: () => void;
|
|
15
|
-
}) => React.JSX.Element;
|
|
16
|
-
export { QuickSubTab, QuickSubContent };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { Button, Tooltip } from "antd";
|
|
2
|
-
import React, { useEffect, useState } from "react";
|
|
3
|
-
import { faFileAlt, faLink, faListTimeline, faTimes, faAlignLeft, } from "@fortawesome/pro-light-svg-icons";
|
|
4
|
-
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
|
|
5
|
-
import DocumentList from "../../DocumentList";
|
|
6
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
7
|
-
import Links from "../../Links";
|
|
8
|
-
import classnames from "classnames";
|
|
9
|
-
import { observe } from "@voplus/morpho-ui";
|
|
10
|
-
import styles from "./index.less";
|
|
11
|
-
import { useLayout } from "@voplus/morpho-data";
|
|
12
|
-
const QuickSubTab = (props) => {
|
|
13
|
-
const { showSubTab, functionButtons, isProperties } = { ...props };
|
|
14
|
-
const [buttonProps, setButtonProps] = useState({});
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
setButtonProps({ shape: "circle" });
|
|
17
|
-
}, []);
|
|
18
|
-
return observe(() => (React.createElement(React.Fragment, null,
|
|
19
|
-
isProperties && (React.createElement(Tooltip, { title: "Display properties separately" },
|
|
20
|
-
React.createElement(Button, { ...buttonProps, icon: React.createElement(FAIcon, { icon: faAlignLeft }), onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("properties") }))),
|
|
21
|
-
(functionButtons === null || functionButtons === void 0 ? void 0 : functionButtons.includes("document")) && (React.createElement(Tooltip, { title: "Documents" },
|
|
22
|
-
React.createElement(Button, { ...buttonProps, icon: React.createElement(FAIcon, { icon: faFileAlt }), onClick: (e) => {
|
|
23
|
-
e.stopPropagation();
|
|
24
|
-
showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("documents");
|
|
25
|
-
} }))),
|
|
26
|
-
(functionButtons === null || functionButtons === void 0 ? void 0 : functionButtons.includes("activities")) && (React.createElement(Tooltip, { title: "Activities" },
|
|
27
|
-
React.createElement(Button, { ...buttonProps, icon: React.createElement(FAIcon, { icon: faListTimeline }), onClick: (e) => {
|
|
28
|
-
e.stopPropagation();
|
|
29
|
-
showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("activities");
|
|
30
|
-
} }))),
|
|
31
|
-
(functionButtons === null || functionButtons === void 0 ? void 0 : functionButtons.includes("link")) && (React.createElement(Tooltip, { title: "Links" },
|
|
32
|
-
React.createElement(Button, { ...buttonProps, icon: React.createElement(FAIcon, { icon: faLink }), onClick: (e) => {
|
|
33
|
-
e.stopPropagation();
|
|
34
|
-
showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("links");
|
|
35
|
-
} }))))));
|
|
36
|
-
};
|
|
37
|
-
const QuickSubContent = (props) => {
|
|
38
|
-
const { type, id, exclude, propertiesView, className, onCancel } = {
|
|
39
|
-
...props,
|
|
40
|
-
};
|
|
41
|
-
const layout = useLayout();
|
|
42
|
-
return observe(() => (React.createElement("div", { className: classnames(styles["node-quickView-right"], className) },
|
|
43
|
-
layout.ui.mobile ? null : (React.createElement("div", { className: "close-icon" },
|
|
44
|
-
React.createElement(FAIcon, { icon: faTimes, onClick: (e) => {
|
|
45
|
-
e.stopPropagation();
|
|
46
|
-
onCancel && onCancel();
|
|
47
|
-
} }))),
|
|
48
|
-
React.createElement("div", { className: "tab-content" },
|
|
49
|
-
type === "properties" && propertiesView,
|
|
50
|
-
type === "documents" && React.createElement(DocumentList, { id: id, exclude: exclude, multiple: true }),
|
|
51
|
-
type === "activities" && React.createElement(ActivityLog, { id: id }),
|
|
52
|
-
type === "links" && React.createElement(Links, { id: id, isTitle: false })))));
|
|
53
|
-
};
|
|
54
|
-
export { QuickSubTab, QuickSubContent };
|
|
55
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/NodeQuickView/QuickSubTab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EACN,SAAS,EACT,MAAM,EACN,cAAc,EACd,OAAO,EACP,WAAW,GACX,MAAM,kCAAkC,CAAC;AAE1C,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAQhD,MAAM,WAAW,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC7C,MAAM,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC;IACnE,MAAM,CAAC,WAAW,EAAE,cAAc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AAE,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,SAAG;YAC3E,IAAI,KAAK,YAAY,IAAI,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,GAAI;YAChD,IAAI,KAAK,OAAO,IAAI,oBAAC,KAAK,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,GAAI,CACjD,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
.node-quickView-right {
|
|
2
|
-
height: 100%;
|
|
3
|
-
flex: 1;
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
border-left: solid 1px #eeeeee;
|
|
7
|
-
|
|
8
|
-
:global {
|
|
9
|
-
.close-icon {
|
|
10
|
-
font-size: 22px;
|
|
11
|
-
text-align: right;
|
|
12
|
-
padding: 10px 20px 0;
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.tab-content {
|
|
17
|
-
position: relative;
|
|
18
|
-
flex: 1;
|
|
19
|
-
|
|
20
|
-
.tab-module-box {
|
|
21
|
-
height: 100%;
|
|
22
|
-
padding: 10px 0 0 10px;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
import { QuickViewProps } from "@voplus/morpho-document-core";
|
|
3
|
-
export type NodeQuickViewProps = {
|
|
4
|
-
className?: string;
|
|
5
|
-
/** show close button or not. */
|
|
6
|
-
closeVisible?: boolean;
|
|
7
|
-
/** 不显示某些类型的文件 e.g. exclude={["Task", "Agenda"]} */
|
|
8
|
-
exclude?: string[];
|
|
9
|
-
/** header */
|
|
10
|
-
header: ReactNode;
|
|
11
|
-
/** 单独显示properties */
|
|
12
|
-
propertiesView?: ReactNode;
|
|
13
|
-
/** listContent */
|
|
14
|
-
children?: ReactNode;
|
|
15
|
-
/** 显示哪些功能按钮 */
|
|
16
|
-
functionButtons?: ("document" | "activities" | "link")[];
|
|
17
|
-
} & QuickViewProps;
|
|
18
|
-
declare const NodeQuickView: {
|
|
19
|
-
(props: NodeQuickViewProps): React.JSX.Element;
|
|
20
|
-
defaultProps: {
|
|
21
|
-
closeVisible: boolean;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export default NodeQuickView;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { AsideContent, observe } from "@voplus/morpho-ui";
|
|
2
|
-
import { QuickSubContent, QuickSubTab } from "./QuickSubTab";
|
|
3
|
-
import React, { useState } from "react";
|
|
4
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
5
|
-
import FlexDialog from "../FlexDialog";
|
|
6
|
-
import { State } from "./state";
|
|
7
|
-
import { faTimes } from "@fortawesome/pro-light-svg-icons";
|
|
8
|
-
import styles from "./index.less";
|
|
9
|
-
import { useLayout } from "@voplus/morpho-data";
|
|
10
|
-
const NodeQuickView = (props) => {
|
|
11
|
-
const [state] = useState(new State());
|
|
12
|
-
const [asideContext] = useState(AsideContent.createContext());
|
|
13
|
-
const layout = useLayout();
|
|
14
|
-
return observe(() => (React.createElement(FlexDialog, { modalProps: {
|
|
15
|
-
className: "quickView-modal-style",
|
|
16
|
-
width: state.subTab ? "1000px" : "500px",
|
|
17
|
-
destroyOnClose: true,
|
|
18
|
-
closable: false,
|
|
19
|
-
footer: false,
|
|
20
|
-
open: props.visible,
|
|
21
|
-
onCancel: props.onCancel,
|
|
22
|
-
}, closeAside: props.onCancel },
|
|
23
|
-
React.createElement(AsideContent, { context: asideContext, className: styles["node-quickView-aside"] },
|
|
24
|
-
React.createElement("div", { className: "node-quickView-left" },
|
|
25
|
-
React.createElement("div", { className: "document-header" },
|
|
26
|
-
props.closeVisible && !layout.ui.mobile && (React.createElement("div", { className: "close-icon" },
|
|
27
|
-
React.createElement(FAIcon, { icon: faTimes, onClick: props.onCancel }))),
|
|
28
|
-
props.header),
|
|
29
|
-
React.createElement("div", { className: "node-quickView-contents" },
|
|
30
|
-
React.createElement("div", { className: "node-quickView-subTab" },
|
|
31
|
-
React.createElement(QuickSubTab, { functionButtons: props.functionButtons, isProperties: !!props.propertiesView, showSubTab: (key) => {
|
|
32
|
-
state.subTab = true;
|
|
33
|
-
asideContext.openAside(React.createElement(QuickSubContent, { id: props.id, type: key, exclude: props.exclude, propertiesView: props.propertiesView, onCancel: () => {
|
|
34
|
-
asideContext.closeAside();
|
|
35
|
-
state.subTab = false;
|
|
36
|
-
} }), { span: 12 });
|
|
37
|
-
} })),
|
|
38
|
-
props.children))))));
|
|
39
|
-
};
|
|
40
|
-
NodeQuickView.defaultProps = {
|
|
41
|
-
closeVisible: true,
|
|
42
|
-
};
|
|
43
|
-
export default NodeQuickView;
|
|
44
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/NodeQuickView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,UAAU,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAkBhD,MAAM,aAAa,GAAG,CAAC,KAAyB,EAAE,EA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IAAI,CAAC;gCACpB,YAAY,CAAC,SAAS,CACrB,oBAAC,eAAe,IACf,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,IAAI,EAAE,GAAG,EACT,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,cAAc,EAAE,KAAK,CAAC,cAAc,EACpC,QAAQ,EAAE,GAAG,EAAE;wCACd,YAAY,CAAC,UAAU,EAAE,CAAC;wCAC1B,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC;oCACtB,CAAC,GACA,EACF,EAAE,IAAI,EAAE,EAAE,EAAE,CACZ,CAAC;4BACH,CAAC,GACA,CACG;oBACL,KAAK,CAAC,QAAQ,CACV,CACD,CACQ,CACH,CACb,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,aAAa,CAAC,YAAY,GAAG;IAC5B,YAAY,EAAE,IAAI;CAClB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
-
|
|
3
|
-
.node-quickView-modal {
|
|
4
|
-
height: calc(100% - 200px);
|
|
5
|
-
|
|
6
|
-
:global {
|
|
7
|
-
.ant-modal-content {
|
|
8
|
-
height: 100%;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.ant-modal-body {
|
|
12
|
-
display: flex;
|
|
13
|
-
height: 100%;
|
|
14
|
-
padding: 0 !important;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.node-quickView-aside {
|
|
20
|
-
width: 100%;
|
|
21
|
-
|
|
22
|
-
:global {
|
|
23
|
-
.node-quickView-left {
|
|
24
|
-
flex: 1;
|
|
25
|
-
display: flex;
|
|
26
|
-
flex-direction: column;
|
|
27
|
-
|
|
28
|
-
.document-header {
|
|
29
|
-
padding-right: 26px;
|
|
30
|
-
position: relative;
|
|
31
|
-
border-bottom: solid 1px #eeeeee;
|
|
32
|
-
|
|
33
|
-
.close-icon {
|
|
34
|
-
position: absolute;
|
|
35
|
-
top: 4px;
|
|
36
|
-
right: 0;
|
|
37
|
-
font-size: 22px;
|
|
38
|
-
text-align: right;
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
padding: 10px 20px 0;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.node-quickView-contents {
|
|
45
|
-
flex: 1;
|
|
46
|
-
display: flex;
|
|
47
|
-
flex-direction: column;
|
|
48
|
-
overflow: hidden;
|
|
49
|
-
|
|
50
|
-
.node-quickView-subTab {
|
|
51
|
-
display: inline-block;
|
|
52
|
-
text-align: right;
|
|
53
|
-
padding: 10px 20px;
|
|
54
|
-
|
|
55
|
-
.ant-btn {
|
|
56
|
-
margin-left: 10px;
|
|
57
|
-
border-radius: @border-radius;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.node-quickView-description {
|
|
62
|
-
padding: 10px 15px;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.frame-view___o5TgK {
|
|
68
|
-
.frame-header {
|
|
69
|
-
position: absolute;
|
|
70
|
-
top: 0;
|
|
71
|
-
background-color: #fff;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { action, makeObservable, observable } from "mobx";
|
|
3
|
-
export class State {
|
|
4
|
-
constructor() {
|
|
5
|
-
/** 当前激活 tab 面板的 key */
|
|
6
|
-
Object.defineProperty(this, "key", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
configurable: true,
|
|
9
|
-
writable: true,
|
|
10
|
-
value: ""
|
|
11
|
-
});
|
|
12
|
-
/** 是否显示 tab */
|
|
13
|
-
Object.defineProperty(this, "subTab", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
configurable: true,
|
|
16
|
-
writable: true,
|
|
17
|
-
value: false
|
|
18
|
-
});
|
|
19
|
-
makeObservable(this);
|
|
20
|
-
}
|
|
21
|
-
/** Callback of switch panel */
|
|
22
|
-
showSubTab(key) {
|
|
23
|
-
if (!this.subTab)
|
|
24
|
-
this.subTab = true;
|
|
25
|
-
this.key = key;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
__decorate([
|
|
29
|
-
observable
|
|
30
|
-
], State.prototype, "key", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
observable
|
|
33
|
-
], State.prototype, "subTab", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
action
|
|
36
|
-
], State.prototype, "showSubTab", null);
|
|
37
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/NodeQuickView/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAO,KAAK;IAMjB;QALA,uBAAuB;QACJ;;;;mBAAM,EAAE;WAAC;QAC5B,eAAe;QACI;;;;mBAAS,KAAK;WAAC;QAGjC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAED,gCAAgC;IAEzB,UAAU,CAAC,GAAW;QAC5B,IAAI,CAAC,IAAI,CAAC,MAAM;YAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACrC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IAChB,CAAC;CACD;AAdmB;IAAlB,UAAU;kCAAiB;AAET;IAAlB,UAAU;qCAAuB;AAQ3B;IADN,MAAM;uCAIN"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
declare const QuickModal: (props: {
|
|
3
|
-
className?: string;
|
|
4
|
-
width?: string | number | undefined;
|
|
5
|
-
visible?: boolean;
|
|
6
|
-
children?: ReactNode;
|
|
7
|
-
onCancel?: () => void;
|
|
8
|
-
}) => React.JSX.Element;
|
|
9
|
-
export default QuickModal;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import Modal from "@voplus/morpho-ui/es/components/Modal";
|
|
3
|
-
import classNames from "classnames";
|
|
4
|
-
import { observe } from "@voplus/morpho-ui";
|
|
5
|
-
import styles from "./index.less";
|
|
6
|
-
import { useLayout } from "@voplus/morpho-data";
|
|
7
|
-
const QuickModal = (props) => {
|
|
8
|
-
const layout = useLayout();
|
|
9
|
-
return observe(() => (React.createElement(React.Fragment, null, layout.ui.mobile ? (props.children) : (React.createElement(Modal, { width: props.width, className: classNames(styles["quickView-modal"], props.className), open: props.visible, destroyOnClose: true, closable: false, footer: null, onCancel: props.onCancel }, props.children)))));
|
|
10
|
-
};
|
|
11
|
-
export default QuickModal;
|
|
12
|
-
//# sourceMappingURL=QuickModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuickModal.js","sourceRoot":"","sources":["../../../src/components/QuickViewDialog/QuickModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,MAAM,uCAAuC,CAAC;AAC1D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,UAAU,GAAG,CAAC,KAMnB,EAAE,EAAE;IACJ,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,CAAC,QAAQ,QAEb,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CACnB,KAAK,CAAC,QAAQ,CACd,CAAC,CAAC,CAAC,CACH,oBAAC,KAAK,IACL,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,iBAAiB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,EACjE,IAAI,EAAE,KAAK,CAAC,OAAO,EACnB,cAAc,EAAE,IAAI,EACpB,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,IAAI,EACZ,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAEvB,KAAK,CAAC,QAAQ,CACR,CACR,CACe,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from "react";
|
|
2
|
-
export type QuickViewProps = {
|
|
3
|
-
type?: string;
|
|
4
|
-
shape?: boolean;
|
|
5
|
-
isLinks?: boolean;
|
|
6
|
-
isProperties?: boolean;
|
|
7
|
-
isRelatedWorks?: boolean;
|
|
8
|
-
showSubTab?: (params?: any) => void;
|
|
9
|
-
};
|
|
10
|
-
declare const QuickSubTab: {
|
|
11
|
-
(props: QuickViewProps): React.JSX.Element;
|
|
12
|
-
defaultProps: {
|
|
13
|
-
shape: boolean;
|
|
14
|
-
isLinks: boolean;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
declare const QuickSubContent: (props: {
|
|
18
|
-
id: string;
|
|
19
|
-
type?: string;
|
|
20
|
-
shape?: boolean;
|
|
21
|
-
className?: string;
|
|
22
|
-
exclude?: string[];
|
|
23
|
-
propertiesView?: ReactNode;
|
|
24
|
-
relatedWorks?: ReactNode;
|
|
25
|
-
relatedDocuments?: ReactNode;
|
|
26
|
-
taskList?: ReactNode;
|
|
27
|
-
onCancel?: () => void;
|
|
28
|
-
}) => React.JSX.Element;
|
|
29
|
-
export { QuickSubTab, QuickSubContent };
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Button, Tooltip } from "antd";
|
|
2
|
-
import React, { useEffect, useState } from "react";
|
|
3
|
-
import { faAlignLeft, faBriefcase, faFileAlt, faLink, faListCheck, faListTimeline, faTimes, } from "@fortawesome/pro-light-svg-icons";
|
|
4
|
-
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
|
|
5
|
-
import DocumentList from "../../DocumentList";
|
|
6
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
7
|
-
import Links from "../../Links";
|
|
8
|
-
import classnames from "classnames";
|
|
9
|
-
import { observe } from "@voplus/morpho-ui";
|
|
10
|
-
import styles from "./index.less";
|
|
11
|
-
import { useLayout } from "@voplus/morpho-data";
|
|
12
|
-
const QuickSubTab = (props) => {
|
|
13
|
-
const { type, shape, isProperties, isRelatedWorks, isLinks, showSubTab } = { ...props };
|
|
14
|
-
const [buttonProps, setButtonProps] = useState({});
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
if (shape)
|
|
17
|
-
setButtonProps({ shape: "circle" });
|
|
18
|
-
}, [shape]);
|
|
19
|
-
return observe(() => (React.createElement(React.Fragment, null,
|
|
20
|
-
isProperties && (React.createElement(Tooltip, { title: "Display properties separately" },
|
|
21
|
-
React.createElement(Button, { ...buttonProps, icon: React.createElement(FAIcon, { icon: faAlignLeft }), onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("properties") }))),
|
|
22
|
-
isRelatedWorks && (React.createElement(Tooltip, { title: "Related Works" },
|
|
23
|
-
React.createElement(Button, { ...buttonProps, icon: React.createElement(FAIcon, { icon: faBriefcase }), onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("related-works") }))),
|
|
24
|
-
type !== "Document" && type !== "Shortcut" && type !== "Deal" && (React.createElement(Tooltip, { title: "Sub-Documents" },
|
|
25
|
-
React.createElement(Button, { ...buttonProps, icon: React.createElement(FAIcon, { icon: faFileAlt }), onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("documents") }))),
|
|
26
|
-
type === "Deal" && (React.createElement(Tooltip, { title: "Task" },
|
|
27
|
-
React.createElement(Button, { ...buttonProps, icon: React.createElement(FAIcon, { icon: faListCheck }), onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("tasks") }))),
|
|
28
|
-
type === "Deal" && (React.createElement(Tooltip, { title: "Documents" },
|
|
29
|
-
React.createElement(Button, { ...buttonProps, icon: React.createElement(FAIcon, { icon: faFileAlt }), onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("related-documents") }))),
|
|
30
|
-
React.createElement(Tooltip, { title: "Activities" },
|
|
31
|
-
React.createElement(Button, { ...buttonProps, icon: React.createElement(FAIcon, { icon: faListTimeline }), onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("activities") })),
|
|
32
|
-
isLinks && (React.createElement(Tooltip, { title: "Links" },
|
|
33
|
-
React.createElement(Button, { ...buttonProps, icon: React.createElement(FAIcon, { icon: faLink }), onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("links") }))))));
|
|
34
|
-
};
|
|
35
|
-
QuickSubTab.defaultProps = {
|
|
36
|
-
shape: false,
|
|
37
|
-
isLinks: true,
|
|
38
|
-
};
|
|
39
|
-
const QuickSubContent = (props) => {
|
|
40
|
-
const { type, id, shape, exclude, className, propertiesView, relatedWorks, relatedDocuments, taskList, onCancel, } = {
|
|
41
|
-
...props,
|
|
42
|
-
};
|
|
43
|
-
const layout = useLayout();
|
|
44
|
-
return observe(() => (React.createElement("div", { className: classnames(styles["quickView-right"], className) },
|
|
45
|
-
layout.ui.mobile ? null : (React.createElement("div", { className: "close-icon" }, shape ? (React.createElement(Button, { icon: React.createElement(FAIcon, { icon: faTimes }), onClick: onCancel })) : (React.createElement(FAIcon, { icon: faTimes, onClick: onCancel })))),
|
|
46
|
-
React.createElement("div", { className: "tab-content" },
|
|
47
|
-
type === "documents" && React.createElement(DocumentList, { id: id, exclude: exclude, multiple: true }),
|
|
48
|
-
type === "activities" && React.createElement(ActivityLog, { id: id }),
|
|
49
|
-
type === "links" && React.createElement(Links, { id: id, isTitle: false }),
|
|
50
|
-
type === "properties" && propertiesView,
|
|
51
|
-
type === "related-works" && relatedWorks,
|
|
52
|
-
type === "related-documents" && relatedDocuments,
|
|
53
|
-
type === "tasks" && taskList))));
|
|
54
|
-
};
|
|
55
|
-
export { QuickSubTab, QuickSubContent };
|
|
56
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/QuickViewDialog/QuickSubTab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,KAAK,EAAE,EAAa,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9D,OAAO,EACN,WAAW,EACX,WAAW,EACX,SAAS,EACT,MAAM,EACN,WAAW,EACX,cAAc,EACd,OAAO,GACP,MAAM,kCAAkC,CAAC;AAE1C,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,YAAY,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAWhD,MAAM,WAAW,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC7C,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC;IACxF,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IAEnD,SAAS,CAAC,GAAG,EAA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size: 22px;
|
|
10
|
-
text-align: right;
|
|
11
|
-
padding: 10px 20px 0;
|
|
12
|
-
cursor: pointer;
|
|
13
|
-
}
|
|
14
|
-
.tab-content {
|
|
15
|
-
position: relative;
|
|
16
|
-
flex: 1;
|
|
17
|
-
.tab-module-box {
|
|
18
|
-
height: 100%;
|
|
19
|
-
padding: 10px 0 0 10px;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { QuickViewProps } from "@voplus/morpho-document-core";
|
|
2
|
-
import React, { ReactNode } from "react";
|
|
3
|
-
export type QuickViewDialogProps = {
|
|
4
|
-
className?: string;
|
|
5
|
-
/** 单独显示properties */
|
|
6
|
-
propertiesView?: ReactNode;
|
|
7
|
-
/** 单独显示Related Works */
|
|
8
|
-
relatedWorks?: ReactNode;
|
|
9
|
-
/** 个别 (Deal) quickView 需要显示 RelatedDocuments */
|
|
10
|
-
relatedDocuments?: ReactNode;
|
|
11
|
-
/** 是否显示Links */
|
|
12
|
-
isLinks?: boolean;
|
|
13
|
-
/** 个别 (Deal) quickView 需要显示 TaskList */
|
|
14
|
-
taskList?: ReactNode;
|
|
15
|
-
/** show close button or not. */
|
|
16
|
-
closeVisible?: boolean;
|
|
17
|
-
/** 不显示某些类型的文件 e.g. exclude={["Task", "Agenda"]} */
|
|
18
|
-
exclude?: string[];
|
|
19
|
-
/** header */
|
|
20
|
-
header?: ReactNode;
|
|
21
|
-
/** listContent */
|
|
22
|
-
children?: ReactNode;
|
|
23
|
-
} & QuickViewProps;
|
|
24
|
-
declare const QuickViewDialog: {
|
|
25
|
-
(props: QuickViewDialogProps): React.JSX.Element;
|
|
26
|
-
defaultProps: {
|
|
27
|
-
closeVisible: boolean;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
export default QuickViewDialog;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { AsideContent, observe } from "@voplus/morpho-ui";
|
|
2
|
-
import { CommentDataIcon, DateQuickIcon, DocumentPathDataIcon, UserQuickIcon, } from "../../controls/data-icons";
|
|
3
|
-
import { QuickSubContent, QuickSubTab } from "./QuickSubTab";
|
|
4
|
-
import { useDocument } from "@voplus/morpho-document-core";
|
|
5
|
-
import React, { useState } from "react";
|
|
6
|
-
import DataIconBar from "../../controls/DataIconBar";
|
|
7
|
-
import DocumentHeader from "../DocumentHeader";
|
|
8
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
9
|
-
import FlexDialog from "../FlexDialog";
|
|
10
|
-
import Preview from "../FileViewer/Preview";
|
|
11
|
-
import { State } from "./state";
|
|
12
|
-
import { faTimes } from "@fortawesome/pro-light-svg-icons";
|
|
13
|
-
import styles from "./index.less";
|
|
14
|
-
import { useLayout } from "@voplus/morpho-data";
|
|
15
|
-
const QuickViewDialog = (props) => {
|
|
16
|
-
const [state] = useState(new State());
|
|
17
|
-
const [asideContext] = useState(AsideContent.createContext());
|
|
18
|
-
const layout = useLayout();
|
|
19
|
-
const doc = useDocument(props.id, { reload: true, includes: "tags, versions" });
|
|
20
|
-
return observe(() => (React.createElement(React.Fragment, null, doc.type === "File" ? (React.createElement(Preview, { id: props.id, visible: props.visible, url: `/document/${props.id}`, onClose: props.onCancel })) : (React.createElement(FlexDialog, { modalProps: {
|
|
21
|
-
className: "quickView-modal-style",
|
|
22
|
-
width: state.subTab ? "1000px" : "500px",
|
|
23
|
-
destroyOnClose: true,
|
|
24
|
-
closable: false,
|
|
25
|
-
footer: false,
|
|
26
|
-
open: props.visible,
|
|
27
|
-
onCancel: props.onCancel,
|
|
28
|
-
}, closeAside: props.onCancel },
|
|
29
|
-
React.createElement(AsideContent, { context: asideContext, className: styles["quickView-aside"] },
|
|
30
|
-
React.createElement("div", { className: "quickView-left" },
|
|
31
|
-
React.createElement("div", { className: "document-header" },
|
|
32
|
-
props.closeVisible && !layout.ui.mobile && (React.createElement("div", { className: "close-icon" },
|
|
33
|
-
React.createElement(FAIcon, { icon: faTimes, onClick: props.onCancel }))),
|
|
34
|
-
props.header ? (props.header) : (React.createElement(DocumentHeader, { id: props.id, size: "h3", quickDataBar: React.createElement(DataIconBar, null,
|
|
35
|
-
React.createElement(DateQuickIcon, { id: props.id }),
|
|
36
|
-
React.createElement(CommentDataIcon, { id: props.id }),
|
|
37
|
-
React.createElement(UserQuickIcon, { id: props.id }),
|
|
38
|
-
React.createElement(DocumentPathDataIcon, { id: props.id })), quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true }))),
|
|
39
|
-
React.createElement("div", { className: "quickView-contents" },
|
|
40
|
-
React.createElement("div", { className: "quickView-subTab" },
|
|
41
|
-
React.createElement(QuickSubTab, { type: doc.type, isLinks: props.isLinks, isProperties: !!props.propertiesView, isRelatedWorks: !!props.relatedWorks, showSubTab: (key) => {
|
|
42
|
-
state.subTab = true;
|
|
43
|
-
asideContext.openAside(React.createElement(QuickSubContent, { id: props.id, type: key, propertiesView: props.propertiesView, relatedWorks: props.relatedWorks, relatedDocuments: props.relatedDocuments, taskList: props.taskList, exclude: props.exclude, onCancel: () => {
|
|
44
|
-
asideContext.closeAside();
|
|
45
|
-
state.subTab = false;
|
|
46
|
-
} }), { span: 12 });
|
|
47
|
-
} })),
|
|
48
|
-
props.children))))))));
|
|
49
|
-
};
|
|
50
|
-
QuickViewDialog.defaultProps = {
|
|
51
|
-
closeVisible: true,
|
|
52
|
-
};
|
|
53
|
-
export default QuickViewDialog;
|
|
54
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/QuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EACN,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,aAAa,GACb,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAA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
|
-
}
|
|
8
|
-
|
|
9
|
-
.ant-modal-body {
|
|
10
|
-
display: flex;
|
|
11
|
-
height: 100%;
|
|
12
|
-
padding: 0 !important;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.quickView-aside {
|
|
18
|
-
width: 100%;
|
|
19
|
-
|
|
20
|
-
:global {
|
|
21
|
-
.document-header {
|
|
22
|
-
.document-header-default {
|
|
23
|
-
display: flex;
|
|
24
|
-
padding: 20px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.tools-bar {
|
|
28
|
-
align-self: flex-end;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.quickView-left {
|
|
33
|
-
flex: 1;
|
|
34
|
-
display: flex;
|
|
35
|
-
flex-direction: column;
|
|
36
|
-
|
|
37
|
-
.document-header {
|
|
38
|
-
// padding: 10px 15px;
|
|
39
|
-
position: relative;
|
|
40
|
-
border-bottom: solid 1px #eeeeee;
|
|
41
|
-
|
|
42
|
-
.close-icon {
|
|
43
|
-
position: absolute;
|
|
44
|
-
right: 0;
|
|
45
|
-
font-size: 22px;
|
|
46
|
-
text-align: right;
|
|
47
|
-
cursor: pointer;
|
|
48
|
-
padding: 10px 20px 0;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.quickView-contents {
|
|
53
|
-
flex: 1;
|
|
54
|
-
display: flex;
|
|
55
|
-
flex-direction: column;
|
|
56
|
-
overflow: hidden;
|
|
57
|
-
|
|
58
|
-
.quickView-subTab {
|
|
59
|
-
display: inline-block;
|
|
60
|
-
text-align: right;
|
|
61
|
-
padding: 10px 20px;
|
|
62
|
-
|
|
63
|
-
.ant-btn {
|
|
64
|
-
margin-left: 10px;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.quickView-description {
|
|
69
|
-
padding: 10px 15px;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.frame-view___o5TgK {
|
|
75
|
-
.frame-header {
|
|
76
|
-
position: absolute;
|
|
77
|
-
top: 0;
|
|
78
|
-
background-color: #fff;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { action, makeObservable, observable } from "mobx";
|
|
3
|
-
export class State {
|
|
4
|
-
constructor() {
|
|
5
|
-
/** 当前激活 tab 面板的 key */
|
|
6
|
-
Object.defineProperty(this, "key", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
configurable: true,
|
|
9
|
-
writable: true,
|
|
10
|
-
value: ""
|
|
11
|
-
});
|
|
12
|
-
/** 是否显示 tab */
|
|
13
|
-
Object.defineProperty(this, "subTab", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
configurable: true,
|
|
16
|
-
writable: true,
|
|
17
|
-
value: false
|
|
18
|
-
});
|
|
19
|
-
makeObservable(this);
|
|
20
|
-
}
|
|
21
|
-
/** Callback of switch panel */
|
|
22
|
-
showSubTab(key) {
|
|
23
|
-
if (!this.subTab)
|
|
24
|
-
this.subTab = true;
|
|
25
|
-
this.key = key;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
__decorate([
|
|
29
|
-
observable
|
|
30
|
-
], State.prototype, "key", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
observable
|
|
33
|
-
], State.prototype, "subTab", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
action
|
|
36
|
-
], State.prototype, "showSubTab", null);
|
|
37
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/QuickViewDialog/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1D,MAAM,OAAO,KAAK;IAMjB;QALA,uBAAuB;QACJ;;;;mBAAM,EAAE;WAAC;QAC5B,eAAe;QACI;;;;mBAAS,KAAK;WAAC;QAGjC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAED,gCAAgC;IAEzB,UAAU,CAAC,GAAW;QAC5B,IAAI,CAAC,IAAI,CAAC,MAAM;YAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACrC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IAChB,CAAC;CACD;AAdmB;IAAlB,UAAU;kCAAiB;AAET;IAAlB,UAAU;qCAAuB;AAQ3B;IADN,MAAM;uCAIN"}
|