@cmstops/pro-compo 0.1.32 → 0.1.34
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 +14 -5
- package/dist/index.min.css +1 -1
- package/es/config.d.ts +2 -2
- package/es/config.js +5 -4
- package/es/editMetaInfo/components/metaInfoForm.js +83 -81
- package/es/index.css +14 -5
- package/es/resourceModal/component.js +5 -5
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +1 -1
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -2
- package/es/resourceModal/components/MediaSelection/index.js +8 -8
- package/es/resourceModal/script/api.d.ts +2 -2
- package/es/resourceModal/style/DocAiMediaSelected.less +2 -3
- package/es/resourceModal/style/MainContent.less +5 -3
- package/es/resourceModal/style/ToolbarSearch.less +13 -0
- package/es/resourceModal/style/index.css +14 -5
- package/es/selectGategory/component.js +6 -6
- package/es/selectGategory/components/ColumnSelection/index.js +3 -3
- package/es/selectThumb/component.js +2 -2
- package/es/uploadBefore/component.js +2 -2
- package/es/utils/tusUpload.js +1 -1
- package/lib/config.js +5 -4
- package/lib/editMetaInfo/components/metaInfoForm.js +82 -80
- package/lib/index.css +14 -5
- package/lib/resourceModal/component.js +5 -5
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +2 -2
- package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -2
- package/lib/resourceModal/components/MediaSelection/index.js +8 -8
- package/lib/resourceModal/style/DocAiMediaSelected.less +2 -3
- package/lib/resourceModal/style/MainContent.less +5 -3
- package/lib/resourceModal/style/ToolbarSearch.less +13 -0
- package/lib/resourceModal/style/index.css +14 -5
- package/lib/selectGategory/component.js +6 -6
- package/lib/selectGategory/components/ColumnSelection/index.js +3 -3
- package/lib/selectThumb/component.js +2 -2
- package/lib/uploadBefore/component.js +2 -2
- package/lib/utils/tusUpload.js +1 -1
- package/package.json +1 -1
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
background: url('../assets/selection/folder.png') no-repeat 13px
|
|
44
44
|
center;
|
|
45
45
|
background-size: 17px auto;
|
|
46
|
-
border: solid
|
|
46
|
+
border: solid 1px transparent;
|
|
47
47
|
border-radius: 4px;
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -74,13 +74,15 @@
|
|
|
74
74
|
padding: 14px 16px;
|
|
75
75
|
line-height: 24px;
|
|
76
76
|
background: #f7f8fa;
|
|
77
|
-
border: 1px solid #ebeef5;
|
|
77
|
+
//border: 1px solid #ebeef5;
|
|
78
|
+
border: 1px solid transparent;
|
|
78
79
|
border-radius: 4px;
|
|
79
80
|
|
|
80
81
|
&:hover {
|
|
81
82
|
color: #165dff;
|
|
82
83
|
background: #f2f3f5;
|
|
83
|
-
|
|
84
|
+
border: 1px solid #4886ff;
|
|
85
|
+
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.1);
|
|
84
86
|
cursor: pointer;
|
|
85
87
|
}
|
|
86
88
|
}
|
|
@@ -14,6 +14,19 @@
|
|
|
14
14
|
width: auto;
|
|
15
15
|
margin-right: 10px;
|
|
16
16
|
}
|
|
17
|
+
|
|
18
|
+
.filter-right {
|
|
19
|
+
.arco-btn-size-medium.arco-btn-only-icon {
|
|
20
|
+
width: 48px;
|
|
21
|
+
color: #2f6ffb;
|
|
22
|
+
background-color: #e8f3ff;
|
|
23
|
+
|
|
24
|
+
&:hover {
|
|
25
|
+
background-color: #d3e6ff;
|
|
26
|
+
//background-color: red;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
17
30
|
}
|
|
18
31
|
}
|
|
19
32
|
}
|
|
@@ -77,11 +77,11 @@
|
|
|
77
77
|
width: 100%;
|
|
78
78
|
height: 100%;
|
|
79
79
|
overflow: hidden;
|
|
80
|
-
border: solid
|
|
80
|
+
border: solid 1px transparent;
|
|
81
81
|
border-radius: 4px;
|
|
82
82
|
}
|
|
83
83
|
.doc-ai-media-selected .arco-scrollbar .doc-ai-media-selected-scrollbar .thumb-list .thumb-wrap .thumb-item .pic.active {
|
|
84
|
-
border: solid
|
|
84
|
+
border: solid 1px #4886ff;
|
|
85
85
|
border-radius: 4px;
|
|
86
86
|
}
|
|
87
87
|
.doc-ai-media-selected .arco-scrollbar .doc-ai-media-selected-scrollbar .thumb-list .thumb-wrap .thumb-item .pic img {
|
|
@@ -106,6 +106,14 @@
|
|
|
106
106
|
width: auto;
|
|
107
107
|
margin-right: 10px;
|
|
108
108
|
}
|
|
109
|
+
.toolbar-search-container .top-container .filter-content .filter-right .arco-btn-size-medium.arco-btn-only-icon {
|
|
110
|
+
width: 48px;
|
|
111
|
+
color: #2f6ffb;
|
|
112
|
+
background-color: #e8f3ff;
|
|
113
|
+
}
|
|
114
|
+
.toolbar-search-container .top-container .filter-content .filter-right .arco-btn-size-medium.arco-btn-only-icon:hover {
|
|
115
|
+
background-color: #d3e6ff;
|
|
116
|
+
}
|
|
109
117
|
.keywordsSelection {
|
|
110
118
|
display: flex;
|
|
111
119
|
justify-content: space-between;
|
|
@@ -164,7 +172,7 @@
|
|
|
164
172
|
font-size: 0;
|
|
165
173
|
background: url('../assets/selection/folder.png') no-repeat 13px center;
|
|
166
174
|
background-size: 17px auto;
|
|
167
|
-
border: solid
|
|
175
|
+
border: solid 1px transparent;
|
|
168
176
|
border-radius: 4px;
|
|
169
177
|
}
|
|
170
178
|
.simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list .folder-item .wrap h4 {
|
|
@@ -191,13 +199,14 @@
|
|
|
191
199
|
padding: 14px 16px;
|
|
192
200
|
line-height: 24px;
|
|
193
201
|
background: #f7f8fa;
|
|
194
|
-
border: 1px solid
|
|
202
|
+
border: 1px solid transparent;
|
|
195
203
|
border-radius: 4px;
|
|
196
204
|
}
|
|
197
205
|
.simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list .folder-more-button .folder-more-wrap:hover {
|
|
198
206
|
color: #165dff;
|
|
199
207
|
background: #f2f3f5;
|
|
200
|
-
|
|
208
|
+
border: 1px solid #4886ff;
|
|
209
|
+
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.1);
|
|
201
210
|
cursor: pointer;
|
|
202
211
|
}
|
|
203
212
|
.simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list {
|
|
@@ -11,7 +11,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
11
11
|
props: {
|
|
12
12
|
repository_id: {},
|
|
13
13
|
visible: { type: Boolean },
|
|
14
|
-
|
|
14
|
+
BASE_API: {},
|
|
15
15
|
columnData: {},
|
|
16
16
|
columnWithData: {}
|
|
17
17
|
},
|
|
@@ -19,7 +19,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
19
19
|
setup(__props, { emit: __emit }) {
|
|
20
20
|
const props = __props;
|
|
21
21
|
const emit = __emit;
|
|
22
|
-
const BASE_API = props.
|
|
22
|
+
const BASE_API = props.BASE_API || config.DEFAULT_BASE_API;
|
|
23
23
|
const selectColumnData = vue.ref(props.columnData || []);
|
|
24
24
|
const selectColumnWithData = vue.ref(props.columnWithData || []);
|
|
25
25
|
const visible = vue.computed({
|
|
@@ -68,8 +68,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
68
68
|
"onUpdate:selectColumnData": _cache[0] || (_cache[0] = ($event) => selectColumnData.value = $event),
|
|
69
69
|
"add-text": "\u8BBE\u7F6E\u53D1\u5E03\u81F3\u680F\u76EE",
|
|
70
70
|
repository_id: _ctx.repository_id,
|
|
71
|
-
|
|
72
|
-
}, null, 8, ["selectColumnData", "repository_id", "
|
|
71
|
+
BASE_API: vue.unref(BASE_API)
|
|
72
|
+
}, null, 8, ["selectColumnData", "repository_id", "BASE_API"]),
|
|
73
73
|
_hoisted_2,
|
|
74
74
|
vue.createVNode(index, {
|
|
75
75
|
selectColumnWithData: selectColumnWithData.value,
|
|
@@ -77,8 +77,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
77
77
|
"add-text": "\u8BBE\u7F6E\u540C\u6B65\u53D1\u5E03\u81F3\u680F\u76EE",
|
|
78
78
|
multiple: true,
|
|
79
79
|
repository_id: _ctx.repository_id,
|
|
80
|
-
|
|
81
|
-
}, null, 8, ["selectColumnWithData", "repository_id", "
|
|
80
|
+
BASE_API: vue.unref(BASE_API)
|
|
81
|
+
}, null, 8, ["selectColumnWithData", "repository_id", "BASE_API"])
|
|
82
82
|
])
|
|
83
83
|
]),
|
|
84
84
|
_: 1
|
|
@@ -20,7 +20,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
20
20
|
...{ name: "selectGategory" },
|
|
21
21
|
__name: "index",
|
|
22
22
|
props: {
|
|
23
|
-
|
|
23
|
+
BASE_API: {},
|
|
24
24
|
repository_id: {},
|
|
25
25
|
selectColumnData: {},
|
|
26
26
|
selectColumnWithData: {},
|
|
@@ -107,7 +107,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
107
107
|
return;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
api.getCategoryPath(props.
|
|
110
|
+
api.getCategoryPath(props.BASE_API, {
|
|
111
111
|
repo: props.repository_id,
|
|
112
112
|
category: data == null ? void 0 : data.id
|
|
113
113
|
}).then((res) => {
|
|
@@ -153,7 +153,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
153
153
|
}
|
|
154
154
|
};
|
|
155
155
|
const getCategoryCategoriesData = async () => {
|
|
156
|
-
const { code, message } = await api.getCategoryCategoriesTree(props.
|
|
156
|
+
const { code, message } = await api.getCategoryCategoriesTree(props.BASE_API, {
|
|
157
157
|
repo_id: props.repository_id
|
|
158
158
|
});
|
|
159
159
|
if (code === 0) {
|
|
@@ -411,9 +411,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
411
411
|
preview: false,
|
|
412
412
|
"catalog-props": "image",
|
|
413
413
|
ai_static_covers: _ctx.aiImages,
|
|
414
|
-
|
|
414
|
+
BASE_API: vue.unref(BASE_API),
|
|
415
415
|
onSubmit: submitCallback
|
|
416
|
-
}, null, 8, ["dialogVisible", "ai_static_covers", "
|
|
416
|
+
}, null, 8, ["dialogVisible", "ai_static_covers", "BASE_API"]),
|
|
417
417
|
vue.createVNode(component$1, {
|
|
418
418
|
visible: dialogCropperShow.value,
|
|
419
419
|
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => dialogCropperShow.value = $event),
|
|
@@ -71,9 +71,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
71
71
|
"onUpdate:visable": _cache[0] || (_cache[0] = ($event) => vue.isRef(visBeforeUpload) ? visBeforeUpload.value = $event : null),
|
|
72
72
|
"file-list": vue.unref(preOptionsList),
|
|
73
73
|
"onUpdate:fileList": _cache[1] || (_cache[1] = ($event) => vue.isRef(preOptionsList) ? preOptionsList.value = $event : null),
|
|
74
|
-
|
|
74
|
+
BASE_API: baseApi.value,
|
|
75
75
|
onConfirm: afterPayload
|
|
76
|
-
}, null, 8, ["visable", "file-list", "
|
|
76
|
+
}, null, 8, ["visable", "file-list", "BASE_API"])
|
|
77
77
|
], 64);
|
|
78
78
|
};
|
|
79
79
|
}
|
package/lib/utils/tusUpload.js
CHANGED
|
@@ -47,7 +47,7 @@ function uploadByTUS(file, progressCallback) {
|
|
|
47
47
|
function uploadConfig(file) {
|
|
48
48
|
const fType = getFileType(file);
|
|
49
49
|
return {
|
|
50
|
-
endpoint: config.DEFAULT_UPLOAD_URL
|
|
50
|
+
endpoint: `${config.DEFAULT_UPLOAD_URL}/upload`,
|
|
51
51
|
chunkSize: config.DEFAULT_UPLOAD_CHUNK_SIZE,
|
|
52
52
|
retryDelays: [0, 1e3, 3e3, 5e3],
|
|
53
53
|
overridePatchMethod: true,
|