@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
@@ -67,6 +67,7 @@ const _sfc_main = vue.defineComponent({
67
67
  list,
68
68
  total,
69
69
  limit,
70
+ pageIdx,
70
71
  loading,
71
72
  changeKey,
72
73
  changeFilter,
@@ -101,6 +102,18 @@ const _sfc_main = vue.defineComponent({
101
102
  changeKey("local");
102
103
  activeKey.value = "local";
103
104
  }
105
+ const FilterRef = vue.ref();
106
+ vue.watch(
107
+ () => props.visible,
108
+ () => {
109
+ if (props.visible) {
110
+ activeKey.value = "all";
111
+ changeKey("all");
112
+ if (FilterRef.value)
113
+ FilterRef.value.resetFilter();
114
+ }
115
+ }
116
+ );
104
117
  return (_ctx, _cache) => {
105
118
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
106
119
  (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.wrap === "drawer" ? vue.unref(webVue.Drawer) : vue.unref(webVue.Modal)), vue.mergeProps({ visible: _ctx.visible }, wrapProps.value), {
@@ -117,6 +130,8 @@ const _sfc_main = vue.defineComponent({
117
130
  vue.createCommentVNode(" \u7B5B\u9009 "),
118
131
  activeKey.value !== "local" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, [
119
132
  vue.createVNode(index$1, {
133
+ ref_key: "FilterRef",
134
+ ref: FilterRef,
120
135
  "disable-upload-by": !["all", "remind"].includes(activeKey.value),
121
136
  filterOptions: _ctx.filterOptions,
122
137
  onChange: vue.unref(changeFilter),
@@ -157,15 +172,17 @@ const _sfc_main = vue.defineComponent({
157
172
  vue.createElementVNode("div", _hoisted_7, [
158
173
  activeKey.value !== "local" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Pagination), {
159
174
  key: 0,
175
+ current: vue.unref(pageIdx),
176
+ "onUpdate:current": _cache[1] || (_cache[1] = ($event) => vue.isRef(pageIdx) ? pageIdx.value = $event : null),
160
177
  total: vue.unref(total),
161
178
  "page-size": vue.unref(limit),
162
179
  "show-total": "",
163
180
  "show-page-size": "",
164
181
  "base-size": 3,
165
182
  "buffer-size": 1,
166
- onChange: _cache[1] || (_cache[1] = (e) => vue.unref(changePage)((e - 1) * vue.unref(limit))),
183
+ onChange: _cache[2] || (_cache[2] = (e) => vue.unref(changePage)((e - 1) * vue.unref(limit))),
167
184
  onPageSizeChange: vue.unref(changeSize)
168
- }, null, 8, ["total", "page-size", "onPageSizeChange"])) : vue.createCommentVNode("v-if", true)
185
+ }, null, 8, ["current", "total", "page-size", "onPageSizeChange"])) : vue.createCommentVNode("v-if", true)
169
186
  ]),
170
187
  vue.unref(selected).length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_8, [
171
188
  vue.createVNode(index$4, {
@@ -74,7 +74,7 @@ const _sfc_main = vue.defineComponent({
74
74
  default: vue.withCtx(() => [
75
75
  vue.createVNode(vue.unref(index$1), {
76
76
  url: item.url,
77
- thumb: item.url,
77
+ thumb: item.thumb || item.url,
78
78
  catalog: item.catalog,
79
79
  meta: item,
80
80
  options: {
@@ -5,16 +5,23 @@ var icon = require("@arco-design/web-vue/es/icon");
5
5
  var useSelection = require("../../../hooks/useSelection.js");
6
6
  var typeMap = require("../../../utils/typeMap.js");
7
7
  var api = require("./scripts/api.js");
8
+ var resource = require("../../../utils/resource.js");
8
9
  const _hoisted_1 = { class: "list-filter-wrapper" };
9
- const _hoisted_2 = { class: "filter-list" };
10
- const _hoisted_3 = { style: { "width": "200px" } };
11
- const _hoisted_4 = { class: "filter-item" };
10
+ const _hoisted_2 = { class: "list-filter" };
11
+ const _hoisted_3 = { class: "filter-list" };
12
+ const _hoisted_4 = { style: { "width": "200px" } };
12
13
  const _hoisted_5 = { class: "filter-item" };
13
- const _hoisted_6 = {
14
+ const _hoisted_6 = { class: "filter-item" };
15
+ const _hoisted_7 = {
14
16
  key: 0,
15
17
  class: "filter-item"
16
18
  };
17
- const _hoisted_7 = { class: "filter-extra" };
19
+ const _hoisted_8 = { class: "filter-extra" };
20
+ const _hoisted_9 = {
21
+ key: 0,
22
+ class: "list-filter-tags"
23
+ };
24
+ const _hoisted_10 = ["onClick"];
18
25
  const _sfc_main = vue.defineComponent({
19
26
  __name: "index",
20
27
  props: {
@@ -22,7 +29,7 @@ const _sfc_main = vue.defineComponent({
22
29
  filterOptions: {}
23
30
  },
24
31
  emits: ["upload", "change"],
25
- setup(__props, { emit: __emit }) {
32
+ setup(__props, { expose: __expose, emit: __emit }) {
26
33
  const props = __props;
27
34
  const emits = __emit;
28
35
  const userInfo = vue.inject("userInfo");
@@ -54,7 +61,8 @@ const _sfc_main = vue.defineComponent({
54
61
  create_end: "",
55
62
  keyword: "",
56
63
  precise_keyword: "",
57
- upload_by: null
64
+ upload_by: null,
65
+ sf: ""
58
66
  };
59
67
  const filter = vue.ref(JSON.parse(JSON.stringify(originFilter)));
60
68
  const handleReset = () => {
@@ -93,6 +101,14 @@ const _sfc_main = vue.defineComponent({
93
101
  }
94
102
  }
95
103
  });
104
+ vue.watch(
105
+ () => searchType.value,
106
+ () => {
107
+ filter.value.sf = "";
108
+ filter.value.precise_keyword = "";
109
+ filter.value.keyword = "";
110
+ }
111
+ );
96
112
  const isEmpty = vue.computed(() => {
97
113
  return Object.keys(filter.value).every((key) => {
98
114
  return filter.value[key] === originFilter[key];
@@ -108,159 +124,185 @@ const _sfc_main = vue.defineComponent({
108
124
  if (!result[key])
109
125
  delete result[key];
110
126
  });
127
+ if (!result.catalog)
128
+ result.catalog = "image,video,audio";
111
129
  emits("change", result);
112
130
  },
113
131
  { deep: true, immediate: true }
114
132
  );
133
+ vue.watch(
134
+ () => props.filterOptions,
135
+ () => {
136
+ var _a;
137
+ if ((_a = props.filterOptions) == null ? void 0 : _a.mediaType) {
138
+ filter.value.catalog = props.filterOptions.mediaType;
139
+ }
140
+ },
141
+ { immediate: true }
142
+ );
115
143
  vue.onMounted(() => {
116
144
  var _a;
117
145
  load();
118
- if ((_a = props.filterOptions) == null ? void 0 : _a.mediaType) {
146
+ if (((_a = props.filterOptions) == null ? void 0 : _a.mediaType) && !props.filterOptions.mediaTypeStrict) {
119
147
  filter.value.catalog = props.filterOptions.mediaType;
120
148
  originFilter.catalog = props.filterOptions.mediaType;
121
149
  }
122
150
  });
151
+ __expose({
152
+ resetFilter: handleReset
153
+ });
123
154
  return (_ctx, _cache) => {
124
155
  var _a;
125
156
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
126
157
  vue.createElementVNode("div", _hoisted_2, [
127
- vue.createCommentVNode(" \u5173\u952E\u8BCD "),
128
158
  vue.createElementVNode("div", _hoisted_3, [
129
- vue.createVNode(vue.unref(webVue.Input), {
130
- modelValue: searchInput.value,
131
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchInput.value = $event),
132
- "allow-clear": "",
133
- placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD"
134
- }, {
135
- prepend: vue.withCtx(() => [
136
- vue.createVNode(vue.unref(webVue.Dropdown), {
137
- onSelect: _cache[0] || (_cache[0] = (e) => searchType.value = e)
138
- }, {
139
- content: vue.withCtx(() => [
140
- vue.createVNode(vue.unref(webVue.Doption), { value: 0 }, {
141
- default: vue.withCtx(() => [
142
- vue.createTextVNode("\u7CBE\u51C6\u641C")
143
- ]),
144
- _: 1
145
- }),
146
- vue.createVNode(vue.unref(webVue.Doption), { value: 1 }, {
147
- default: vue.withCtx(() => [
148
- vue.createTextVNode("\u6A21\u7CCA\u641C")
149
- ]),
150
- _: 1
151
- })
152
- ]),
153
- default: vue.withCtx(() => [
154
- vue.createVNode(vue.unref(webVue.Button), null, {
155
- default: vue.withCtx(() => [
156
- vue.createTextVNode(vue.toDisplayString(searchTypeText.value), 1)
157
- ]),
158
- _: 1
159
- })
160
- ]),
161
- _: 1
162
- })
163
- ]),
164
- _: 1
165
- }, 8, ["modelValue"])
166
- ]),
167
- vue.createCommentVNode(" \u7D20\u6750\u7C7B\u578B "),
168
- vue.createElementVNode("div", _hoisted_4, [
169
- vue.createVNode(vue.unref(webVue.Select), {
170
- modelValue: filter.value.catalog,
171
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.catalog = $event),
172
- disabled: (_a = _ctx.filterOptions) == null ? void 0 : _a.mediaTypeStrict,
159
+ vue.createCommentVNode(" \u5173\u952E\u8BCD "),
160
+ vue.createElementVNode("div", _hoisted_4, [
161
+ vue.createVNode(vue.unref(webVue.Input), {
162
+ modelValue: searchInput.value,
163
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchInput.value = $event),
164
+ "allow-clear": "",
165
+ placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD"
166
+ }, {
167
+ prepend: vue.withCtx(() => [
168
+ vue.createVNode(vue.unref(webVue.Dropdown), {
169
+ onSelect: _cache[0] || (_cache[0] = (e) => searchType.value = e)
170
+ }, {
171
+ content: vue.withCtx(() => [
172
+ vue.createVNode(vue.unref(webVue.Doption), { value: 0 }, {
173
+ default: vue.withCtx(() => [
174
+ vue.createTextVNode("\u7CBE\u51C6\u641C")
175
+ ]),
176
+ _: 1
177
+ }),
178
+ vue.createVNode(vue.unref(webVue.Doption), { value: 1 }, {
179
+ default: vue.withCtx(() => [
180
+ vue.createTextVNode("\u6A21\u7CCA\u641C")
181
+ ]),
182
+ _: 1
183
+ })
184
+ ]),
185
+ default: vue.withCtx(() => [
186
+ vue.createVNode(vue.unref(webVue.Button), null, {
187
+ default: vue.withCtx(() => [
188
+ vue.createTextVNode(vue.toDisplayString(searchTypeText.value), 1)
189
+ ]),
190
+ _: 1
191
+ })
192
+ ]),
193
+ _: 1
194
+ })
195
+ ]),
196
+ _: 1
197
+ }, 8, ["modelValue"])
198
+ ]),
199
+ vue.createCommentVNode(" \u7D20\u6750\u7C7B\u578B "),
200
+ vue.createElementVNode("div", _hoisted_5, [
201
+ vue.createVNode(vue.unref(webVue.Select), {
202
+ modelValue: filter.value.catalog,
203
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.catalog = $event),
204
+ disabled: (_a = _ctx.filterOptions) == null ? void 0 : _a.mediaTypeStrict,
205
+ "allow-clear": "",
206
+ placeholder: "\u7C7B\u578B"
207
+ }, {
208
+ default: vue.withCtx(() => [
209
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(resourceCatalog), (item) => {
210
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
211
+ key: item.value,
212
+ label: item.label,
213
+ value: item.value
214
+ }, null, 8, ["label", "value"]);
215
+ }), 128))
216
+ ]),
217
+ _: 1
218
+ }, 8, ["modelValue", "disabled"])
219
+ ]),
220
+ vue.createCommentVNode(" \u65F6\u95F4\u8303\u56F4 "),
221
+ vue.createVNode(vue.unref(webVue.RangePicker), {
222
+ modelValue: rangeTime.value,
223
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => rangeTime.value = $event),
173
224
  "allow-clear": "",
174
- placeholder: "\u7C7B\u578B"
225
+ style: { "width": "240px" }
226
+ }, null, 8, ["modelValue"]),
227
+ vue.createCommentVNode(" \u7D20\u6750\u4E0A\u4F20\u6765\u6E90 "),
228
+ vue.createElementVNode("div", _hoisted_6, [
229
+ vue.createVNode(vue.unref(webVue.Select), {
230
+ modelValue: filter.value.source,
231
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.source = $event),
232
+ "allow-clear": "",
233
+ placeholder: "\u6765\u6E90"
234
+ }, {
235
+ default: vue.withCtx(() => [
236
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(resourceSource), (item) => {
237
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
238
+ key: item.value,
239
+ label: item.label,
240
+ value: item.value
241
+ }, null, 8, ["label", "value"]);
242
+ }), 128))
243
+ ]),
244
+ _: 1
245
+ }, 8, ["modelValue"])
246
+ ]),
247
+ vue.createCommentVNode(" \u7D20\u6750\u4E0A\u4F20\u4EBA "),
248
+ !_ctx.disableUploadBy ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
249
+ vue.createVNode(vue.unref(webVue.Select), {
250
+ modelValue: filter.value.upload_by,
251
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.upload_by = $event),
252
+ "allow-clear": "",
253
+ placeholder: "\u4E0A\u4F20\u4EBA",
254
+ loading: vue.unref(loading),
255
+ "allow-search": "",
256
+ onSearch: vue.unref(handleSearch),
257
+ onDropdownReachBottom: vue.unref(loadMore)
258
+ }, {
259
+ default: vue.withCtx(() => [
260
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(options), (item) => {
261
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
262
+ key: item.id,
263
+ label: item.label,
264
+ value: item.value
265
+ }, null, 8, ["label", "value"]);
266
+ }), 128))
267
+ ]),
268
+ _: 1
269
+ }, 8, ["modelValue", "loading", "onSearch", "onDropdownReachBottom"])
270
+ ])) : vue.createCommentVNode("v-if", true),
271
+ !isEmpty.value ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
272
+ key: 1,
273
+ type: "text",
274
+ onClick: handleReset
175
275
  }, {
176
276
  default: vue.withCtx(() => [
177
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(resourceCatalog), (item) => {
178
- return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
179
- key: item.value,
180
- label: item.label,
181
- value: item.value
182
- }, null, 8, ["label", "value"]);
183
- }), 128))
277
+ vue.createTextVNode("\u91CD\u7F6E")
184
278
  ]),
185
279
  _: 1
186
- }, 8, ["modelValue", "disabled"])
280
+ })) : vue.createCommentVNode("v-if", true)
187
281
  ]),
188
- vue.createCommentVNode(" \u65F6\u95F4\u8303\u56F4 "),
189
- vue.createVNode(vue.unref(webVue.RangePicker), {
190
- modelValue: rangeTime.value,
191
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => rangeTime.value = $event),
192
- "allow-clear": "",
193
- style: { "width": "240px" }
194
- }, null, 8, ["modelValue"]),
195
- vue.createCommentVNode(" \u7D20\u6750\u4E0A\u4F20\u6765\u6E90 "),
196
- vue.createElementVNode("div", _hoisted_5, [
197
- vue.createVNode(vue.unref(webVue.Select), {
198
- modelValue: filter.value.source,
199
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.source = $event),
200
- "allow-clear": "",
201
- placeholder: "\u6765\u6E90"
282
+ vue.createElementVNode("div", _hoisted_8, [
283
+ vue.createVNode(vue.unref(webVue.Button), {
284
+ type: "primary",
285
+ onClick: _cache[6] || (_cache[6] = ($event) => emits("upload"))
202
286
  }, {
203
- default: vue.withCtx(() => [
204
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(resourceSource), (item) => {
205
- return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
206
- key: item.value,
207
- label: item.label,
208
- value: item.value
209
- }, null, 8, ["label", "value"]);
210
- }), 128))
287
+ icon: vue.withCtx(() => [
288
+ vue.createVNode(vue.unref(icon.IconUpload))
211
289
  ]),
212
- _: 1
213
- }, 8, ["modelValue"])
214
- ]),
215
- vue.createCommentVNode(" \u7D20\u6750\u4E0A\u4F20\u4EBA "),
216
- !_ctx.disableUploadBy ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
217
- vue.createVNode(vue.unref(webVue.Select), {
218
- modelValue: filter.value.upload_by,
219
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.upload_by = $event),
220
- "allow-clear": "",
221
- placeholder: "\u4E0A\u4F20\u4EBA",
222
- loading: vue.unref(loading),
223
- "allow-search": "",
224
- onSearch: vue.unref(handleSearch),
225
- onDropdownReachBottom: vue.unref(loadMore)
226
- }, {
227
290
  default: vue.withCtx(() => [
228
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(options), (item) => {
229
- return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
230
- key: item.id,
231
- label: item.label,
232
- value: item.value
233
- }, null, 8, ["label", "value"]);
234
- }), 128))
291
+ vue.createTextVNode(" \u4E0A\u4F20 ")
235
292
  ]),
236
293
  _: 1
237
- }, 8, ["modelValue", "loading", "onSearch", "onDropdownReachBottom"])
238
- ])) : vue.createCommentVNode("v-if", true),
239
- !isEmpty.value ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
240
- key: 1,
241
- type: "text",
242
- onClick: handleReset
243
- }, {
244
- default: vue.withCtx(() => [
245
- vue.createTextVNode("\u91CD\u7F6E")
246
- ]),
247
- _: 1
248
- })) : vue.createCommentVNode("v-if", true)
294
+ })
295
+ ])
249
296
  ]),
250
- vue.createElementVNode("div", _hoisted_7, [
251
- vue.createVNode(vue.unref(webVue.Button), {
252
- type: "primary",
253
- onClick: _cache[6] || (_cache[6] = ($event) => emits("upload"))
254
- }, {
255
- icon: vue.withCtx(() => [
256
- vue.createVNode(vue.unref(icon.IconUpload))
257
- ]),
258
- default: vue.withCtx(() => [
259
- vue.createTextVNode(" \u4E0A\u4F20 ")
260
- ]),
261
- _: 1
262
- })
263
- ])
297
+ searchInput.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, [
298
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(resource.keywordsSelection), (item) => {
299
+ return vue.openBlock(), vue.createElementBlock("div", {
300
+ key: item.value,
301
+ class: vue.normalizeClass(["list-filter-tag", { active: filter.value.sf === item.value }]),
302
+ onClick: ($event) => filter.value.sf = item.value
303
+ }, vue.toDisplayString(item.name), 11, _hoisted_10);
304
+ }), 128))
305
+ ])) : vue.createCommentVNode("v-if", true)
264
306
  ]);
265
307
  };
266
308
  }
@@ -59,12 +59,14 @@ const _sfc_main = vue.defineComponent({
59
59
  vue.createElementVNode("div", _hoisted_6, [
60
60
  ["image", "video"].includes(item.catalog) ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Image), {
61
61
  key: 0,
62
+ preview: false,
62
63
  width: "100%",
63
64
  height: "100%",
64
65
  src: item.thumb || item.url
65
66
  }, null, 8, ["src"])) : vue.createCommentVNode("v-if", true),
66
67
  ["audio"].includes(item.catalog) ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Image), {
67
68
  key: 1,
69
+ preview: false,
68
70
  width: "100%",
69
71
  height: "100%",
70
72
  fit: "cover",
@@ -25,8 +25,9 @@ const _sfc_main = vue.defineComponent({
25
25
  }, {
26
26
  extra: vue.withCtx(() => [
27
27
  vue.createVNode(vue.unref(webVue.Button), {
28
- type: "secondary",
28
+ type: "text",
29
29
  shape: "round",
30
+ style: { "color": "black", "transform": "translateX(-8px)" },
30
31
  onClick: _cache[0] || (_cache[0] = ($event) => emits("close"))
31
32
  }, {
32
33
  icon: vue.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,6 +1,5 @@
1
1
  "use strict";
2
2
  var vue = require("vue");
3
- var icon = require("@arco-design/web-vue/es/icon");
4
3
  var vueCmstopIcons = require("@arco-iconbox/vue-cmstop-icons");
5
4
  var webVue = require("@arco-design/web-vue");
6
5
  var magic = require("./assets/magic.js");
@@ -17,7 +16,7 @@ const _hoisted_2 = {
17
16
  const _hoisted_3 = { class: "thumb-handler-list" };
18
17
  const _hoisted_4 = ["onClick"];
19
18
  const _hoisted_5 = {
20
- key: 3,
19
+ key: 2,
21
20
  class: "thumb-select-tag"
22
21
  };
23
22
  const _sfc_main = vue.defineComponent({
@@ -27,7 +26,6 @@ const _sfc_main = vue.defineComponent({
27
26
  BASE_API: {},
28
27
  url: {},
29
28
  thumb: {},
30
- isEdit: { type: Boolean },
31
29
  useMask: { type: Boolean },
32
30
  options: {},
33
31
  meta: {},
@@ -76,9 +74,6 @@ const _sfc_main = vue.defineComponent({
76
74
  function handleOption(key) {
77
75
  emits("handle", { key, item: props.meta });
78
76
  }
79
- function handleEdit(key) {
80
- emits("edit", { key });
81
- }
82
77
  return (_ctx, _cache) => {
83
78
  var _a, _b, _c;
84
79
  return vue.openBlock(), vue.createElementBlock("div", {
@@ -91,39 +86,7 @@ const _sfc_main = vue.defineComponent({
91
86
  percent: (_a = _ctx.meta) == null ? void 0 : _a.progress
92
87
  }, null, 8, ["percent"]),
93
88
  ((_b = _ctx.meta) == null ? void 0 : _b.isTrans) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, "\u8F6C\u7801\u4E2D...")) : vue.createCommentVNode("v-if", true)
94
- ])) : _ctx.isEdit && !_ctx.url ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
95
- vue.createCommentVNode(" \u7F16\u8F91\u6A21\u5F0F\u4E0B\u53EF\u4F7F\u7528\u60AC\u6D6E\u6846\u5FEB\u901F\u63D2\u5165\u7D20\u6750 "),
96
- vue.createVNode(vue.unref(webVue.Dropdown), {
97
- trigger: "hover",
98
- onSelect: handleEdit
99
- }, {
100
- content: vue.withCtx(() => [
101
- vue.createVNode(vue.unref(webVue.Doption), { value: "resource" }, {
102
- default: vue.withCtx(() => [
103
- vue.createVNode(vue.unref(vueCmstopIcons.IconResource)),
104
- vue.createTextVNode(" \u7D20\u6750\u5E93\u9009\u62E9 ")
105
- ]),
106
- _: 1
107
- }),
108
- vue.createVNode(vue.unref(webVue.Doption), { value: "local" }, {
109
- default: vue.withCtx(() => [
110
- vue.createVNode(vue.unref(vueCmstopIcons.IconComputer)),
111
- vue.createTextVNode(" \u672C\u5730\u4E0A\u4F20 ")
112
- ]),
113
- _: 1
114
- })
115
- ]),
116
- default: vue.withCtx(() => [
117
- vue.createElementVNode("div", {
118
- class: "thumb-add",
119
- onClick: _cache[0] || (_cache[0] = ($event) => handleEdit("resource"))
120
- }, [
121
- vue.createVNode(vue.unref(icon.IconPlus))
122
- ])
123
- ]),
124
- _: 1
125
- })
126
- ], 64)) : _ctx.catalog && _ctx.url ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
89
+ ])) : _ctx.catalog && _ctx.url ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
127
90
  vue.createCommentVNode(" \u6709\u7C7B\u578B\u7684\u5C01\u9762 "),
128
91
  vue.createCommentVNode(" \u56FE\u7247 "),
129
92
  _ctx.catalog ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Image), vue.mergeProps({