@cmstops/pro-compo 0.3.45 → 0.3.47

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 (51) hide show
  1. package/dist/index.css +45 -30
  2. package/dist/index.min.css +1 -1
  3. package/es/appCenter/component.js +30 -1
  4. package/es/appCenter/script/api.d.ts +1 -0
  5. package/es/appCenter/script/api.js +8 -1
  6. package/es/appCenter/style/index.css +17 -14
  7. package/es/appCenter/style/index.less +33 -15
  8. package/es/docHistory/component.js +1 -0
  9. package/es/docPreview/component.js +46 -40
  10. package/es/hooks/useAttachement.d.ts +1 -0
  11. package/es/hooks/useAttachement.js +3 -1
  12. package/es/hooks/useUpload.js +2 -2
  13. package/es/index.css +45 -30
  14. package/es/selectResourceModal/component.js +20 -3
  15. package/es/selectResourceModal/components/ListContentLocal/index.js +1 -1
  16. package/es/selectResourceModal/components/ListFilter/index.js +175 -133
  17. package/es/selectResourceModal/components/ListSelected/index.js +2 -0
  18. package/es/selectResourceModal/components/ListTabs/index.js +2 -1
  19. package/es/selectResourceModal/style/index.css +28 -5
  20. package/es/selectResourceModal/style/listFilter.less +33 -9
  21. package/es/selectResourceModal/style/listSelected.less +7 -1
  22. package/es/thumbCard/component.js +5 -42
  23. package/es/thumbCard/style/index.css +0 -11
  24. package/es/thumbCard/style/index.less +0 -15
  25. package/es/utils/resource.d.ts +4 -0
  26. package/es/utils/resource.js +13 -0
  27. package/es/utils/typeMap.d.ts +0 -1
  28. package/es/utils/typeMap.js +1 -2
  29. package/lib/appCenter/component.js +29 -0
  30. package/lib/appCenter/script/api.js +8 -0
  31. package/lib/appCenter/style/index.css +17 -14
  32. package/lib/appCenter/style/index.less +33 -15
  33. package/lib/docHistory/component.js +1 -0
  34. package/lib/docPreview/component.js +45 -39
  35. package/lib/hooks/useAttachement.js +3 -1
  36. package/lib/hooks/useUpload.js +2 -2
  37. package/lib/index.css +45 -30
  38. package/lib/selectResourceModal/component.js +19 -2
  39. package/lib/selectResourceModal/components/ListContentLocal/index.js +1 -1
  40. package/lib/selectResourceModal/components/ListFilter/index.js +174 -132
  41. package/lib/selectResourceModal/components/ListSelected/index.js +2 -0
  42. package/lib/selectResourceModal/components/ListTabs/index.js +2 -1
  43. package/lib/selectResourceModal/style/index.css +28 -5
  44. package/lib/selectResourceModal/style/listFilter.less +33 -9
  45. package/lib/selectResourceModal/style/listSelected.less +7 -1
  46. package/lib/thumbCard/component.js +2 -39
  47. package/lib/thumbCard/style/index.css +0 -11
  48. package/lib/thumbCard/style/index.less +0 -15
  49. package/lib/utils/resource.js +15 -0
  50. package/lib/utils/typeMap.js +1 -2
  51. package/package.json +1 -1
@@ -1,19 +1,26 @@
1
- import { defineComponent, inject, computed, ref, watch, onMounted, openBlock, createElementBlock, createElementVNode, createCommentVNode, createVNode, unref, withCtx, createTextVNode, toDisplayString, Fragment, renderList, createBlock } from "vue";
1
+ import { defineComponent, inject, computed, ref, watch, onMounted, openBlock, createElementBlock, createElementVNode, createCommentVNode, createVNode, unref, withCtx, createTextVNode, toDisplayString, Fragment, renderList, createBlock, normalizeClass } from "vue";
2
2
  import { Input, Dropdown, Doption, Button, Select, Option, RangePicker } from "@arco-design/web-vue";
3
3
  import { IconUpload } from "@arco-design/web-vue/es/icon";
4
4
  import useSelection from "../../../hooks/useSelection.js";
5
5
  import { RESOURCE_SOURCE_OPTIONS, RESOURCE_CATALOG_OPTIONS } from "../../../utils/typeMap.js";
6
6
  import { getAccountList } from "./scripts/api.js";
7
+ import { keywordsSelection } from "../../../utils/resource.js";
7
8
  const _hoisted_1 = { class: "list-filter-wrapper" };
8
- const _hoisted_2 = { class: "filter-list" };
9
- const _hoisted_3 = { style: { "width": "200px" } };
10
- const _hoisted_4 = { class: "filter-item" };
9
+ const _hoisted_2 = { class: "list-filter" };
10
+ const _hoisted_3 = { class: "filter-list" };
11
+ const _hoisted_4 = { style: { "width": "200px" } };
11
12
  const _hoisted_5 = { class: "filter-item" };
12
- const _hoisted_6 = {
13
+ const _hoisted_6 = { class: "filter-item" };
14
+ const _hoisted_7 = {
13
15
  key: 0,
14
16
  class: "filter-item"
15
17
  };
16
- const _hoisted_7 = { class: "filter-extra" };
18
+ const _hoisted_8 = { class: "filter-extra" };
19
+ const _hoisted_9 = {
20
+ key: 0,
21
+ class: "list-filter-tags"
22
+ };
23
+ const _hoisted_10 = ["onClick"];
17
24
  const _sfc_main = defineComponent({
18
25
  __name: "index",
19
26
  props: {
@@ -21,7 +28,7 @@ const _sfc_main = defineComponent({
21
28
  filterOptions: {}
22
29
  },
23
30
  emits: ["upload", "change"],
24
- setup(__props, { emit: __emit }) {
31
+ setup(__props, { expose: __expose, emit: __emit }) {
25
32
  const props = __props;
26
33
  const emits = __emit;
27
34
  const userInfo = inject("userInfo");
@@ -53,7 +60,8 @@ const _sfc_main = defineComponent({
53
60
  create_end: "",
54
61
  keyword: "",
55
62
  precise_keyword: "",
56
- upload_by: null
63
+ upload_by: null,
64
+ sf: ""
57
65
  };
58
66
  const filter = ref(JSON.parse(JSON.stringify(originFilter)));
59
67
  const handleReset = () => {
@@ -92,6 +100,14 @@ const _sfc_main = defineComponent({
92
100
  }
93
101
  }
94
102
  });
103
+ watch(
104
+ () => searchType.value,
105
+ () => {
106
+ filter.value.sf = "";
107
+ filter.value.precise_keyword = "";
108
+ filter.value.keyword = "";
109
+ }
110
+ );
95
111
  const isEmpty = computed(() => {
96
112
  return Object.keys(filter.value).every((key) => {
97
113
  return filter.value[key] === originFilter[key];
@@ -107,159 +123,185 @@ const _sfc_main = defineComponent({
107
123
  if (!result[key])
108
124
  delete result[key];
109
125
  });
126
+ if (!result.catalog)
127
+ result.catalog = "image,video,audio";
110
128
  emits("change", result);
111
129
  },
112
130
  { deep: true, immediate: true }
113
131
  );
132
+ watch(
133
+ () => props.filterOptions,
134
+ () => {
135
+ var _a;
136
+ if ((_a = props.filterOptions) == null ? void 0 : _a.mediaType) {
137
+ filter.value.catalog = props.filterOptions.mediaType;
138
+ }
139
+ },
140
+ { immediate: true }
141
+ );
114
142
  onMounted(() => {
115
143
  var _a;
116
144
  load();
117
- if ((_a = props.filterOptions) == null ? void 0 : _a.mediaType) {
145
+ if (((_a = props.filterOptions) == null ? void 0 : _a.mediaType) && !props.filterOptions.mediaTypeStrict) {
118
146
  filter.value.catalog = props.filterOptions.mediaType;
119
147
  originFilter.catalog = props.filterOptions.mediaType;
120
148
  }
121
149
  });
150
+ __expose({
151
+ resetFilter: handleReset
152
+ });
122
153
  return (_ctx, _cache) => {
123
154
  var _a;
124
155
  return openBlock(), createElementBlock("div", _hoisted_1, [
125
156
  createElementVNode("div", _hoisted_2, [
126
- createCommentVNode(" \u5173\u952E\u8BCD "),
127
157
  createElementVNode("div", _hoisted_3, [
128
- createVNode(unref(Input), {
129
- modelValue: searchInput.value,
130
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchInput.value = $event),
131
- "allow-clear": "",
132
- placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD"
133
- }, {
134
- prepend: withCtx(() => [
135
- createVNode(unref(Dropdown), {
136
- onSelect: _cache[0] || (_cache[0] = (e) => searchType.value = e)
137
- }, {
138
- content: withCtx(() => [
139
- createVNode(unref(Doption), { value: 0 }, {
140
- default: withCtx(() => [
141
- createTextVNode("\u7CBE\u51C6\u641C")
142
- ]),
143
- _: 1
144
- }),
145
- createVNode(unref(Doption), { value: 1 }, {
146
- default: withCtx(() => [
147
- createTextVNode("\u6A21\u7CCA\u641C")
148
- ]),
149
- _: 1
150
- })
151
- ]),
152
- default: withCtx(() => [
153
- createVNode(unref(Button), null, {
154
- default: withCtx(() => [
155
- createTextVNode(toDisplayString(searchTypeText.value), 1)
156
- ]),
157
- _: 1
158
- })
159
- ]),
160
- _: 1
161
- })
162
- ]),
163
- _: 1
164
- }, 8, ["modelValue"])
165
- ]),
166
- createCommentVNode(" \u7D20\u6750\u7C7B\u578B "),
167
- createElementVNode("div", _hoisted_4, [
168
- createVNode(unref(Select), {
169
- modelValue: filter.value.catalog,
170
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.catalog = $event),
171
- disabled: (_a = _ctx.filterOptions) == null ? void 0 : _a.mediaTypeStrict,
158
+ createCommentVNode(" \u5173\u952E\u8BCD "),
159
+ createElementVNode("div", _hoisted_4, [
160
+ createVNode(unref(Input), {
161
+ modelValue: searchInput.value,
162
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchInput.value = $event),
163
+ "allow-clear": "",
164
+ placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD"
165
+ }, {
166
+ prepend: withCtx(() => [
167
+ createVNode(unref(Dropdown), {
168
+ onSelect: _cache[0] || (_cache[0] = (e) => searchType.value = e)
169
+ }, {
170
+ content: withCtx(() => [
171
+ createVNode(unref(Doption), { value: 0 }, {
172
+ default: withCtx(() => [
173
+ createTextVNode("\u7CBE\u51C6\u641C")
174
+ ]),
175
+ _: 1
176
+ }),
177
+ createVNode(unref(Doption), { value: 1 }, {
178
+ default: withCtx(() => [
179
+ createTextVNode("\u6A21\u7CCA\u641C")
180
+ ]),
181
+ _: 1
182
+ })
183
+ ]),
184
+ default: withCtx(() => [
185
+ createVNode(unref(Button), null, {
186
+ default: withCtx(() => [
187
+ createTextVNode(toDisplayString(searchTypeText.value), 1)
188
+ ]),
189
+ _: 1
190
+ })
191
+ ]),
192
+ _: 1
193
+ })
194
+ ]),
195
+ _: 1
196
+ }, 8, ["modelValue"])
197
+ ]),
198
+ createCommentVNode(" \u7D20\u6750\u7C7B\u578B "),
199
+ createElementVNode("div", _hoisted_5, [
200
+ createVNode(unref(Select), {
201
+ modelValue: filter.value.catalog,
202
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.catalog = $event),
203
+ disabled: (_a = _ctx.filterOptions) == null ? void 0 : _a.mediaTypeStrict,
204
+ "allow-clear": "",
205
+ placeholder: "\u7C7B\u578B"
206
+ }, {
207
+ default: withCtx(() => [
208
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(resourceCatalog), (item) => {
209
+ return openBlock(), createBlock(unref(Option), {
210
+ key: item.value,
211
+ label: item.label,
212
+ value: item.value
213
+ }, null, 8, ["label", "value"]);
214
+ }), 128))
215
+ ]),
216
+ _: 1
217
+ }, 8, ["modelValue", "disabled"])
218
+ ]),
219
+ createCommentVNode(" \u65F6\u95F4\u8303\u56F4 "),
220
+ createVNode(unref(RangePicker), {
221
+ modelValue: rangeTime.value,
222
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => rangeTime.value = $event),
172
223
  "allow-clear": "",
173
- placeholder: "\u7C7B\u578B"
224
+ style: { "width": "240px" }
225
+ }, null, 8, ["modelValue"]),
226
+ createCommentVNode(" \u7D20\u6750\u4E0A\u4F20\u6765\u6E90 "),
227
+ createElementVNode("div", _hoisted_6, [
228
+ createVNode(unref(Select), {
229
+ modelValue: filter.value.source,
230
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.source = $event),
231
+ "allow-clear": "",
232
+ placeholder: "\u6765\u6E90"
233
+ }, {
234
+ default: withCtx(() => [
235
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(resourceSource), (item) => {
236
+ return openBlock(), createBlock(unref(Option), {
237
+ key: item.value,
238
+ label: item.label,
239
+ value: item.value
240
+ }, null, 8, ["label", "value"]);
241
+ }), 128))
242
+ ]),
243
+ _: 1
244
+ }, 8, ["modelValue"])
245
+ ]),
246
+ createCommentVNode(" \u7D20\u6750\u4E0A\u4F20\u4EBA "),
247
+ !_ctx.disableUploadBy ? (openBlock(), createElementBlock("div", _hoisted_7, [
248
+ createVNode(unref(Select), {
249
+ modelValue: filter.value.upload_by,
250
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.upload_by = $event),
251
+ "allow-clear": "",
252
+ placeholder: "\u4E0A\u4F20\u4EBA",
253
+ loading: unref(loading),
254
+ "allow-search": "",
255
+ onSearch: unref(handleSearch),
256
+ onDropdownReachBottom: unref(loadMore)
257
+ }, {
258
+ default: withCtx(() => [
259
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(options), (item) => {
260
+ return openBlock(), createBlock(unref(Option), {
261
+ key: item.id,
262
+ label: item.label,
263
+ value: item.value
264
+ }, null, 8, ["label", "value"]);
265
+ }), 128))
266
+ ]),
267
+ _: 1
268
+ }, 8, ["modelValue", "loading", "onSearch", "onDropdownReachBottom"])
269
+ ])) : createCommentVNode("v-if", true),
270
+ !isEmpty.value ? (openBlock(), createBlock(unref(Button), {
271
+ key: 1,
272
+ type: "text",
273
+ onClick: handleReset
174
274
  }, {
175
275
  default: withCtx(() => [
176
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(resourceCatalog), (item) => {
177
- return openBlock(), createBlock(unref(Option), {
178
- key: item.value,
179
- label: item.label,
180
- value: item.value
181
- }, null, 8, ["label", "value"]);
182
- }), 128))
276
+ createTextVNode("\u91CD\u7F6E")
183
277
  ]),
184
278
  _: 1
185
- }, 8, ["modelValue", "disabled"])
279
+ })) : createCommentVNode("v-if", true)
186
280
  ]),
187
- createCommentVNode(" \u65F6\u95F4\u8303\u56F4 "),
188
- createVNode(unref(RangePicker), {
189
- modelValue: rangeTime.value,
190
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => rangeTime.value = $event),
191
- "allow-clear": "",
192
- style: { "width": "240px" }
193
- }, null, 8, ["modelValue"]),
194
- createCommentVNode(" \u7D20\u6750\u4E0A\u4F20\u6765\u6E90 "),
195
- createElementVNode("div", _hoisted_5, [
196
- createVNode(unref(Select), {
197
- modelValue: filter.value.source,
198
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.source = $event),
199
- "allow-clear": "",
200
- placeholder: "\u6765\u6E90"
281
+ createElementVNode("div", _hoisted_8, [
282
+ createVNode(unref(Button), {
283
+ type: "primary",
284
+ onClick: _cache[6] || (_cache[6] = ($event) => emits("upload"))
201
285
  }, {
202
- default: withCtx(() => [
203
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(resourceSource), (item) => {
204
- return openBlock(), createBlock(unref(Option), {
205
- key: item.value,
206
- label: item.label,
207
- value: item.value
208
- }, null, 8, ["label", "value"]);
209
- }), 128))
286
+ icon: withCtx(() => [
287
+ createVNode(unref(IconUpload))
210
288
  ]),
211
- _: 1
212
- }, 8, ["modelValue"])
213
- ]),
214
- createCommentVNode(" \u7D20\u6750\u4E0A\u4F20\u4EBA "),
215
- !_ctx.disableUploadBy ? (openBlock(), createElementBlock("div", _hoisted_6, [
216
- createVNode(unref(Select), {
217
- modelValue: filter.value.upload_by,
218
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.upload_by = $event),
219
- "allow-clear": "",
220
- placeholder: "\u4E0A\u4F20\u4EBA",
221
- loading: unref(loading),
222
- "allow-search": "",
223
- onSearch: unref(handleSearch),
224
- onDropdownReachBottom: unref(loadMore)
225
- }, {
226
289
  default: withCtx(() => [
227
- (openBlock(true), createElementBlock(Fragment, null, renderList(unref(options), (item) => {
228
- return openBlock(), createBlock(unref(Option), {
229
- key: item.id,
230
- label: item.label,
231
- value: item.value
232
- }, null, 8, ["label", "value"]);
233
- }), 128))
290
+ createTextVNode(" \u4E0A\u4F20 ")
234
291
  ]),
235
292
  _: 1
236
- }, 8, ["modelValue", "loading", "onSearch", "onDropdownReachBottom"])
237
- ])) : createCommentVNode("v-if", true),
238
- !isEmpty.value ? (openBlock(), createBlock(unref(Button), {
239
- key: 1,
240
- type: "text",
241
- onClick: handleReset
242
- }, {
243
- default: withCtx(() => [
244
- createTextVNode("\u91CD\u7F6E")
245
- ]),
246
- _: 1
247
- })) : createCommentVNode("v-if", true)
293
+ })
294
+ ])
248
295
  ]),
249
- createElementVNode("div", _hoisted_7, [
250
- createVNode(unref(Button), {
251
- type: "primary",
252
- onClick: _cache[6] || (_cache[6] = ($event) => emits("upload"))
253
- }, {
254
- icon: withCtx(() => [
255
- createVNode(unref(IconUpload))
256
- ]),
257
- default: withCtx(() => [
258
- createTextVNode(" \u4E0A\u4F20 ")
259
- ]),
260
- _: 1
261
- })
262
- ])
296
+ searchInput.value ? (openBlock(), createElementBlock("div", _hoisted_9, [
297
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(keywordsSelection), (item) => {
298
+ return openBlock(), createElementBlock("div", {
299
+ key: item.value,
300
+ class: normalizeClass(["list-filter-tag", { active: filter.value.sf === item.value }]),
301
+ onClick: ($event) => filter.value.sf = item.value
302
+ }, toDisplayString(item.name), 11, _hoisted_10);
303
+ }), 128))
304
+ ])) : createCommentVNode("v-if", true)
263
305
  ]);
264
306
  };
265
307
  }
@@ -58,12 +58,14 @@ const _sfc_main = defineComponent({
58
58
  createElementVNode("div", _hoisted_6, [
59
59
  ["image", "video"].includes(item.catalog) ? (openBlock(), createBlock(unref(Image), {
60
60
  key: 0,
61
+ preview: false,
61
62
  width: "100%",
62
63
  height: "100%",
63
64
  src: item.thumb || item.url
64
65
  }, null, 8, ["src"])) : createCommentVNode("v-if", true),
65
66
  ["audio"].includes(item.catalog) ? (openBlock(), createBlock(unref(Image), {
66
67
  key: 1,
68
+ preview: false,
67
69
  width: "100%",
68
70
  height: "100%",
69
71
  fit: "cover",
@@ -24,8 +24,9 @@ const _sfc_main = defineComponent({
24
24
  }, {
25
25
  extra: withCtx(() => [
26
26
  createVNode(unref(Button), {
27
- type: "secondary",
27
+ type: "text",
28
28
  shape: "round",
29
+ style: { "color": "black", "transform": "translateX(-8px)" },
29
30
  onClick: _cache[0] || (_cache[0] = ($event) => emits("close"))
30
31
  }, {
31
32
  icon: withCtx(() => [
@@ -3,18 +3,36 @@
3
3
  grid-gap: 20px;
4
4
  grid-template-columns: repeat(5, 1fr);
5
5
  }
6
- .list-filter-wrapper {
6
+ .list-filter-wrapper .list-filter-tags {
7
7
  display: flex;
8
8
  justify-content: space-between;
9
+ margin-top: 10px;
9
10
  }
10
- .list-filter-wrapper .filter-list {
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 {
11
29
  display: flex;
12
30
  gap: 10px;
13
31
  }
14
- .list-filter-wrapper .filter-list .filter-item {
32
+ .list-filter-wrapper .list-filter .filter-list .filter-item {
15
33
  width: 100px;
16
34
  }
17
- .list-filter-wrapper .arco-input-prepend {
35
+ .list-filter-wrapper .list-filter .arco-input-prepend {
18
36
  padding: 0;
19
37
  }
20
38
  .list-panel-wrapper {
@@ -61,7 +79,12 @@
61
79
  overflow-y: scroll;
62
80
  }
63
81
  .list-panel-wrapper .list-selected-record::-webkit-scrollbar {
64
- display: none;
82
+ width: 6px;
83
+ }
84
+ .list-panel-wrapper .list-selected-record::-webkit-scrollbar-thumb {
85
+ background-color: #ececec;
86
+ -webkit-border-radius: 6px;
87
+ opacity: 0.5;
65
88
  }
66
89
  .list-panel-wrapper .list-selected-record .list-selected-item {
67
90
  display: flex;
@@ -1,17 +1,41 @@
1
1
  .list-filter-wrapper {
2
- display: flex;
3
- justify-content: space-between;
4
-
5
- .filter-list {
2
+ .list-filter-tags {
6
3
  display: flex;
7
- gap: 10px;
4
+ justify-content: space-between;
5
+ margin-top: 10px;
6
+
7
+ .list-filter-tag {
8
+ padding: 5px 16px;
9
+ border-radius: 15px;
10
+ cursor: pointer;
11
+
12
+ &:hover {
13
+ background-color: var(--color-fill-3);
14
+ }
8
15
 
9
- .filter-item {
10
- width: 100px;
16
+ &.active {
17
+ color: rgb(var(--primary-6));
18
+ font-weight: bold;
19
+ background: var(--color-fill-2);
20
+ }
11
21
  }
12
22
  }
13
23
 
14
- .arco-input-prepend {
15
- padding: 0;
24
+ .list-filter {
25
+ display: flex;
26
+ justify-content: space-between;
27
+
28
+ .filter-list {
29
+ display: flex;
30
+ gap: 10px;
31
+
32
+ .filter-item {
33
+ width: 100px;
34
+ }
35
+ }
36
+
37
+ .arco-input-prepend {
38
+ padding: 0;
39
+ }
16
40
  }
17
41
  }
@@ -48,7 +48,13 @@
48
48
  overflow-y: scroll;
49
49
 
50
50
  &::-webkit-scrollbar {
51
- display: none;
51
+ width: 6px;
52
+ }
53
+
54
+ &::-webkit-scrollbar-thumb {
55
+ background-color: #ececec;
56
+ -webkit-border-radius: 6px;
57
+ opacity: 0.5;
52
58
  }
53
59
 
54
60
  .list-selected-item {
@@ -1,7 +1,6 @@
1
- import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, unref, createCommentVNode, Fragment, withCtx, createTextVNode, createElementVNode, createBlock, mergeProps, renderList, withModifiers, toDisplayString } from "vue";
2
- import { IconPlus } from "@arco-design/web-vue/es/icon";
3
- import { IconResource, IconComputer, IconVideoTag, IconAudioTag } from "@arco-iconbox/vue-cmstop-icons";
4
- import { Progress, Dropdown, Doption, Image } from "@arco-design/web-vue";
1
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, unref, createCommentVNode, Fragment, createBlock, mergeProps, createElementVNode, renderList, withModifiers, toDisplayString, createTextVNode } from "vue";
2
+ import { IconVideoTag, IconAudioTag } from "@arco-iconbox/vue-cmstop-icons";
3
+ import { Progress, Image } from "@arco-design/web-vue";
5
4
  import magic from "./assets/magic.js";
6
5
  import { DEFAULT_BASE_API } from "../config.js";
7
6
  import { mediaTime } from "../utils/index.js";
@@ -16,7 +15,7 @@ const _hoisted_2 = {
16
15
  const _hoisted_3 = { class: "thumb-handler-list" };
17
16
  const _hoisted_4 = ["onClick"];
18
17
  const _hoisted_5 = {
19
- key: 3,
18
+ key: 2,
20
19
  class: "thumb-select-tag"
21
20
  };
22
21
  const _sfc_main = defineComponent({
@@ -26,7 +25,6 @@ const _sfc_main = defineComponent({
26
25
  BASE_API: {},
27
26
  url: {},
28
27
  thumb: {},
29
- isEdit: { type: Boolean },
30
28
  useMask: { type: Boolean },
31
29
  options: {},
32
30
  meta: {},
@@ -75,9 +73,6 @@ const _sfc_main = defineComponent({
75
73
  function handleOption(key) {
76
74
  emits("handle", { key, item: props.meta });
77
75
  }
78
- function handleEdit(key) {
79
- emits("edit", { key });
80
- }
81
76
  return (_ctx, _cache) => {
82
77
  var _a, _b, _c;
83
78
  return openBlock(), createElementBlock("div", {
@@ -90,39 +85,7 @@ const _sfc_main = defineComponent({
90
85
  percent: (_a = _ctx.meta) == null ? void 0 : _a.progress
91
86
  }, null, 8, ["percent"]),
92
87
  ((_b = _ctx.meta) == null ? void 0 : _b.isTrans) ? (openBlock(), createElementBlock("div", _hoisted_2, "\u8F6C\u7801\u4E2D...")) : createCommentVNode("v-if", true)
93
- ])) : _ctx.isEdit && !_ctx.url ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
94
- createCommentVNode(" \u7F16\u8F91\u6A21\u5F0F\u4E0B\u53EF\u4F7F\u7528\u60AC\u6D6E\u6846\u5FEB\u901F\u63D2\u5165\u7D20\u6750 "),
95
- createVNode(unref(Dropdown), {
96
- trigger: "hover",
97
- onSelect: handleEdit
98
- }, {
99
- content: withCtx(() => [
100
- createVNode(unref(Doption), { value: "resource" }, {
101
- default: withCtx(() => [
102
- createVNode(unref(IconResource)),
103
- createTextVNode(" \u7D20\u6750\u5E93\u9009\u62E9 ")
104
- ]),
105
- _: 1
106
- }),
107
- createVNode(unref(Doption), { value: "local" }, {
108
- default: withCtx(() => [
109
- createVNode(unref(IconComputer)),
110
- createTextVNode(" \u672C\u5730\u4E0A\u4F20 ")
111
- ]),
112
- _: 1
113
- })
114
- ]),
115
- default: withCtx(() => [
116
- createElementVNode("div", {
117
- class: "thumb-add",
118
- onClick: _cache[0] || (_cache[0] = ($event) => handleEdit("resource"))
119
- }, [
120
- createVNode(unref(IconPlus))
121
- ])
122
- ]),
123
- _: 1
124
- })
125
- ], 64)) : _ctx.catalog && _ctx.url ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
88
+ ])) : _ctx.catalog && _ctx.url ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
126
89
  createCommentVNode(" \u6709\u7C7B\u578B\u7684\u5C01\u9762 "),
127
90
  createCommentVNode(" \u56FE\u7247 "),
128
91
  _ctx.catalog ? (openBlock(), createBlock(unref(Image), mergeProps({
@@ -22,11 +22,6 @@
22
22
  .thumb-select-wrapper .thumb-upload-loading .arco-progress-circle-text {
23
23
  color: #fff;
24
24
  }
25
- .thumb-select-wrapper .thumb-add {
26
- color: var(--color-text-2);
27
- font-size: 16px;
28
- cursor: pointer;
29
- }
30
25
  .thumb-select-wrapper .thumb-image img {
31
26
  width: 100%;
32
27
  height: 100%;
@@ -83,9 +78,3 @@
83
78
  opacity: 1;
84
79
  transition: all 0.3s ease-in-out;
85
80
  }
86
- .thumb-select-wrapper .arco-dropdown-option-content {
87
- display: flex;
88
- gap: 8px;
89
- align-items: center;
90
- font-size: 14px;
91
- }
@@ -26,13 +26,6 @@
26
26
  }
27
27
  }
28
28
 
29
- // 添加模式
30
- .thumb-add {
31
- color: var(--color-text-2);
32
- font-size: 16px;
33
- cursor: pointer;
34
- }
35
-
36
29
  // 样式
37
30
  .thumb-image {
38
31
  img {
@@ -104,12 +97,4 @@
104
97
  opacity: 1;
105
98
  transition: all 0.3s ease-in-out;
106
99
  }
107
-
108
- // 素材选择
109
- .arco-dropdown-option-content {
110
- display: flex;
111
- gap: 8px;
112
- align-items: center;
113
- font-size: 14px;
114
- }
115
100
  }
@@ -0,0 +1,4 @@
1
+ export declare const keywordsSelection: {
2
+ name: string;
3
+ value: string;
4
+ }[];