@cmstops/pro-compo 0.1.30 → 0.1.32
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/dist/index.css +218 -20
- package/dist/index.min.css +1 -1
- package/es/baseFilter/component.js +2 -1
- package/es/contentDetailList/component.js +3 -1
- package/es/contentDetailList/components/Content/CompoItem/index.js +2 -1
- package/es/contentDetailList/components/Content/ContentListItem/index.js +2 -1
- package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +2 -1
- package/es/contentDetailList/components/Content/DocItem/index.js +2 -1
- package/es/contentDetailList/components/Content/DocMpItem/index.js +2 -1
- package/es/contentDetailList/components/Content/KongoNavItem/index.js +2 -1
- package/es/contentDetailList/components/Content/LiveItem/index.js +2 -1
- package/es/contentDetailList/components/Content/MaccountItem/index.js +2 -1
- package/es/contentDetailList/components/Content/index.js +7 -2
- package/es/contentDetailList/components/Doc/index.js +2 -1
- package/es/contentDetailList/style/DocItem.less +4 -3
- package/es/contentDetailList/style/index.css +3 -3
- package/es/contentModal/component.js +39 -36
- package/es/contentModal/components/CompoList/CompoFilter/index.js +3 -2
- package/es/contentModal/components/CompoList/index.js +10 -3
- package/es/contentModal/components/ContentList/MediaFilter/index.js +2 -1
- package/es/contentModal/components/ContentList/index.js +2 -1
- package/es/contentModal/components/LiveList/MediaFilter/index.js +2 -1
- package/es/contentModal/components/LiveList/index.js +2 -1
- package/es/contentModal/components/MpAccountList/MpAccountFilter/index.js +2 -1
- package/es/contentModal/components/MpAccountList/index.js +2 -1
- package/es/contentModal/components/MpContentList/MediaFilter/index.js +2 -1
- package/es/contentModal/components/MpContentList/index.js +2 -1
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +55 -23
- package/es/contentModal/components/ViewAllColumn/columnTree/index.js +68 -18
- package/es/contentModal/components/ViewAllColumn/index.js +93 -45
- package/es/contentModal/components/storeBox/index.js +8 -7
- package/es/contentModal/images/pic-thumb.js +2 -0
- package/es/contentModal/style/MediaFilter.less +35 -5
- package/es/contentModal/style/ViewAllColumn.less +11 -0
- package/es/contentModal/style/columnTree.less +25 -5
- package/es/contentModal/style/index.css +56 -11
- package/es/contentModal/style/storeBox.less +16 -6
- package/es/dataTags/component.js +26 -5
- package/es/editMetaInfo/component.js +2 -1
- package/es/editMetaInfo/components/metaInfoForm.js +93 -7
- package/es/editMetaInfo/style/index.css +18 -1
- package/es/editMetaInfo/style/index.less +31 -1
- package/es/hooks/source.d.ts +9 -0
- package/es/hooks/source.js +31 -0
- package/es/hooks/user.d.ts +1 -1
- package/es/imageCrop/component.js +16 -9
- package/es/index.css +218 -20
- package/es/mediaFilter/component.js +2 -1
- package/es/mediaFilter/components/DocFilter.js +2 -1
- package/es/mediaFilter/components/FilterGroup.js +1 -1
- package/es/messageBox/list.js +2 -1
- package/es/previousVersion/component.js +2 -1
- package/es/resourceModal/assets/images/sys_load_more.js +2 -0
- package/es/resourceModal/component.js +11 -3
- package/es/resourceModal/components/MediaPreviewer/index.js +2 -1
- package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
- package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +5 -7
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +87 -34
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +139 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +103 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +103 -0
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -1
- package/es/resourceModal/components/MediaSelection/index.js +18 -8
- package/es/resourceModal/script/api.d.ts +17 -0
- package/es/resourceModal/script/api.js +21 -1
- package/es/resourceModal/script/mediaSelection.d.ts +4 -0
- package/es/resourceModal/script/mediaSelection.js +8 -0
- package/es/resourceModal/style/MainContent.less +25 -5
- package/es/resourceModal/style/SystemResourceSelected.less +138 -0
- package/es/resourceModal/style/index.css +142 -6
- package/es/resourceModal/style/index.less +1 -0
- package/es/selectAvatarList/component.js +2 -1
- package/es/selectGategory/component.js +2 -1
- package/es/selectGategory/components/ColumnSelection/index.js +2 -1
- package/es/selectThumb/component.js +8 -3
- package/es/selectThumb/components/card.js +5 -7
- package/es/selectThumb/components/colorPalette.js +2 -1
- package/es/selectThumb/components/colorPicker.js +2 -1
- package/es/typeIcons/component.js +10 -7
- package/es/uploadBefore/component.js +3 -2
- package/es/uploadBefore/components/UploadBefore.js +2 -1
- package/es/uploadBefore/components/UploadForClick.js +2 -1
- package/es/uploadStep/component.js +3 -2
- package/es/userDirector/component.js +2 -1
- package/es/userDirector/components/userTree.js +2 -1
- package/es/utils/doc.d.ts +1 -0
- package/es/utils/doc.js +2 -1
- package/es/utils/typeMap.d.ts +1 -0
- package/es/utils/typeMap.js +2 -1
- package/lib/baseFilter/component.js +2 -1
- package/lib/contentDetailList/component.js +3 -1
- package/lib/contentDetailList/components/Content/CompoItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/ContentListItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +2 -1
- package/lib/contentDetailList/components/Content/DocItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/DocMpItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/KongoNavItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/LiveItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/MaccountItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/index.js +6 -1
- package/lib/contentDetailList/components/Doc/index.js +2 -1
- package/lib/contentDetailList/style/DocItem.less +4 -3
- package/lib/contentDetailList/style/index.css +3 -3
- package/lib/contentModal/component.js +39 -36
- package/lib/contentModal/components/CompoList/CompoFilter/index.js +3 -2
- package/lib/contentModal/components/CompoList/index.js +10 -3
- package/lib/contentModal/components/ContentList/MediaFilter/index.js +2 -1
- package/lib/contentModal/components/ContentList/index.js +2 -1
- package/lib/contentModal/components/LiveList/MediaFilter/index.js +2 -1
- package/lib/contentModal/components/LiveList/index.js +2 -1
- package/lib/contentModal/components/MpAccountList/MpAccountFilter/index.js +2 -1
- package/lib/contentModal/components/MpAccountList/index.js +2 -1
- package/lib/contentModal/components/MpContentList/MediaFilter/index.js +2 -1
- package/lib/contentModal/components/MpContentList/index.js +2 -1
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +53 -21
- package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +66 -16
- package/lib/contentModal/components/ViewAllColumn/index.js +92 -44
- package/lib/contentModal/components/storeBox/index.js +8 -7
- package/lib/contentModal/images/pic-thumb.js +3 -0
- package/lib/contentModal/style/MediaFilter.less +35 -5
- package/lib/contentModal/style/ViewAllColumn.less +11 -0
- package/lib/contentModal/style/columnTree.less +25 -5
- package/lib/contentModal/style/index.css +56 -11
- package/lib/contentModal/style/storeBox.less +16 -6
- package/lib/dataTags/component.js +25 -4
- package/lib/editMetaInfo/component.js +2 -1
- package/lib/editMetaInfo/components/metaInfoForm.js +91 -5
- package/lib/editMetaInfo/style/index.css +18 -1
- package/lib/editMetaInfo/style/index.less +31 -1
- package/lib/hooks/source.js +34 -0
- package/lib/imageCrop/component.js +16 -9
- package/lib/index.css +218 -20
- package/lib/mediaFilter/component.js +2 -1
- package/lib/mediaFilter/components/DocFilter.js +2 -1
- package/lib/mediaFilter/components/FilterGroup.js +1 -1
- package/lib/messageBox/list.js +2 -1
- package/lib/previousVersion/component.js +2 -1
- package/lib/resourceModal/assets/images/sys_load_more.js +3 -0
- package/lib/resourceModal/component.js +10 -2
- package/lib/resourceModal/components/MediaPreviewer/index.js +2 -1
- package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +2 -1
- package/lib/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +5 -7
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +86 -33
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +140 -0
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +104 -0
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +104 -0
- package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -1
- package/lib/resourceModal/components/MediaSelection/index.js +17 -7
- package/lib/resourceModal/script/api.js +23 -0
- package/lib/resourceModal/script/mediaSelection.js +10 -0
- package/lib/resourceModal/style/MainContent.less +25 -5
- package/lib/resourceModal/style/SystemResourceSelected.less +138 -0
- package/lib/resourceModal/style/index.css +142 -6
- package/lib/resourceModal/style/index.less +1 -0
- package/lib/selectAvatarList/component.js +2 -1
- package/lib/selectGategory/component.js +2 -1
- package/lib/selectGategory/components/ColumnSelection/index.js +2 -1
- package/lib/selectThumb/component.js +7 -2
- package/lib/selectThumb/components/card.js +5 -7
- package/lib/selectThumb/components/colorPalette.js +2 -1
- package/lib/selectThumb/components/colorPicker.js +2 -1
- package/lib/typeIcons/component.js +9 -6
- package/lib/uploadBefore/component.js +3 -2
- package/lib/uploadBefore/components/UploadBefore.js +2 -1
- package/lib/uploadBefore/components/UploadForClick.js +2 -1
- package/lib/uploadStep/component.js +3 -2
- package/lib/userDirector/component.js +2 -1
- package/lib/userDirector/components/userTree.js +2 -1
- package/lib/utils/doc.js +2 -1
- package/lib/utils/typeMap.js +2 -1
- package/package.json +5 -3
- package/es/editMetaInfo/script/restaurants.js +0 -127
- package/lib/editMetaInfo/script/restaurants.js +0 -128
|
@@ -1,9 +1,29 @@
|
|
|
1
1
|
.column-selection-container {
|
|
2
|
-
|
|
2
|
+
padding: 0 15px;
|
|
3
3
|
}
|
|
4
|
+
|
|
4
5
|
.column-selection-popover-content {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
.search-column {
|
|
7
|
+
margin-bottom: 4px;
|
|
8
|
+
padding: 4px 8px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.last-search-key {
|
|
12
|
+
height: 32px;
|
|
13
|
+
margin-left: 22px;
|
|
14
|
+
padding-left: 4px;
|
|
15
|
+
color: #165dff;
|
|
16
|
+
line-height: 32px;
|
|
17
|
+
border-radius: var(--border-radius-small);
|
|
18
|
+
|
|
19
|
+
&:hover {
|
|
20
|
+
color: var(--color-text-1);
|
|
21
|
+
background-color: var(--color-fill-2);
|
|
22
|
+
cursor: pointer;
|
|
8
23
|
}
|
|
9
|
-
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.column-outer-scrollbar {
|
|
27
|
+
height: 100%;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -1,47 +1,82 @@
|
|
|
1
1
|
.column-selection-container {
|
|
2
|
-
padding:
|
|
3
|
-
}
|
|
4
|
-
.column-selection-popover-content {
|
|
5
|
-
|
|
2
|
+
padding: 0 15px;
|
|
3
|
+
}
|
|
4
|
+
.column-selection-popover-content .search-column {
|
|
5
|
+
margin-bottom: 4px;
|
|
6
|
+
padding: 4px 8px;
|
|
7
|
+
}
|
|
8
|
+
.column-selection-popover-content .last-search-key {
|
|
9
|
+
height: 32px;
|
|
10
|
+
margin-left: 22px;
|
|
11
|
+
padding-left: 4px;
|
|
12
|
+
color: #165dff;
|
|
13
|
+
line-height: 32px;
|
|
14
|
+
border-radius: var(--border-radius-small);
|
|
15
|
+
}
|
|
16
|
+
.column-selection-popover-content .last-search-key:hover {
|
|
17
|
+
color: var(--color-text-1);
|
|
18
|
+
background-color: var(--color-fill-2);
|
|
19
|
+
cursor: pointer;
|
|
6
20
|
}
|
|
7
21
|
.column-selection-popover-content .column-outer-scrollbar {
|
|
8
22
|
height: 100%;
|
|
9
23
|
}
|
|
10
24
|
.media-filter-container {
|
|
11
|
-
padding: 10px 15px;
|
|
12
25
|
display: flex;
|
|
13
26
|
align-items: center;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
padding: 10px 20px;
|
|
14
29
|
}
|
|
15
30
|
.media-filter-container .filter-item {
|
|
16
31
|
width: auto;
|
|
17
32
|
}
|
|
33
|
+
.media-filter-container .reset-button {
|
|
34
|
+
width: 74px;
|
|
35
|
+
padding: 9px 12px;
|
|
36
|
+
font-size: 14px;
|
|
37
|
+
}
|
|
38
|
+
.media-filter-container .reset-button .reset-icon {
|
|
39
|
+
margin-right: 8px;
|
|
40
|
+
}
|
|
41
|
+
.media-filter-container .sort-button {
|
|
42
|
+
color: #4e5969;
|
|
43
|
+
}
|
|
44
|
+
.media-filter-container .sort-button .filter-item {
|
|
45
|
+
width: 102px;
|
|
46
|
+
}
|
|
47
|
+
.media-filter-container .sort-button .filter-item .arco-select-view-suffix {
|
|
48
|
+
padding-left: 0;
|
|
49
|
+
}
|
|
50
|
+
.media-filter-container .sort-button:hover {
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
}
|
|
18
53
|
.selected-store-box-popover-content {
|
|
19
54
|
padding: 0;
|
|
20
55
|
}
|
|
21
56
|
.selected-store-box-popover-content .batch-section-popover-main .item {
|
|
22
|
-
height: 35px;
|
|
23
57
|
display: flex;
|
|
24
58
|
align-items: center;
|
|
25
59
|
justify-content: space-between;
|
|
26
|
-
padding: 5px 10px;
|
|
27
60
|
box-sizing: border-box;
|
|
61
|
+
height: 42px;
|
|
62
|
+
padding: 5px 10px;
|
|
28
63
|
}
|
|
29
64
|
.selected-store-box-popover-content .batch-section-popover-main .item .icon {
|
|
65
|
+
display: inline-block;
|
|
30
66
|
width: 20px;
|
|
31
67
|
height: 25px;
|
|
32
68
|
margin-right: 8px;
|
|
33
69
|
font-size: 18px;
|
|
34
|
-
vertical-align: middle;
|
|
35
|
-
display: inline-block;
|
|
36
70
|
text-align: center;
|
|
71
|
+
vertical-align: middle;
|
|
37
72
|
}
|
|
38
73
|
.selected-store-box-popover-content .batch-section-popover-main .item .left {
|
|
39
|
-
width: 90%;
|
|
40
74
|
display: inline-block;
|
|
41
75
|
align-items: center;
|
|
42
|
-
|
|
76
|
+
width: 90%;
|
|
43
77
|
overflow: hidden;
|
|
44
78
|
white-space: nowrap;
|
|
79
|
+
text-overflow: ellipsis;
|
|
45
80
|
}
|
|
46
81
|
.selected-store-box-popover-content .batch-section-popover-main .item .close-btn {
|
|
47
82
|
display: none;
|
|
@@ -58,12 +93,22 @@
|
|
|
58
93
|
display: flex;
|
|
59
94
|
align-items: center;
|
|
60
95
|
justify-content: flex-end;
|
|
96
|
+
height: 42px;
|
|
97
|
+
border-top: 1px solid #f2f3f5;
|
|
61
98
|
}
|
|
62
99
|
.view-all-column-container {
|
|
63
100
|
height: 100%;
|
|
64
101
|
}
|
|
65
102
|
.view-all-column-container .content-table-view {
|
|
66
103
|
height: calc(100% - 110px);
|
|
104
|
+
padding: 0 20px;
|
|
105
|
+
}
|
|
106
|
+
.view-all-column-container .content-table-view .arco-checkbox {
|
|
107
|
+
padding: 0;
|
|
108
|
+
}
|
|
109
|
+
.view-all-column-container .content-table-view .pic-thumb-img {
|
|
110
|
+
width: 60px;
|
|
111
|
+
height: 45px;
|
|
67
112
|
}
|
|
68
113
|
.view-all-column-container .content-table-view .title-span,
|
|
69
114
|
.view-all-column-container .content-table-view .mp_title-span {
|
|
@@ -1,45 +1,55 @@
|
|
|
1
1
|
.selected-store-box-popover-content {
|
|
2
2
|
padding: 0;
|
|
3
|
+
|
|
3
4
|
.batch-section-popover-main {
|
|
4
5
|
.item {
|
|
5
|
-
height: 35px;
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
8
|
justify-content: space-between;
|
|
9
|
-
padding: 5px 10px;
|
|
10
9
|
box-sizing: border-box;
|
|
10
|
+
height: 42px;
|
|
11
|
+
padding: 5px 10px;
|
|
12
|
+
|
|
11
13
|
.icon {
|
|
14
|
+
display: inline-block;
|
|
12
15
|
width: 20px;
|
|
13
16
|
height: 25px;
|
|
14
17
|
margin-right: 8px;
|
|
15
18
|
font-size: 18px;
|
|
16
|
-
vertical-align: middle;
|
|
17
|
-
display: inline-block;
|
|
18
19
|
text-align: center;
|
|
20
|
+
vertical-align: middle;
|
|
19
21
|
}
|
|
22
|
+
|
|
20
23
|
.left {
|
|
21
|
-
width: 90%;
|
|
22
24
|
display: inline-block;
|
|
23
25
|
align-items: center;
|
|
24
|
-
|
|
26
|
+
width: 90%;
|
|
25
27
|
overflow: hidden;
|
|
26
28
|
white-space: nowrap;
|
|
29
|
+
text-overflow: ellipsis;
|
|
27
30
|
}
|
|
31
|
+
|
|
28
32
|
.close-btn {
|
|
29
33
|
display: none;
|
|
30
34
|
}
|
|
35
|
+
|
|
31
36
|
&:hover,
|
|
32
37
|
&:active {
|
|
33
38
|
background-color: #f6f6f6;
|
|
39
|
+
|
|
34
40
|
.close-btn {
|
|
35
41
|
display: block;
|
|
36
42
|
}
|
|
37
43
|
}
|
|
38
44
|
}
|
|
39
45
|
}
|
|
46
|
+
|
|
40
47
|
.options {
|
|
41
48
|
display: flex;
|
|
42
49
|
align-items: center;
|
|
43
50
|
justify-content: flex-end;
|
|
51
|
+
height: 42px;
|
|
52
|
+
border-top: 1px solid #f2f3f5;
|
|
53
|
+
//background-color: red;
|
|
44
54
|
}
|
|
45
55
|
}
|
package/es/dataTags/component.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, openBlock, createElementBlock, Fragment, createCommentVNode,
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, Fragment, createCommentVNode, createBlock, unref, withCtx, createElementVNode, renderList, createVNode, normalizeClass, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import { Popover, Tag, Tooltip } from "@arco-design/web-vue";
|
|
3
3
|
import { kongo_source_map, mp_type_map, contentList_list_type_map } from "../utils/typeMap.js";
|
|
4
4
|
import { docThumbMap } from "../utils/doc.js";
|
|
5
5
|
import _sfc_main$1 from "../typeIcons/component.js";
|
|
6
|
-
const _hoisted_1 = {
|
|
6
|
+
const _hoisted_1 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "doc-tags-container"
|
|
9
|
+
};
|
|
7
10
|
const _hoisted_2 = { class: "doc-tags-thumb-ul" };
|
|
8
11
|
const _hoisted_3 = ["src"];
|
|
9
12
|
const _hoisted_4 = { key: 0 };
|
|
@@ -51,7 +54,7 @@ const _sfc_main = defineComponent({
|
|
|
51
54
|
return (_ctx, _cache) => {
|
|
52
55
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
53
56
|
createCommentVNode(" \u539F\u521B/\u63A8\u8350/\u654F\u611F\u8BCD/\u5C01\u9762\u51E0\u56FE/ "),
|
|
54
|
-
|
|
57
|
+
_ctx.item ? (openBlock(), createElementBlock("span", _hoisted_1, [
|
|
55
58
|
_ctx.item.catalog === "doc" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
56
59
|
_ctx.popverThumb && thumbList.value.length ? (openBlock(), createBlock(unref(Popover), {
|
|
57
60
|
key: 0,
|
|
@@ -160,7 +163,25 @@ const _sfc_main = defineComponent({
|
|
|
160
163
|
}, 8, ["class"])
|
|
161
164
|
]),
|
|
162
165
|
_: 1
|
|
163
|
-
}, 8, ["content"])) : createCommentVNode("v-if", true)
|
|
166
|
+
}, 8, ["content"])) : createCommentVNode("v-if", true),
|
|
167
|
+
_ctx.item.push_state === 3 ? (openBlock(), createBlock(unref(Tooltip), {
|
|
168
|
+
key: 5,
|
|
169
|
+
content: "\u63A8\u9001\u6210\u529F",
|
|
170
|
+
position: "top"
|
|
171
|
+
}, {
|
|
172
|
+
default: withCtx(() => [
|
|
173
|
+
createVNode(unref(Tag), {
|
|
174
|
+
size: "small",
|
|
175
|
+
class: normalizeClass([{ disabled: _ctx.disabled }, "star"])
|
|
176
|
+
}, {
|
|
177
|
+
default: withCtx(() => [
|
|
178
|
+
createTextVNode("\u5DF2\u63A8\u9001")
|
|
179
|
+
]),
|
|
180
|
+
_: 1
|
|
181
|
+
}, 8, ["class"])
|
|
182
|
+
]),
|
|
183
|
+
_: 1
|
|
184
|
+
})) : createCommentVNode("v-if", true)
|
|
164
185
|
], 64)) : _ctx.item.catalog === "kongo" ? (openBlock(), createBlock(unref(Tag), {
|
|
165
186
|
key: 1,
|
|
166
187
|
size: "small"
|
|
@@ -184,7 +205,7 @@ const _sfc_main = defineComponent({
|
|
|
184
205
|
})) : (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
|
185
206
|
_ctx.item.list_type ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(unref(contentList_list_type_map)[_ctx.item.list_type]), 1)) : (openBlock(), createElementBlock("span", _hoisted_5, "--"))
|
|
186
207
|
], 64))
|
|
187
|
-
])
|
|
208
|
+
])) : createCommentVNode("v-if", true)
|
|
188
209
|
], 2112);
|
|
189
210
|
};
|
|
190
211
|
}
|
|
@@ -15,7 +15,8 @@ const _sfc_main = defineComponent({
|
|
|
15
15
|
hashId: {}
|
|
16
16
|
},
|
|
17
17
|
emits: ["update:visible", "submit"],
|
|
18
|
-
setup(__props, { emit }) {
|
|
18
|
+
setup(__props, { emit: __emit }) {
|
|
19
|
+
const emit = __emit;
|
|
19
20
|
const props = __props;
|
|
20
21
|
const metaInfoFormRef = ref();
|
|
21
22
|
const editorDataPubInfo = ref(null);
|
|
@@ -1,20 +1,35 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, onMounted, openBlock, createBlock, unref, withCtx, createVNode, withDirectives, vShow, createElementBlock, Fragment, renderList, toRaw } from "vue";
|
|
2
|
-
import { Form, FormItem, Input, InputTag, Select, Option, DatePicker, Switch, InputNumber, Message } from "@arco-design/web-vue";
|
|
1
|
+
import { defineComponent, ref, computed, watch, onMounted, openBlock, createBlock, unref, withCtx, createVNode, withDirectives, vShow, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString, createCommentVNode, toRaw } from "vue";
|
|
2
|
+
import { Form, FormItem, Input, InputTag, Select, Option, DatePicker, Switch, InputNumber, RadioGroup, Radio, Message } from "@arco-design/web-vue";
|
|
3
|
+
import { IconInfoCircle } from "@arco-design/web-vue/es/icon";
|
|
3
4
|
import { docSeries } from "../../utils/doc.js";
|
|
4
5
|
import _sfc_main$1 from "../../selectThumb/component.js";
|
|
5
|
-
import restaurants from "../script/restaurants.js";
|
|
6
6
|
import { getAllDutyEditor } from "../script/api.js";
|
|
7
7
|
import { DEFAULT_BASE_API } from "../../config.js";
|
|
8
8
|
import { validateForm } from "../../utils/index.js";
|
|
9
|
+
import useLoadSourceInfo from "../../hooks/source.js";
|
|
10
|
+
const _hoisted_1 = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "silence-options"
|
|
13
|
+
};
|
|
14
|
+
const _hoisted_2 = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "info"
|
|
17
|
+
};
|
|
18
|
+
const _hoisted_3 = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "info"
|
|
21
|
+
};
|
|
9
22
|
const _sfc_main = defineComponent({
|
|
10
23
|
__name: "metaInfoForm",
|
|
11
24
|
props: {
|
|
12
25
|
initData: {},
|
|
13
|
-
BASE_API: {}
|
|
26
|
+
BASE_API: {},
|
|
27
|
+
sourceStore: {}
|
|
14
28
|
},
|
|
15
29
|
setup(__props, { expose: __expose }) {
|
|
16
30
|
const props = __props;
|
|
17
31
|
const BASE_API = props.BASE_API || DEFAULT_BASE_API;
|
|
32
|
+
const { SourceInfo, getSourceInfoHandle } = useLoadSourceInfo(BASE_API);
|
|
18
33
|
const metaInfoFormRef = ref();
|
|
19
34
|
const form = ref({
|
|
20
35
|
title: "",
|
|
@@ -42,8 +57,14 @@ const _sfc_main = defineComponent({
|
|
|
42
57
|
ori_thumbup_count: 0,
|
|
43
58
|
comment_available: false,
|
|
44
59
|
is_recommend: false,
|
|
45
|
-
album_status: false
|
|
60
|
+
album_status: false,
|
|
61
|
+
mourn_style: 0
|
|
46
62
|
});
|
|
63
|
+
const silenceOptions = ref(false);
|
|
64
|
+
const tips = ref([
|
|
65
|
+
"\u542F\u7528\u6B64\u9009\u9879\u540E\u8BE5\u7A3F\u4EF6\u5C06\u5728\u5BA2\u6237\u7AEF\u4FE1\u606F\u6D41\u5185\u4EE5\u9ED8\u8BA4\u9ED1\u767D\u6837\u5F0F\u5448\u73B0\u3002\u8BE5\u9009\u9879\u9002\u7528\u4E8E\uFF1A\u4EC5\u9700\u8981\u6307\u5B9A\u5185\u5BB9\u9ED8\u54C0\uFF0C\u65E0\u9700\u5BA2\u6237\u7AEF\u5168\u5C40\u9ED8\u54C0\u7684\u573A\u666F\u3002",
|
|
66
|
+
"\u542F\u7528\u6B64\u9009\u9879\u540E\u8BE5\u7A3F\u4EF6\u5C06\u5728\u5BA2\u6237\u7AEF\u5F3A\u5236\u5F69\u8272\u663E\u793A\uFF0C\u4E0D\u53D7\u5168\u5C40\u9ED8\u54C0\u914D\u7F6E\u7684\u5F71\u54CD\u3002\u8BE5\u9009\u9879\u9002\u7528\u4E8E\uFF1A\u5F53\u5BA2\u6237\u7AEF\u542F\u7528\u4E86\u5168\u5C40\u9ED8\u54C0\u6216\u9891\u9053\u9ED8\u54C0\u65F6\uFF0C\u671F\u671B\u6307\u5B9A\u5185\u5BB9\u5728\u4FE1\u606F\u6D41\u4FDD\u6301\u6B63\u5E38\u5F69\u8272\u663E\u793A\u7684\u573A\u666F\u3002"
|
|
67
|
+
]);
|
|
47
68
|
const rules = {
|
|
48
69
|
title: [
|
|
49
70
|
{ required: true, message: "\u8BF7\u8F93\u5165\u4E3B\u6807\u9898" },
|
|
@@ -177,6 +198,23 @@ const _sfc_main = defineComponent({
|
|
|
177
198
|
data.album_status = data.album_status !== "0";
|
|
178
199
|
Object.assign(form.value, data);
|
|
179
200
|
};
|
|
201
|
+
watch(silenceOptions, (newVal, oldVal) => {
|
|
202
|
+
if (!newVal) {
|
|
203
|
+
form.value.mourn_style = 0;
|
|
204
|
+
} else if (!form.value.mourn_style) {
|
|
205
|
+
form.value.mourn_style = 1;
|
|
206
|
+
}
|
|
207
|
+
});
|
|
208
|
+
watch(
|
|
209
|
+
() => form.value.mourn_style,
|
|
210
|
+
(value) => {
|
|
211
|
+
form.value.mourn_style = Number(value);
|
|
212
|
+
if (value !== 0) {
|
|
213
|
+
silenceOptions.value = true;
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
{ immediate: true }
|
|
217
|
+
);
|
|
180
218
|
watch(
|
|
181
219
|
() => props.initData,
|
|
182
220
|
() => {
|
|
@@ -188,6 +226,11 @@ const _sfc_main = defineComponent({
|
|
|
188
226
|
);
|
|
189
227
|
onMounted(() => {
|
|
190
228
|
getAllDutyEditorOption();
|
|
229
|
+
if (props.sourceStore) {
|
|
230
|
+
SourceInfo.value = [...props.sourceStore];
|
|
231
|
+
} else {
|
|
232
|
+
getSourceInfoHandle();
|
|
233
|
+
}
|
|
191
234
|
});
|
|
192
235
|
__expose({
|
|
193
236
|
getFormData
|
|
@@ -247,6 +290,7 @@ const _sfc_main = defineComponent({
|
|
|
247
290
|
createVNode(_sfc_main$1, {
|
|
248
291
|
dataValue: form.value.style,
|
|
249
292
|
"onUpdate:dataValue": _cache[2] || (_cache[2] = ($event) => form.value.style = $event),
|
|
293
|
+
"media-use-type": 1,
|
|
250
294
|
series: series.value,
|
|
251
295
|
class: "select-thumb-wrap",
|
|
252
296
|
mode: "doc"
|
|
@@ -347,7 +391,7 @@ const _sfc_main = defineComponent({
|
|
|
347
391
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
348
392
|
}, {
|
|
349
393
|
default: withCtx(() => [
|
|
350
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(
|
|
394
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(SourceInfo), (item) => {
|
|
351
395
|
return openBlock(), createBlock(unref(Option), {
|
|
352
396
|
key: item.value,
|
|
353
397
|
value: item.value,
|
|
@@ -611,7 +655,49 @@ const _sfc_main = defineComponent({
|
|
|
611
655
|
_: 1
|
|
612
656
|
}, 512), [
|
|
613
657
|
[vShow, isAlbumStatus.value]
|
|
614
|
-
])
|
|
658
|
+
]),
|
|
659
|
+
createVNode(unref(FormItem), {
|
|
660
|
+
class: "silence horizontal",
|
|
661
|
+
field: "silenceOptions",
|
|
662
|
+
label: "\u9ED8\u54C0\u9009\u9879"
|
|
663
|
+
}, {
|
|
664
|
+
default: withCtx(() => [
|
|
665
|
+
createVNode(unref(Switch), {
|
|
666
|
+
modelValue: silenceOptions.value,
|
|
667
|
+
"onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => silenceOptions.value = $event)
|
|
668
|
+
}, null, 8, ["modelValue"]),
|
|
669
|
+
silenceOptions.value ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
670
|
+
createVNode(unref(RadioGroup), {
|
|
671
|
+
modelValue: form.value.mourn_style,
|
|
672
|
+
"onUpdate:modelValue": _cache[25] || (_cache[25] = ($event) => form.value.mourn_style = $event)
|
|
673
|
+
}, {
|
|
674
|
+
default: withCtx(() => [
|
|
675
|
+
createVNode(unref(Radio), { value: 1 }, {
|
|
676
|
+
default: withCtx(() => [
|
|
677
|
+
createTextVNode(" \u9ED8\u54C0\u6A21\u5F0F")
|
|
678
|
+
]),
|
|
679
|
+
_: 1
|
|
680
|
+
}),
|
|
681
|
+
createVNode(unref(Radio), { value: 2 }, {
|
|
682
|
+
default: withCtx(() => [
|
|
683
|
+
createTextVNode("\u975E\u9ED8\u54C0\u6A21\u5F0F")
|
|
684
|
+
]),
|
|
685
|
+
_: 1
|
|
686
|
+
})
|
|
687
|
+
]),
|
|
688
|
+
_: 1
|
|
689
|
+
}, 8, ["modelValue"]),
|
|
690
|
+
form.value.mourn_style == 1 ? (openBlock(), createElementBlock("p", _hoisted_2, [
|
|
691
|
+
createVNode(unref(IconInfoCircle)),
|
|
692
|
+
createTextVNode(toDisplayString(tips.value[0]), 1)
|
|
693
|
+
])) : form.value.mourn_style == 2 ? (openBlock(), createElementBlock("p", _hoisted_3, [
|
|
694
|
+
createVNode(unref(IconInfoCircle)),
|
|
695
|
+
createTextVNode(toDisplayString(tips.value[1]), 1)
|
|
696
|
+
])) : createCommentVNode("v-if", true)
|
|
697
|
+
])) : createCommentVNode("v-if", true)
|
|
698
|
+
]),
|
|
699
|
+
_: 1
|
|
700
|
+
})
|
|
615
701
|
]),
|
|
616
702
|
_: 1
|
|
617
703
|
}, 8, ["model"]);
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
.edit-meta-info-dialog-body .style-form-item .title {
|
|
9
9
|
max-width: 100%;
|
|
10
10
|
color: var(--color-text-2);
|
|
11
|
-
font-size: 14px;
|
|
12
11
|
font-weight: 400;
|
|
12
|
+
font-size: 14px;
|
|
13
13
|
white-space: normal;
|
|
14
14
|
}
|
|
15
15
|
.edit-meta-info-dialog-body .select-thumb-wrap {
|
|
@@ -18,3 +18,20 @@
|
|
|
18
18
|
.edit-meta-info-dialog-body .input-w {
|
|
19
19
|
width: 450px;
|
|
20
20
|
}
|
|
21
|
+
.edit-meta-info-dialog-body .silence .arco-form-item-wrapper-col .arco-form-item-content {
|
|
22
|
+
display: block;
|
|
23
|
+
}
|
|
24
|
+
.edit-meta-info-dialog-body .silence .arco-form-item-wrapper-col .arco-form-item-content .arco-switch {
|
|
25
|
+
margin: 4px 0;
|
|
26
|
+
}
|
|
27
|
+
.edit-meta-info-dialog-body .silence .arco-form-item-wrapper-col .arco-form-item-content .silence-options {
|
|
28
|
+
margin-top: 20px;
|
|
29
|
+
margin-left: -75px;
|
|
30
|
+
}
|
|
31
|
+
.edit-meta-info-dialog-body .silence .arco-form-item-wrapper-col .arco-form-item-content .silence-options .info {
|
|
32
|
+
margin-top: 12px;
|
|
33
|
+
padding-left: 5px;
|
|
34
|
+
color: #878e96;
|
|
35
|
+
font-size: 14px;
|
|
36
|
+
line-height: 1.5;
|
|
37
|
+
}
|
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
.edit-meta-info-dialog-body {
|
|
2
2
|
padding: 0;
|
|
3
|
+
|
|
3
4
|
.style-form-item {
|
|
4
5
|
position: relative;
|
|
5
6
|
top: -10px;
|
|
7
|
+
|
|
6
8
|
.title {
|
|
7
9
|
max-width: 100%;
|
|
8
10
|
color: var(--color-text-2);
|
|
9
|
-
font-size: 14px;
|
|
10
11
|
font-weight: 400;
|
|
12
|
+
font-size: 14px;
|
|
11
13
|
white-space: normal;
|
|
12
14
|
}
|
|
13
15
|
}
|
|
16
|
+
|
|
14
17
|
.select-thumb-wrap {
|
|
15
18
|
margin-left: 20.8%;
|
|
16
19
|
}
|
|
20
|
+
|
|
17
21
|
.horizontal {
|
|
18
22
|
// display: flex;
|
|
19
23
|
// align-items: center;
|
|
@@ -24,7 +28,33 @@
|
|
|
24
28
|
// text-align: right;
|
|
25
29
|
// }
|
|
26
30
|
}
|
|
31
|
+
|
|
27
32
|
.input-w {
|
|
28
33
|
width: 450px;
|
|
29
34
|
}
|
|
35
|
+
|
|
36
|
+
.silence {
|
|
37
|
+
.arco-form-item-wrapper-col {
|
|
38
|
+
.arco-form-item-content {
|
|
39
|
+
display: block;
|
|
40
|
+
|
|
41
|
+
.arco-switch {
|
|
42
|
+
margin: 4px 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.silence-options {
|
|
46
|
+
margin-top: 20px;
|
|
47
|
+
margin-left: -75px;
|
|
48
|
+
|
|
49
|
+
.info {
|
|
50
|
+
margin-top: 12px;
|
|
51
|
+
padding-left: 5px;
|
|
52
|
+
color: #878e96;
|
|
53
|
+
font-size: 14px;
|
|
54
|
+
line-height: 1.5;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
30
60
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface Params {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
export declare function getConfiguration(BASE_API: string, params: Params): import("axios").AxiosPromise<any>;
|
|
5
|
+
declare const useLoadSourceInfo: (BASE_API: string) => {
|
|
6
|
+
SourceInfo: import("vue").Ref<any>;
|
|
7
|
+
getSourceInfoHandle: () => Promise<void>;
|
|
8
|
+
};
|
|
9
|
+
export default useLoadSourceInfo;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ref } from "vue";
|
|
2
|
+
import request from "../utils/request.js";
|
|
3
|
+
function getConfiguration(BASE_API, params) {
|
|
4
|
+
return request(BASE_API, {
|
|
5
|
+
url: `poplar/v2/settings`,
|
|
6
|
+
method: "get",
|
|
7
|
+
params
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
const useLoadSourceInfo = (BASE_API) => {
|
|
11
|
+
const SourceInfo = ref([]);
|
|
12
|
+
const getSourceInfoHandle = async () => {
|
|
13
|
+
const res = await getConfiguration(BASE_API, {
|
|
14
|
+
domain_id: 1,
|
|
15
|
+
module: "doc_config",
|
|
16
|
+
key: "restaurants"
|
|
17
|
+
});
|
|
18
|
+
if (res.code === 0 && res.message) {
|
|
19
|
+
SourceInfo.value = JSON.parse(res.message[res.message.length - 1].value);
|
|
20
|
+
} else {
|
|
21
|
+
window.situoyun.doc_config = {
|
|
22
|
+
restaurants: []
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
return {
|
|
27
|
+
SourceInfo,
|
|
28
|
+
getSourceInfoHandle
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export { useLoadSourceInfo as default, getConfiguration };
|
package/es/hooks/user.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ interface Params {
|
|
|
3
3
|
}
|
|
4
4
|
export declare function getChannels(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
5
5
|
declare const useLoadUserInfo: (BASE_API: string) => {
|
|
6
|
-
userInfo: any
|
|
6
|
+
userInfo: import("vue").Ref<any>;
|
|
7
7
|
getUserInfoHandle: () => Promise<void>;
|
|
8
8
|
};
|
|
9
9
|
export default useLoadUserInfo;
|
|
@@ -37,7 +37,8 @@ const _sfc_main = defineComponent({
|
|
|
37
37
|
generateAssets: { type: Boolean }
|
|
38
38
|
},
|
|
39
39
|
emits: ["update:visible", "confirm"],
|
|
40
|
-
setup(__props, { emit }) {
|
|
40
|
+
setup(__props, { emit: __emit }) {
|
|
41
|
+
const emit = __emit;
|
|
41
42
|
const props = __props;
|
|
42
43
|
const BASE_API = props.BASE_API || DEFAULT_BASE_API;
|
|
43
44
|
const saveLoading = ref(false);
|
|
@@ -210,13 +211,6 @@ const _sfc_main = defineComponent({
|
|
|
210
211
|
const file = new File([blob], name, { type: blob.type });
|
|
211
212
|
const result = await uploadByTUS(file);
|
|
212
213
|
const resImg = getUploadFileUrl(result);
|
|
213
|
-
if (!props.generateAssets) {
|
|
214
|
-
afterCropperAndUploadFile({
|
|
215
|
-
url: resImg.url,
|
|
216
|
-
banner_theme_color: themeColors
|
|
217
|
-
});
|
|
218
|
-
return;
|
|
219
|
-
}
|
|
220
214
|
if (props.userInfo) {
|
|
221
215
|
const param = {
|
|
222
216
|
url: resImg.url,
|
|
@@ -227,12 +221,25 @@ const _sfc_main = defineComponent({
|
|
|
227
221
|
),
|
|
228
222
|
repository_id: props.userInfo.repository_id,
|
|
229
223
|
directory_id: selectedData.value[cropperIndex.value].directory_id,
|
|
230
|
-
banner_theme_color: themeColors
|
|
224
|
+
banner_theme_color: themeColors,
|
|
225
|
+
parent_id: 0
|
|
231
226
|
};
|
|
227
|
+
if (!props.generateAssets) {
|
|
228
|
+
param.parent_id = selectedData.value[cropperIndex.value].id;
|
|
229
|
+
afterCropperAndUploadFile({
|
|
230
|
+
url: resImg.url,
|
|
231
|
+
banner_theme_color: themeColors
|
|
232
|
+
});
|
|
233
|
+
}
|
|
232
234
|
useGenerateAssets(BASE_API, param).then((response) => {
|
|
233
235
|
response.message.banner_theme_color = themeColors;
|
|
234
236
|
afterCropperAndUploadFile(response.message);
|
|
235
237
|
});
|
|
238
|
+
} else if (!props.generateAssets) {
|
|
239
|
+
afterCropperAndUploadFile({
|
|
240
|
+
url: resImg.url,
|
|
241
|
+
banner_theme_color: themeColors
|
|
242
|
+
});
|
|
236
243
|
}
|
|
237
244
|
};
|
|
238
245
|
const afterCropperAndUploadFile = (data) => {
|