@voplus/morpho-document 1.4.57 → 1.4.59
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/components/DocumentHeader/index.less +7 -2
- package/es/components/DocumentList/index.less +2 -0
- package/es/components/Links/index.less +111 -111
- package/es/controls/DocumentMenu/items/Delete.js +3 -3
- package/es/controls/DocumentMenu/items/Delete.js.map +1 -1
- package/es/controls/DocumentReference/index.less +2 -3
- package/es/controls/DocumentStatusLabel/index.less +9 -10
- package/es/controls/ToolBar/index.less +27 -23
- package/package.json +2 -2
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
@import "~@voplus/antd/es/style/themes/index.less";
|
|
2
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
3
|
+
|
|
2
4
|
:global {
|
|
3
5
|
.anticon-plus {
|
|
4
6
|
/** fix tag font size issue when e.g. under ant uploader. */
|
|
@@ -12,6 +14,9 @@
|
|
|
12
14
|
background-color: @component-background;
|
|
13
15
|
.document-header-content {
|
|
14
16
|
flex: 1;
|
|
17
|
+
.quick-data-bar {
|
|
18
|
+
color: @cancel-color;
|
|
19
|
+
}
|
|
15
20
|
}
|
|
16
21
|
.document-name-content {
|
|
17
22
|
display: flex;
|
|
@@ -21,10 +26,10 @@
|
|
|
21
26
|
}
|
|
22
27
|
.document-pre,
|
|
23
28
|
.document-name {
|
|
24
|
-
font-size:
|
|
29
|
+
font-size: @font-size-lg;
|
|
25
30
|
}
|
|
26
31
|
.document-name {
|
|
27
|
-
color:
|
|
32
|
+
color: @tabs-default-color;
|
|
28
33
|
font-weight: 500;
|
|
29
34
|
word-break: break-all;
|
|
30
35
|
}
|
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
-
.reference-view {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
height: 100%;
|
|
6
|
-
:global {
|
|
7
|
-
.reference-header {
|
|
8
|
-
display: flex;
|
|
9
|
-
margin: 5px 20px 0 20px;
|
|
10
|
-
.multiple-remove {
|
|
11
|
-
font-weight: 600;
|
|
12
|
-
color: #000;
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
.ant-btn {
|
|
15
|
-
padding: 0 10px 0 0;
|
|
16
|
-
font-size: 16px;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
.multiple-remove-btn {
|
|
20
|
-
.ant-btn {
|
|
21
|
-
padding: 0 10px;
|
|
22
|
-
font-style: italic;
|
|
23
|
-
}
|
|
24
|
-
.del-btn {
|
|
25
|
-
color: #ff4d4f;
|
|
26
|
-
&:hover {
|
|
27
|
-
color: #ff7875;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
.cancel-btn {
|
|
31
|
-
color: #666;
|
|
32
|
-
&:hover {
|
|
33
|
-
color: @primary-color;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
.plus-icon {
|
|
38
|
-
display: inline-block;
|
|
39
|
-
padding: 4px;
|
|
40
|
-
margin-left: 10px;
|
|
41
|
-
font-size: 13px;
|
|
42
|
-
line-height: 1px;
|
|
43
|
-
background: #1abc9c;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
.reference-view-page {
|
|
48
|
-
display: block;
|
|
49
|
-
}
|
|
50
|
-
.reference-item {
|
|
51
|
-
display: flex;
|
|
52
|
-
position: relative;
|
|
53
|
-
justify-content: space-between;
|
|
54
|
-
align-items: center;
|
|
55
|
-
padding: 5px 20px;
|
|
56
|
-
&:hover {
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
.reference-item-content {
|
|
59
|
-
opacity: 0.4;
|
|
60
|
-
}
|
|
61
|
-
.reference-status-none {
|
|
62
|
-
display: none;
|
|
63
|
-
}
|
|
64
|
-
.hover-operate-icon {
|
|
65
|
-
display: block;
|
|
66
|
-
opacity: 1;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
.reference-item-content {
|
|
70
|
-
flex: 1;
|
|
71
|
-
color: #000;
|
|
72
|
-
font-weight: 500;
|
|
73
|
-
.reference-content {
|
|
74
|
-
display: flex;
|
|
75
|
-
flex: 1;
|
|
76
|
-
.type-icon {
|
|
77
|
-
font-size: 15px;
|
|
78
|
-
padding-right: 10px;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
.task-item-name.task-item-name_done {
|
|
82
|
-
color: #a8a8a8;
|
|
83
|
-
}
|
|
84
|
-
.task-control {
|
|
85
|
-
display: flex;
|
|
86
|
-
align-items: center;
|
|
87
|
-
padding: 5px 0;
|
|
88
|
-
font-size: 13px;
|
|
89
|
-
color: #444;
|
|
90
|
-
font-weight: normal;
|
|
91
|
-
> span + span {
|
|
92
|
-
margin-left: 15px;
|
|
93
|
-
}
|
|
94
|
-
.svg-inline--fa {
|
|
95
|
-
margin-right: 5px;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.hover-operate-icon {
|
|
101
|
-
display: none;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
.ant-empty {
|
|
105
|
-
font-size: 12px;
|
|
106
|
-
.ant-empty-image {
|
|
107
|
-
height: 35px;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
.reference-view {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
height: 100%;
|
|
6
|
+
:global {
|
|
7
|
+
.reference-header {
|
|
8
|
+
display: flex;
|
|
9
|
+
margin: 5px 20px 0 20px;
|
|
10
|
+
.multiple-remove {
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
color: #000;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
.ant-btn {
|
|
15
|
+
padding: 0 10px 0 0;
|
|
16
|
+
font-size: 16px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.multiple-remove-btn {
|
|
20
|
+
.ant-btn {
|
|
21
|
+
padding: 0 10px;
|
|
22
|
+
font-style: italic;
|
|
23
|
+
}
|
|
24
|
+
.del-btn {
|
|
25
|
+
color: #ff4d4f;
|
|
26
|
+
&:hover {
|
|
27
|
+
color: #ff7875;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.cancel-btn {
|
|
31
|
+
color: #666;
|
|
32
|
+
&:hover {
|
|
33
|
+
color: @primary-color;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.plus-icon {
|
|
38
|
+
display: inline-block;
|
|
39
|
+
padding: 4px;
|
|
40
|
+
margin-left: 10px;
|
|
41
|
+
font-size: 13px;
|
|
42
|
+
line-height: 1px;
|
|
43
|
+
background: #1abc9c;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
.reference-view-page {
|
|
48
|
+
display: block;
|
|
49
|
+
}
|
|
50
|
+
.reference-item {
|
|
51
|
+
display: flex;
|
|
52
|
+
position: relative;
|
|
53
|
+
justify-content: space-between;
|
|
54
|
+
align-items: center;
|
|
55
|
+
padding: 5px 20px;
|
|
56
|
+
&:hover {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
.reference-item-content {
|
|
59
|
+
opacity: 0.4;
|
|
60
|
+
}
|
|
61
|
+
.reference-status-none {
|
|
62
|
+
display: none;
|
|
63
|
+
}
|
|
64
|
+
.hover-operate-icon {
|
|
65
|
+
display: block;
|
|
66
|
+
opacity: 1;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
.reference-item-content {
|
|
70
|
+
flex: 1;
|
|
71
|
+
color: #000;
|
|
72
|
+
font-weight: 500;
|
|
73
|
+
.reference-content {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex: 1;
|
|
76
|
+
.type-icon {
|
|
77
|
+
font-size: 15px;
|
|
78
|
+
padding-right: 10px;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
.task-item-name.task-item-name_done {
|
|
82
|
+
color: #a8a8a8;
|
|
83
|
+
}
|
|
84
|
+
.task-control {
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
padding: 5px 0;
|
|
88
|
+
font-size: 13px;
|
|
89
|
+
color: #444;
|
|
90
|
+
font-weight: normal;
|
|
91
|
+
> span + span {
|
|
92
|
+
margin-left: 15px;
|
|
93
|
+
}
|
|
94
|
+
.svg-inline--fa {
|
|
95
|
+
margin-right: 5px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.hover-operate-icon {
|
|
101
|
+
display: none;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
.ant-empty {
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
.ant-empty-image {
|
|
107
|
+
height: 35px;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -10,9 +10,9 @@ const Delete = (props) => {
|
|
|
10
10
|
const context = useDocumentMenuContext();
|
|
11
11
|
const store = useDocumentStore();
|
|
12
12
|
const document = useDocument(context.id);
|
|
13
|
-
return observe(() => (isCheckSystem ? !document.system : true) ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick },
|
|
14
|
-
React.createElement(FAIcon, { icon: faTrashAlt
|
|
15
|
-
React.createElement("span",
|
|
13
|
+
return observe(() => (isCheckSystem ? !document.system : true) ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick, className: "delete" },
|
|
14
|
+
React.createElement(FAIcon, { icon: faTrashAlt }),
|
|
15
|
+
React.createElement("span", null, "Delete"))) : null);
|
|
16
16
|
function onClick() {
|
|
17
17
|
/** 如果文件下有子文件, 询问是否删除所有子文件 */
|
|
18
18
|
Modal.confirm({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Delete.js","sourceRoot":"","sources":["../../../../src/controls/DocumentMenu/items/Delete.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EACN,WAAW,EACX,sBAAsB,EACtB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9D,MAAM,MAAM,GAAG,CAAC,KASf,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAE9D,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAE9C,MAAM,OAAO,GAAG,sBAAsB,EAAE,CAAC;IACzC,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,QAAQ,GAAG,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAC3C,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO;
|
|
1
|
+
{"version":3,"file":"Delete.js","sourceRoot":"","sources":["../../../../src/controls/DocumentMenu/items/Delete.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EACN,WAAW,EACX,sBAAsB,E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K,UAAU,QAAQ;QACtB,MAAM,KAAK,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;QACzD,mBAAmB;QACnB,IAAI,CAAC,CAAC,UAAU,KAAI,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,YAAY,CAAA;YAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,EAAE,CAAC;IAC5E,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
display: inline-block;
|
|
5
5
|
color: @reference-color;
|
|
6
6
|
cursor: pointer;
|
|
7
|
-
height:
|
|
8
|
-
line-height:
|
|
9
|
-
font-size: 18px;
|
|
7
|
+
height: unit((40/18), em);
|
|
8
|
+
line-height: unit((40/18), em);
|
|
10
9
|
word-break: break-word;
|
|
11
10
|
background: @reference-bg-color;
|
|
12
11
|
border-radius: @border-radius;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
+
|
|
1
3
|
.document-status-menu {
|
|
2
|
-
padding:
|
|
4
|
+
padding: 18px;
|
|
3
5
|
:global {
|
|
4
6
|
.ant-dropdown-menu-item {
|
|
5
7
|
padding: 0;
|
|
@@ -15,14 +17,11 @@
|
|
|
15
17
|
.document-status-label {
|
|
16
18
|
display: inline-block;
|
|
17
19
|
cursor: pointer;
|
|
18
|
-
width:
|
|
19
|
-
height:
|
|
20
|
-
line-height:
|
|
20
|
+
width: unit((100/16), em);
|
|
21
|
+
height: unit((40/16), em);
|
|
22
|
+
line-height: unit((40/16), em);
|
|
23
|
+
color: white;
|
|
21
24
|
text-align: center;
|
|
22
|
-
|
|
23
|
-
border:
|
|
24
|
-
//color: dark;
|
|
25
|
-
font-size: 13px;
|
|
26
|
-
font-weight: 300;
|
|
27
|
-
border-radius: 1px;
|
|
25
|
+
background: @delete-color;
|
|
26
|
+
border-radius: @border-radius;
|
|
28
27
|
}
|
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
:global {
|
|
4
4
|
.tool-bar {
|
|
5
5
|
.ant-btn {
|
|
6
|
-
font-size:
|
|
6
|
+
font-size: @font-size-lg;
|
|
7
7
|
color: @tabs-default-color;
|
|
8
8
|
padding: 0 6px;
|
|
9
|
+
&:hover {
|
|
10
|
+
color: #20aaea;
|
|
11
|
+
}
|
|
9
12
|
}
|
|
10
13
|
.ant-btn + .ant-btn {
|
|
11
14
|
margin-left: 5px;
|
|
@@ -17,27 +20,27 @@
|
|
|
17
20
|
}
|
|
18
21
|
}
|
|
19
22
|
.archive-btn {
|
|
20
|
-
background: #fff;
|
|
21
|
-
border-color: #faad14;
|
|
22
|
-
color:
|
|
23
|
-
}
|
|
24
|
-
.archive-btn:active,
|
|
25
|
-
.archive-btn.active,
|
|
26
|
-
.archive-btn:hover {
|
|
27
|
-
background-color: #faad14;
|
|
28
|
-
color: #fff;
|
|
23
|
+
// background: #fff;
|
|
24
|
+
// border-color: #faad14;
|
|
25
|
+
color: @archive-color;
|
|
29
26
|
}
|
|
27
|
+
// .archive-btn:active,
|
|
28
|
+
// .archive-btn.active,
|
|
29
|
+
// .archive-btn:hover {
|
|
30
|
+
// background-color: #faad14;
|
|
31
|
+
// color: #fff;
|
|
32
|
+
// }
|
|
30
33
|
.delete-btn {
|
|
31
|
-
background: #fff;
|
|
32
|
-
border-color: #f5222d;
|
|
33
|
-
color:
|
|
34
|
-
}
|
|
35
|
-
.delete-btn:active,
|
|
36
|
-
.delete-btn.active,
|
|
37
|
-
.delete-btn:hover {
|
|
38
|
-
background-color: #f5222d;
|
|
39
|
-
color: #fff;
|
|
34
|
+
// background: #fff;
|
|
35
|
+
// border-color: #f5222d;
|
|
36
|
+
color: @delete-color;
|
|
40
37
|
}
|
|
38
|
+
// .delete-btn:active,
|
|
39
|
+
// .delete-btn.active,
|
|
40
|
+
// .delete-btn:hover {
|
|
41
|
+
// background-color: #f5222d;
|
|
42
|
+
// color: #fff;
|
|
43
|
+
// }
|
|
41
44
|
}
|
|
42
45
|
.tool-bar-menu {
|
|
43
46
|
padding: 4px 0;
|
|
@@ -52,11 +55,12 @@
|
|
|
52
55
|
display: block;
|
|
53
56
|
width: 100%;
|
|
54
57
|
padding: 0 12px;
|
|
55
|
-
height:
|
|
56
|
-
color:
|
|
58
|
+
height: unit((38/16), em);
|
|
59
|
+
color: @cancel-color;
|
|
57
60
|
text-align: left;
|
|
61
|
+
border-radius: 0;
|
|
58
62
|
&[disabled] {
|
|
59
|
-
color:
|
|
63
|
+
color: @disabled-color;
|
|
60
64
|
}
|
|
61
65
|
&:hover {
|
|
62
66
|
background-color: #f5f5f5;
|
|
@@ -66,7 +70,7 @@
|
|
|
66
70
|
}
|
|
67
71
|
}
|
|
68
72
|
.delete {
|
|
69
|
-
color:
|
|
73
|
+
color: @delete-color;
|
|
70
74
|
}
|
|
71
75
|
}
|
|
72
76
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voplus/morpho-document",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.59",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://voplus.visualstudio.com/morpho-document/_git/morpho-document"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"react": "17.x",
|
|
52
52
|
"react-dom": "17.x"
|
|
53
53
|
},
|
|
54
|
-
"peerDependencies": {
|
|
54
|
+
"peerDependencies": {
|
|
55
55
|
"@types/codemirror": "^0.0.109",
|
|
56
56
|
"react": "17.x",
|
|
57
57
|
"react-dom": "17.x"
|