@cmstops/pro-compo 0.3.100 → 3.9.0-beta.1
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 +39 -4
- package/dist/index.min.css +1 -1
- package/es/config.js +1 -1
- package/es/editMetaInfo/components/metaInfoForm.js +4 -2
- package/es/hooks/useAttachement.d.ts +26 -7
- package/es/hooks/useAttachement.js +42 -2
- package/es/hooks/usePopper.d.ts +1 -1
- package/es/hooks/usePopper.js +3 -3
- package/es/index.css +39 -4
- package/es/selectResourceModal/__demo__/module/DivWrapper.d.ts +268 -0
- package/es/selectResourceModal/__demo__/module/basic.d.ts +299 -0
- package/es/selectResourceModal/components/List/ListNormal/Filter.js +174 -76
- package/es/selectResourceModal/components/List/ListNormal/index.js +21 -6
- package/es/selectResourceModal/hooks/useResponsiveFilter.d.ts +21 -0
- package/es/selectResourceModal/hooks/useResponsiveFilter.js +142 -0
- package/es/selectResourceModal/scripts/useCompoLf.js +1 -1
- package/es/selectResourceModal/style/index.css +39 -4
- package/es/selectResourceModal/style/index.less +5 -0
- package/es/selectResourceModal/style/list.less +39 -4
- package/es/selectThumb/component.js +57 -3
- package/lib/config.js +1 -1
- package/lib/editMetaInfo/components/metaInfoForm.js +4 -2
- package/lib/hooks/useAttachement.js +42 -0
- package/lib/hooks/usePopper.js +3 -3
- package/lib/index.css +39 -4
- package/lib/selectResourceModal/components/List/ListNormal/Filter.js +171 -73
- package/lib/selectResourceModal/components/List/ListNormal/index.js +20 -5
- package/lib/selectResourceModal/hooks/useResponsiveFilter.js +144 -0
- package/lib/selectResourceModal/scripts/useCompoLf.js +1 -1
- package/lib/selectResourceModal/style/index.css +39 -4
- package/lib/selectResourceModal/style/index.less +5 -0
- package/lib/selectResourceModal/style/list.less +39 -4
- package/lib/selectThumb/component.js +56 -2
- package/package.json +1 -1
|
@@ -177,6 +177,7 @@
|
|
|
177
177
|
}
|
|
178
178
|
.resource-list-footer {
|
|
179
179
|
display: flex;
|
|
180
|
+
flex-wrap: wrap;
|
|
180
181
|
justify-content: space-between;
|
|
181
182
|
padding-bottom: 20px;
|
|
182
183
|
}
|
|
@@ -186,6 +187,10 @@
|
|
|
186
187
|
gap: 10px;
|
|
187
188
|
align-items: center;
|
|
188
189
|
justify-content: flex-end;
|
|
190
|
+
margin-top: 10px;
|
|
191
|
+
}
|
|
192
|
+
.resource-list-footer .footer-right .list-selected-wrapper {
|
|
193
|
+
font-size: 12px;
|
|
189
194
|
}
|
|
190
195
|
.resource-list-content-loading {
|
|
191
196
|
display: flex;
|
|
@@ -197,7 +202,7 @@
|
|
|
197
202
|
.resource-list .list-item-grid {
|
|
198
203
|
display: grid;
|
|
199
204
|
grid-gap: 20px;
|
|
200
|
-
grid-template-columns: repeat(
|
|
205
|
+
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
201
206
|
}
|
|
202
207
|
.resource-list .list-content {
|
|
203
208
|
margin-top: 30px;
|
|
@@ -240,7 +245,8 @@
|
|
|
240
245
|
}
|
|
241
246
|
.resource-list .list-filter-wrapper .list-filter-tags {
|
|
242
247
|
display: flex;
|
|
243
|
-
|
|
248
|
+
flex-wrap: wrap;
|
|
249
|
+
gap: 10px;
|
|
244
250
|
margin-top: 10px;
|
|
245
251
|
}
|
|
246
252
|
.resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag {
|
|
@@ -261,16 +267,41 @@
|
|
|
261
267
|
justify-content: space-between;
|
|
262
268
|
}
|
|
263
269
|
.resource-list .list-filter-wrapper .list-filter .filter-list {
|
|
270
|
+
position: relative;
|
|
271
|
+
/** 给 popup 一个参考 */
|
|
264
272
|
display: flex;
|
|
265
|
-
flex-wrap: wrap;
|
|
266
|
-
gap: 10px;
|
|
267
273
|
}
|
|
268
274
|
.resource-list .list-filter-wrapper .list-filter .filter-list .filter-item {
|
|
269
275
|
width: 100px;
|
|
276
|
+
margin-right: 10px;
|
|
277
|
+
}
|
|
278
|
+
.resource-list .list-filter-wrapper .list-filter .filter-list .arco-trigger-popup {
|
|
279
|
+
z-index: 100000 !important;
|
|
270
280
|
}
|
|
271
281
|
.resource-list .list-filter-wrapper .list-filter .arco-input-prepend {
|
|
272
282
|
padding: 0;
|
|
273
283
|
}
|
|
284
|
+
.resource-list .list-filter-wrapper .list-filter .more-btn {
|
|
285
|
+
position: relative;
|
|
286
|
+
/** 给 poperjs 一个参考 */
|
|
287
|
+
}
|
|
288
|
+
.resource-list .list-filter-wrapper .list-filter .more-btn .filter-pannel {
|
|
289
|
+
inset: 40px auto auto auto !important;
|
|
290
|
+
}
|
|
291
|
+
.resource-list .list-filter-wrapper .filter-extra {
|
|
292
|
+
display: flex;
|
|
293
|
+
gap: 10px;
|
|
294
|
+
}
|
|
295
|
+
.resource-list .list-filter-wrapper .filter-pannel {
|
|
296
|
+
z-index: 100000;
|
|
297
|
+
display: flex;
|
|
298
|
+
flex-direction: column;
|
|
299
|
+
gap: 10px;
|
|
300
|
+
padding: 10px;
|
|
301
|
+
background-color: #fff;
|
|
302
|
+
border-radius: 4px;
|
|
303
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
304
|
+
}
|
|
274
305
|
.resource-list .title {
|
|
275
306
|
display: flex;
|
|
276
307
|
gap: 8px;
|
|
@@ -284,6 +315,10 @@
|
|
|
284
315
|
height: 16px;
|
|
285
316
|
background-color: #4886ff;
|
|
286
317
|
}
|
|
318
|
+
.resource-select-wrap {
|
|
319
|
+
width: 100%;
|
|
320
|
+
height: 100%;
|
|
321
|
+
}
|
|
287
322
|
.resource-select-modal-body {
|
|
288
323
|
height: 80vh;
|
|
289
324
|
padding: 0;
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
&-footer {
|
|
22
22
|
display: flex;
|
|
23
|
+
flex-wrap: wrap;
|
|
23
24
|
justify-content: space-between;
|
|
24
25
|
padding-bottom: 20px;
|
|
25
26
|
|
|
@@ -29,6 +30,11 @@
|
|
|
29
30
|
gap: 10px;
|
|
30
31
|
align-items: center;
|
|
31
32
|
justify-content: flex-end;
|
|
33
|
+
margin-top: 10px;
|
|
34
|
+
|
|
35
|
+
.list-selected-wrapper {
|
|
36
|
+
font-size: 12px;
|
|
37
|
+
}
|
|
32
38
|
}
|
|
33
39
|
}
|
|
34
40
|
|
|
@@ -47,7 +53,7 @@
|
|
|
47
53
|
.list-item-grid {
|
|
48
54
|
display: grid;
|
|
49
55
|
grid-gap: 20px;
|
|
50
|
-
grid-template-columns: repeat(
|
|
56
|
+
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
51
57
|
}
|
|
52
58
|
}
|
|
53
59
|
|
|
@@ -108,7 +114,8 @@
|
|
|
108
114
|
.resource-list .list-filter-wrapper {
|
|
109
115
|
.list-filter-tags {
|
|
110
116
|
display: flex;
|
|
111
|
-
|
|
117
|
+
flex-wrap: wrap;
|
|
118
|
+
gap: 10px;
|
|
112
119
|
margin-top: 10px;
|
|
113
120
|
|
|
114
121
|
.list-filter-tag {
|
|
@@ -133,18 +140,46 @@
|
|
|
133
140
|
justify-content: space-between;
|
|
134
141
|
|
|
135
142
|
.filter-list {
|
|
143
|
+
position: relative; /** 给 popup 一个参考 */
|
|
136
144
|
display: flex;
|
|
137
|
-
flex-wrap: wrap;
|
|
138
|
-
gap: 10px;
|
|
139
145
|
|
|
140
146
|
.filter-item {
|
|
141
147
|
width: 100px;
|
|
148
|
+
margin-right: 10px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.arco-trigger-popup {
|
|
152
|
+
z-index: 100000 !important;
|
|
142
153
|
}
|
|
143
154
|
}
|
|
144
155
|
|
|
145
156
|
.arco-input-prepend {
|
|
146
157
|
padding: 0;
|
|
147
158
|
}
|
|
159
|
+
|
|
160
|
+
.more-btn {
|
|
161
|
+
position: relative; /** 给 poperjs 一个参考 */
|
|
162
|
+
|
|
163
|
+
.filter-pannel {
|
|
164
|
+
inset: 40px auto auto auto !important;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.filter-extra {
|
|
170
|
+
display: flex;
|
|
171
|
+
gap: 10px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.filter-pannel {
|
|
175
|
+
z-index: 100000;
|
|
176
|
+
display: flex;
|
|
177
|
+
flex-direction: column;
|
|
178
|
+
gap: 10px;
|
|
179
|
+
padding: 10px;
|
|
180
|
+
background-color: #fff;
|
|
181
|
+
border-radius: 4px;
|
|
182
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
148
183
|
}
|
|
149
184
|
}
|
|
150
185
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, provide, computed, watch, nextTick, openBlock, createElementBlock, createCommentVNode, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, Fragment, renderList, createBlock, createVNode, unref, withCtx, createTextVNode } from "vue";
|
|
1
|
+
import { defineComponent, ref, provide, computed, watch, nextTick, onMounted, openBlock, createElementBlock, createCommentVNode, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, Fragment, renderList, createBlock, createVNode, unref, withCtx, createTextVNode } from "vue";
|
|
2
2
|
import { RadioGroup, Radio, Switch } from "@arco-design/web-vue";
|
|
3
3
|
import { docThumbObjMap, docThumbArrMap } from "../utils/doc.js";
|
|
4
4
|
import _sfc_main$4 from "../imageCrop/component.js";
|
|
@@ -234,7 +234,6 @@ const _sfc_main = defineComponent({
|
|
|
234
234
|
thumbOptionIndex.value = index;
|
|
235
235
|
};
|
|
236
236
|
const openDialogMediaSelection = (type, index) => {
|
|
237
|
-
console.log(type, index, "dkdk");
|
|
238
237
|
thumbBannerModel.value = type || "thumb";
|
|
239
238
|
thumbOptionIndex.value = index || 0;
|
|
240
239
|
dialogMediaSelectionShow.value = true;
|
|
@@ -271,6 +270,16 @@ const _sfc_main = defineComponent({
|
|
|
271
270
|
temp = [{ url: data[0].url, thumb: data[0].url }];
|
|
272
271
|
}
|
|
273
272
|
styleData.value.data = temp;
|
|
273
|
+
styleData.value.cover_url = data[0].url;
|
|
274
|
+
const getColors = getThemeColor(BASE_API, data[0].url);
|
|
275
|
+
getColors.then((themes) => {
|
|
276
|
+
styleData.value.cover_colorList = JSON.parse(JSON.stringify(themes));
|
|
277
|
+
styleData.value.cover_theme_color = `rgb(${themes[1]})`;
|
|
278
|
+
callback(styleData.value);
|
|
279
|
+
}).catch((e) => {
|
|
280
|
+
styleData.value.banner_theme_color = `rgb(255, 255, 255)`;
|
|
281
|
+
callback(styleData.value);
|
|
282
|
+
});
|
|
274
283
|
} else if (thumbBannerModel.value === "banner") {
|
|
275
284
|
styleData.value.banner_url = data[0].url;
|
|
276
285
|
const getColors = getThemeColor(BASE_API, data[0].url);
|
|
@@ -338,10 +347,13 @@ const _sfc_main = defineComponent({
|
|
|
338
347
|
});
|
|
339
348
|
};
|
|
340
349
|
const modelChange = () => {
|
|
350
|
+
styleData.value.cover_theme_color = "";
|
|
341
351
|
if (!props.dataValue)
|
|
342
352
|
return;
|
|
343
353
|
if (styleData.value.model === oldData.value.model) {
|
|
344
354
|
styleData.value.data = oldData.value.data;
|
|
355
|
+
styleData.value.cover_theme_color = oldData.value.cover_theme_color;
|
|
356
|
+
styleData.value.cover_colorList = oldData.value.cover_colorList;
|
|
345
357
|
} else {
|
|
346
358
|
styleData.value.data = [];
|
|
347
359
|
}
|
|
@@ -354,6 +366,15 @@ const _sfc_main = defineComponent({
|
|
|
354
366
|
},
|
|
355
367
|
set(value) {
|
|
356
368
|
styleData.value.banner_url = value.url;
|
|
369
|
+
styleData.value.cover_colorList = styleData.value.banner_colorList;
|
|
370
|
+
}
|
|
371
|
+
});
|
|
372
|
+
const cover = computed({
|
|
373
|
+
get() {
|
|
374
|
+
const { cover_theme_color } = styleData.value;
|
|
375
|
+
return cover_theme_color;
|
|
376
|
+
},
|
|
377
|
+
set() {
|
|
357
378
|
}
|
|
358
379
|
});
|
|
359
380
|
const hasBanner = computed({
|
|
@@ -366,6 +387,15 @@ const _sfc_main = defineComponent({
|
|
|
366
387
|
callback(styleData.value);
|
|
367
388
|
}
|
|
368
389
|
});
|
|
390
|
+
const hasCover = computed({
|
|
391
|
+
get() {
|
|
392
|
+
return !!cover.value;
|
|
393
|
+
},
|
|
394
|
+
set(value) {
|
|
395
|
+
styleData.value.cover = value;
|
|
396
|
+
callback(styleData.value);
|
|
397
|
+
}
|
|
398
|
+
});
|
|
369
399
|
const pcBanner = computed({
|
|
370
400
|
get() {
|
|
371
401
|
const { pc_banner_url_info, pc_banner_url } = styleData.value;
|
|
@@ -378,6 +408,23 @@ const _sfc_main = defineComponent({
|
|
|
378
408
|
const colorChange = (styleData2) => {
|
|
379
409
|
callback(styleData2);
|
|
380
410
|
};
|
|
411
|
+
onMounted(() => {
|
|
412
|
+
if (!styleData.value.cover_url) {
|
|
413
|
+
setTimeout(() => {
|
|
414
|
+
styleData.value.cover_url = styleData.value.data[0].url;
|
|
415
|
+
const getColors = getThemeColor(BASE_API, styleData.value.data[0].url);
|
|
416
|
+
getColors.then((themes) => {
|
|
417
|
+
styleData.value.cover_colorList = JSON.parse(JSON.stringify(themes));
|
|
418
|
+
styleData.value.cover_theme_color = `rgb(${themes[1]})`;
|
|
419
|
+
oldData.value = JSON.parse(JSON.stringify(styleData.value));
|
|
420
|
+
callback(styleData.value);
|
|
421
|
+
}).catch((e) => {
|
|
422
|
+
styleData.value.banner_theme_color = `rgb(255, 255, 255)`;
|
|
423
|
+
callback(styleData.value);
|
|
424
|
+
});
|
|
425
|
+
}, 700);
|
|
426
|
+
}
|
|
427
|
+
});
|
|
381
428
|
return (_ctx, _cache) => {
|
|
382
429
|
var _a, _b, _c, _d, _e, _f;
|
|
383
430
|
return openBlock(), createElementBlock("div", {
|
|
@@ -470,7 +517,14 @@ const _sfc_main = defineComponent({
|
|
|
470
517
|
]),
|
|
471
518
|
_: 1
|
|
472
519
|
}, 8, ["modelValue"])
|
|
473
|
-
], 64)) : createCommentVNode("v-if", true)
|
|
520
|
+
], 64)) : createCommentVNode("v-if", true),
|
|
521
|
+
hasCover.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
522
|
+
key: 3,
|
|
523
|
+
"style-data": styleData.value,
|
|
524
|
+
model: "cover",
|
|
525
|
+
style: { "margin-top": "10px" },
|
|
526
|
+
onChange: colorChange
|
|
527
|
+
}, null, 8, ["style-data"])) : createCommentVNode("v-if", true)
|
|
474
528
|
])
|
|
475
529
|
], 2),
|
|
476
530
|
_ctx.mode === "doc" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
package/lib/config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
|
-
const DEFAULT_BASE_API = ((_b = (_a = window.situoyun) == null ? void 0 : _a.env) == null ? void 0 : _b.BASE_HOST) || "https://site.cmstop.xyz";
|
|
4
|
+
const DEFAULT_BASE_API = ((_b = (_a = window.situoyun) == null ? void 0 : _a.env) == null ? void 0 : _b.BASE_HOST) || "https://site.r.cmstop.xyz";
|
|
5
5
|
const DEFAULT_BASE_ACCOUNT_HOST = ((_d = (_c = window.situoyun) == null ? void 0 : _c.env) == null ? void 0 : _d.BASE_ACCOUNT_HOST) || "https://account.cmstop.xyz";
|
|
6
6
|
const DEFAULT_UPLOAD_CHUNK_SIZE = ((_f = (_e = window.situoyun) == null ? void 0 : _e.env) == null ? void 0 : _f.UPLOAD_CHUNK_SIZE) || 5242880;
|
|
7
7
|
const DEFAULT_UPLOAD_URL = ((_h = (_g = window.situoyun) == null ? void 0 : _g.env) == null ? void 0 : _h.BASE_STATIC_FILE_API) || "https://oss.cmstop.xyz/maple/v1";
|
|
@@ -49,7 +49,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
49
49
|
brief: "",
|
|
50
50
|
guide: "",
|
|
51
51
|
keywords: [],
|
|
52
|
-
author:
|
|
52
|
+
author: [],
|
|
53
53
|
duty_editor: [],
|
|
54
54
|
extra_attrs: [],
|
|
55
55
|
self_publish_time: "",
|
|
@@ -187,6 +187,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
187
187
|
data.offline_time = data.offline_time && Math.floor(data.offline_time / 1e3);
|
|
188
188
|
data.keywords = data.keywords && data.keywords.join(",");
|
|
189
189
|
data.duty_editor = data.duty_editor && data.duty_editor.join(",");
|
|
190
|
+
data.author = data.author && data.author.join(",");
|
|
190
191
|
data.extra_attrs = data.extra_attrs && data.extra_attrs.join(",");
|
|
191
192
|
data.relation_news = data.relation_news && JSON.stringify(data.relation_news);
|
|
192
193
|
data.comment_available = !!data.comment_available;
|
|
@@ -216,6 +217,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
216
217
|
data.offline_time = data.offline_time && parseInt(data.offline_time, 10) * 1e3 || "";
|
|
217
218
|
data.keywords = data.keywords && data.keywords.split(",") || [];
|
|
218
219
|
data.duty_editor = data.duty_editor && data.duty_editor.split(",") || [];
|
|
220
|
+
data.author = data.author && data.author.split(",") || [];
|
|
219
221
|
data.extra_attrs = data.extra_attrs && data.extra_attrs.split(",") || [];
|
|
220
222
|
data.relation_news = data.relation_news && JSON.parse(data.relation_news) || [];
|
|
221
223
|
data.line_time = !!(data.online_time || data.offline_time);
|
|
@@ -522,7 +524,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
522
524
|
label: "\u4F5C\u8005"
|
|
523
525
|
}, {
|
|
524
526
|
default: vue.withCtx(() => [
|
|
525
|
-
vue.createVNode(vue.unref(webVue.
|
|
527
|
+
vue.createVNode(vue.unref(webVue.InputTag), {
|
|
526
528
|
modelValue: form.value.author,
|
|
527
529
|
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => form.value.author = $event),
|
|
528
530
|
"allow-clear": "",
|
|
@@ -110,9 +110,51 @@ function getSysRsPage(BASE_API, params) {
|
|
|
110
110
|
params
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
|
+
function getDirectory(BASE_API, params) {
|
|
114
|
+
return request(BASE_API, {
|
|
115
|
+
url: "/poplar/v3/directory/tree",
|
|
116
|
+
method: "get",
|
|
117
|
+
params
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
function useDirectory(options) {
|
|
121
|
+
const tree = vue.ref([]);
|
|
122
|
+
async function loadDirTree(parent_id) {
|
|
123
|
+
const params = parent_id ? { parent_id } : {};
|
|
124
|
+
const { code, message } = await getDirectory(options.BASE_API, params);
|
|
125
|
+
if (code === 0) {
|
|
126
|
+
if (!Array.isArray(message.data))
|
|
127
|
+
return [];
|
|
128
|
+
return message.data;
|
|
129
|
+
}
|
|
130
|
+
return [];
|
|
131
|
+
}
|
|
132
|
+
async function init() {
|
|
133
|
+
const result = await loadDirTree();
|
|
134
|
+
if (!Array.isArray(result))
|
|
135
|
+
return;
|
|
136
|
+
tree.value = result;
|
|
137
|
+
}
|
|
138
|
+
async function loadMore(target) {
|
|
139
|
+
const children = await loadDirTree(target.key);
|
|
140
|
+
target.children = children;
|
|
141
|
+
if (children.length === 0)
|
|
142
|
+
target.isLeaf = true;
|
|
143
|
+
}
|
|
144
|
+
vue.onMounted(() => {
|
|
145
|
+
init();
|
|
146
|
+
});
|
|
147
|
+
return {
|
|
148
|
+
tree,
|
|
149
|
+
init,
|
|
150
|
+
loadMore
|
|
151
|
+
};
|
|
152
|
+
}
|
|
113
153
|
exports["default"] = useAttachement;
|
|
114
154
|
exports.getAttachmentsAll = getAttachmentsAll;
|
|
115
155
|
exports.getAttachmentsMy = getAttachmentsMy;
|
|
116
156
|
exports.getAttachmentsMyMessage = getAttachmentsMyMessage;
|
|
157
|
+
exports.getDirectory = getDirectory;
|
|
117
158
|
exports.getSysRsByTag = getSysRsByTag;
|
|
118
159
|
exports.getSysRsPage = getSysRsPage;
|
|
160
|
+
exports.useDirectory = useDirectory;
|
package/lib/hooks/usePopper.js
CHANGED
|
@@ -9,16 +9,16 @@ function usePopper(pannel, triggerEl) {
|
|
|
9
9
|
};
|
|
10
10
|
const show = () => {
|
|
11
11
|
visible.value = true;
|
|
12
|
-
window.onclick = (
|
|
12
|
+
window.onclick = () => {
|
|
13
13
|
hide();
|
|
14
14
|
visible.value = false;
|
|
15
15
|
window.onclick = null;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
const initPopper = (placement = "bottom-start") => {
|
|
18
|
+
const initPopper = (placement = "bottom-start", of) => {
|
|
19
19
|
if (!pannel.value || !triggerEl.value)
|
|
20
20
|
return;
|
|
21
|
-
const offset = [0, 10];
|
|
21
|
+
const offset = of != null ? of : [0, 10];
|
|
22
22
|
if (window.__POWERED_BY_WUJIE__) {
|
|
23
23
|
offset[1] = -54;
|
|
24
24
|
}
|
package/lib/index.css
CHANGED
|
@@ -4534,6 +4534,7 @@
|
|
|
4534
4534
|
}
|
|
4535
4535
|
.resource-list-footer {
|
|
4536
4536
|
display: flex;
|
|
4537
|
+
flex-wrap: wrap;
|
|
4537
4538
|
justify-content: space-between;
|
|
4538
4539
|
padding-bottom: 20px;
|
|
4539
4540
|
}
|
|
@@ -4543,6 +4544,10 @@
|
|
|
4543
4544
|
gap: 10px;
|
|
4544
4545
|
align-items: center;
|
|
4545
4546
|
justify-content: flex-end;
|
|
4547
|
+
margin-top: 10px;
|
|
4548
|
+
}
|
|
4549
|
+
.resource-list-footer .footer-right .list-selected-wrapper {
|
|
4550
|
+
font-size: 12px;
|
|
4546
4551
|
}
|
|
4547
4552
|
.resource-list-content-loading {
|
|
4548
4553
|
display: flex;
|
|
@@ -4554,7 +4559,7 @@
|
|
|
4554
4559
|
.resource-list .list-item-grid {
|
|
4555
4560
|
display: grid;
|
|
4556
4561
|
grid-gap: 20px;
|
|
4557
|
-
grid-template-columns: repeat(
|
|
4562
|
+
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
|
4558
4563
|
}
|
|
4559
4564
|
.resource-list .list-content {
|
|
4560
4565
|
margin-top: 30px;
|
|
@@ -4597,7 +4602,8 @@
|
|
|
4597
4602
|
}
|
|
4598
4603
|
.resource-list .list-filter-wrapper .list-filter-tags {
|
|
4599
4604
|
display: flex;
|
|
4600
|
-
|
|
4605
|
+
flex-wrap: wrap;
|
|
4606
|
+
gap: 10px;
|
|
4601
4607
|
margin-top: 10px;
|
|
4602
4608
|
}
|
|
4603
4609
|
.resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag {
|
|
@@ -4618,16 +4624,41 @@
|
|
|
4618
4624
|
justify-content: space-between;
|
|
4619
4625
|
}
|
|
4620
4626
|
.resource-list .list-filter-wrapper .list-filter .filter-list {
|
|
4627
|
+
position: relative;
|
|
4628
|
+
/** 给 popup 一个参考 */
|
|
4621
4629
|
display: flex;
|
|
4622
|
-
flex-wrap: wrap;
|
|
4623
|
-
gap: 10px;
|
|
4624
4630
|
}
|
|
4625
4631
|
.resource-list .list-filter-wrapper .list-filter .filter-list .filter-item {
|
|
4626
4632
|
width: 100px;
|
|
4633
|
+
margin-right: 10px;
|
|
4634
|
+
}
|
|
4635
|
+
.resource-list .list-filter-wrapper .list-filter .filter-list .arco-trigger-popup {
|
|
4636
|
+
z-index: 100000 !important;
|
|
4627
4637
|
}
|
|
4628
4638
|
.resource-list .list-filter-wrapper .list-filter .arco-input-prepend {
|
|
4629
4639
|
padding: 0;
|
|
4630
4640
|
}
|
|
4641
|
+
.resource-list .list-filter-wrapper .list-filter .more-btn {
|
|
4642
|
+
position: relative;
|
|
4643
|
+
/** 给 poperjs 一个参考 */
|
|
4644
|
+
}
|
|
4645
|
+
.resource-list .list-filter-wrapper .list-filter .more-btn .filter-pannel {
|
|
4646
|
+
inset: 40px auto auto auto !important;
|
|
4647
|
+
}
|
|
4648
|
+
.resource-list .list-filter-wrapper .filter-extra {
|
|
4649
|
+
display: flex;
|
|
4650
|
+
gap: 10px;
|
|
4651
|
+
}
|
|
4652
|
+
.resource-list .list-filter-wrapper .filter-pannel {
|
|
4653
|
+
z-index: 100000;
|
|
4654
|
+
display: flex;
|
|
4655
|
+
flex-direction: column;
|
|
4656
|
+
gap: 10px;
|
|
4657
|
+
padding: 10px;
|
|
4658
|
+
background-color: #fff;
|
|
4659
|
+
border-radius: 4px;
|
|
4660
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
4661
|
+
}
|
|
4631
4662
|
.resource-list .title {
|
|
4632
4663
|
display: flex;
|
|
4633
4664
|
gap: 8px;
|
|
@@ -4641,6 +4672,10 @@
|
|
|
4641
4672
|
height: 16px;
|
|
4642
4673
|
background-color: #4886ff;
|
|
4643
4674
|
}
|
|
4675
|
+
.resource-select-wrap {
|
|
4676
|
+
width: 100%;
|
|
4677
|
+
height: 100%;
|
|
4678
|
+
}
|
|
4644
4679
|
.resource-select-modal-body {
|
|
4645
4680
|
height: 80vh;
|
|
4646
4681
|
padding: 0;
|