@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, onMounted, openBlock, createBlock, unref, withCtx, createVNode, withDirectives, vShow, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString,
|
|
1
|
+
import { defineComponent, ref, computed, watch, onMounted, openBlock, createBlock, unref, withCtx, createVNode, withDirectives, vShow, createElementBlock, Fragment, renderList, createCommentVNode, createTextVNode, toDisplayString, toRaw } from "vue";
|
|
2
2
|
import { Form, FormItem, Input, InputTag, Select, Option, DatePicker, Switch, InputNumber, RadioGroup, Radio, Message } from "@arco-design/web-vue";
|
|
3
3
|
import { IconInfoCircle } from "@arco-design/web-vue/es/icon";
|
|
4
4
|
import { docSeries } from "../../utils/doc.js";
|
|
@@ -158,10 +158,10 @@ const _sfc_main = defineComponent({
|
|
|
158
158
|
data.duty_editor = data.duty_editor && data.duty_editor.join(",");
|
|
159
159
|
data.extra_attrs = data.extra_attrs && data.extra_attrs.join(",");
|
|
160
160
|
data.relation_news = data.relation_news && JSON.stringify(data.relation_news);
|
|
161
|
-
data.comment_available = data.comment_available
|
|
162
|
-
data.statement = data.statement
|
|
163
|
-
data.is_recommend = data.is_recommend
|
|
164
|
-
data.album_status = data.album_status
|
|
161
|
+
data.comment_available = !!data.comment_available;
|
|
162
|
+
data.statement = !!data.statement;
|
|
163
|
+
data.is_recommend = !!data.is_recommend;
|
|
164
|
+
data.album_status = !!data.album_status;
|
|
165
165
|
delete data.line_time;
|
|
166
166
|
delete data.ori_count;
|
|
167
167
|
delete data.aiRelated;
|
|
@@ -239,9 +239,9 @@ const _sfc_main = defineComponent({
|
|
|
239
239
|
return openBlock(), createBlock(unref(Form), {
|
|
240
240
|
ref_key: "metaInfoFormRef",
|
|
241
241
|
ref: metaInfoFormRef,
|
|
242
|
+
model: form.value,
|
|
242
243
|
rules,
|
|
243
|
-
class: "meta-info-form"
|
|
244
|
-
model: form.value
|
|
244
|
+
class: "meta-info-form"
|
|
245
245
|
}, {
|
|
246
246
|
default: withCtx(() => [
|
|
247
247
|
createVNode(unref(FormItem), {
|
|
@@ -253,27 +253,27 @@ const _sfc_main = defineComponent({
|
|
|
253
253
|
createVNode(unref(Input), {
|
|
254
254
|
modelValue: form.value.title,
|
|
255
255
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form.value.title = $event),
|
|
256
|
+
"allow-clear": "",
|
|
256
257
|
class: "input-w",
|
|
257
|
-
placeholder: "\u4E3B\u6807\u9898",
|
|
258
258
|
"max-length": "100",
|
|
259
|
-
|
|
259
|
+
placeholder: "\u4E3B\u6807\u9898"
|
|
260
260
|
}, null, 8, ["modelValue"])
|
|
261
261
|
]),
|
|
262
262
|
_: 1
|
|
263
263
|
}),
|
|
264
264
|
withDirectives(createVNode(unref(FormItem), {
|
|
265
265
|
key: "brief",
|
|
266
|
-
|
|
267
|
-
|
|
266
|
+
label: `${docBrief.value}\u63CF\u8FF0`,
|
|
267
|
+
field: "brief"
|
|
268
268
|
}, {
|
|
269
269
|
default: withCtx(() => [
|
|
270
270
|
createVNode(unref(Input), {
|
|
271
271
|
modelValue: form.value.brief,
|
|
272
272
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form.value.brief = $event),
|
|
273
|
-
class: "input-w",
|
|
274
273
|
placeholder: `\u586B\u5199${docBrief.value}\u63CF\u8FF0`,
|
|
275
|
-
"
|
|
276
|
-
|
|
274
|
+
"allow-clear": "",
|
|
275
|
+
class: "input-w",
|
|
276
|
+
"max-length": "300"
|
|
277
277
|
}, null, 8, ["modelValue", "placeholder"])
|
|
278
278
|
]),
|
|
279
279
|
_: 1
|
|
@@ -282,9 +282,9 @@ const _sfc_main = defineComponent({
|
|
|
282
282
|
]),
|
|
283
283
|
createVNode(unref(FormItem), {
|
|
284
284
|
key: "style",
|
|
285
|
+
"content-class": "style-form-item",
|
|
285
286
|
field: "style",
|
|
286
|
-
"hide-label": ""
|
|
287
|
-
"content-class": "style-form-item"
|
|
287
|
+
"hide-label": ""
|
|
288
288
|
}, {
|
|
289
289
|
default: withCtx(() => [
|
|
290
290
|
createVNode(_sfc_main$1, {
|
|
@@ -307,9 +307,9 @@ const _sfc_main = defineComponent({
|
|
|
307
307
|
createVNode(unref(Input), {
|
|
308
308
|
modelValue: form.value.sub_title,
|
|
309
309
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form.value.sub_title = $event),
|
|
310
|
+
"allow-clear": "",
|
|
310
311
|
class: "input-w",
|
|
311
|
-
placeholder: "\u586B\u5199\u526F\u6807\u9898"
|
|
312
|
-
"allow-clear": ""
|
|
312
|
+
placeholder: "\u586B\u5199\u526F\u6807\u9898"
|
|
313
313
|
}, null, 8, ["modelValue"])
|
|
314
314
|
]),
|
|
315
315
|
_: 1
|
|
@@ -323,9 +323,9 @@ const _sfc_main = defineComponent({
|
|
|
323
323
|
createVNode(unref(Input), {
|
|
324
324
|
modelValue: form.value.head_title,
|
|
325
325
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.value.head_title = $event),
|
|
326
|
+
"allow-clear": "",
|
|
326
327
|
class: "input-w",
|
|
327
|
-
placeholder: "\u586B\u5199\u5F15\u6807\u9898"
|
|
328
|
-
"allow-clear": ""
|
|
328
|
+
placeholder: "\u586B\u5199\u5F15\u6807\u9898"
|
|
329
329
|
}, null, 8, ["modelValue"])
|
|
330
330
|
]),
|
|
331
331
|
_: 1
|
|
@@ -339,9 +339,9 @@ const _sfc_main = defineComponent({
|
|
|
339
339
|
createVNode(unref(Input), {
|
|
340
340
|
modelValue: form.value.summary,
|
|
341
341
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.value.summary = $event),
|
|
342
|
+
"allow-clear": "",
|
|
342
343
|
class: "input-w",
|
|
343
|
-
placeholder: "\u586B\u5199\u6458\u8981"
|
|
344
|
-
"allow-clear": ""
|
|
344
|
+
placeholder: "\u586B\u5199\u6458\u8981"
|
|
345
345
|
}, null, 8, ["modelValue"])
|
|
346
346
|
]),
|
|
347
347
|
_: 1
|
|
@@ -355,9 +355,9 @@ const _sfc_main = defineComponent({
|
|
|
355
355
|
createVNode(unref(Input), {
|
|
356
356
|
modelValue: form.value.guide,
|
|
357
357
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => form.value.guide = $event),
|
|
358
|
+
"allow-clear": "",
|
|
358
359
|
class: "input-w",
|
|
359
|
-
placeholder: "\u586B\u5199\u5BFC\u8BFB"
|
|
360
|
-
"allow-clear": ""
|
|
360
|
+
placeholder: "\u586B\u5199\u5BFC\u8BFB"
|
|
361
361
|
}, null, 8, ["modelValue"])
|
|
362
362
|
]),
|
|
363
363
|
_: 1
|
|
@@ -371,9 +371,9 @@ const _sfc_main = defineComponent({
|
|
|
371
371
|
createVNode(unref(InputTag), {
|
|
372
372
|
modelValue: form.value.keywords,
|
|
373
373
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => form.value.keywords = $event),
|
|
374
|
+
"allow-clear": "",
|
|
374
375
|
class: "input-w",
|
|
375
|
-
placeholder: "\u8BBE\u7F6E\u5173\u952E\u8BCD"
|
|
376
|
-
"allow-clear": ""
|
|
376
|
+
placeholder: "\u8BBE\u7F6E\u5173\u952E\u8BCD"
|
|
377
377
|
}, null, 8, ["modelValue"])
|
|
378
378
|
]),
|
|
379
379
|
_: 1
|
|
@@ -394,9 +394,9 @@ const _sfc_main = defineComponent({
|
|
|
394
394
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(SourceInfo), (item) => {
|
|
395
395
|
return openBlock(), createBlock(unref(Option), {
|
|
396
396
|
key: item.value,
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
}, null, 8, ["
|
|
397
|
+
label: item.value,
|
|
398
|
+
value: item.value
|
|
399
|
+
}, null, 8, ["label", "value"]);
|
|
400
400
|
}), 128))
|
|
401
401
|
]),
|
|
402
402
|
_: 1
|
|
@@ -413,9 +413,9 @@ const _sfc_main = defineComponent({
|
|
|
413
413
|
createVNode(unref(Input), {
|
|
414
414
|
modelValue: form.value.source_url,
|
|
415
415
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => form.value.source_url = $event),
|
|
416
|
+
"allow-clear": "",
|
|
416
417
|
class: "input-w",
|
|
417
|
-
placeholder: "\u586B\u5199\u6765\u6E90URL"
|
|
418
|
-
"allow-clear": ""
|
|
418
|
+
placeholder: "\u586B\u5199\u6765\u6E90URL"
|
|
419
419
|
}, null, 8, ["modelValue"])
|
|
420
420
|
]),
|
|
421
421
|
_: 1
|
|
@@ -429,9 +429,9 @@ const _sfc_main = defineComponent({
|
|
|
429
429
|
createVNode(unref(Input), {
|
|
430
430
|
modelValue: form.value.author,
|
|
431
431
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => form.value.author = $event),
|
|
432
|
+
"allow-clear": "",
|
|
432
433
|
class: "input-w",
|
|
433
|
-
placeholder: "\u586B\u5199\u4F5C\u8005"
|
|
434
|
-
"allow-clear": ""
|
|
434
|
+
placeholder: "\u586B\u5199\u4F5C\u8005"
|
|
435
435
|
}, null, 8, ["modelValue"])
|
|
436
436
|
]),
|
|
437
437
|
_: 1
|
|
@@ -445,17 +445,17 @@ const _sfc_main = defineComponent({
|
|
|
445
445
|
createVNode(unref(Select), {
|
|
446
446
|
modelValue: form.value.duty_editor,
|
|
447
447
|
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => form.value.duty_editor = $event),
|
|
448
|
-
multiple: "",
|
|
449
448
|
class: "input-w",
|
|
449
|
+
multiple: "",
|
|
450
450
|
placeholder: "\u8BBE\u7F6E\u7F16\u8F91"
|
|
451
451
|
}, {
|
|
452
452
|
default: withCtx(() => [
|
|
453
453
|
(openBlock(true), createElementBlock(Fragment, null, renderList(dutyEditorOptions.value, (item) => {
|
|
454
454
|
return openBlock(), createBlock(unref(Option), {
|
|
455
455
|
key: item.value,
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
}, null, 8, ["
|
|
456
|
+
label: item.label,
|
|
457
|
+
value: item.value
|
|
458
|
+
}, null, 8, ["label", "value"]);
|
|
459
459
|
}), 128))
|
|
460
460
|
]),
|
|
461
461
|
_: 1
|
|
@@ -472,9 +472,9 @@ const _sfc_main = defineComponent({
|
|
|
472
472
|
createVNode(unref(InputTag), {
|
|
473
473
|
modelValue: form.value.extra_attrs,
|
|
474
474
|
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => form.value.extra_attrs = $event),
|
|
475
|
+
"allow-clear": "",
|
|
475
476
|
class: "input-w",
|
|
476
|
-
placeholder: "\u8BBE\u7F6E\u81EA\u5B9A\u4E49\u5C5E\u6027"
|
|
477
|
-
"allow-clear": ""
|
|
477
|
+
placeholder: "\u8BBE\u7F6E\u81EA\u5B9A\u4E49\u5C5E\u6027"
|
|
478
478
|
}, null, 8, ["modelValue"])
|
|
479
479
|
]),
|
|
480
480
|
_: 1
|
|
@@ -489,9 +489,9 @@ const _sfc_main = defineComponent({
|
|
|
489
489
|
createVNode(unref(DatePicker), {
|
|
490
490
|
modelValue: form.value.self_publish_time,
|
|
491
491
|
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => form.value.self_publish_time = $event),
|
|
492
|
-
"show-time": "",
|
|
493
|
-
placeholder: "\u9009\u62E9\u81EA\u5B9A\u4E49\u53D1\u5E03\u65F6\u95F4",
|
|
494
492
|
"time-picker-props": { defaultValue: "12:00:00" },
|
|
493
|
+
placeholder: "\u9009\u62E9\u81EA\u5B9A\u4E49\u53D1\u5E03\u65F6\u95F4",
|
|
494
|
+
"show-time": "",
|
|
495
495
|
"value-format": "timestamp"
|
|
496
496
|
}, null, 8, ["modelValue"])
|
|
497
497
|
]),
|
|
@@ -512,44 +512,46 @@ const _sfc_main = defineComponent({
|
|
|
512
512
|
]),
|
|
513
513
|
_: 1
|
|
514
514
|
}),
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
515
|
+
form.value.line_time ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
516
|
+
createVNode(unref(FormItem), {
|
|
517
|
+
key: "online_time",
|
|
518
|
+
class: "horizontal",
|
|
519
|
+
field: "online_time",
|
|
520
|
+
label: "\u4E0A\u7EBF\u65F6\u95F4"
|
|
521
|
+
}, {
|
|
522
|
+
default: withCtx(() => [
|
|
523
|
+
createVNode(unref(DatePicker), {
|
|
524
|
+
modelValue: form.value.online_time,
|
|
525
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => form.value.online_time = $event),
|
|
526
|
+
"disabled-date": disabledStartTime,
|
|
527
|
+
"time-picker-props": { defaultValue: "12:00:00" },
|
|
528
|
+
placeholder: "\u9009\u62E9\u4E0A\u7EBF\u65F6\u95F4",
|
|
529
|
+
"show-time": "",
|
|
530
|
+
"value-format": "timestamp"
|
|
531
|
+
}, null, 8, ["modelValue"])
|
|
532
|
+
]),
|
|
533
|
+
_: 1
|
|
534
|
+
}),
|
|
535
|
+
createVNode(unref(FormItem), {
|
|
536
|
+
key: "offline_time",
|
|
537
|
+
class: "horizontal",
|
|
538
|
+
field: "offline_time",
|
|
539
|
+
label: "\u4E0B\u7EBF\u65F6\u95F4"
|
|
540
|
+
}, {
|
|
541
|
+
default: withCtx(() => [
|
|
542
|
+
createVNode(unref(DatePicker), {
|
|
543
|
+
modelValue: form.value.offline_time,
|
|
544
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => form.value.offline_time = $event),
|
|
545
|
+
"disabled-date": disabledEndTime,
|
|
546
|
+
"time-picker-props": { defaultValue: "12:00:00" },
|
|
547
|
+
placeholder: "\u9009\u62E9\u4E0B\u7EBF\u65F6\u95F4",
|
|
548
|
+
"show-time": "",
|
|
549
|
+
"value-format": "timestamp"
|
|
550
|
+
}, null, 8, ["modelValue"])
|
|
551
|
+
]),
|
|
552
|
+
_: 1
|
|
553
|
+
})
|
|
554
|
+
], 64)) : createCommentVNode("v-if", true),
|
|
553
555
|
createVNode(unref(FormItem), {
|
|
554
556
|
key: "statement",
|
|
555
557
|
class: "horizontal",
|
|
@@ -689,10 +691,10 @@ const _sfc_main = defineComponent({
|
|
|
689
691
|
}, 8, ["modelValue"]),
|
|
690
692
|
form.value.mourn_style == 1 ? (openBlock(), createElementBlock("p", _hoisted_2, [
|
|
691
693
|
createVNode(unref(IconInfoCircle)),
|
|
692
|
-
createTextVNode(toDisplayString(tips.value[0]), 1)
|
|
694
|
+
createTextVNode(" " + toDisplayString(tips.value[0]), 1)
|
|
693
695
|
])) : form.value.mourn_style == 2 ? (openBlock(), createElementBlock("p", _hoisted_3, [
|
|
694
696
|
createVNode(unref(IconInfoCircle)),
|
|
695
|
-
createTextVNode(toDisplayString(tips.value[1]), 1)
|
|
697
|
+
createTextVNode(" " + toDisplayString(tips.value[1]), 1)
|
|
696
698
|
])) : createCommentVNode("v-if", true)
|
|
697
699
|
])) : createCommentVNode("v-if", true)
|
|
698
700
|
]),
|
package/es/index.css
CHANGED
|
@@ -571,11 +571,11 @@
|
|
|
571
571
|
width: 100%;
|
|
572
572
|
height: 100%;
|
|
573
573
|
overflow: hidden;
|
|
574
|
-
border: solid
|
|
574
|
+
border: solid 1px transparent;
|
|
575
575
|
border-radius: 4px;
|
|
576
576
|
}
|
|
577
577
|
.doc-ai-media-selected .arco-scrollbar .doc-ai-media-selected-scrollbar .thumb-list .thumb-wrap .thumb-item .pic.active {
|
|
578
|
-
border: solid
|
|
578
|
+
border: solid 1px #4886ff;
|
|
579
579
|
border-radius: 4px;
|
|
580
580
|
}
|
|
581
581
|
.doc-ai-media-selected .arco-scrollbar .doc-ai-media-selected-scrollbar .thumb-list .thumb-wrap .thumb-item .pic img {
|
|
@@ -600,6 +600,14 @@
|
|
|
600
600
|
width: auto;
|
|
601
601
|
margin-right: 10px;
|
|
602
602
|
}
|
|
603
|
+
.toolbar-search-container .top-container .filter-content .filter-right .arco-btn-size-medium.arco-btn-only-icon {
|
|
604
|
+
width: 48px;
|
|
605
|
+
color: #2f6ffb;
|
|
606
|
+
background-color: #e8f3ff;
|
|
607
|
+
}
|
|
608
|
+
.toolbar-search-container .top-container .filter-content .filter-right .arco-btn-size-medium.arco-btn-only-icon:hover {
|
|
609
|
+
background-color: #d3e6ff;
|
|
610
|
+
}
|
|
603
611
|
.keywordsSelection {
|
|
604
612
|
display: flex;
|
|
605
613
|
justify-content: space-between;
|
|
@@ -658,7 +666,7 @@
|
|
|
658
666
|
font-size: 0;
|
|
659
667
|
background: url('../assets/selection/folder.png') no-repeat 13px center;
|
|
660
668
|
background-size: 17px auto;
|
|
661
|
-
border: solid
|
|
669
|
+
border: solid 1px transparent;
|
|
662
670
|
border-radius: 4px;
|
|
663
671
|
}
|
|
664
672
|
.simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list .folder-item .wrap h4 {
|
|
@@ -685,13 +693,14 @@
|
|
|
685
693
|
padding: 14px 16px;
|
|
686
694
|
line-height: 24px;
|
|
687
695
|
background: #f7f8fa;
|
|
688
|
-
border: 1px solid
|
|
696
|
+
border: 1px solid transparent;
|
|
689
697
|
border-radius: 4px;
|
|
690
698
|
}
|
|
691
699
|
.simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list .folder-more-button .folder-more-wrap:hover {
|
|
692
700
|
color: #165dff;
|
|
693
701
|
background: #f2f3f5;
|
|
694
|
-
|
|
702
|
+
border: 1px solid #4886ff;
|
|
703
|
+
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.1);
|
|
695
704
|
cursor: pointer;
|
|
696
705
|
}
|
|
697
706
|
.simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list {
|
|
@@ -12,7 +12,7 @@ const _sfc_main = defineComponent({
|
|
|
12
12
|
ai_static_covers: {},
|
|
13
13
|
ai_gif_covers: {},
|
|
14
14
|
preview: { type: Boolean },
|
|
15
|
-
|
|
15
|
+
BASE_API: {},
|
|
16
16
|
mediaUseType: {}
|
|
17
17
|
},
|
|
18
18
|
emits: ["update:dialogVisible", "submit"],
|
|
@@ -22,8 +22,8 @@ const _sfc_main = defineComponent({
|
|
|
22
22
|
if (!injectMediaUseType && props.mediaUseType) {
|
|
23
23
|
provide("mediaUseType", props.mediaUseType || mediaUseEnum.THUMB);
|
|
24
24
|
}
|
|
25
|
-
provide("baseAPI", props.
|
|
26
|
-
const BASE_API = props.
|
|
25
|
+
provide("baseAPI", props.BASE_API || DEFAULT_BASE_API);
|
|
26
|
+
const BASE_API = props.BASE_API || DEFAULT_BASE_API;
|
|
27
27
|
const selectedMax = ref(1);
|
|
28
28
|
const emit = __emit;
|
|
29
29
|
const submit = (itemData) => {
|
|
@@ -66,12 +66,12 @@ const _sfc_main = defineComponent({
|
|
|
66
66
|
createVNode(_sfc_main$1, {
|
|
67
67
|
"selected-max": selectedMax.value,
|
|
68
68
|
"catalog-props": _ctx.catalogProps,
|
|
69
|
-
|
|
69
|
+
"b-a-s-e-a-p-i": unref(BASE_API),
|
|
70
70
|
ai_static_covers: _ctx.ai_static_covers,
|
|
71
71
|
ai_gif_covers: _ctx.ai_gif_covers,
|
|
72
72
|
preview: _ctx.preview,
|
|
73
73
|
onConfirm: submit
|
|
74
|
-
}, null, 8, ["selected-max", "catalog-props", "
|
|
74
|
+
}, null, 8, ["selected-max", "catalog-props", "b-a-s-e-a-p-i", "ai_static_covers", "ai_gif_covers", "preview"])
|
|
75
75
|
]),
|
|
76
76
|
_: 1
|
|
77
77
|
}, 8, ["visible"]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, openBlock, createBlock, unref, withCtx, createElementVNode, createCommentVNode, withDirectives, createElementBlock, Fragment, renderList, createVNode, toDisplayString, createTextVNode, vShow, normalizeClass } from "vue";
|
|
2
2
|
import _imports_0 from "../../../assets/selection/null.js";
|
|
3
3
|
import { Scrollbar, Tooltip, Button } from "@arco-design/web-vue";
|
|
4
|
-
import { IconDoubleDown, IconDoubleUp } from "@arco-
|
|
4
|
+
import { IconDoubleDown, IconDoubleUp } from "@arco-iconbox/vue-cmstop-icons";
|
|
5
5
|
import _sfc_main$2 from "../../../../typeIcons/component.js";
|
|
6
6
|
import _sfc_main$1 from "./FileTypeThumb/index.js";
|
|
7
7
|
import { timeFormat } from "../../../script/filter.js";
|
|
@@ -15,7 +15,7 @@ const _sfc_main = defineComponent({
|
|
|
15
15
|
__name: "index",
|
|
16
16
|
props: {
|
|
17
17
|
activeMediaType: {},
|
|
18
|
-
|
|
18
|
+
BASE_API: {}
|
|
19
19
|
},
|
|
20
20
|
emits: ["search"],
|
|
21
21
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -38,7 +38,7 @@ const _sfc_main = defineComponent({
|
|
|
38
38
|
limit: limit.value,
|
|
39
39
|
offset: peopleOptions.value.length
|
|
40
40
|
};
|
|
41
|
-
const res = await getAccountList(props.
|
|
41
|
+
const res = await getAccountList(props.BASE_API, 1, query);
|
|
42
42
|
if (res && res.code !== 0)
|
|
43
43
|
return;
|
|
44
44
|
if (res && res.message) {
|
|
@@ -18,7 +18,7 @@ const _sfc_main = defineComponent({
|
|
|
18
18
|
__name: "index",
|
|
19
19
|
props: {
|
|
20
20
|
selectedMax: {},
|
|
21
|
-
|
|
21
|
+
BASE_API: {},
|
|
22
22
|
catalogProps: {},
|
|
23
23
|
preview: { type: Boolean },
|
|
24
24
|
ai_static_covers: {},
|
|
@@ -120,9 +120,9 @@ const _sfc_main = defineComponent({
|
|
|
120
120
|
query = Object.assign(query, filter.value);
|
|
121
121
|
folderList.value = [];
|
|
122
122
|
}
|
|
123
|
-
const promise = filter.value ? [API(props.
|
|
124
|
-
API(props.
|
|
125
|
-
getDirectories(props.
|
|
123
|
+
const promise = filter.value ? [API(props.BASE_API, query)] : [
|
|
124
|
+
API(props.BASE_API, query),
|
|
125
|
+
getDirectories(props.BASE_API, { parent_id: query.directory_id })
|
|
126
126
|
];
|
|
127
127
|
Promise.all(promise).then((res) => {
|
|
128
128
|
const files = res[0].code === 0 ? res[0].message.data || [] : [];
|
|
@@ -176,7 +176,7 @@ const _sfc_main = defineComponent({
|
|
|
176
176
|
})) : createCommentVNode("v-if", true),
|
|
177
177
|
unref(mediaUseType) ? (openBlock(), createBlock(unref(TabPane), {
|
|
178
178
|
key: "system",
|
|
179
|
-
title: "\u5185\u7F6E\
|
|
179
|
+
title: "\u5185\u7F6E\u7D20\u6750"
|
|
180
180
|
})) : createCommentVNode("v-if", true),
|
|
181
181
|
createVNode(unref(TabPane), {
|
|
182
182
|
key: "all",
|
|
@@ -203,7 +203,7 @@ const _sfc_main = defineComponent({
|
|
|
203
203
|
preview: _ctx.preview,
|
|
204
204
|
onConfirm: confirm
|
|
205
205
|
}, null, 8, ["ai_static_covers", "ai_gif_covers", "selected-max", "preview"])) : activeMediaType.value === "system" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
206
|
-
createCommentVNode(" \u5185\u7F6E\
|
|
206
|
+
createCommentVNode(" \u5185\u7F6E\u7D20\u6750 "),
|
|
207
207
|
createVNode(_sfc_main$2, { onConfirm: confirm })
|
|
208
208
|
], 2112)) : createCommentVNode("v-if", true),
|
|
209
209
|
createCommentVNode(" \u7D20\u6750\u5E93\u7D20\u6750 "),
|
|
@@ -215,7 +215,7 @@ const _sfc_main = defineComponent({
|
|
|
215
215
|
ref: getMoreData,
|
|
216
216
|
class: "tool-search-box",
|
|
217
217
|
"active-media-type": activeMediaType.value,
|
|
218
|
-
|
|
218
|
+
"b-a-s-e-a-p-i": _ctx.BASE_API,
|
|
219
219
|
onSearch: search
|
|
220
220
|
}, {
|
|
221
221
|
other: withCtx(() => [
|
|
@@ -233,7 +233,7 @@ const _sfc_main = defineComponent({
|
|
|
233
233
|
})) : createCommentVNode("v-if", true)
|
|
234
234
|
]),
|
|
235
235
|
_: 1
|
|
236
|
-
}, 8, ["active-media-type", "
|
|
236
|
+
}, 8, ["active-media-type", "b-a-s-e-a-p-i"])
|
|
237
237
|
]),
|
|
238
238
|
breadCrumbs.value.length > 1 ? (openBlock(), createBlock(unref(Breadcrumb), {
|
|
239
239
|
key: 0,
|
|
@@ -5,10 +5,10 @@ export declare function getAttachmentsAll(BASE_API: string, query?: Params): imp
|
|
|
5
5
|
export declare function getAttachmentsMy(BASE_API: string, query?: Params): import("axios").AxiosPromise<any>;
|
|
6
6
|
export declare function getDirectories(BASE_API: string, query?: Params): import("axios").AxiosPromise<any>;
|
|
7
7
|
export declare function getAccountList(BASE_API: string, id: number, query: Params): import("axios").AxiosPromise<any>;
|
|
8
|
-
/** @description
|
|
8
|
+
/** @description 系统内置素材部分接口 --- */
|
|
9
9
|
/**
|
|
10
10
|
* ps:
|
|
11
|
-
* 1.
|
|
11
|
+
* 1. 内置素材分类 type:
|
|
12
12
|
* thumb:稿件素材
|
|
13
13
|
* compoIcon:组件 icon
|
|
14
14
|
* pushIcon:品宣 icon
|
|
@@ -32,12 +32,11 @@
|
|
|
32
32
|
width: 100%;
|
|
33
33
|
height: 100%;
|
|
34
34
|
overflow: hidden;
|
|
35
|
-
|
|
36
|
-
border: solid 3px transparent;
|
|
35
|
+
border: solid 1px transparent;
|
|
37
36
|
border-radius: 4px;
|
|
38
37
|
|
|
39
38
|
&.active {
|
|
40
|
-
border: solid
|
|
39
|
+
border: solid 1px #4886ff;
|
|
41
40
|
border-radius: 4px;
|
|
42
41
|
}
|
|
43
42
|
|
|
@@ -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 {
|