@cmstops/pro-compo 0.1.3 → 0.1.5
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 +120 -4
- package/dist/index.min.css +1 -1
- package/es/appCenter/component.js +2 -1
- package/es/config.d.ts +2 -0
- package/es/config.js +3 -0
- package/es/contentModal/component.d.ts +0 -0
- package/es/contentModal/component.js +175 -0
- package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
- package/es/contentModal/components/CompoList/CompoFilter/index.js +103 -0
- package/es/contentModal/components/CompoList/index.d.ts +0 -0
- package/es/contentModal/components/CompoList/index.js +234 -0
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +44 -0
- package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
- package/es/contentModal/components/ViewAllColumn/columnTree/index.js +101 -0
- package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
- package/es/contentModal/components/ViewAllColumn/index.js +277 -0
- package/es/contentModal/components/storeBox/index.d.ts +0 -0
- package/es/contentModal/components/storeBox/index.js +107 -0
- package/es/contentModal/index.d.ts +2 -0
- package/es/contentModal/index.js +7 -0
- package/es/contentModal/script/api.d.ts +10 -0
- package/es/contentModal/script/api.js +45 -0
- package/es/contentModal/style/MediaFilter.less +8 -0
- package/es/contentModal/style/ViewAllColumn.less +33 -0
- package/es/contentModal/style/columnTree.less +9 -0
- package/es/contentModal/style/index.css +107 -0
- package/es/contentModal/style/index.less +19 -0
- package/es/contentModal/style/storeBox.less +45 -0
- package/es/hooks/batch.d.ts +8 -0
- package/es/hooks/batch.js +26 -0
- package/es/hooks/user.d.ts +11 -0
- package/es/hooks/user.js +46 -0
- package/es/index.css +120 -4
- package/es/index.d.ts +4 -1
- package/es/index.js +4 -1
- package/es/index.less +4 -1
- package/es/messageBox/component.js +2 -1
- package/es/messageBox/list.js +4 -4
- package/es/resourceModal/component.d.ts +0 -0
- package/es/resourceModal/component.js +14 -0
- package/es/resourceModal/index.d.ts +2 -0
- package/es/resourceModal/index.js +7 -0
- package/es/resourceModal/style/css.js +1 -0
- package/es/resourceModal/style/index.d.ts +1 -0
- package/es/resourceModal/style/index.js +1 -0
- package/es/style.css +5 -0
- package/es/typeIcons/component.d.ts +0 -0
- package/es/typeIcons/component.js +62 -0
- package/es/typeIcons/index.d.ts +2 -0
- package/es/typeIcons/index.js +7 -0
- package/es/typeIcons/style/css.js +1 -0
- package/es/typeIcons/style/index.css +5 -0
- package/es/typeIcons/style/index.d.ts +1 -0
- package/es/typeIcons/style/index.js +1 -0
- package/es/typeIcons/style/index.less +5 -0
- package/es/uploadStep/component.d.ts +0 -0
- package/es/uploadStep/component.js +14 -0
- package/es/uploadStep/index.d.ts +2 -0
- package/es/uploadStep/index.js +7 -0
- package/es/uploadStep/style/css.js +1 -0
- package/es/uploadStep/style/index.d.ts +1 -0
- package/es/uploadStep/style/index.js +1 -0
- package/es/userAvater/component.js +3 -3
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +7 -0
- package/es/utils/request.js +3 -4
- package/es/utils/typeMap.d.ts +116 -0
- package/es/utils/typeMap.js +22 -0
- package/lib/appCenter/component.js +2 -1
- package/lib/config.js +6 -0
- package/lib/contentModal/component.js +176 -0
- package/lib/contentModal/components/CompoList/CompoFilter/index.js +104 -0
- package/lib/contentModal/components/CompoList/index.js +235 -0
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +45 -0
- package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +102 -0
- package/lib/contentModal/components/ViewAllColumn/index.js +278 -0
- package/lib/contentModal/components/storeBox/index.js +108 -0
- package/lib/contentModal/index.js +8 -0
- package/lib/contentModal/script/api.js +52 -0
- package/lib/contentModal/style/MediaFilter.less +8 -0
- package/lib/contentModal/style/ViewAllColumn.less +33 -0
- package/lib/contentModal/style/columnTree.less +9 -0
- package/lib/contentModal/style/index.css +107 -0
- package/lib/contentModal/style/index.less +19 -0
- package/lib/contentModal/style/storeBox.less +45 -0
- package/lib/hooks/batch.js +27 -0
- package/lib/hooks/user.js +49 -0
- package/lib/index.css +120 -4
- package/lib/index.js +14 -8
- package/lib/index.less +4 -1
- package/lib/messageBox/component.js +2 -1
- package/lib/messageBox/list.js +4 -4
- package/lib/resourceModal/component.js +15 -0
- package/lib/resourceModal/index.js +8 -0
- package/lib/resourceModal/style/css.js +2 -0
- package/lib/resourceModal/style/index.css +4 -0
- package/lib/resourceModal/style/index.js +2 -0
- package/lib/resourceModal/style/index.less +4 -0
- package/lib/typeIcons/component.js +63 -0
- package/lib/{button → typeIcons}/index.js +2 -2
- package/lib/typeIcons/style/css.js +2 -0
- package/lib/typeIcons/style/index.css +5 -0
- package/lib/typeIcons/style/index.js +2 -0
- package/lib/typeIcons/style/index.less +5 -0
- package/lib/uploadStep/component.js +15 -0
- package/lib/uploadStep/index.js +8 -0
- package/lib/uploadStep/style/css.js +2 -0
- package/lib/uploadStep/style/index.css +4 -0
- package/lib/uploadStep/style/index.js +2 -0
- package/lib/uploadStep/style/index.less +4 -0
- package/lib/userAvater/component.js +3 -3
- package/lib/utils/index.js +13 -0
- package/lib/utils/request.js +3 -4
- package/lib/utils/typeMap.js +25 -0
- package/package.json +4 -2
- package/es/_virtual/plugin-vue_export-helper.js +0 -7
- package/es/button/component.d.ts +0 -24
- package/es/button/component.js +0 -43
- package/es/button/index.d.ts +0 -103
- package/es/button/index.js +0 -7
- package/lib/_virtual/plugin-vue_export-helper.js +0 -8
- package/lib/button/component.js +0 -44
- /package/es/{button → contentModal}/style/css.js +0 -0
- /package/es/{button → contentModal}/style/index.d.ts +0 -0
- /package/es/{button → contentModal}/style/index.js +0 -0
- /package/es/{button → resourceModal}/style/index.css +0 -0
- /package/es/{button → resourceModal}/style/index.less +0 -0
- /package/{lib/button → es/uploadStep}/style/index.css +0 -0
- /package/{lib/button → es/uploadStep}/style/index.less +0 -0
- /package/lib/{button → contentModal}/style/css.js +0 -0
- /package/lib/{button → contentModal}/style/index.js +0 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, Fragment, renderList, toDisplayString, createTextVNode } from "vue";
|
|
2
|
+
import { Popover, Scrollbar, Button, Badge } from "@arco-design/web-vue";
|
|
3
|
+
import { IconCloseCircle } from "@arco-design/web-vue/es/icon";
|
|
4
|
+
import _sfc_main$1 from "../../../typeIcons/component.js";
|
|
5
|
+
const _hoisted_1 = { class: "add-content-selected-store-box" };
|
|
6
|
+
const _hoisted_2 = { class: "batch-section-popover-main" };
|
|
7
|
+
const _hoisted_3 = { class: "left" };
|
|
8
|
+
const _hoisted_4 = { class: "title" };
|
|
9
|
+
const _hoisted_5 = { class: "options" };
|
|
10
|
+
const _sfc_main = defineComponent({
|
|
11
|
+
...{ name: "storeBox" },
|
|
12
|
+
__name: "index",
|
|
13
|
+
props: {
|
|
14
|
+
selectData: {}
|
|
15
|
+
},
|
|
16
|
+
emits: ["update:selectData"],
|
|
17
|
+
setup(__props, { emit }) {
|
|
18
|
+
const props = __props;
|
|
19
|
+
const remove = (item, index) => {
|
|
20
|
+
const arr = props.selectData;
|
|
21
|
+
arr.splice(index, 1);
|
|
22
|
+
emit("update:selectData", arr);
|
|
23
|
+
};
|
|
24
|
+
const clear = () => {
|
|
25
|
+
emit("update:selectData", []);
|
|
26
|
+
};
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
29
|
+
createVNode(unref(Popover), {
|
|
30
|
+
position: "tl",
|
|
31
|
+
"content-class": "selected-store-box-popover-content",
|
|
32
|
+
"content-style": { width: "290px" },
|
|
33
|
+
"arrow-style": { display: "none" },
|
|
34
|
+
trigger: "click"
|
|
35
|
+
}, {
|
|
36
|
+
content: withCtx(() => [
|
|
37
|
+
createElementVNode("div", _hoisted_2, [
|
|
38
|
+
createVNode(unref(Scrollbar), {
|
|
39
|
+
"outer-class": "batch-section-scrollbar",
|
|
40
|
+
style: { "height": "100%", "overflow": "auto" }
|
|
41
|
+
}, {
|
|
42
|
+
default: withCtx(() => [
|
|
43
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(props.selectData, (item, index) => {
|
|
44
|
+
return openBlock(), createElementBlock("div", {
|
|
45
|
+
key: index,
|
|
46
|
+
class: "item"
|
|
47
|
+
}, [
|
|
48
|
+
createElementVNode("div", _hoisted_3, [
|
|
49
|
+
createVNode(_sfc_main$1, {
|
|
50
|
+
class: "icon",
|
|
51
|
+
doc: "",
|
|
52
|
+
type: item.series
|
|
53
|
+
}, null, 8, ["type"]),
|
|
54
|
+
createElementVNode("span", _hoisted_4, toDisplayString(item.alias || item.title), 1)
|
|
55
|
+
]),
|
|
56
|
+
createVNode(unref(Button), {
|
|
57
|
+
class: "close-btn",
|
|
58
|
+
type: "text",
|
|
59
|
+
shape: "circle",
|
|
60
|
+
size: "mini",
|
|
61
|
+
onClick: ($event) => remove(item, index)
|
|
62
|
+
}, {
|
|
63
|
+
icon: withCtx(() => [
|
|
64
|
+
createVNode(unref(IconCloseCircle), { size: "14" })
|
|
65
|
+
]),
|
|
66
|
+
_: 2
|
|
67
|
+
}, 1032, ["onClick"])
|
|
68
|
+
]);
|
|
69
|
+
}), 128))
|
|
70
|
+
]),
|
|
71
|
+
_: 1
|
|
72
|
+
})
|
|
73
|
+
]),
|
|
74
|
+
createElementVNode("div", _hoisted_5, [
|
|
75
|
+
createVNode(unref(Button), {
|
|
76
|
+
type: "text",
|
|
77
|
+
onClick: clear
|
|
78
|
+
}, {
|
|
79
|
+
default: withCtx(() => [
|
|
80
|
+
createTextVNode("\u6E05\u7A7A")
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
})
|
|
84
|
+
])
|
|
85
|
+
]),
|
|
86
|
+
default: withCtx(() => [
|
|
87
|
+
createVNode(unref(Badge), {
|
|
88
|
+
count: props.selectData.length
|
|
89
|
+
}, {
|
|
90
|
+
default: withCtx(() => [
|
|
91
|
+
createVNode(unref(Button), { class: "button" }, {
|
|
92
|
+
default: withCtx(() => [
|
|
93
|
+
createTextVNode("\u5DF2\u9009\u6570\u636E")
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
})
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
}, 8, ["count"])
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
})
|
|
103
|
+
]);
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface Params {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
export declare function getCategoryCategoriesTree(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
5
|
+
export declare function getCategoryPath(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
6
|
+
export declare function getCategoryMediaNew(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
7
|
+
export declare function checkCommitFulfillment(BASE_API: string, params?: Params): Promise<boolean>;
|
|
8
|
+
export declare function searchMlists(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
9
|
+
export declare function getCategorylistsGroups(BASE_API: string, params?: Params): Promise<import("axios").AxiosResponse<any>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import request from "../../utils/request.js";
|
|
2
|
+
function getCategoryCategoriesTree(BASE_API, params) {
|
|
3
|
+
return request(BASE_API, {
|
|
4
|
+
url: `/poplar/v3/categories`,
|
|
5
|
+
method: "get",
|
|
6
|
+
params
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
function getCategoryPath(BASE_API, params) {
|
|
10
|
+
return request(BASE_API, {
|
|
11
|
+
url: `/poplar/v2/repo/${params == null ? void 0 : params.repo}/category/${params == null ? void 0 : params.category}/path`,
|
|
12
|
+
method: "get"
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function getCategoryMediaNew(BASE_API, params) {
|
|
16
|
+
return request(BASE_API, {
|
|
17
|
+
url: `/poplar/v3/s/documents`,
|
|
18
|
+
method: "get",
|
|
19
|
+
params
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
function checkCommitFulfillment(BASE_API, params) {
|
|
23
|
+
return request(BASE_API, {
|
|
24
|
+
url: `/poplar/v2/doc/new/${params == null ? void 0 : params.hash_id}`,
|
|
25
|
+
method: "get"
|
|
26
|
+
}).then((resp) => {
|
|
27
|
+
const content = resp.message;
|
|
28
|
+
return Promise.resolve(!content.payload.includes("image_over_limit.jpg"));
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function searchMlists(BASE_API, params) {
|
|
32
|
+
return request(BASE_API, {
|
|
33
|
+
url: `/poplar/v3/mobile_list`,
|
|
34
|
+
method: "get",
|
|
35
|
+
params
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
async function getCategorylistsGroups(BASE_API, params) {
|
|
39
|
+
return request(BASE_API, {
|
|
40
|
+
url: `/poplar/v2/listgroups`,
|
|
41
|
+
method: "get",
|
|
42
|
+
params
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
export { checkCommitFulfillment, getCategoryCategoriesTree, getCategoryMediaNew, getCategoryPath, getCategorylistsGroups, searchMlists };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.view-all-column-container {
|
|
2
|
+
height: 100%;
|
|
3
|
+
.content-table-view {
|
|
4
|
+
height: calc(100% - 110px);
|
|
5
|
+
.title-span {
|
|
6
|
+
width: 100%;
|
|
7
|
+
display: block;
|
|
8
|
+
text-overflow: ellipsis;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
white-space: nowrap;
|
|
11
|
+
.icon {
|
|
12
|
+
width: 20px;
|
|
13
|
+
height: 25px;
|
|
14
|
+
margin-right: 8px;
|
|
15
|
+
font-size: 18px;
|
|
16
|
+
vertical-align: middle;
|
|
17
|
+
display: inline-block;
|
|
18
|
+
text-align: center;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
.bottom-view {
|
|
23
|
+
height: 60px;
|
|
24
|
+
margin: 0px 15px;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
.left {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
.column-selection-container {
|
|
2
|
+
padding: 0px 15px;
|
|
3
|
+
}
|
|
4
|
+
.column-selection-popover-content {
|
|
5
|
+
padding: 0;
|
|
6
|
+
}
|
|
7
|
+
.column-selection-popover-content .column-outer-scrollbar {
|
|
8
|
+
height: 100%;
|
|
9
|
+
}
|
|
10
|
+
.media-filter-container {
|
|
11
|
+
padding: 10px 15px;
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
}
|
|
15
|
+
.media-filter-container .filter-item {
|
|
16
|
+
width: auto;
|
|
17
|
+
}
|
|
18
|
+
.selected-store-box-popover-content {
|
|
19
|
+
padding: 0;
|
|
20
|
+
}
|
|
21
|
+
.selected-store-box-popover-content .batch-section-popover-main .item {
|
|
22
|
+
height: 35px;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
padding: 5px 10px;
|
|
27
|
+
box-sizing: border-box;
|
|
28
|
+
}
|
|
29
|
+
.selected-store-box-popover-content .batch-section-popover-main .item .icon {
|
|
30
|
+
width: 20px;
|
|
31
|
+
height: 25px;
|
|
32
|
+
margin-right: 8px;
|
|
33
|
+
font-size: 18px;
|
|
34
|
+
vertical-align: middle;
|
|
35
|
+
display: inline-block;
|
|
36
|
+
text-align: center;
|
|
37
|
+
}
|
|
38
|
+
.selected-store-box-popover-content .batch-section-popover-main .item .left {
|
|
39
|
+
width: 90%;
|
|
40
|
+
display: inline-block;
|
|
41
|
+
align-items: center;
|
|
42
|
+
text-overflow: ellipsis;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
}
|
|
46
|
+
.selected-store-box-popover-content .batch-section-popover-main .item .close-btn {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
.selected-store-box-popover-content .batch-section-popover-main .item:hover,
|
|
50
|
+
.selected-store-box-popover-content .batch-section-popover-main .item:active {
|
|
51
|
+
background-color: #f6f6f6;
|
|
52
|
+
}
|
|
53
|
+
.selected-store-box-popover-content .batch-section-popover-main .item:hover .close-btn,
|
|
54
|
+
.selected-store-box-popover-content .batch-section-popover-main .item:active .close-btn {
|
|
55
|
+
display: block;
|
|
56
|
+
}
|
|
57
|
+
.selected-store-box-popover-content .options {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: flex-end;
|
|
61
|
+
}
|
|
62
|
+
.view-all-column-container {
|
|
63
|
+
height: 100%;
|
|
64
|
+
}
|
|
65
|
+
.view-all-column-container .content-table-view {
|
|
66
|
+
height: calc(100% - 110px);
|
|
67
|
+
}
|
|
68
|
+
.view-all-column-container .content-table-view .title-span {
|
|
69
|
+
width: 100%;
|
|
70
|
+
display: block;
|
|
71
|
+
text-overflow: ellipsis;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
white-space: nowrap;
|
|
74
|
+
}
|
|
75
|
+
.view-all-column-container .content-table-view .title-span .icon {
|
|
76
|
+
width: 20px;
|
|
77
|
+
height: 25px;
|
|
78
|
+
margin-right: 8px;
|
|
79
|
+
font-size: 18px;
|
|
80
|
+
vertical-align: middle;
|
|
81
|
+
display: inline-block;
|
|
82
|
+
text-align: center;
|
|
83
|
+
}
|
|
84
|
+
.view-all-column-container .bottom-view {
|
|
85
|
+
height: 60px;
|
|
86
|
+
margin: 0px 15px;
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: space-between;
|
|
90
|
+
}
|
|
91
|
+
.view-all-column-container .bottom-view .left {
|
|
92
|
+
display: flex;
|
|
93
|
+
align-items: center;
|
|
94
|
+
}
|
|
95
|
+
.add-content-modal-wrapper .arco-modal-header {
|
|
96
|
+
border-bottom: none;
|
|
97
|
+
}
|
|
98
|
+
.add-content-modal-body {
|
|
99
|
+
padding: 0;
|
|
100
|
+
height: 70vh;
|
|
101
|
+
}
|
|
102
|
+
.add-content-modal-body .content-tabs {
|
|
103
|
+
height: 100%;
|
|
104
|
+
}
|
|
105
|
+
.add-content-modal-body .arco-tabs-content {
|
|
106
|
+
padding-top: 0;
|
|
107
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@import './columnTree.less';
|
|
2
|
+
@import './MediaFilter.less';
|
|
3
|
+
@import './storeBox.less';
|
|
4
|
+
@import './ViewAllColumn.less';
|
|
5
|
+
.add-content-modal-wrapper {
|
|
6
|
+
.arco-modal-header {
|
|
7
|
+
border-bottom: none;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
.add-content-modal-body {
|
|
11
|
+
padding: 0;
|
|
12
|
+
height: 70vh;
|
|
13
|
+
.content-tabs {
|
|
14
|
+
height: 100%;
|
|
15
|
+
}
|
|
16
|
+
.arco-tabs-content {
|
|
17
|
+
padding-top: 0;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.selected-store-box-popover-content {
|
|
2
|
+
padding: 0;
|
|
3
|
+
.batch-section-popover-main {
|
|
4
|
+
.item {
|
|
5
|
+
height: 35px;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
padding: 5px 10px;
|
|
10
|
+
box-sizing: border-box;
|
|
11
|
+
.icon {
|
|
12
|
+
width: 20px;
|
|
13
|
+
height: 25px;
|
|
14
|
+
margin-right: 8px;
|
|
15
|
+
font-size: 18px;
|
|
16
|
+
vertical-align: middle;
|
|
17
|
+
display: inline-block;
|
|
18
|
+
text-align: center;
|
|
19
|
+
}
|
|
20
|
+
.left {
|
|
21
|
+
width: 90%;
|
|
22
|
+
display: inline-block;
|
|
23
|
+
align-items: center;
|
|
24
|
+
text-overflow: ellipsis;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
white-space: nowrap;
|
|
27
|
+
}
|
|
28
|
+
.close-btn {
|
|
29
|
+
display: none;
|
|
30
|
+
}
|
|
31
|
+
&:hover,
|
|
32
|
+
&:active {
|
|
33
|
+
background-color: #f6f6f6;
|
|
34
|
+
.close-btn {
|
|
35
|
+
display: block;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
.options {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: flex-end;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const useTableBatch: () => {
|
|
2
|
+
hoverTarget: import("vue").Ref<null>;
|
|
3
|
+
isItemChecked: import("vue").ComputedRef<(selectedData: any, item: any) => any>;
|
|
4
|
+
hoverBatchBox: import("vue").ComputedRef<(selectedData: any, item: any) => any>;
|
|
5
|
+
tableCellMouseEnter: (record: any) => void;
|
|
6
|
+
tableCellMouseLeave: (record: any) => void;
|
|
7
|
+
};
|
|
8
|
+
export default useTableBatch;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ref, computed } from "vue";
|
|
2
|
+
const useTableBatch = () => {
|
|
3
|
+
const hoverTarget = ref(null);
|
|
4
|
+
const isItemChecked = computed(() => (selectedData, item) => {
|
|
5
|
+
return selectedData.map((row) => row.id).includes(item.id);
|
|
6
|
+
});
|
|
7
|
+
const hoverBatchBox = computed(() => (selectedData, item) => {
|
|
8
|
+
return hoverTarget.value === item.id || isItemChecked.value(selectedData, item);
|
|
9
|
+
});
|
|
10
|
+
const tableCellMouseEnter = (record) => {
|
|
11
|
+
hoverTarget.value = record.id;
|
|
12
|
+
};
|
|
13
|
+
const tableCellMouseLeave = (record) => {
|
|
14
|
+
if (record.id === hoverTarget.value) {
|
|
15
|
+
hoverTarget.value = null;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
return {
|
|
19
|
+
hoverTarget,
|
|
20
|
+
isItemChecked,
|
|
21
|
+
hoverBatchBox,
|
|
22
|
+
tableCellMouseEnter,
|
|
23
|
+
tableCellMouseLeave
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export { useTableBatch as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface Params {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
export declare function getChannels(BASE_API: string, params?: Params): import("axios").AxiosPromise<any>;
|
|
5
|
+
declare const useLoadUserInfo: (BASE_API: string) => {
|
|
6
|
+
userInfo: import("vue").Ref<{
|
|
7
|
+
BASE_API: string;
|
|
8
|
+
}>;
|
|
9
|
+
getUserInfoHandle: () => Promise<void>;
|
|
10
|
+
};
|
|
11
|
+
export default useLoadUserInfo;
|
package/es/hooks/user.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ref } from "vue";
|
|
2
|
+
import request from "../utils/request.js";
|
|
3
|
+
function getUserInfo(BASE_API, params) {
|
|
4
|
+
return request(BASE_API, {
|
|
5
|
+
url: "/poplar/v2/account/info",
|
|
6
|
+
method: "get",
|
|
7
|
+
params
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
function getChannels(BASE_API, params) {
|
|
11
|
+
return request(BASE_API, {
|
|
12
|
+
url: `/poplar/v2/channels?repository_id=${params == null ? void 0 : params.repository_id}`,
|
|
13
|
+
method: "get"
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
const useLoadUserInfo = (BASE_API) => {
|
|
17
|
+
const userInfo = ref({ BASE_API });
|
|
18
|
+
const getChannelsHandle = async (_user) => {
|
|
19
|
+
const channels = await getChannels(BASE_API, {
|
|
20
|
+
repository_id: _user.repository_id
|
|
21
|
+
});
|
|
22
|
+
if (channels.code === 0) {
|
|
23
|
+
channels.message.map((channel) => {
|
|
24
|
+
_user[`${channel.platform_type}_channel_id`] = channel.id;
|
|
25
|
+
if (channel.logo_type === "2") {
|
|
26
|
+
_user.channel_clientSetting = channel.uid;
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
return _user;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const getUserInfoHandle = async () => {
|
|
33
|
+
const res = await getUserInfo(BASE_API);
|
|
34
|
+
if (res.code === 0 && res.message) {
|
|
35
|
+
if (res.message.repository_id) {
|
|
36
|
+
res.message = await getChannelsHandle(res.message);
|
|
37
|
+
}
|
|
38
|
+
userInfo.value = { BASE_API, ...res.message };
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
return {
|
|
42
|
+
userInfo,
|
|
43
|
+
getUserInfoHandle
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export { useLoadUserInfo as default, getChannels };
|
package/es/index.css
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
.tooltip-button {
|
|
2
|
-
height: auto;
|
|
3
|
-
padding: 20px;
|
|
4
|
-
}
|
|
5
1
|
.reference-btn {
|
|
6
2
|
border: none;
|
|
7
3
|
padding: 12px 16px;
|
|
@@ -206,3 +202,123 @@
|
|
|
206
202
|
align-items: center;
|
|
207
203
|
justify-content: center;
|
|
208
204
|
}
|
|
205
|
+
.type-icons-container {
|
|
206
|
+
display: inline-block;
|
|
207
|
+
vertical-align: middle;
|
|
208
|
+
font-size: 18px;
|
|
209
|
+
}
|
|
210
|
+
.tooltip-button {
|
|
211
|
+
height: auto;
|
|
212
|
+
padding: 20px;
|
|
213
|
+
}
|
|
214
|
+
.column-selection-container {
|
|
215
|
+
padding: 0px 15px;
|
|
216
|
+
}
|
|
217
|
+
.column-selection-popover-content {
|
|
218
|
+
padding: 0;
|
|
219
|
+
}
|
|
220
|
+
.column-selection-popover-content .column-outer-scrollbar {
|
|
221
|
+
height: 100%;
|
|
222
|
+
}
|
|
223
|
+
.media-filter-container {
|
|
224
|
+
padding: 10px 15px;
|
|
225
|
+
display: flex;
|
|
226
|
+
align-items: center;
|
|
227
|
+
}
|
|
228
|
+
.media-filter-container .filter-item {
|
|
229
|
+
width: auto;
|
|
230
|
+
}
|
|
231
|
+
.selected-store-box-popover-content {
|
|
232
|
+
padding: 0;
|
|
233
|
+
}
|
|
234
|
+
.selected-store-box-popover-content .batch-section-popover-main .item {
|
|
235
|
+
height: 35px;
|
|
236
|
+
display: flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
justify-content: space-between;
|
|
239
|
+
padding: 5px 10px;
|
|
240
|
+
box-sizing: border-box;
|
|
241
|
+
}
|
|
242
|
+
.selected-store-box-popover-content .batch-section-popover-main .item .icon {
|
|
243
|
+
width: 20px;
|
|
244
|
+
height: 25px;
|
|
245
|
+
margin-right: 8px;
|
|
246
|
+
font-size: 18px;
|
|
247
|
+
vertical-align: middle;
|
|
248
|
+
display: inline-block;
|
|
249
|
+
text-align: center;
|
|
250
|
+
}
|
|
251
|
+
.selected-store-box-popover-content .batch-section-popover-main .item .left {
|
|
252
|
+
width: 90%;
|
|
253
|
+
display: inline-block;
|
|
254
|
+
align-items: center;
|
|
255
|
+
text-overflow: ellipsis;
|
|
256
|
+
overflow: hidden;
|
|
257
|
+
white-space: nowrap;
|
|
258
|
+
}
|
|
259
|
+
.selected-store-box-popover-content .batch-section-popover-main .item .close-btn {
|
|
260
|
+
display: none;
|
|
261
|
+
}
|
|
262
|
+
.selected-store-box-popover-content .batch-section-popover-main .item:hover,
|
|
263
|
+
.selected-store-box-popover-content .batch-section-popover-main .item:active {
|
|
264
|
+
background-color: #f6f6f6;
|
|
265
|
+
}
|
|
266
|
+
.selected-store-box-popover-content .batch-section-popover-main .item:hover .close-btn,
|
|
267
|
+
.selected-store-box-popover-content .batch-section-popover-main .item:active .close-btn {
|
|
268
|
+
display: block;
|
|
269
|
+
}
|
|
270
|
+
.selected-store-box-popover-content .options {
|
|
271
|
+
display: flex;
|
|
272
|
+
align-items: center;
|
|
273
|
+
justify-content: flex-end;
|
|
274
|
+
}
|
|
275
|
+
.view-all-column-container {
|
|
276
|
+
height: 100%;
|
|
277
|
+
}
|
|
278
|
+
.view-all-column-container .content-table-view {
|
|
279
|
+
height: calc(100% - 110px);
|
|
280
|
+
}
|
|
281
|
+
.view-all-column-container .content-table-view .title-span {
|
|
282
|
+
width: 100%;
|
|
283
|
+
display: block;
|
|
284
|
+
text-overflow: ellipsis;
|
|
285
|
+
overflow: hidden;
|
|
286
|
+
white-space: nowrap;
|
|
287
|
+
}
|
|
288
|
+
.view-all-column-container .content-table-view .title-span .icon {
|
|
289
|
+
width: 20px;
|
|
290
|
+
height: 25px;
|
|
291
|
+
margin-right: 8px;
|
|
292
|
+
font-size: 18px;
|
|
293
|
+
vertical-align: middle;
|
|
294
|
+
display: inline-block;
|
|
295
|
+
text-align: center;
|
|
296
|
+
}
|
|
297
|
+
.view-all-column-container .bottom-view {
|
|
298
|
+
height: 60px;
|
|
299
|
+
margin: 0px 15px;
|
|
300
|
+
display: flex;
|
|
301
|
+
align-items: center;
|
|
302
|
+
justify-content: space-between;
|
|
303
|
+
}
|
|
304
|
+
.view-all-column-container .bottom-view .left {
|
|
305
|
+
display: flex;
|
|
306
|
+
align-items: center;
|
|
307
|
+
}
|
|
308
|
+
.add-content-modal-wrapper .arco-modal-header {
|
|
309
|
+
border-bottom: none;
|
|
310
|
+
}
|
|
311
|
+
.add-content-modal-body {
|
|
312
|
+
padding: 0;
|
|
313
|
+
height: 70vh;
|
|
314
|
+
}
|
|
315
|
+
.add-content-modal-body .content-tabs {
|
|
316
|
+
height: 100%;
|
|
317
|
+
}
|
|
318
|
+
.add-content-modal-body .arco-tabs-content {
|
|
319
|
+
padding-top: 0;
|
|
320
|
+
}
|
|
321
|
+
.tooltip-button {
|
|
322
|
+
height: auto;
|
|
323
|
+
padding: 20px;
|
|
324
|
+
}
|
package/es/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export { default } from './components';
|
|
2
|
-
export { default as button } from './button';
|
|
3
2
|
export { default as appCenter } from './appCenter';
|
|
4
3
|
export { default as messageBox } from './messageBox';
|
|
5
4
|
export { default as userAvater } from './userAvater';
|
|
5
|
+
export { default as typeIcons } from './typeIcons';
|
|
6
|
+
export { default as uploadStep } from './uploadStep';
|
|
7
|
+
export { default as contentModal } from './contentModal';
|
|
8
|
+
export { default as resourceModal } from './resourceModal';
|
package/es/index.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export { default } from "./components.js";
|
|
2
|
-
export { default as button } from "./button/index.js";
|
|
3
2
|
export { default as appCenter } from "./appCenter/index.js";
|
|
4
3
|
export { default as messageBox } from "./messageBox/index.js";
|
|
5
4
|
export { default as userAvater } from "./userAvater/index.js";
|
|
5
|
+
export { default as typeIcons } from "./typeIcons/index.js";
|
|
6
|
+
export { default as uploadStep } from "./uploadStep/index.js";
|
|
7
|
+
export { default as contentModal } from "./contentModal/index.js";
|
|
8
|
+
export { default as resourceModal } from "./resourceModal/index.js";
|
package/es/index.less
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
@import './style/index.less';
|
|
2
|
-
@import './button/style/index.less';
|
|
3
2
|
@import './appCenter/style/index.less';
|
|
4
3
|
@import './messageBox/style/index.less';
|
|
5
4
|
@import './userAvater/style/index.less';
|
|
5
|
+
@import './typeIcons/style/index.less';
|
|
6
|
+
@import './uploadStep/style/index.less';
|
|
7
|
+
@import './contentModal/style/index.less';
|
|
8
|
+
@import './resourceModal/style/index.less';
|
|
@@ -2,6 +2,7 @@ import { defineComponent, useSlots, ref, onMounted, resolveDirective, openBlock,
|
|
|
2
2
|
import { Popover, Tabs, TabPane, Badge } from "@arco-design/web-vue";
|
|
3
3
|
import _sfc_main$1 from "./list.js";
|
|
4
4
|
import { setAllMsgRead, getNoticeList } from "./script/api.js";
|
|
5
|
+
import { DEFAULT_BASE_API } from "../config.js";
|
|
5
6
|
const _hoisted_1 = { class: "message-boxs-container" };
|
|
6
7
|
const _hoisted_2 = {
|
|
7
8
|
key: 1,
|
|
@@ -16,7 +17,7 @@ const _sfc_main = defineComponent({
|
|
|
16
17
|
},
|
|
17
18
|
setup(__props) {
|
|
18
19
|
const props = __props;
|
|
19
|
-
const BASE_API = props.BASE_API ||
|
|
20
|
+
const BASE_API = props.BASE_API || DEFAULT_BASE_API;
|
|
20
21
|
const slotTest = !!useSlots().reference;
|
|
21
22
|
const readMessagesCount = ref(0);
|
|
22
23
|
const unreadMessagesCount = ref(0);
|