@cmstops/pro-compo 0.3.68 → 0.3.69
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 +125 -79
- package/dist/index.min.css +1 -1
- package/es/baseFilter/component.js +6 -1
- package/es/config.js +1 -1
- package/es/hooks/useAttachement.d.ts +14 -6
- package/es/hooks/useAttachement.js +15 -1
- package/es/hooks/useLocalStorage.d.ts +1 -0
- package/es/hooks/useLocalStorage.js +2 -1
- package/es/index.css +125 -79
- package/es/selectResourceModal/assets/images/sys_load_more.js +2 -0
- package/es/selectResourceModal/component.js +71 -170
- package/es/selectResourceModal/components/{ListCardWrapper/index.js → List/ListCardWrapper.js} +13 -11
- package/es/selectResourceModal/components/List/ListLocal/index.js +92 -0
- package/es/selectResourceModal/components/{ListFilter/index.js → List/ListNormal/Filter.js} +14 -14
- package/es/selectResourceModal/components/List/ListNormal/index.js +77 -0
- package/es/selectResourceModal/components/List/ListSystem/Filter.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListSystem/Filter.js +141 -0
- package/es/selectResourceModal/components/List/ListSystem/SubList.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListSystem/SubList.js +67 -0
- package/es/selectResourceModal/components/List/ListSystem/index.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListSystem/index.js +109 -0
- package/es/selectResourceModal/components/List/ListWraper.d.ts +0 -0
- package/es/selectResourceModal/components/List/ListWraper.js +61 -0
- package/es/selectResourceModal/components/ListTabs/index.js +9 -18
- package/es/selectResourceModal/{components/ListFilter/scripts/api.d.ts → scripts/selectionApis.d.ts} +1 -0
- package/es/selectResourceModal/scripts/selectionApis.js +15 -0
- package/es/selectResourceModal/scripts/useCompoLf.d.ts +21 -0
- package/es/selectResourceModal/scripts/useCompoLf.js +32 -0
- package/es/selectResourceModal/scripts/useResourceSelect.js +7 -3
- package/es/selectResourceModal/scripts/useTabFilter.d.ts +21 -0
- package/es/selectResourceModal/scripts/useTabFilter.js +37 -0
- package/es/selectResourceModal/style/index.css +125 -79
- package/es/selectResourceModal/style/index.less +3 -32
- package/es/selectResourceModal/style/list.less +163 -0
- package/es/selectThumb/component.js +25 -13
- package/es/utils/filter.js +0 -1
- package/lib/baseFilter/component.js +6 -1
- package/lib/config.js +1 -1
- package/lib/hooks/useAttachement.js +16 -0
- package/lib/hooks/useLocalStorage.js +2 -1
- package/lib/index.css +125 -79
- package/lib/selectResourceModal/assets/images/sys_load_more.js +3 -0
- package/lib/selectResourceModal/component.js +71 -170
- package/lib/selectResourceModal/components/{ListCardWrapper/index.js → List/ListCardWrapper.js} +12 -10
- package/lib/selectResourceModal/components/List/ListLocal/index.js +93 -0
- package/lib/selectResourceModal/components/{ListFilter/index.js → List/ListNormal/Filter.js} +15 -15
- package/lib/selectResourceModal/components/List/ListNormal/index.js +78 -0
- package/lib/selectResourceModal/components/List/ListSystem/Filter.js +142 -0
- package/lib/selectResourceModal/components/List/ListSystem/SubList.js +68 -0
- package/lib/selectResourceModal/components/List/ListSystem/index.js +110 -0
- package/lib/selectResourceModal/components/List/ListWraper.js +62 -0
- package/lib/selectResourceModal/components/ListTabs/index.js +8 -17
- package/lib/selectResourceModal/{components/ListFilter/scripts/api.js → scripts/selectionApis.js} +8 -1
- package/lib/selectResourceModal/scripts/useCompoLf.js +33 -0
- package/lib/selectResourceModal/scripts/useResourceSelect.js +7 -3
- package/lib/selectResourceModal/scripts/useTabFilter.js +38 -0
- package/lib/selectResourceModal/style/index.css +125 -79
- package/lib/selectResourceModal/style/index.less +3 -32
- package/lib/selectResourceModal/style/list.less +163 -0
- package/lib/selectThumb/component.js +25 -13
- package/lib/utils/filter.js +0 -1
- package/package.json +1 -1
- package/es/selectResourceModal/components/ListContent/index.js +0 -46
- package/es/selectResourceModal/components/ListContentLocal/index.js +0 -93
- package/es/selectResourceModal/components/ListFilter/scripts/api.js +0 -9
- package/es/selectResourceModal/style/listContent.less +0 -5
- package/es/selectResourceModal/style/listContentLocal.less +0 -26
- package/es/selectResourceModal/style/listFilter.less +0 -41
- package/lib/selectResourceModal/components/ListContent/index.js +0 -47
- package/lib/selectResourceModal/components/ListContentLocal/index.js +0 -94
- package/lib/selectResourceModal/style/listContent.less +0 -5
- package/lib/selectResourceModal/style/listContentLocal.less +0 -26
- package/lib/selectResourceModal/style/listFilter.less +0 -41
- /package/es/selectResourceModal/components/{ListCardWrapper/index.d.ts → List/ListCardWrapper.d.ts} +0 -0
- /package/es/selectResourceModal/components/{ListContentLocal/components → List/ListLocal}/Upload.d.ts +0 -0
- /package/es/selectResourceModal/components/{ListContentLocal/components → List/ListLocal}/Upload.js +0 -0
- /package/es/selectResourceModal/components/{ListContent → List/ListLocal}/index.d.ts +0 -0
- /package/es/selectResourceModal/components/{ListContentLocal/index.d.ts → List/ListNormal/Filter.d.ts} +0 -0
- /package/es/selectResourceModal/components/{ListFilter → List/ListNormal}/index.d.ts +0 -0
- /package/lib/selectResourceModal/components/{ListContentLocal/components → List/ListLocal}/Upload.js +0 -0
package/lib/selectResourceModal/{components/ListFilter/scripts/api.js → scripts/selectionApis.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
var request = require("
|
|
3
|
+
var request = require("../../utils/request.js");
|
|
4
4
|
function getAccountList(BASE_API, id, query) {
|
|
5
5
|
return request(BASE_API, {
|
|
6
6
|
url: `/poplar/v2/accounts/${id}`,
|
|
@@ -8,4 +8,11 @@ function getAccountList(BASE_API, id, query) {
|
|
|
8
8
|
params: query
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
+
function getSysRsClassifyList(BASE_API, sys_tag) {
|
|
12
|
+
return request(BASE_API, {
|
|
13
|
+
url: `/poplar/v3/sys_attachment/scenario_classifies?sys_tag=${sys_tag}`,
|
|
14
|
+
method: "get"
|
|
15
|
+
});
|
|
16
|
+
}
|
|
11
17
|
exports.getAccountList = getAccountList;
|
|
18
|
+
exports.getSysRsClassifyList = getSysRsClassifyList;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var config = require("../../config.js");
|
|
4
|
+
function useCompoentLifycycle(props, emits) {
|
|
5
|
+
const BASE_API = props.BASE_API || config.DEFAULT_BASE_API;
|
|
6
|
+
const wrapProps = vue.computed(() => {
|
|
7
|
+
if (props.wrap === "drawer") {
|
|
8
|
+
return {
|
|
9
|
+
class: "resource-select-drawer",
|
|
10
|
+
header: false,
|
|
11
|
+
width: "1024px",
|
|
12
|
+
footer: false
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
bodyClass: "resource-select-modal-body",
|
|
17
|
+
width: "986px",
|
|
18
|
+
closable: false,
|
|
19
|
+
hideTitle: false,
|
|
20
|
+
footer: false
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
vue.provide("baseAPI", BASE_API);
|
|
24
|
+
vue.provide("filterOptions", vue.computed(() => props.filterOptions));
|
|
25
|
+
vue.provide("userInfo", vue.computed(() => props.userInfo));
|
|
26
|
+
vue.provide("mediaUseType", vue.computed(() => props.mediaUseType));
|
|
27
|
+
return {
|
|
28
|
+
wrapProps,
|
|
29
|
+
close: () => emits("update:visible", false),
|
|
30
|
+
submit: (data) => emits("submit", JSON.parse(JSON.stringify(data)))
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
module.exports = useCompoentLifycycle;
|
|
@@ -3,11 +3,15 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
var vue = require("vue");
|
|
4
4
|
function useResourceSelect(props) {
|
|
5
5
|
const selected = vue.ref([]);
|
|
6
|
-
const selectedKeys = vue.computed(
|
|
6
|
+
const selectedKeys = vue.computed(
|
|
7
|
+
() => selected.value.map((item) => item.id || item.url)
|
|
8
|
+
);
|
|
7
9
|
const disableSelect = vue.computed(() => props.maxcount && selected.value.length >= props.maxcount);
|
|
8
10
|
function handleSelect(params) {
|
|
9
|
-
const { id } = params;
|
|
10
|
-
const index = selected.value.findIndex((item) =>
|
|
11
|
+
const { id, url } = params;
|
|
12
|
+
const index = selected.value.findIndex((item) => {
|
|
13
|
+
return item.id && item.id === id || item.url === url;
|
|
14
|
+
});
|
|
11
15
|
if (index > -1)
|
|
12
16
|
selected.value.splice(index, 1);
|
|
13
17
|
else
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var index = require("../components/List/ListNormal/index.js");
|
|
4
|
+
var index$2 = require("../components/List/ListSystem/index.js");
|
|
5
|
+
var index$1 = require("../components/List/ListLocal/index.js");
|
|
6
|
+
const DEFAULT_TABS = [
|
|
7
|
+
"all",
|
|
8
|
+
"my",
|
|
9
|
+
"remind",
|
|
10
|
+
"local"
|
|
11
|
+
].join(",");
|
|
12
|
+
const TAB_DICT = {
|
|
13
|
+
["all"]: { title: "\u5168\u90E8\u7D20\u6750", component: index, usePage: true },
|
|
14
|
+
["my"]: { title: "\u6211\u7684\u7D20\u6750", component: index, usePage: true },
|
|
15
|
+
["remind"]: { title: "\u63D0\u9192\u6211\u7684", component: index, usePage: true },
|
|
16
|
+
["local"]: { title: "\u672C\u5730\u7D20\u6750", component: index$1, usePage: false },
|
|
17
|
+
["system"]: { title: "\u5185\u7F6E\u7D20\u6750", component: index$2, usePage: false },
|
|
18
|
+
["ai"]: { title: "AI\u4F18\u9009", component: index$2, usePage: false },
|
|
19
|
+
["video"]: { title: "\u89C6\u9891\u5C01\u9762", component: index$2, usePage: false }
|
|
20
|
+
};
|
|
21
|
+
function useTabFilter(props) {
|
|
22
|
+
const activeKey = vue.ref("all");
|
|
23
|
+
const curTab = vue.computed(() => TAB_DICT[activeKey.value]);
|
|
24
|
+
const tabKeyList = vue.computed(() => {
|
|
25
|
+
const keys = (props.tabKeys || DEFAULT_TABS).split(",");
|
|
26
|
+
return keys.map((key) => ({
|
|
27
|
+
key,
|
|
28
|
+
title: TAB_DICT[key].title
|
|
29
|
+
}));
|
|
30
|
+
});
|
|
31
|
+
const activeComponent = vue.computed(() => curTab.value.component);
|
|
32
|
+
return {
|
|
33
|
+
activeKey,
|
|
34
|
+
activeComponent,
|
|
35
|
+
tabKeyList
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
module.exports = useTabFilter;
|
|
@@ -1,40 +1,3 @@
|
|
|
1
|
-
.card-list-wrapper {
|
|
2
|
-
display: grid;
|
|
3
|
-
grid-gap: 20px;
|
|
4
|
-
grid-template-columns: repeat(5, 1fr);
|
|
5
|
-
}
|
|
6
|
-
.list-filter-wrapper .list-filter-tags {
|
|
7
|
-
display: flex;
|
|
8
|
-
justify-content: space-between;
|
|
9
|
-
margin-top: 10px;
|
|
10
|
-
}
|
|
11
|
-
.list-filter-wrapper .list-filter-tags .list-filter-tag {
|
|
12
|
-
padding: 5px 16px;
|
|
13
|
-
border-radius: 15px;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
}
|
|
16
|
-
.list-filter-wrapper .list-filter-tags .list-filter-tag:hover {
|
|
17
|
-
background-color: var(--color-fill-3);
|
|
18
|
-
}
|
|
19
|
-
.list-filter-wrapper .list-filter-tags .list-filter-tag.active {
|
|
20
|
-
color: rgb(var(--primary-6));
|
|
21
|
-
font-weight: bold;
|
|
22
|
-
background: var(--color-fill-2);
|
|
23
|
-
}
|
|
24
|
-
.list-filter-wrapper .list-filter {
|
|
25
|
-
display: flex;
|
|
26
|
-
justify-content: space-between;
|
|
27
|
-
}
|
|
28
|
-
.list-filter-wrapper .list-filter .filter-list {
|
|
29
|
-
display: flex;
|
|
30
|
-
gap: 10px;
|
|
31
|
-
}
|
|
32
|
-
.list-filter-wrapper .list-filter .filter-list .filter-item {
|
|
33
|
-
width: 100px;
|
|
34
|
-
}
|
|
35
|
-
.list-filter-wrapper .list-filter .arco-input-prepend {
|
|
36
|
-
padding: 0;
|
|
37
|
-
}
|
|
38
1
|
.list-panel-wrapper {
|
|
39
2
|
width: 420px;
|
|
40
3
|
padding: 0 !important;
|
|
@@ -115,26 +78,6 @@
|
|
|
115
78
|
white-space: nowrap;
|
|
116
79
|
text-overflow: ellipsis;
|
|
117
80
|
}
|
|
118
|
-
.upload-list-wrapper .list-content {
|
|
119
|
-
margin-top: 30px;
|
|
120
|
-
}
|
|
121
|
-
.upload-list-wrapper .list-content .list-tips {
|
|
122
|
-
margin-bottom: 16px;
|
|
123
|
-
color: #3d3d3d;
|
|
124
|
-
}
|
|
125
|
-
.upload-list-wrapper .upload-wrapper {
|
|
126
|
-
display: flex;
|
|
127
|
-
flex-direction: column;
|
|
128
|
-
}
|
|
129
|
-
.upload-list-wrapper .upload-wrapper .upload-buttons {
|
|
130
|
-
display: flex;
|
|
131
|
-
gap: 20px;
|
|
132
|
-
justify-content: center;
|
|
133
|
-
margin: 20px 0;
|
|
134
|
-
}
|
|
135
|
-
.upload-list-wrapper .upload-wrapper .upload-dragger {
|
|
136
|
-
width: calc(100% - 2px);
|
|
137
|
-
}
|
|
138
81
|
.card-wrapper-image {
|
|
139
82
|
position: relative;
|
|
140
83
|
overflow: hidden;
|
|
@@ -216,8 +159,132 @@
|
|
|
216
159
|
background-color: #165dff;
|
|
217
160
|
border-color: #165dff;
|
|
218
161
|
}
|
|
162
|
+
.resource-list {
|
|
163
|
+
display: flex;
|
|
164
|
+
flex: 1;
|
|
165
|
+
flex-direction: column;
|
|
166
|
+
gap: 10px;
|
|
167
|
+
overflow: hidden;
|
|
168
|
+
}
|
|
169
|
+
.resource-list-content {
|
|
170
|
+
flex: 1;
|
|
171
|
+
overflow: hidden;
|
|
172
|
+
}
|
|
173
|
+
.resource-list-footer,
|
|
174
|
+
.resource-list-header,
|
|
175
|
+
.resource-list-content .arco-scrollbar-container {
|
|
176
|
+
padding: 0 40px;
|
|
177
|
+
}
|
|
178
|
+
.resource-list-footer {
|
|
179
|
+
display: flex;
|
|
180
|
+
justify-content: space-between;
|
|
181
|
+
padding-bottom: 10px;
|
|
182
|
+
}
|
|
183
|
+
.resource-list-footer .footer-right {
|
|
184
|
+
display: flex;
|
|
185
|
+
flex: 1;
|
|
186
|
+
gap: 10px;
|
|
187
|
+
align-items: center;
|
|
188
|
+
justify-content: flex-end;
|
|
189
|
+
}
|
|
190
|
+
.resource-list-content-loading {
|
|
191
|
+
display: flex;
|
|
192
|
+
align-items: center;
|
|
193
|
+
justify-content: center;
|
|
194
|
+
width: 100%;
|
|
195
|
+
height: 100%;
|
|
196
|
+
}
|
|
197
|
+
.resource-list .list-item-grid {
|
|
198
|
+
display: grid;
|
|
199
|
+
grid-gap: 20px;
|
|
200
|
+
grid-template-columns: repeat(5, 1fr);
|
|
201
|
+
}
|
|
202
|
+
.resource-list .list-content {
|
|
203
|
+
margin-top: 30px;
|
|
204
|
+
}
|
|
205
|
+
.resource-list .list-content .list-tips {
|
|
206
|
+
margin-bottom: 16px;
|
|
207
|
+
color: #3d3d3d;
|
|
208
|
+
}
|
|
209
|
+
.resource-list .upload-wrapper {
|
|
210
|
+
display: flex;
|
|
211
|
+
flex-direction: column;
|
|
212
|
+
}
|
|
213
|
+
.resource-list .upload-wrapper .upload-buttons {
|
|
214
|
+
display: flex;
|
|
215
|
+
gap: 20px;
|
|
216
|
+
justify-content: center;
|
|
217
|
+
margin: 20px 0;
|
|
218
|
+
}
|
|
219
|
+
.resource-list .upload-wrapper .upload-dragger {
|
|
220
|
+
width: calc(100% - 2px);
|
|
221
|
+
}
|
|
222
|
+
.resource-list .scen-module {
|
|
223
|
+
margin-bottom: 20px;
|
|
224
|
+
}
|
|
225
|
+
.resource-list .scen-module .title {
|
|
226
|
+
display: flex;
|
|
227
|
+
gap: 8px;
|
|
228
|
+
align-items: center;
|
|
229
|
+
margin-bottom: 20px;
|
|
230
|
+
font-weight: bold;
|
|
231
|
+
font-size: 16px;
|
|
232
|
+
}
|
|
233
|
+
.resource-list .scen-module .title .line {
|
|
234
|
+
width: 3px;
|
|
235
|
+
height: 16px;
|
|
236
|
+
background-color: #4886ff;
|
|
237
|
+
}
|
|
238
|
+
.resource-list .item-load-more {
|
|
239
|
+
display: flex;
|
|
240
|
+
flex-direction: column;
|
|
241
|
+
gap: 10px;
|
|
242
|
+
align-items: center;
|
|
243
|
+
justify-content: center;
|
|
244
|
+
width: 100%;
|
|
245
|
+
overflow: hidden;
|
|
246
|
+
color: #9a9a9a;
|
|
247
|
+
font-size: 12px;
|
|
248
|
+
cursor: pointer;
|
|
249
|
+
aspect-ratio: 4 / 3;
|
|
250
|
+
}
|
|
251
|
+
.resource-list .item-load-more img {
|
|
252
|
+
height: calc(100% - 40px);
|
|
253
|
+
}
|
|
254
|
+
.resource-list .list-filter-wrapper .list-filter-tags {
|
|
255
|
+
display: flex;
|
|
256
|
+
justify-content: space-between;
|
|
257
|
+
margin-top: 10px;
|
|
258
|
+
}
|
|
259
|
+
.resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag {
|
|
260
|
+
padding: 5px 16px;
|
|
261
|
+
border-radius: 15px;
|
|
262
|
+
cursor: pointer;
|
|
263
|
+
}
|
|
264
|
+
.resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag:hover {
|
|
265
|
+
background-color: var(--color-fill-3);
|
|
266
|
+
}
|
|
267
|
+
.resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag.active {
|
|
268
|
+
color: rgb(var(--primary-6));
|
|
269
|
+
font-weight: bold;
|
|
270
|
+
background: var(--color-fill-2);
|
|
271
|
+
}
|
|
272
|
+
.resource-list .list-filter-wrapper .list-filter {
|
|
273
|
+
display: flex;
|
|
274
|
+
justify-content: space-between;
|
|
275
|
+
}
|
|
276
|
+
.resource-list .list-filter-wrapper .list-filter .filter-list {
|
|
277
|
+
display: flex;
|
|
278
|
+
gap: 10px;
|
|
279
|
+
}
|
|
280
|
+
.resource-list .list-filter-wrapper .list-filter .filter-list .filter-item {
|
|
281
|
+
width: 100px;
|
|
282
|
+
}
|
|
283
|
+
.resource-list .list-filter-wrapper .list-filter .arco-input-prepend {
|
|
284
|
+
padding: 0;
|
|
285
|
+
}
|
|
219
286
|
.resource-select-modal-body {
|
|
220
|
-
height:
|
|
287
|
+
height: 80vh;
|
|
221
288
|
padding: 0;
|
|
222
289
|
}
|
|
223
290
|
.resource-select-main {
|
|
@@ -235,13 +302,6 @@
|
|
|
235
302
|
box-sizing: border-box;
|
|
236
303
|
height: 100%;
|
|
237
304
|
}
|
|
238
|
-
.resource-select-container .resource-select-filter,
|
|
239
|
-
.resource-select-container .resource-select-footer {
|
|
240
|
-
padding: 0 40px;
|
|
241
|
-
}
|
|
242
|
-
.resource-select-container .resource-select-content .arco-scrollbar-container {
|
|
243
|
-
padding: 0 40px;
|
|
244
|
-
}
|
|
245
305
|
.resource-select-container .resource-select-header {
|
|
246
306
|
padding: 10px 24px 0 24px;
|
|
247
307
|
}
|
|
@@ -251,17 +311,3 @@
|
|
|
251
311
|
.resource-select-container .resource-select-header .arco-tabs-content {
|
|
252
312
|
display: none !important;
|
|
253
313
|
}
|
|
254
|
-
.resource-select-container .resource-select-content {
|
|
255
|
-
flex: 1;
|
|
256
|
-
overflow: hidden;
|
|
257
|
-
}
|
|
258
|
-
.resource-select-container .resource-select-footer {
|
|
259
|
-
display: flex;
|
|
260
|
-
justify-content: space-between;
|
|
261
|
-
padding-bottom: 10px;
|
|
262
|
-
}
|
|
263
|
-
.resource-select-container .resource-select-footer .footer-right {
|
|
264
|
-
display: flex;
|
|
265
|
-
gap: 10px;
|
|
266
|
-
align-items: center;
|
|
267
|
-
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
@import './listContent.less';
|
|
2
|
-
@import './listFilter.less';
|
|
3
1
|
@import './listSelected.less';
|
|
4
|
-
@import './listContentLocal.less';
|
|
5
2
|
@import './listCardWrapper.less';
|
|
3
|
+
@import './list.less';
|
|
6
4
|
|
|
7
5
|
.resource-select-modal-body {
|
|
8
|
-
height:
|
|
6
|
+
height: 80vh;
|
|
9
7
|
padding: 0;
|
|
10
8
|
}
|
|
11
9
|
|
|
@@ -28,17 +26,7 @@
|
|
|
28
26
|
box-sizing: border-box;
|
|
29
27
|
height: 100%;
|
|
30
28
|
|
|
31
|
-
|
|
32
|
-
.resource-select-footer {
|
|
33
|
-
padding: 0 40px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.resource-select-content {
|
|
37
|
-
.arco-scrollbar-container {
|
|
38
|
-
padding: 0 40px;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
29
|
+
// 头部 tab 样式
|
|
42
30
|
.resource-select-header {
|
|
43
31
|
padding: 10px 24px 0 24px;
|
|
44
32
|
|
|
@@ -50,21 +38,4 @@
|
|
|
50
38
|
display: none !important;
|
|
51
39
|
}
|
|
52
40
|
}
|
|
53
|
-
|
|
54
|
-
.resource-select-content {
|
|
55
|
-
flex: 1;
|
|
56
|
-
overflow: hidden;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.resource-select-footer {
|
|
60
|
-
display: flex;
|
|
61
|
-
justify-content: space-between;
|
|
62
|
-
padding-bottom: 10px;
|
|
63
|
-
|
|
64
|
-
.footer-right {
|
|
65
|
-
display: flex;
|
|
66
|
-
gap: 10px;
|
|
67
|
-
align-items: center;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
41
|
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
// 基础列表 layout 样式
|
|
2
|
+
.resource-list {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex: 1;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
gap: 10px;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
|
|
9
|
+
// 整体布局结构
|
|
10
|
+
&-content {
|
|
11
|
+
flex: 1;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&-footer,
|
|
16
|
+
&-header,
|
|
17
|
+
&-content .arco-scrollbar-container {
|
|
18
|
+
padding: 0 40px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&-footer {
|
|
22
|
+
display: flex;
|
|
23
|
+
justify-content: space-between;
|
|
24
|
+
padding-bottom: 10px;
|
|
25
|
+
|
|
26
|
+
.footer-right {
|
|
27
|
+
display: flex;
|
|
28
|
+
flex: 1;
|
|
29
|
+
gap: 10px;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: flex-end;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// 处理空数据 & 加载中样式
|
|
36
|
+
&-content {
|
|
37
|
+
&-loading {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
width: 100%;
|
|
42
|
+
height: 100%;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// 所有的卡片 grid 布局
|
|
47
|
+
.list-item-grid {
|
|
48
|
+
display: grid;
|
|
49
|
+
grid-gap: 20px;
|
|
50
|
+
grid-template-columns: repeat(5, 1fr);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// 衍生列表一:本地上传页面样式
|
|
55
|
+
.resource-list {
|
|
56
|
+
.list-content {
|
|
57
|
+
margin-top: 30px;
|
|
58
|
+
|
|
59
|
+
.list-tips {
|
|
60
|
+
margin-bottom: 16px;
|
|
61
|
+
color: #3d3d3d;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.upload-wrapper {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
|
|
69
|
+
.upload-buttons {
|
|
70
|
+
display: flex;
|
|
71
|
+
gap: 20px;
|
|
72
|
+
justify-content: center;
|
|
73
|
+
margin: 20px 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.upload-dragger {
|
|
77
|
+
width: calc(100% - 2px);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// 衍生列表二:内置素材
|
|
83
|
+
.resource-list {
|
|
84
|
+
.scen-module {
|
|
85
|
+
margin-bottom: 20px;
|
|
86
|
+
|
|
87
|
+
.title {
|
|
88
|
+
display: flex;
|
|
89
|
+
gap: 8px;
|
|
90
|
+
align-items: center;
|
|
91
|
+
margin-bottom: 20px;
|
|
92
|
+
font-weight: bold;
|
|
93
|
+
font-size: 16px;
|
|
94
|
+
|
|
95
|
+
.line {
|
|
96
|
+
width: 3px;
|
|
97
|
+
height: 16px;
|
|
98
|
+
background-color: #4886ff;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.item-load-more {
|
|
104
|
+
display: flex;
|
|
105
|
+
flex-direction: column;
|
|
106
|
+
gap: 10px;
|
|
107
|
+
align-items: center;
|
|
108
|
+
justify-content: center;
|
|
109
|
+
width: 100%;
|
|
110
|
+
overflow: hidden;
|
|
111
|
+
color: #9a9a9a;
|
|
112
|
+
font-size: 12px;
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
aspect-ratio: 4 / 3;
|
|
115
|
+
|
|
116
|
+
img {
|
|
117
|
+
height: calc(100% - 40px);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// 列表筛选样式
|
|
123
|
+
.resource-list .list-filter-wrapper {
|
|
124
|
+
.list-filter-tags {
|
|
125
|
+
display: flex;
|
|
126
|
+
justify-content: space-between;
|
|
127
|
+
margin-top: 10px;
|
|
128
|
+
|
|
129
|
+
.list-filter-tag {
|
|
130
|
+
padding: 5px 16px;
|
|
131
|
+
border-radius: 15px;
|
|
132
|
+
cursor: pointer;
|
|
133
|
+
|
|
134
|
+
&:hover {
|
|
135
|
+
background-color: var(--color-fill-3);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&.active {
|
|
139
|
+
color: rgb(var(--primary-6));
|
|
140
|
+
font-weight: bold;
|
|
141
|
+
background: var(--color-fill-2);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.list-filter {
|
|
147
|
+
display: flex;
|
|
148
|
+
justify-content: space-between;
|
|
149
|
+
|
|
150
|
+
.filter-list {
|
|
151
|
+
display: flex;
|
|
152
|
+
gap: 10px;
|
|
153
|
+
|
|
154
|
+
.filter-item {
|
|
155
|
+
width: 100px;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.arco-input-prepend {
|
|
160
|
+
padding: 0;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
var vue = require("vue");
|
|
3
3
|
var webVue = require("@arco-design/web-vue");
|
|
4
4
|
var doc = require("../utils/doc.js");
|
|
5
|
-
var component = require("../resourceModal/component.js");
|
|
6
5
|
var component$1 = require("../imageCrop/component.js");
|
|
7
6
|
var card = require("./components/card.js");
|
|
8
7
|
var colorPalette = require("./components/colorPalette.js");
|
|
9
8
|
var config = require("../config.js");
|
|
10
9
|
var index = require("../utils/index.js");
|
|
10
|
+
var component = require("../selectResourceModal/component.js");
|
|
11
11
|
const _hoisted_1 = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "star"
|
|
@@ -244,6 +244,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
244
244
|
thumbOptionIndex.value = index2;
|
|
245
245
|
};
|
|
246
246
|
const openDialogMediaSelection = (type, index2) => {
|
|
247
|
+
console.log(type, index2, "dkdk");
|
|
247
248
|
thumbBannerModel.value = type || "thumb";
|
|
248
249
|
thumbOptionIndex.value = index2 || 0;
|
|
249
250
|
dialogMediaSelectionShow.value = true;
|
|
@@ -572,20 +573,31 @@ const _sfc_main = vue.defineComponent({
|
|
|
572
573
|
])
|
|
573
574
|
], 2)
|
|
574
575
|
], 64)) : vue.createCommentVNode("v-if", true),
|
|
575
|
-
vue.
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
576
|
+
vue.createCommentVNode(" 2024.9.2 dyz\uFF1A\u5F03\u7528\u65E7\u5F39\u7A97 "),
|
|
577
|
+
vue.createCommentVNode(` <resourceModal
|
|
578
|
+
v-model:dialogVisible="dialogMediaSelectionShow"
|
|
579
|
+
:preview="false"
|
|
580
|
+
catalog-props="image"
|
|
581
|
+
:ai_static_covers="aiImages"
|
|
582
|
+
:BASE_API="BASE_API"
|
|
583
|
+
@submit="submitCallback"
|
|
584
|
+
@upload="(cb) => $emit('upload', cb)"
|
|
585
|
+
/> `),
|
|
586
|
+
vue.createCommentVNode(" 2024.9.2 dyz\uFF1A\u4F7F\u7528\u65E7\u5F39\u7A97 "),
|
|
587
|
+
dialogMediaSelectionShow.value ? (vue.openBlock(), vue.createBlock(component, {
|
|
586
588
|
key: 1,
|
|
589
|
+
visible: dialogMediaSelectionShow.value,
|
|
590
|
+
"onUpdate:visible": _cache[9] || (_cache[9] = ($event) => dialogMediaSelectionShow.value = $event),
|
|
591
|
+
maxcount: 1,
|
|
592
|
+
userInfo: { domain_id: 1, repository_id: 4 },
|
|
593
|
+
filterOptions: { mediaType: "image", mediaTypeStrict: true },
|
|
594
|
+
wrap: "modal",
|
|
595
|
+
onSubmit: submitCallback
|
|
596
|
+
}, null, 8, ["visible"])) : vue.createCommentVNode("v-if", true),
|
|
597
|
+
refreshCrop.value ? (vue.openBlock(), vue.createBlock(component$1, {
|
|
598
|
+
key: 2,
|
|
587
599
|
visible: dialogCropperShow.value,
|
|
588
|
-
"onUpdate:visible": _cache[
|
|
600
|
+
"onUpdate:visible": _cache[10] || (_cache[10] = ($event) => dialogCropperShow.value = $event),
|
|
589
601
|
"aspect-ratio-prop": aspectRatioProp.value,
|
|
590
602
|
BASE_API: vue.unref(BASE_API),
|
|
591
603
|
"corp-data": cropperData.value,
|
package/lib/utils/filter.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
var vue = require("vue");
|
|
4
4
|
const rateOptions = vue.ref([
|
|
5
|
-
{ label: "\u5168\u90E8\u6BD4\u4F8B", value: "" },
|
|
6
5
|
{ label: "16:9", value: "16:9" },
|
|
7
6
|
{ label: "4:3", value: "4:3" },
|
|
8
7
|
{ label: "4:1", value: "4:1" },
|
package/package.json
CHANGED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, Fragment, renderList, createBlock, createCommentVNode, unref } from "vue";
|
|
2
|
-
import { Spin } from "@arco-design/web-vue";
|
|
3
|
-
import emptyData from "../../../emptyData/index.js";
|
|
4
|
-
import _sfc_main$1 from "../ListCardWrapper/index.js";
|
|
5
|
-
const _hoisted_1 = { class: "card-list-wrapper" };
|
|
6
|
-
const _sfc_main = defineComponent({
|
|
7
|
-
__name: "index",
|
|
8
|
-
props: {
|
|
9
|
-
loading: { type: Boolean },
|
|
10
|
-
list: {},
|
|
11
|
-
selectKeys: {},
|
|
12
|
-
disable: { type: Boolean }
|
|
13
|
-
},
|
|
14
|
-
emits: ["select", "select-one"],
|
|
15
|
-
setup(__props, { emit: __emit }) {
|
|
16
|
-
const emits = __emit;
|
|
17
|
-
function handleOptions(e) {
|
|
18
|
-
emits(e.key, e.item);
|
|
19
|
-
}
|
|
20
|
-
return (_ctx, _cache) => {
|
|
21
|
-
var _a, _b;
|
|
22
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
23
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.list, (item) => {
|
|
24
|
-
return openBlock(), createBlock(_sfc_main$1, {
|
|
25
|
-
key: item.id,
|
|
26
|
-
item,
|
|
27
|
-
"select-keys": _ctx.selectKeys,
|
|
28
|
-
disable: _ctx.disable,
|
|
29
|
-
onSelect: () => emits("select", item),
|
|
30
|
-
onOptions: handleOptions
|
|
31
|
-
}, null, 8, ["item", "select-keys", "disable", "onSelect"]);
|
|
32
|
-
}), 128)),
|
|
33
|
-
createCommentVNode(" \u7A7A\u72B6\u6001 "),
|
|
34
|
-
((_a = _ctx.list) == null ? void 0 : _a.length) === 0 && _ctx.loading ? (openBlock(), createBlock(unref(Spin), {
|
|
35
|
-
key: 0,
|
|
36
|
-
loading: true
|
|
37
|
-
})) : !((_b = _ctx.list) == null ? void 0 : _b.length) ? (openBlock(), createBlock(unref(emptyData), {
|
|
38
|
-
key: 1,
|
|
39
|
-
type: "empty",
|
|
40
|
-
customTip: "\u6682\u65E0\u6570\u636E"
|
|
41
|
-
})) : createCommentVNode("v-if", true)
|
|
42
|
-
]);
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
export { _sfc_main as default };
|