@cmstops/pro-compo 0.1.31 → 0.1.33
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 +190 -15
- package/dist/index.min.css +1 -1
- package/es/contentModal/component.js +35 -35
- package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +53 -22
- package/es/contentModal/components/ViewAllColumn/columnTree/index.js +67 -18
- package/es/contentModal/components/ViewAllColumn/index.js +91 -44
- package/es/contentModal/components/storeBox/index.js +6 -6
- package/es/contentModal/images/pic-thumb.js +2 -0
- package/es/contentModal/style/MediaFilter.less +35 -5
- package/es/contentModal/style/ViewAllColumn.less +11 -0
- package/es/contentModal/style/columnTree.less +25 -5
- package/es/contentModal/style/index.css +56 -11
- package/es/contentModal/style/storeBox.less +16 -6
- package/es/editMetaInfo/components/metaInfoForm.js +84 -81
- package/es/index.css +190 -15
- package/es/resourceModal/assets/images/sys_load_more.js +2 -0
- package/es/resourceModal/component.js +9 -2
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +1 -1
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +139 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +103 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.d.ts +0 -0
- package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +103 -0
- package/es/resourceModal/components/MediaSelection/index.js +16 -7
- package/es/resourceModal/script/api.d.ts +17 -0
- package/es/resourceModal/script/api.js +21 -1
- package/es/resourceModal/script/mediaSelection.d.ts +4 -0
- package/es/resourceModal/script/mediaSelection.js +8 -0
- package/es/resourceModal/style/DocAiMediaSelected.less +2 -3
- package/es/resourceModal/style/MainContent.less +5 -3
- package/es/resourceModal/style/SystemResourceSelected.less +138 -0
- package/es/resourceModal/style/ToolbarSearch.less +13 -0
- package/es/resourceModal/style/index.css +135 -5
- package/es/resourceModal/style/index.less +1 -0
- package/es/selectThumb/component.js +6 -2
- package/lib/contentModal/component.js +35 -35
- package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +51 -20
- package/lib/contentModal/components/ViewAllColumn/columnTree/index.js +65 -16
- package/lib/contentModal/components/ViewAllColumn/index.js +90 -43
- package/lib/contentModal/components/storeBox/index.js +6 -6
- package/lib/contentModal/images/pic-thumb.js +3 -0
- package/lib/contentModal/style/MediaFilter.less +35 -5
- package/lib/contentModal/style/ViewAllColumn.less +11 -0
- package/lib/contentModal/style/columnTree.less +25 -5
- package/lib/contentModal/style/index.css +56 -11
- package/lib/contentModal/style/storeBox.less +16 -6
- package/lib/editMetaInfo/components/metaInfoForm.js +83 -80
- package/lib/index.css +190 -15
- package/lib/resourceModal/assets/images/sys_load_more.js +3 -0
- package/lib/resourceModal/component.js +8 -1
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +2 -2
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +140 -0
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +104 -0
- package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +104 -0
- package/lib/resourceModal/components/MediaSelection/index.js +15 -6
- package/lib/resourceModal/script/api.js +23 -0
- package/lib/resourceModal/script/mediaSelection.js +10 -0
- package/lib/resourceModal/style/DocAiMediaSelected.less +2 -3
- package/lib/resourceModal/style/MainContent.less +5 -3
- package/lib/resourceModal/style/SystemResourceSelected.less +138 -0
- package/lib/resourceModal/style/ToolbarSearch.less +13 -0
- package/lib/resourceModal/style/index.css +135 -5
- package/lib/resourceModal/style/index.less +1 -0
- package/lib/selectThumb/component.js +5 -1
- package/package.json +1 -1
|
@@ -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 {
|
|
@@ -521,6 +530,127 @@
|
|
|
521
530
|
color: #fff;
|
|
522
531
|
font-size: 18px;
|
|
523
532
|
}
|
|
533
|
+
.sys-resource-dialog {
|
|
534
|
+
padding: 10px 20px;
|
|
535
|
+
}
|
|
536
|
+
.sys-resource-dialog .scen-module {
|
|
537
|
+
margin-bottom: 20px;
|
|
538
|
+
}
|
|
539
|
+
.sys-resource-dialog .scen-module .title {
|
|
540
|
+
display: flex;
|
|
541
|
+
gap: 8px;
|
|
542
|
+
align-items: center;
|
|
543
|
+
margin-bottom: 12px;
|
|
544
|
+
font-size: 14px;
|
|
545
|
+
}
|
|
546
|
+
.sys-resource-dialog .scen-module .title .line {
|
|
547
|
+
width: 2px;
|
|
548
|
+
height: 14px;
|
|
549
|
+
background-color: #4886ff;
|
|
550
|
+
}
|
|
551
|
+
.sys-resource-dialog .null-file {
|
|
552
|
+
display: flex;
|
|
553
|
+
flex-direction: column;
|
|
554
|
+
justify-content: center;
|
|
555
|
+
height: 300px;
|
|
556
|
+
}
|
|
557
|
+
.sys-resource-dialog .null-file .null-pic {
|
|
558
|
+
display: block;
|
|
559
|
+
width: 10%;
|
|
560
|
+
margin: 20px auto;
|
|
561
|
+
}
|
|
562
|
+
.sys-resource-dialog .null-file p {
|
|
563
|
+
color: #a2a3a7;
|
|
564
|
+
font-size: 14px;
|
|
565
|
+
text-align: center;
|
|
566
|
+
}
|
|
567
|
+
.sysfile-filter-container {
|
|
568
|
+
padding: 12px 0;
|
|
569
|
+
}
|
|
570
|
+
.sys-res-file-list {
|
|
571
|
+
display: flex;
|
|
572
|
+
flex-wrap: wrap;
|
|
573
|
+
gap: 20px;
|
|
574
|
+
}
|
|
575
|
+
.sys-res-file-list .item-load-more {
|
|
576
|
+
display: flex;
|
|
577
|
+
flex-direction: column;
|
|
578
|
+
gap: 10px;
|
|
579
|
+
align-items: center;
|
|
580
|
+
justify-content: center;
|
|
581
|
+
color: #9a9a9a;
|
|
582
|
+
font-size: 12px;
|
|
583
|
+
cursor: pointer;
|
|
584
|
+
}
|
|
585
|
+
.sys-res-file-list .item-load-more img {
|
|
586
|
+
width: 72px;
|
|
587
|
+
}
|
|
588
|
+
.sys-res-file-list .item {
|
|
589
|
+
position: relative;
|
|
590
|
+
width: calc(20% - 20px);
|
|
591
|
+
overflow: hidden;
|
|
592
|
+
cursor: pointer;
|
|
593
|
+
}
|
|
594
|
+
.sys-res-file-list .item .move-action {
|
|
595
|
+
opacity: 0.5;
|
|
596
|
+
}
|
|
597
|
+
.sys-res-file-list .item .shadow-wrap {
|
|
598
|
+
position: relative;
|
|
599
|
+
overflow: hidden;
|
|
600
|
+
background: #fff;
|
|
601
|
+
border: 1px solid #ebeef5;
|
|
602
|
+
border-radius: 4px;
|
|
603
|
+
}
|
|
604
|
+
.sys-res-file-list .item .shadow-wrap:hover {
|
|
605
|
+
border: 1px solid #4886ff;
|
|
606
|
+
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.1);
|
|
607
|
+
}
|
|
608
|
+
.sys-res-file-list .item .shadow-wrap .thumb-wrap {
|
|
609
|
+
position: relative;
|
|
610
|
+
width: 100%;
|
|
611
|
+
background: url('../assets/selection/picBg.png');
|
|
612
|
+
}
|
|
613
|
+
.sys-res-file-list .item .shadow-wrap h4,
|
|
614
|
+
.sys-res-file-list .item .shadow-wrap p {
|
|
615
|
+
margin-top: 4px;
|
|
616
|
+
margin-bottom: 2px;
|
|
617
|
+
padding: 0 10px;
|
|
618
|
+
overflow: hidden;
|
|
619
|
+
color: rgba(0, 0, 0, 0.85);
|
|
620
|
+
font-size: 14px;
|
|
621
|
+
white-space: nowrap;
|
|
622
|
+
text-overflow: ellipsis;
|
|
623
|
+
word-wrap: normal;
|
|
624
|
+
}
|
|
625
|
+
.sys-res-file-list .item .shadow-wrap h4 i,
|
|
626
|
+
.sys-res-file-list .item .shadow-wrap p i,
|
|
627
|
+
.sys-res-file-list .item .shadow-wrap h4 svg,
|
|
628
|
+
.sys-res-file-list .item .shadow-wrap p svg {
|
|
629
|
+
margin-right: 4px;
|
|
630
|
+
color: #e75258;
|
|
631
|
+
font-size: 16px;
|
|
632
|
+
vertical-align: middle;
|
|
633
|
+
}
|
|
634
|
+
.sys-res-file-list .item .shadow-wrap h4 svg,
|
|
635
|
+
.sys-res-file-list .item .shadow-wrap p svg {
|
|
636
|
+
margin-right: 4px;
|
|
637
|
+
font-size: 16px;
|
|
638
|
+
vertical-align: middle;
|
|
639
|
+
}
|
|
640
|
+
.sys-res-file-list .item .shadow-wrap h4 span,
|
|
641
|
+
.sys-res-file-list .item .shadow-wrap p span {
|
|
642
|
+
vertical-align: middle;
|
|
643
|
+
}
|
|
644
|
+
.sys-res-file-list .item .shadow-wrap p {
|
|
645
|
+
margin-bottom: 4px;
|
|
646
|
+
font-weight: normal;
|
|
647
|
+
font-size: 12px;
|
|
648
|
+
line-height: 1em;
|
|
649
|
+
opacity: 0.65;
|
|
650
|
+
}
|
|
651
|
+
.sys-res-file-list::after {
|
|
652
|
+
height: 50px;
|
|
653
|
+
}
|
|
524
654
|
.select-resources-modal-wrapper .arco-modal-header {
|
|
525
655
|
border-bottom: none;
|
|
526
656
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, createTextVNode, toDisplayString, createCommentVNode, Fragment, renderList, createBlock, createVNode, unref, withCtx, createElementVNode, withDirectives, vShow } from "vue";
|
|
1
|
+
import { defineComponent, ref, provide, computed, watch, openBlock, createElementBlock, createTextVNode, toDisplayString, createCommentVNode, Fragment, renderList, createBlock, createVNode, unref, withCtx, createElementVNode, withDirectives, vShow } from "vue";
|
|
2
2
|
import { RadioGroup, Radio, Switch } from "@arco-design/web-vue";
|
|
3
3
|
import { docThumbObjMap, docThumbArrMap, docThumbRatioMap } from "../utils/doc.js";
|
|
4
4
|
import _sfc_main$3 from "../resourceModal/component.js";
|
|
@@ -50,7 +50,8 @@ const _sfc_main = defineComponent({
|
|
|
50
50
|
showTitle: { type: Boolean },
|
|
51
51
|
cropper: { type: Boolean },
|
|
52
52
|
aiImages: {},
|
|
53
|
-
series: {}
|
|
53
|
+
series: {},
|
|
54
|
+
mediaUseType: {}
|
|
54
55
|
},
|
|
55
56
|
emits: ["update:dataValue"],
|
|
56
57
|
setup(__props, { emit: __emit }) {
|
|
@@ -66,6 +67,9 @@ const _sfc_main = defineComponent({
|
|
|
66
67
|
const thumbOptionIndex = ref(0);
|
|
67
68
|
const aspectRatioProp = ref(16 / 9);
|
|
68
69
|
const cropperData = ref([]);
|
|
70
|
+
if (props.mediaUseType) {
|
|
71
|
+
provide("mediaUseType", props.mediaUseType);
|
|
72
|
+
}
|
|
69
73
|
const model = computed({
|
|
70
74
|
get() {
|
|
71
75
|
if (!styleData.value.model)
|
|
@@ -79,18 +79,18 @@ const _sfc_main = vue.defineComponent({
|
|
|
79
79
|
});
|
|
80
80
|
return (_ctx, _cache) => {
|
|
81
81
|
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Modal), {
|
|
82
|
-
visible: visible.value,
|
|
83
|
-
width: "986px",
|
|
84
|
-
"mask-closable": false,
|
|
85
82
|
footer: false,
|
|
83
|
+
"mask-closable": false,
|
|
84
|
+
visible: visible.value,
|
|
85
|
+
"body-class": "add-content-modal-body",
|
|
86
|
+
"modal-class": "add-content-modal-wrapper",
|
|
86
87
|
"title-align": "start",
|
|
87
88
|
"unmount-on-close": "",
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
onOk: handleOk,
|
|
91
|
-
onOpen: HandleOpen,
|
|
89
|
+
width: "1020px",
|
|
90
|
+
onCancel: handleCancel,
|
|
92
91
|
onClose: HandleClose,
|
|
93
|
-
|
|
92
|
+
onOk: handleOk,
|
|
93
|
+
onOpen: HandleOpen
|
|
94
94
|
}, {
|
|
95
95
|
title: vue.withCtx(() => [
|
|
96
96
|
vue.createTextVNode(vue.toDisplayString(props.title ? props.title : "\u6DFB\u52A0\u5185\u5BB9"), 1)
|
|
@@ -109,11 +109,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
109
109
|
default: vue.withCtx(() => [
|
|
110
110
|
vue.unref(userInfo) && vue.unref(userInfo).repository_id ? (vue.openBlock(), vue.createBlock(index, {
|
|
111
111
|
key: 0,
|
|
112
|
-
|
|
112
|
+
banner: typeDataController.value.docBanner,
|
|
113
113
|
"default-selected-data": selectedData.value,
|
|
114
|
-
"
|
|
114
|
+
"max-select": _ctx.maxSelect,
|
|
115
115
|
series: typeDataController.value.docSeries,
|
|
116
|
-
|
|
116
|
+
"type-data": typeDataController.value,
|
|
117
117
|
"user-info": vue.unref(userInfo),
|
|
118
118
|
onChange: selectedDataChangeHandle
|
|
119
119
|
}, {
|
|
@@ -125,18 +125,18 @@ const _sfc_main = vue.defineComponent({
|
|
|
125
125
|
]),
|
|
126
126
|
options: vue.withCtx(() => [
|
|
127
127
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
128
|
-
type: "primary",
|
|
129
128
|
disabled: !hasSelected.value,
|
|
129
|
+
type: "primary",
|
|
130
130
|
onClick: comfirm
|
|
131
131
|
}, {
|
|
132
132
|
default: vue.withCtx(() => [
|
|
133
|
-
vue.createTextVNode("\u6DFB\u52A0")
|
|
133
|
+
vue.createTextVNode("\u6DFB\u52A0 ")
|
|
134
134
|
]),
|
|
135
135
|
_: 1
|
|
136
136
|
}, 8, ["disabled"])
|
|
137
137
|
]),
|
|
138
138
|
_: 1
|
|
139
|
-
}, 8, ["
|
|
139
|
+
}, 8, ["banner", "default-selected-data", "max-select", "series", "type-data", "user-info"])) : vue.createCommentVNode("v-if", true)
|
|
140
140
|
]),
|
|
141
141
|
_: 1
|
|
142
142
|
})) : vue.createCommentVNode("v-if", true),
|
|
@@ -147,12 +147,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
147
147
|
default: vue.withCtx(() => [
|
|
148
148
|
vue.unref(userInfo) && vue.unref(userInfo).repository_id ? (vue.openBlock(), vue.createBlock(index$2, {
|
|
149
149
|
key: 0,
|
|
150
|
-
"max-select": _ctx.maxSelect,
|
|
151
150
|
"default-selected-data": selectedData.value,
|
|
151
|
+
"max-select": _ctx.maxSelect,
|
|
152
152
|
"outside-select-data": _ctx.outsideSelectData || [],
|
|
153
|
+
type: typeDataController.value.contentListType,
|
|
153
154
|
"type-data": typeDataController.value,
|
|
154
155
|
"user-info": vue.unref(userInfo),
|
|
155
|
-
type: typeDataController.value.contentListType,
|
|
156
156
|
onChange: selectedDataChangeHandle
|
|
157
157
|
}, {
|
|
158
158
|
store: vue.withCtx(() => [
|
|
@@ -163,8 +163,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
163
163
|
]),
|
|
164
164
|
options: vue.withCtx(() => [
|
|
165
165
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
166
|
-
type: "primary",
|
|
167
166
|
disabled: !hasSelected.value,
|
|
167
|
+
type: "primary",
|
|
168
168
|
onClick: comfirm
|
|
169
169
|
}, {
|
|
170
170
|
default: vue.withCtx(() => [
|
|
@@ -174,7 +174,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
174
174
|
}, 8, ["disabled"])
|
|
175
175
|
]),
|
|
176
176
|
_: 1
|
|
177
|
-
}, 8, ["
|
|
177
|
+
}, 8, ["default-selected-data", "max-select", "outside-select-data", "type", "type-data", "user-info"])) : vue.createCommentVNode("v-if", true)
|
|
178
178
|
]),
|
|
179
179
|
_: 1
|
|
180
180
|
})) : vue.createCommentVNode("v-if", true),
|
|
@@ -185,13 +185,13 @@ const _sfc_main = vue.defineComponent({
|
|
|
185
185
|
default: vue.withCtx(() => [
|
|
186
186
|
vue.unref(userInfo) && vue.unref(userInfo).repository_id ? (vue.openBlock(), vue.createBlock(index$3, {
|
|
187
187
|
key: 0,
|
|
188
|
-
|
|
188
|
+
columns: typeDataController.value.compoType,
|
|
189
|
+
"compo-filter": _ctx.compoFilter,
|
|
189
190
|
"default-selected-data": selectedData.value,
|
|
191
|
+
"max-select": _ctx.maxSelect,
|
|
190
192
|
"outside-select-data": _ctx.outsideSelectData || [],
|
|
191
193
|
"type-data": typeDataController.value,
|
|
192
|
-
columns: typeDataController.value.compoType,
|
|
193
194
|
"user-info": vue.unref(userInfo),
|
|
194
|
-
"compo-filter": _ctx.compoFilter,
|
|
195
195
|
onChange: selectedDataChangeHandle
|
|
196
196
|
}, {
|
|
197
197
|
store: vue.withCtx(() => [
|
|
@@ -202,8 +202,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
202
202
|
]),
|
|
203
203
|
options: vue.withCtx(() => [
|
|
204
204
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
205
|
-
type: "primary",
|
|
206
205
|
disabled: !hasSelected.value,
|
|
206
|
+
type: "primary",
|
|
207
207
|
onClick: comfirm
|
|
208
208
|
}, {
|
|
209
209
|
default: vue.withCtx(() => [
|
|
@@ -213,7 +213,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
213
213
|
}, 8, ["disabled"])
|
|
214
214
|
]),
|
|
215
215
|
_: 1
|
|
216
|
-
}, 8, ["
|
|
216
|
+
}, 8, ["columns", "compo-filter", "default-selected-data", "max-select", "outside-select-data", "type-data", "user-info"])) : vue.createCommentVNode("v-if", true)
|
|
217
217
|
]),
|
|
218
218
|
_: 1
|
|
219
219
|
})) : vue.createCommentVNode("v-if", true),
|
|
@@ -224,11 +224,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
224
224
|
default: vue.withCtx(() => [
|
|
225
225
|
vue.unref(userInfo) && vue.unref(userInfo).repository_id ? (vue.openBlock(), vue.createBlock(index$4, {
|
|
226
226
|
key: 0,
|
|
227
|
-
|
|
227
|
+
columns: typeDataController.value.compoType,
|
|
228
228
|
"default-selected-data": selectedData.value,
|
|
229
|
+
"max-select": _ctx.maxSelect,
|
|
229
230
|
"outside-select-data": _ctx.outsideSelectData || [],
|
|
230
231
|
"type-data": typeDataController.value,
|
|
231
|
-
columns: typeDataController.value.compoType,
|
|
232
232
|
"user-info": vue.unref(userInfo),
|
|
233
233
|
onChange: selectedDataChangeHandle
|
|
234
234
|
}, {
|
|
@@ -240,8 +240,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
240
240
|
]),
|
|
241
241
|
options: vue.withCtx(() => [
|
|
242
242
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
243
|
-
type: "primary",
|
|
244
243
|
disabled: !hasSelected.value,
|
|
244
|
+
type: "primary",
|
|
245
245
|
onClick: comfirm
|
|
246
246
|
}, {
|
|
247
247
|
default: vue.withCtx(() => [
|
|
@@ -251,7 +251,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
251
251
|
}, 8, ["disabled"])
|
|
252
252
|
]),
|
|
253
253
|
_: 1
|
|
254
|
-
}, 8, ["
|
|
254
|
+
}, 8, ["columns", "default-selected-data", "max-select", "outside-select-data", "type-data", "user-info"])) : vue.createCommentVNode("v-if", true)
|
|
255
255
|
]),
|
|
256
256
|
_: 1
|
|
257
257
|
})) : vue.createCommentVNode("v-if", true),
|
|
@@ -262,11 +262,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
262
262
|
default: vue.withCtx(() => [
|
|
263
263
|
vue.unref(userInfo) && vue.unref(userInfo).repository_id ? (vue.openBlock(), vue.createBlock(index$5, {
|
|
264
264
|
key: 0,
|
|
265
|
-
|
|
265
|
+
columns: typeDataController.value.MpAccountType,
|
|
266
266
|
"default-selected-data": selectedData.value,
|
|
267
|
+
"max-select": _ctx.maxSelect,
|
|
267
268
|
"outside-select-data": _ctx.outsideSelectData || [],
|
|
268
269
|
"type-data": typeDataController.value,
|
|
269
|
-
columns: typeDataController.value.MpAccountType,
|
|
270
270
|
"user-info": vue.unref(userInfo),
|
|
271
271
|
onChange: selectedDataChangeHandle
|
|
272
272
|
}, {
|
|
@@ -278,8 +278,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
278
278
|
]),
|
|
279
279
|
options: vue.withCtx(() => [
|
|
280
280
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
281
|
-
type: "primary",
|
|
282
281
|
disabled: !hasSelected.value,
|
|
282
|
+
type: "primary",
|
|
283
283
|
onClick: comfirm
|
|
284
284
|
}, {
|
|
285
285
|
default: vue.withCtx(() => [
|
|
@@ -289,7 +289,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
289
289
|
}, 8, ["disabled"])
|
|
290
290
|
]),
|
|
291
291
|
_: 1
|
|
292
|
-
}, 8, ["
|
|
292
|
+
}, 8, ["columns", "default-selected-data", "max-select", "outside-select-data", "type-data", "user-info"])) : vue.createCommentVNode("v-if", true)
|
|
293
293
|
]),
|
|
294
294
|
_: 1
|
|
295
295
|
}, 8, ["title"])) : vue.createCommentVNode("v-if", true),
|
|
@@ -300,11 +300,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
300
300
|
default: vue.withCtx(() => [
|
|
301
301
|
vue.unref(userInfo) && vue.unref(userInfo).repository_id ? (vue.openBlock(), vue.createBlock(index$6, {
|
|
302
302
|
key: 0,
|
|
303
|
-
|
|
303
|
+
columns: typeDataController.value.MpAccountType,
|
|
304
304
|
"default-selected-data": selectedData.value,
|
|
305
|
+
"max-select": _ctx.maxSelect,
|
|
305
306
|
"outside-select-data": _ctx.outsideSelectData || [],
|
|
306
307
|
"type-data": typeDataController.value,
|
|
307
|
-
columns: typeDataController.value.MpAccountType,
|
|
308
308
|
"user-info": vue.unref(userInfo),
|
|
309
309
|
onChange: selectedDataChangeHandle
|
|
310
310
|
}, {
|
|
@@ -316,8 +316,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
316
316
|
]),
|
|
317
317
|
options: vue.withCtx(() => [
|
|
318
318
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
319
|
-
type: "primary",
|
|
320
319
|
disabled: !hasSelected.value,
|
|
320
|
+
type: "primary",
|
|
321
321
|
onClick: comfirm
|
|
322
322
|
}, {
|
|
323
323
|
default: vue.withCtx(() => [
|
|
@@ -327,7 +327,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
327
327
|
}, 8, ["disabled"])
|
|
328
328
|
]),
|
|
329
329
|
_: 1
|
|
330
|
-
}, 8, ["
|
|
330
|
+
}, 8, ["columns", "default-selected-data", "max-select", "outside-select-data", "type-data", "user-info"])) : vue.createCommentVNode("v-if", true)
|
|
331
331
|
]),
|
|
332
332
|
_: 1
|
|
333
333
|
}, 8, ["title"])) : vue.createCommentVNode("v-if", true)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var vue = require("vue");
|
|
3
3
|
var webVue = require("@arco-design/web-vue");
|
|
4
|
+
var icon = require("@arco-design/web-vue/es/icon");
|
|
4
5
|
var doc = require("../../../../utils/doc.js");
|
|
5
6
|
var index = require("../columnTree/index.js");
|
|
6
7
|
const _hoisted_1 = { class: "media-filter-container" };
|
|
@@ -8,7 +9,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
8
9
|
...{ name: "MediaFilter" },
|
|
9
10
|
__name: "index",
|
|
10
11
|
props: {
|
|
11
|
-
|
|
12
|
+
groupId: {},
|
|
12
13
|
tree: { default: () => [] },
|
|
13
14
|
series: { default: "all" },
|
|
14
15
|
banner: { default: "all" },
|
|
@@ -67,6 +68,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
67
68
|
});
|
|
68
69
|
return [{ value: "", label: "\u5168\u90E8\u5C01\u9762\u7C7B\u578B" }, ...arr];
|
|
69
70
|
});
|
|
71
|
+
const sortOptions = vue.computed(() => {
|
|
72
|
+
return [
|
|
73
|
+
{ value: -1, label: "\u53D1\u5E03\u65F6\u95F4" },
|
|
74
|
+
{ value: 1, label: "\u521B\u5EFA\u65F6\u95F4" }
|
|
75
|
+
];
|
|
76
|
+
});
|
|
70
77
|
const showReset = vue.computed(() => {
|
|
71
78
|
let { banner } = filter.value;
|
|
72
79
|
if (props.banner !== "all") {
|
|
@@ -76,7 +83,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
76
83
|
if (props.series !== "all") {
|
|
77
84
|
series = "";
|
|
78
85
|
}
|
|
79
|
-
return filter.value.keywords || series || filter.value.cover_type || banner;
|
|
86
|
+
return filter.value.keywords || series || filter.value.cover_type || banner || filter.value.sort !== -1;
|
|
80
87
|
});
|
|
81
88
|
const reset = () => {
|
|
82
89
|
filter.value = {
|
|
@@ -101,13 +108,13 @@ const _sfc_main = vue.defineComponent({
|
|
|
101
108
|
};
|
|
102
109
|
vue.watch(
|
|
103
110
|
() => filter.value,
|
|
104
|
-
(
|
|
111
|
+
() => {
|
|
105
112
|
handleSearch();
|
|
106
113
|
},
|
|
107
114
|
{ deep: true }
|
|
108
115
|
);
|
|
109
116
|
vue.watch(
|
|
110
|
-
() => props.
|
|
117
|
+
() => props.groupId,
|
|
111
118
|
(val) => {
|
|
112
119
|
column_id.value = val;
|
|
113
120
|
}
|
|
@@ -120,18 +127,26 @@ const _sfc_main = vue.defineComponent({
|
|
|
120
127
|
);
|
|
121
128
|
return (_ctx, _cache) => {
|
|
122
129
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
123
|
-
vue.createVNode(vue.unref(webVue.Space), { size: "
|
|
130
|
+
vue.createVNode(vue.unref(webVue.Space), { size: "small" }, {
|
|
124
131
|
default: vue.withCtx(() => [
|
|
132
|
+
vue.createVNode(vue.unref(webVue.Input), {
|
|
133
|
+
modelValue: filter.value.keywords,
|
|
134
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filter.value.keywords = $event),
|
|
135
|
+
"allow-clear": "",
|
|
136
|
+
class: "filter-item",
|
|
137
|
+
placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9\u6807\u9898",
|
|
138
|
+
onPressEnter: handleSearch
|
|
139
|
+
}, null, 8, ["modelValue"]),
|
|
125
140
|
vue.createVNode(index, {
|
|
126
141
|
column_id: column_id.value,
|
|
127
|
-
"onUpdate:column_id": _cache[
|
|
142
|
+
"onUpdate:column_id": _cache[1] || (_cache[1] = ($event) => column_id.value = $event),
|
|
128
143
|
height: props.height,
|
|
129
144
|
tree: props.tree,
|
|
130
145
|
"user-info": props.userInfo
|
|
131
146
|
}, null, 8, ["column_id", "height", "tree", "user-info"]),
|
|
132
147
|
vue.createVNode(vue.unref(webVue.Select), {
|
|
133
148
|
modelValue: filter.value.type,
|
|
134
|
-
"onUpdate:modelValue": _cache[
|
|
149
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.type = $event),
|
|
135
150
|
class: "filter-item",
|
|
136
151
|
placeholder: "\u7C7B\u578B"
|
|
137
152
|
}, {
|
|
@@ -148,7 +163,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
148
163
|
}, 8, ["modelValue"]),
|
|
149
164
|
vue.createVNode(vue.unref(webVue.Select), {
|
|
150
165
|
modelValue: filter.value.cover_type,
|
|
151
|
-
"onUpdate:modelValue": _cache[
|
|
166
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => filter.value.cover_type = $event),
|
|
152
167
|
class: "filter-item",
|
|
153
168
|
placeholder: "\u5C01\u9762"
|
|
154
169
|
}, {
|
|
@@ -165,7 +180,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
165
180
|
}, 8, ["modelValue"]),
|
|
166
181
|
vue.createVNode(vue.unref(webVue.Select), {
|
|
167
182
|
modelValue: filter.value.banner,
|
|
168
|
-
"onUpdate:modelValue": _cache[
|
|
183
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.banner = $event),
|
|
169
184
|
class: "filter-item",
|
|
170
185
|
placeholder: "\u72EC\u7ACB\u8F6E\u64AD"
|
|
171
186
|
}, {
|
|
@@ -180,21 +195,15 @@ const _sfc_main = vue.defineComponent({
|
|
|
180
195
|
]),
|
|
181
196
|
_: 1
|
|
182
197
|
}, 8, ["modelValue"]),
|
|
183
|
-
vue.createVNode(vue.unref(webVue.Input), {
|
|
184
|
-
modelValue: filter.value.keywords,
|
|
185
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.keywords = $event),
|
|
186
|
-
class: "filter-item",
|
|
187
|
-
"allow-clear": "",
|
|
188
|
-
placeholder: "\u8BF7\u8F93\u5165\u5185\u5BB9\u6807\u9898",
|
|
189
|
-
onPressEnter: handleSearch
|
|
190
|
-
}, null, 8, ["modelValue"]),
|
|
191
198
|
vue.withDirectives(vue.createVNode(vue.unref(webVue.Button), {
|
|
192
|
-
|
|
199
|
+
class: "reset-button",
|
|
193
200
|
size: "small",
|
|
201
|
+
type: "text",
|
|
194
202
|
onClick: reset
|
|
195
203
|
}, {
|
|
196
204
|
default: vue.withCtx(() => [
|
|
197
|
-
vue.
|
|
205
|
+
vue.createVNode(vue.unref(icon.IconRefresh), { class: "reset-icon" }),
|
|
206
|
+
vue.createTextVNode(" \u91CD\u7F6E ")
|
|
198
207
|
]),
|
|
199
208
|
_: 1
|
|
200
209
|
}, 512), [
|
|
@@ -202,7 +211,29 @@ const _sfc_main = vue.defineComponent({
|
|
|
202
211
|
])
|
|
203
212
|
]),
|
|
204
213
|
_: 1
|
|
205
|
-
})
|
|
214
|
+
}),
|
|
215
|
+
vue.createElementVNode("div", {
|
|
216
|
+
class: "sort-button",
|
|
217
|
+
onClick: reset
|
|
218
|
+
}, [
|
|
219
|
+
vue.createVNode(vue.unref(webVue.Select), {
|
|
220
|
+
modelValue: filter.value.sort,
|
|
221
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.sort = $event),
|
|
222
|
+
class: "filter-item",
|
|
223
|
+
placeholder: "\u53D1\u5E03\u65F6\u95F4"
|
|
224
|
+
}, {
|
|
225
|
+
default: vue.withCtx(() => [
|
|
226
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(sortOptions.value, (item) => {
|
|
227
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
228
|
+
key: item.value,
|
|
229
|
+
label: item.label,
|
|
230
|
+
value: item.value
|
|
231
|
+
}, null, 8, ["label", "value"]);
|
|
232
|
+
}), 128))
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
}, 8, ["modelValue"])
|
|
236
|
+
])
|
|
206
237
|
]);
|
|
207
238
|
};
|
|
208
239
|
}
|