@cmstops/pro-compo 0.1.8 → 0.1.10
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 +857 -0
- package/dist/index.min.css +1 -1
- package/es/appCenter/script/routeMap.d.ts +1 -1
- package/es/config.d.ts +1 -1
- package/es/config.js +1 -1
- package/es/contentModal/component.js +5 -2
- package/es/contentModal/components/CompoList/index.js +12 -1
- package/es/contentModal/components/storeBox/index.js +1 -1
- package/es/index.css +857 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -0
- package/es/index.less +2 -0
- package/es/previousVersion/component.d.ts +0 -0
- package/es/previousVersion/component.js +378 -0
- package/es/previousVersion/index.d.ts +2 -0
- package/es/previousVersion/index.js +7 -0
- package/es/previousVersion/script/api.d.ts +15 -0
- package/es/previousVersion/script/api.js +39 -0
- package/es/previousVersion/script/tool.d.ts +6 -0
- package/es/previousVersion/script/tool.js +22 -0
- package/es/previousVersion/style/css.js +1 -0
- package/es/previousVersion/style/index.css +166 -0
- package/es/previousVersion/style/index.d.ts +1 -0
- package/es/previousVersion/style/index.js +1 -0
- package/es/previousVersion/style/index.less +208 -0
- package/es/resourceModal/assets/images/unknown.js +2 -0
- package/es/resourceModal/assets/selection/null.js +2 -0
- package/es/resourceModal/component.js +65 -4
- package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
- package/es/resourceModal/components/MediaPreviewer/index.js +69 -0
- package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +111 -0
- package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +85 -0
- package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +171 -0
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +211 -0
- package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/index.js +272 -0
- package/es/resourceModal/script/api.d.ts +8 -0
- package/es/resourceModal/script/api.js +30 -0
- package/es/resourceModal/script/filter.d.ts +8 -0
- package/es/resourceModal/script/filter.js +22 -0
- package/es/resourceModal/script/mediaSelection.d.ts +10 -0
- package/es/resourceModal/style/DocAiMediaSelected.less +56 -0
- package/es/resourceModal/style/FileTypeThumb.less +183 -0
- package/es/resourceModal/style/MainContent.less +200 -0
- package/es/resourceModal/style/MediaPreviewer.less +71 -0
- package/es/resourceModal/style/MediaSelection.less +59 -0
- package/es/resourceModal/style/ToolbarSearch.less +40 -0
- package/es/resourceModal/style/index.css +514 -3
- package/es/resourceModal/style/index.less +16 -3
- package/es/selectGategory/component.d.ts +0 -0
- package/es/selectGategory/component.js +95 -0
- package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
- package/es/selectGategory/components/ColumnSelection/index.js +273 -0
- package/es/selectGategory/index.d.ts +2 -0
- package/es/selectGategory/index.js +7 -0
- package/es/selectGategory/script/api.d.ts +6 -0
- package/es/selectGategory/script/api.js +15 -0
- package/es/selectGategory/style/ColumnSelection.less +190 -0
- package/es/selectGategory/style/css.js +1 -0
- package/es/selectGategory/style/index.css +180 -0
- package/es/selectGategory/style/index.d.ts +1 -0
- package/es/selectGategory/style/index.js +1 -0
- package/es/selectGategory/style/index.less +40 -0
- package/es/utils/doc.d.ts +69 -0
- package/es/utils/typeMap.js +2 -1
- package/lib/config.js +1 -1
- package/lib/contentModal/component.js +5 -2
- package/lib/contentModal/components/CompoList/index.js +11 -0
- package/lib/contentModal/components/storeBox/index.js +1 -1
- package/lib/index.css +857 -0
- package/lib/index.js +4 -0
- package/lib/index.less +2 -0
- package/lib/previousVersion/component.js +379 -0
- package/lib/previousVersion/index.js +8 -0
- package/lib/previousVersion/script/api.js +43 -0
- package/lib/previousVersion/script/tool.js +24 -0
- package/lib/previousVersion/style/css.js +2 -0
- package/lib/previousVersion/style/index.css +166 -0
- package/lib/previousVersion/style/index.js +2 -0
- package/lib/previousVersion/style/index.less +208 -0
- package/lib/resourceModal/assets/images/unknown.js +3 -0
- package/lib/resourceModal/assets/selection/null.js +3 -0
- package/lib/resourceModal/component.js +64 -3
- package/lib/resourceModal/components/MediaPreviewer/index.js +70 -0
- package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +112 -0
- package/lib/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +86 -0
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +172 -0
- package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +212 -0
- package/lib/resourceModal/components/MediaSelection/index.js +273 -0
- package/lib/resourceModal/script/api.js +35 -0
- package/lib/resourceModal/script/filter.js +25 -0
- package/lib/resourceModal/style/DocAiMediaSelected.less +56 -0
- package/lib/resourceModal/style/FileTypeThumb.less +183 -0
- package/lib/resourceModal/style/MainContent.less +200 -0
- package/lib/resourceModal/style/MediaPreviewer.less +71 -0
- package/lib/resourceModal/style/MediaSelection.less +59 -0
- package/lib/resourceModal/style/ToolbarSearch.less +40 -0
- package/lib/resourceModal/style/index.css +514 -3
- package/lib/resourceModal/style/index.less +16 -3
- package/lib/selectGategory/component.js +96 -0
- package/lib/selectGategory/components/ColumnSelection/index.js +274 -0
- package/lib/selectGategory/index.js +8 -0
- package/lib/selectGategory/script/api.js +18 -0
- package/lib/selectGategory/style/ColumnSelection.less +190 -0
- package/lib/selectGategory/style/css.js +2 -0
- package/lib/selectGategory/style/index.css +180 -0
- package/lib/selectGategory/style/index.js +2 -0
- package/lib/selectGategory/style/index.less +40 -0
- package/lib/utils/typeMap.js +2 -1
- package/package.json +2 -2
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@import './ColumnSelection.less';
|
|
2
|
+
|
|
3
|
+
.add-category-modal-wrapper {
|
|
4
|
+
.arco-modal-header {
|
|
5
|
+
border-bottom: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.arco-modal-body {
|
|
9
|
+
min-height: 200px;
|
|
10
|
+
padding: 20px;
|
|
11
|
+
padding-bottom: 0;
|
|
12
|
+
|
|
13
|
+
.form-view {
|
|
14
|
+
padding: 0 20px;
|
|
15
|
+
|
|
16
|
+
.title {
|
|
17
|
+
padding: 20px 0;
|
|
18
|
+
font-weight: bold;
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.item-title {
|
|
23
|
+
display: inline-block;
|
|
24
|
+
color: #4e5969;
|
|
25
|
+
font-weight: 700;
|
|
26
|
+
font-size: 14px;
|
|
27
|
+
line-height: 40px;
|
|
28
|
+
text-align: left;
|
|
29
|
+
|
|
30
|
+
&.big {
|
|
31
|
+
line-height: 60px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.arco-modal-footer {
|
|
38
|
+
border-top: 0;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export declare const docStateMap: {
|
|
2
|
+
0: string;
|
|
3
|
+
10: string;
|
|
4
|
+
12: string;
|
|
5
|
+
13: string;
|
|
6
|
+
14: string;
|
|
7
|
+
15: string;
|
|
8
|
+
16: string;
|
|
9
|
+
17: string;
|
|
10
|
+
19: string;
|
|
11
|
+
22: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const docPubStateMap: {
|
|
14
|
+
'14|15|19': string;
|
|
15
|
+
'16|22': string;
|
|
16
|
+
'17': string;
|
|
17
|
+
};
|
|
18
|
+
export declare const docThumbObjMap: any;
|
|
19
|
+
export declare const docThumbRatioMap: () => any;
|
|
20
|
+
export declare const docThumbArrMap: () => unknown[];
|
|
21
|
+
export declare const docThumbOptions: () => {
|
|
22
|
+
label: any;
|
|
23
|
+
value: string;
|
|
24
|
+
}[];
|
|
25
|
+
export declare const docThumbMap: () => any;
|
|
26
|
+
export declare const docSeries: {
|
|
27
|
+
imagetext: string;
|
|
28
|
+
atlas: string;
|
|
29
|
+
video: string;
|
|
30
|
+
video_album: string;
|
|
31
|
+
svideo: string;
|
|
32
|
+
audio: string;
|
|
33
|
+
audio_album: string;
|
|
34
|
+
h5: string;
|
|
35
|
+
special_v3: string;
|
|
36
|
+
};
|
|
37
|
+
export declare const otherSeries: {
|
|
38
|
+
wechat: string;
|
|
39
|
+
ad: string;
|
|
40
|
+
activity: string;
|
|
41
|
+
booklink: string;
|
|
42
|
+
vote_activity: string;
|
|
43
|
+
vote: string;
|
|
44
|
+
cloud_lottery: string;
|
|
45
|
+
cloud_form: string;
|
|
46
|
+
};
|
|
47
|
+
export declare const editDocTypeToRouteMap: {
|
|
48
|
+
imagetext: string;
|
|
49
|
+
atlas: string;
|
|
50
|
+
video: string;
|
|
51
|
+
video_album: string;
|
|
52
|
+
svideo: string;
|
|
53
|
+
audio: string;
|
|
54
|
+
audio_album: string;
|
|
55
|
+
special_v3: string;
|
|
56
|
+
h5: string;
|
|
57
|
+
};
|
|
58
|
+
export declare const getPublishParmas: (categories: any[], categories_with: any[], docData: any) => {
|
|
59
|
+
category: {
|
|
60
|
+
id: any;
|
|
61
|
+
repo_id: any;
|
|
62
|
+
};
|
|
63
|
+
category_with: {
|
|
64
|
+
id: any;
|
|
65
|
+
repo_id: any;
|
|
66
|
+
}[];
|
|
67
|
+
clean_offline_time: boolean;
|
|
68
|
+
id: any;
|
|
69
|
+
};
|
package/es/utils/typeMap.js
CHANGED
|
@@ -9,7 +9,8 @@ const componentsColumns = {
|
|
|
9
9
|
radio: { value: "radio", label: "\u5E7F\u64AD\u7EC4\u4EF6", simple: true },
|
|
10
10
|
tv: { value: "tv", label: "\u7535\u89C6\u7EC4\u4EF6", simple: true },
|
|
11
11
|
mp_account: { value: "mp_account", label: "\u516C\u4F17\u53F7\u7EC4\u4EF6" },
|
|
12
|
-
column: { value: "column", label: "\u5206\u680F\u7EC4\u4EF6" }
|
|
12
|
+
column: { value: "column", label: "\u5206\u680F\u7EC4\u4EF6" },
|
|
13
|
+
kongo: { value: "kongo", label: "\u529F\u80FD\u5BFC\u822A\u7EC4\u4EF6" }
|
|
13
14
|
};
|
|
14
15
|
const compoColumnsMap = () => {
|
|
15
16
|
const obj = {};
|
package/lib/config.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const DEFAULT_BASE_API = {}.STORYBOOK_ENV === "dev" ? "https://site.cmstop.xyz" : "";
|
|
3
|
+
const DEFAULT_BASE_API = {}.STORYBOOK_ENV === "dev" ? "https://site.cmstop.xyz" : "https://site.cmstop.xyz";
|
|
4
4
|
const DEFAULT_BASE_ACCOUNT_HOST = {}.STORYBOOK_ENV === "dev" ? "https://account.cmstop.xyz" : "";
|
|
5
5
|
exports.DEFAULT_BASE_ACCOUNT_HOST = DEFAULT_BASE_ACCOUNT_HOST;
|
|
6
6
|
exports.DEFAULT_BASE_API = DEFAULT_BASE_API;
|
|
@@ -14,6 +14,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
14
14
|
BASE_API: {},
|
|
15
15
|
visible: { type: Boolean },
|
|
16
16
|
title: {},
|
|
17
|
+
outsideSelectData: {},
|
|
17
18
|
defaultSelectedData: {},
|
|
18
19
|
maxSelect: {},
|
|
19
20
|
typeData: {},
|
|
@@ -53,6 +54,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
53
54
|
};
|
|
54
55
|
const { userInfo, getUserInfoHandle } = user["default"](BASE_API);
|
|
55
56
|
const HandleOpen = () => {
|
|
57
|
+
console.log(props.outsideSelectData);
|
|
56
58
|
selectedData.value = props.defaultSelectedData || [];
|
|
57
59
|
};
|
|
58
60
|
const HandleClose = () => {
|
|
@@ -136,6 +138,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
136
138
|
key: 0,
|
|
137
139
|
"max-select": _ctx.maxSelect,
|
|
138
140
|
"default-selected-data": selectedData.value,
|
|
141
|
+
"outside-select-data": _ctx.outsideSelectData || [],
|
|
139
142
|
"type-data": typeDataController.value,
|
|
140
143
|
columns: typeDataController.value.compoType,
|
|
141
144
|
"user-info": vue.unref(userInfo),
|
|
@@ -154,13 +157,13 @@ const _sfc_main = vue.defineComponent({
|
|
|
154
157
|
onClick: comfirm
|
|
155
158
|
}, {
|
|
156
159
|
default: vue.withCtx(() => [
|
|
157
|
-
vue.createTextVNode("\u6DFB\u52A0")
|
|
160
|
+
vue.createTextVNode(" \u6DFB\u52A0 ")
|
|
158
161
|
]),
|
|
159
162
|
_: 1
|
|
160
163
|
}, 8, ["disabled"])
|
|
161
164
|
]),
|
|
162
165
|
_: 1
|
|
163
|
-
}, 8, ["max-select", "default-selected-data", "type-data", "columns", "user-info"])) : vue.createCommentVNode("v-if", true)
|
|
166
|
+
}, 8, ["max-select", "default-selected-data", "outside-select-data", "type-data", "columns", "user-info"])) : vue.createCommentVNode("v-if", true)
|
|
164
167
|
]),
|
|
165
168
|
_: 1
|
|
166
169
|
})) : vue.createCommentVNode("v-if", true)
|
|
@@ -19,6 +19,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
19
19
|
__name: "index",
|
|
20
20
|
props: {
|
|
21
21
|
maxSelect: {},
|
|
22
|
+
outsideSelectData: {},
|
|
22
23
|
defaultSelectedData: {},
|
|
23
24
|
typeData: {},
|
|
24
25
|
userInfo: {}
|
|
@@ -53,8 +54,18 @@ const _sfc_main = vue.defineComponent({
|
|
|
53
54
|
selectData(record);
|
|
54
55
|
};
|
|
55
56
|
const selectData = (record) => {
|
|
57
|
+
if (checkSameAdd(record)) {
|
|
58
|
+
webVue.Message.warning({ content: "\u8BF7\u52FF\u6DFB\u52A0\u91CD\u590D\u6570\u636E", duration: 3e3 });
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
56
61
|
addDataToSelectedList(record);
|
|
57
62
|
};
|
|
63
|
+
const checkSameAdd = (record) => {
|
|
64
|
+
const selected = props.outsideSelectData;
|
|
65
|
+
if (!selected.length)
|
|
66
|
+
return false;
|
|
67
|
+
return selected.map((row) => row.id).includes(record.id);
|
|
68
|
+
};
|
|
58
69
|
const addDataToSelectedList = async (record) => {
|
|
59
70
|
const index2 = selectedData.value.findIndex((v) => v.id === record.id);
|
|
60
71
|
if (selectedData.value.length < _maxSelect) {
|
|
@@ -38,7 +38,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
38
38
|
vue.createElementVNode("div", _hoisted_2, [
|
|
39
39
|
vue.createVNode(vue.unref(webVue.Scrollbar), {
|
|
40
40
|
"outer-class": "batch-section-scrollbar",
|
|
41
|
-
style: { "height": "
|
|
41
|
+
style: { "max-height": "350px", "overflow": "auto" }
|
|
42
42
|
}, {
|
|
43
43
|
default: vue.withCtx(() => [
|
|
44
44
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(props.selectData, (item, index) => {
|