@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.
Files changed (80) hide show
  1. package/dist/index.css +125 -79
  2. package/dist/index.min.css +1 -1
  3. package/es/baseFilter/component.js +6 -1
  4. package/es/config.js +1 -1
  5. package/es/hooks/useAttachement.d.ts +14 -6
  6. package/es/hooks/useAttachement.js +15 -1
  7. package/es/hooks/useLocalStorage.d.ts +1 -0
  8. package/es/hooks/useLocalStorage.js +2 -1
  9. package/es/index.css +125 -79
  10. package/es/selectResourceModal/assets/images/sys_load_more.js +2 -0
  11. package/es/selectResourceModal/component.js +71 -170
  12. package/es/selectResourceModal/components/{ListCardWrapper/index.js → List/ListCardWrapper.js} +13 -11
  13. package/es/selectResourceModal/components/List/ListLocal/index.js +92 -0
  14. package/es/selectResourceModal/components/{ListFilter/index.js → List/ListNormal/Filter.js} +14 -14
  15. package/es/selectResourceModal/components/List/ListNormal/index.js +77 -0
  16. package/es/selectResourceModal/components/List/ListSystem/Filter.d.ts +0 -0
  17. package/es/selectResourceModal/components/List/ListSystem/Filter.js +141 -0
  18. package/es/selectResourceModal/components/List/ListSystem/SubList.d.ts +0 -0
  19. package/es/selectResourceModal/components/List/ListSystem/SubList.js +67 -0
  20. package/es/selectResourceModal/components/List/ListSystem/index.d.ts +0 -0
  21. package/es/selectResourceModal/components/List/ListSystem/index.js +109 -0
  22. package/es/selectResourceModal/components/List/ListWraper.d.ts +0 -0
  23. package/es/selectResourceModal/components/List/ListWraper.js +61 -0
  24. package/es/selectResourceModal/components/ListTabs/index.js +9 -18
  25. package/es/selectResourceModal/{components/ListFilter/scripts/api.d.ts → scripts/selectionApis.d.ts} +1 -0
  26. package/es/selectResourceModal/scripts/selectionApis.js +15 -0
  27. package/es/selectResourceModal/scripts/useCompoLf.d.ts +21 -0
  28. package/es/selectResourceModal/scripts/useCompoLf.js +32 -0
  29. package/es/selectResourceModal/scripts/useResourceSelect.js +7 -3
  30. package/es/selectResourceModal/scripts/useTabFilter.d.ts +21 -0
  31. package/es/selectResourceModal/scripts/useTabFilter.js +37 -0
  32. package/es/selectResourceModal/style/index.css +125 -79
  33. package/es/selectResourceModal/style/index.less +3 -32
  34. package/es/selectResourceModal/style/list.less +163 -0
  35. package/es/selectThumb/component.js +25 -13
  36. package/es/utils/filter.js +0 -1
  37. package/lib/baseFilter/component.js +6 -1
  38. package/lib/config.js +1 -1
  39. package/lib/hooks/useAttachement.js +16 -0
  40. package/lib/hooks/useLocalStorage.js +2 -1
  41. package/lib/index.css +125 -79
  42. package/lib/selectResourceModal/assets/images/sys_load_more.js +3 -0
  43. package/lib/selectResourceModal/component.js +71 -170
  44. package/lib/selectResourceModal/components/{ListCardWrapper/index.js → List/ListCardWrapper.js} +12 -10
  45. package/lib/selectResourceModal/components/List/ListLocal/index.js +93 -0
  46. package/lib/selectResourceModal/components/{ListFilter/index.js → List/ListNormal/Filter.js} +15 -15
  47. package/lib/selectResourceModal/components/List/ListNormal/index.js +78 -0
  48. package/lib/selectResourceModal/components/List/ListSystem/Filter.js +142 -0
  49. package/lib/selectResourceModal/components/List/ListSystem/SubList.js +68 -0
  50. package/lib/selectResourceModal/components/List/ListSystem/index.js +110 -0
  51. package/lib/selectResourceModal/components/List/ListWraper.js +62 -0
  52. package/lib/selectResourceModal/components/ListTabs/index.js +8 -17
  53. package/lib/selectResourceModal/{components/ListFilter/scripts/api.js → scripts/selectionApis.js} +8 -1
  54. package/lib/selectResourceModal/scripts/useCompoLf.js +33 -0
  55. package/lib/selectResourceModal/scripts/useResourceSelect.js +7 -3
  56. package/lib/selectResourceModal/scripts/useTabFilter.js +38 -0
  57. package/lib/selectResourceModal/style/index.css +125 -79
  58. package/lib/selectResourceModal/style/index.less +3 -32
  59. package/lib/selectResourceModal/style/list.less +163 -0
  60. package/lib/selectThumb/component.js +25 -13
  61. package/lib/utils/filter.js +0 -1
  62. package/package.json +1 -1
  63. package/es/selectResourceModal/components/ListContent/index.js +0 -46
  64. package/es/selectResourceModal/components/ListContentLocal/index.js +0 -93
  65. package/es/selectResourceModal/components/ListFilter/scripts/api.js +0 -9
  66. package/es/selectResourceModal/style/listContent.less +0 -5
  67. package/es/selectResourceModal/style/listContentLocal.less +0 -26
  68. package/es/selectResourceModal/style/listFilter.less +0 -41
  69. package/lib/selectResourceModal/components/ListContent/index.js +0 -47
  70. package/lib/selectResourceModal/components/ListContentLocal/index.js +0 -94
  71. package/lib/selectResourceModal/style/listContent.less +0 -5
  72. package/lib/selectResourceModal/style/listContentLocal.less +0 -26
  73. package/lib/selectResourceModal/style/listFilter.less +0 -41
  74. /package/es/selectResourceModal/components/{ListCardWrapper/index.d.ts → List/ListCardWrapper.d.ts} +0 -0
  75. /package/es/selectResourceModal/components/{ListContentLocal/components → List/ListLocal}/Upload.d.ts +0 -0
  76. /package/es/selectResourceModal/components/{ListContentLocal/components → List/ListLocal}/Upload.js +0 -0
  77. /package/es/selectResourceModal/components/{ListContent → List/ListLocal}/index.d.ts +0 -0
  78. /package/es/selectResourceModal/components/{ListContentLocal/index.d.ts → List/ListNormal/Filter.d.ts} +0 -0
  79. /package/es/selectResourceModal/components/{ListFilter → List/ListNormal}/index.d.ts +0 -0
  80. /package/lib/selectResourceModal/components/{ListContentLocal/components → List/ListLocal}/Upload.js +0 -0
@@ -1 +1,2 @@
1
1
  export declare function getAccountList(BASE_API: string, id: number, query: any): import("axios").AxiosPromise<any>;
2
+ export declare function getSysRsClassifyList(BASE_API: string, sys_tag: number): import("axios").AxiosPromise<any>;
@@ -0,0 +1,15 @@
1
+ import request from "../../utils/request.js";
2
+ function getAccountList(BASE_API, id, query) {
3
+ return request(BASE_API, {
4
+ url: `/poplar/v2/accounts/${id}`,
5
+ method: "get",
6
+ params: query
7
+ });
8
+ }
9
+ function getSysRsClassifyList(BASE_API, sys_tag) {
10
+ return request(BASE_API, {
11
+ url: `/poplar/v3/sys_attachment/scenario_classifies?sys_tag=${sys_tag}`,
12
+ method: "get"
13
+ });
14
+ }
15
+ export { getAccountList, getSysRsClassifyList };
@@ -0,0 +1,21 @@
1
+ export default function useCompoentLifycycle(props: any, emits: any): {
2
+ wrapProps: import("vue").ComputedRef<{
3
+ class: string;
4
+ header: boolean;
5
+ width: string;
6
+ footer: boolean;
7
+ bodyClass?: undefined;
8
+ closable?: undefined;
9
+ hideTitle?: undefined;
10
+ } | {
11
+ bodyClass: string;
12
+ width: string;
13
+ closable: boolean;
14
+ hideTitle: boolean;
15
+ footer: boolean;
16
+ class?: undefined;
17
+ header?: undefined;
18
+ }>;
19
+ close: () => any;
20
+ submit: (data: any) => any;
21
+ };
@@ -0,0 +1,32 @@
1
+ import { computed, provide } from "vue";
2
+ import { DEFAULT_BASE_API } from "../../config.js";
3
+ function useCompoentLifycycle(props, emits) {
4
+ const BASE_API = props.BASE_API || DEFAULT_BASE_API;
5
+ const wrapProps = computed(() => {
6
+ if (props.wrap === "drawer") {
7
+ return {
8
+ class: "resource-select-drawer",
9
+ header: false,
10
+ width: "1024px",
11
+ footer: false
12
+ };
13
+ }
14
+ return {
15
+ bodyClass: "resource-select-modal-body",
16
+ width: "986px",
17
+ closable: false,
18
+ hideTitle: false,
19
+ footer: false
20
+ };
21
+ });
22
+ provide("baseAPI", BASE_API);
23
+ provide("filterOptions", computed(() => props.filterOptions));
24
+ provide("userInfo", computed(() => props.userInfo));
25
+ provide("mediaUseType", computed(() => props.mediaUseType));
26
+ return {
27
+ wrapProps,
28
+ close: () => emits("update:visible", false),
29
+ submit: (data) => emits("submit", JSON.parse(JSON.stringify(data)))
30
+ };
31
+ }
32
+ export { useCompoentLifycycle as default };
@@ -1,11 +1,15 @@
1
1
  import { ref, computed } from "vue";
2
2
  function useResourceSelect(props) {
3
3
  const selected = ref([]);
4
- const selectedKeys = computed(() => selected.value.map((item) => item.id));
4
+ const selectedKeys = computed(
5
+ () => selected.value.map((item) => item.id || item.url)
6
+ );
5
7
  const disableSelect = computed(() => props.maxcount && selected.value.length >= props.maxcount);
6
8
  function handleSelect(params) {
7
- const { id } = params;
8
- const index = selected.value.findIndex((item) => item.id === id);
9
+ const { id, url } = params;
10
+ const index = selected.value.findIndex((item) => {
11
+ return item.id && item.id === id || item.url === url;
12
+ });
9
13
  if (index > -1)
10
14
  selected.value.splice(index, 1);
11
15
  else
@@ -0,0 +1,21 @@
1
+ export declare enum TabEnum {
2
+ ALL = "all",
3
+ MY = "my",
4
+ REMIND = "remind",
5
+ LOCAL = "local",
6
+ SYSTEM = "system",
7
+ AI = "ai",
8
+ VIDEO = "video"
9
+ }
10
+ declare const TAB_DICT: any;
11
+ export declare type TabListType = {
12
+ key: string;
13
+ title: string;
14
+ };
15
+ export declare type TabKeyType = keyof typeof TAB_DICT;
16
+ export default function useTabFilter(props: any): {
17
+ activeKey: import("vue").Ref<string | number | symbol>;
18
+ activeComponent: import("vue").ComputedRef<any>;
19
+ tabKeyList: import("vue").ComputedRef<TabListType[]>;
20
+ };
21
+ export {};
@@ -0,0 +1,37 @@
1
+ import { ref, computed } from "vue";
2
+ import _sfc_main from "../components/List/ListNormal/index.js";
3
+ import _sfc_main$2 from "../components/List/ListSystem/index.js";
4
+ import _sfc_main$1 from "../components/List/ListLocal/index.js";
5
+ const DEFAULT_TABS = [
6
+ "all",
7
+ "my",
8
+ "remind",
9
+ "local"
10
+ ].join(",");
11
+ const TAB_DICT = {
12
+ ["all"]: { title: "\u5168\u90E8\u7D20\u6750", component: _sfc_main, usePage: true },
13
+ ["my"]: { title: "\u6211\u7684\u7D20\u6750", component: _sfc_main, usePage: true },
14
+ ["remind"]: { title: "\u63D0\u9192\u6211\u7684", component: _sfc_main, usePage: true },
15
+ ["local"]: { title: "\u672C\u5730\u7D20\u6750", component: _sfc_main$1, usePage: false },
16
+ ["system"]: { title: "\u5185\u7F6E\u7D20\u6750", component: _sfc_main$2, usePage: false },
17
+ ["ai"]: { title: "AI\u4F18\u9009", component: _sfc_main$2, usePage: false },
18
+ ["video"]: { title: "\u89C6\u9891\u5C01\u9762", component: _sfc_main$2, usePage: false }
19
+ };
20
+ function useTabFilter(props) {
21
+ const activeKey = ref("all");
22
+ const curTab = computed(() => TAB_DICT[activeKey.value]);
23
+ const tabKeyList = computed(() => {
24
+ const keys = (props.tabKeys || DEFAULT_TABS).split(",");
25
+ return keys.map((key) => ({
26
+ key,
27
+ title: TAB_DICT[key].title
28
+ }));
29
+ });
30
+ const activeComponent = computed(() => curTab.value.component);
31
+ return {
32
+ activeKey,
33
+ activeComponent,
34
+ tabKeyList
35
+ };
36
+ }
37
+ export { useTabFilter as default };
@@ -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: 70vh;
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: 70vh;
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
- .resource-select-filter,
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
+ }
@@ -1,12 +1,12 @@
1
1
  import { defineComponent, ref, provide, computed, watch, nextTick, 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
- import _sfc_main$3 from "../resourceModal/component.js";
5
4
  import _sfc_main$4 from "../imageCrop/component.js";
6
5
  import _sfc_main$1 from "./components/card.js";
7
6
  import _sfc_main$2 from "./components/colorPalette.js";
8
7
  import { DEFAULT_BASE_API } from "../config.js";
9
8
  import { getThemeColor } from "../utils/index.js";
9
+ import _sfc_main$3 from "../selectResourceModal/component.js";
10
10
  const _hoisted_1 = {
11
11
  key: 0,
12
12
  class: "star"
@@ -243,6 +243,7 @@ const _sfc_main = defineComponent({
243
243
  thumbOptionIndex.value = index;
244
244
  };
245
245
  const openDialogMediaSelection = (type, index) => {
246
+ console.log(type, index, "dkdk");
246
247
  thumbBannerModel.value = type || "thumb";
247
248
  thumbOptionIndex.value = index || 0;
248
249
  dialogMediaSelectionShow.value = true;
@@ -571,20 +572,31 @@ const _sfc_main = defineComponent({
571
572
  ])
572
573
  ], 2)
573
574
  ], 64)) : createCommentVNode("v-if", true),
574
- createVNode(_sfc_main$3, {
575
- dialogVisible: dialogMediaSelectionShow.value,
576
- "onUpdate:dialogVisible": _cache[9] || (_cache[9] = ($event) => dialogMediaSelectionShow.value = $event),
577
- preview: false,
578
- "catalog-props": "image",
579
- ai_static_covers: _ctx.aiImages,
580
- BASE_API: unref(BASE_API),
581
- onSubmit: submitCallback,
582
- onUpload: _cache[10] || (_cache[10] = (cb) => _ctx.$emit("upload", cb))
583
- }, null, 8, ["dialogVisible", "ai_static_covers", "BASE_API"]),
584
- refreshCrop.value ? (openBlock(), createBlock(_sfc_main$4, {
575
+ createCommentVNode(" 2024.9.2 dyz\uFF1A\u5F03\u7528\u65E7\u5F39\u7A97 "),
576
+ createCommentVNode(` <resourceModal
577
+ v-model:dialogVisible="dialogMediaSelectionShow"
578
+ :preview="false"
579
+ catalog-props="image"
580
+ :ai_static_covers="aiImages"
581
+ :BASE_API="BASE_API"
582
+ @submit="submitCallback"
583
+ @upload="(cb) => $emit('upload', cb)"
584
+ /> `),
585
+ createCommentVNode(" 2024.9.2 dyz\uFF1A\u4F7F\u7528\u65E7\u5F39\u7A97 "),
586
+ dialogMediaSelectionShow.value ? (openBlock(), createBlock(_sfc_main$3, {
585
587
  key: 1,
588
+ visible: dialogMediaSelectionShow.value,
589
+ "onUpdate:visible": _cache[9] || (_cache[9] = ($event) => dialogMediaSelectionShow.value = $event),
590
+ maxcount: 1,
591
+ userInfo: { domain_id: 1, repository_id: 4 },
592
+ filterOptions: { mediaType: "image", mediaTypeStrict: true },
593
+ wrap: "modal",
594
+ onSubmit: submitCallback
595
+ }, null, 8, ["visible"])) : createCommentVNode("v-if", true),
596
+ refreshCrop.value ? (openBlock(), createBlock(_sfc_main$4, {
597
+ key: 2,
586
598
  visible: dialogCropperShow.value,
587
- "onUpdate:visible": _cache[11] || (_cache[11] = ($event) => dialogCropperShow.value = $event),
599
+ "onUpdate:visible": _cache[10] || (_cache[10] = ($event) => dialogCropperShow.value = $event),
588
600
  "aspect-ratio-prop": aspectRatioProp.value,
589
601
  BASE_API: unref(BASE_API),
590
602
  "corp-data": cropperData.value,
@@ -1,6 +1,5 @@
1
1
  import { ref, computed } from "vue";
2
2
  const rateOptions = ref([
3
- { label: "\u5168\u90E8\u6BD4\u4F8B", value: "" },
4
3
  { label: "16:9", value: "16:9" },
5
4
  { label: "4:3", value: "4:3" },
6
5
  { label: "4:1", value: "4:1" },
@@ -89,6 +89,10 @@ const _sfc_main = vue.defineComponent({
89
89
  form.value[item.key] = null;
90
90
  }
91
91
  };
92
+ const resetFilter = () => {
93
+ form.value = {};
94
+ renderForm();
95
+ };
92
96
  const formMatte = (_form) => {
93
97
  Object.keys(_form).forEach((key) => {
94
98
  if (_form[key] && typeof _form[key] === "object" && Object.prototype.hasOwnProperty.call(_form[key], "range")) {
@@ -147,7 +151,8 @@ const _sfc_main = vue.defineComponent({
147
151
  refreshPanel: () => {
148
152
  var _a;
149
153
  return (_a = filterGroup.value) == null ? void 0 : _a.refreshPanel();
150
- }
154
+ },
155
+ resetFilter
151
156
  });
152
157
  return (_ctx, _cache) => {
153
158
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [