@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,33 +1,33 @@
1
1
  .reference-btn {
2
- border: none;
3
2
  padding: 12px 16px;
4
- border-radius: 4px;
5
3
  color: #5f5f5f;
4
+ border: none;
5
+ border-radius: 4px;
6
6
  }
7
7
  .apps-box-popover {
8
8
  position: relative;
9
9
  padding: 10px;
10
10
  }
11
11
  .app-title {
12
- font-size: 16px;
12
+ padding: 0 15px;
13
13
  font-weight: bold;
14
- padding: 0px 15px;
14
+ font-size: 16px;
15
15
  }
16
16
  .ul-list {
17
- list-style: none;
18
- overflow: hidden;
19
17
  width: 435px !important;
20
- text-align: center;
21
- padding: 0;
22
18
  margin: 0;
19
+ padding: 0;
20
+ overflow: hidden;
21
+ text-align: center;
22
+ list-style: none;
23
23
  }
24
24
  .ul-list .li_item {
25
+ position: relative;
25
26
  float: left;
26
27
  width: 85px;
27
28
  height: 90px;
28
- text-align: center;
29
29
  margin: 13px 0;
30
- position: relative;
30
+ text-align: center;
31
31
  }
32
32
  .ul-list .li_item .icon-logo .svg-icon {
33
33
  width: 4em;
@@ -42,8 +42,8 @@
42
42
  display: block;
43
43
  }
44
44
  .ul-list .li_item .wrap_icon {
45
- width: 70px;
46
45
  display: inline-block;
46
+ width: 70px;
47
47
  margin-top: 6px;
48
48
  }
49
49
  .ul-list .li_item .wrap_icon .wrap_ .icon-logo {
@@ -52,8 +52,11 @@
52
52
  margin-bottom: 4px;
53
53
  }
54
54
  .ul-list .li_item .wrap_icon .wrap_ .icon-logo img {
55
+ width: 50px;
55
56
  max-width: 100%;
57
+ height: 50px;
56
58
  max-height: 100%;
59
+ border-radius: 50%;
57
60
  }
58
61
  .ul-list .li_item .wrap_icon .wrap_ .shortcut-logo {
59
62
  line-height: 77px;
@@ -66,8 +69,8 @@
66
69
  width: 73px;
67
70
  height: 20px;
68
71
  overflow: hidden;
69
- text-overflow: ellipsis;
70
72
  white-space: nowrap;
73
+ text-overflow: ellipsis;
71
74
  }
72
75
  .ul-list .li_item .wrap_icon .quick-add .icon-logo {
73
76
  width: 40px;
@@ -78,13 +81,13 @@
78
81
  border-radius: 50%;
79
82
  }
80
83
  .ul-list .li_item .wrap_icon .quick-add .icon-logo i {
81
- line-height: 40px;
82
84
  color: rgba(0, 0, 0, 0.85);
83
85
  font-size: 14px;
86
+ line-height: 40px;
84
87
  }
85
88
  .ul-list .li_item .icon-gengduo {
86
- display: none;
87
89
  position: absolute;
88
90
  top: 2px;
89
91
  right: 4px;
92
+ display: none;
90
93
  }
@@ -1,78 +1,95 @@
1
1
  .reference-btn {
2
- border: none;
3
2
  padding: 12px 16px;
4
- border-radius: 4px;
5
3
  color: #5f5f5f;
4
+ border: none;
5
+ border-radius: 4px;
6
6
  }
7
+
7
8
  .apps-box-popover {
8
9
  position: relative;
9
10
  padding: 10px;
10
11
  }
12
+
11
13
  .app-title {
12
- font-size: 16px;
14
+ padding: 0 15px;
13
15
  font-weight: bold;
14
- padding: 0px 15px;
16
+ font-size: 16px;
15
17
  }
18
+
16
19
  .ul-list {
17
- list-style: none;
18
- overflow: hidden;
19
20
  width: 435px !important;
20
- text-align: center;
21
- padding: 0;
22
21
  margin: 0;
22
+ padding: 0;
23
+ overflow: hidden;
24
+ text-align: center;
25
+ list-style: none;
26
+
23
27
  .li_item {
28
+ position: relative;
24
29
  float: left;
25
30
  width: 85px;
26
31
  height: 90px;
27
- text-align: center;
28
32
  // margin-left: 16px;
29
33
  margin: 13px 0;
30
- position: relative;
34
+ text-align: center;
35
+
31
36
  .icon-logo {
32
37
  .svg-icon {
33
38
  width: 4em;
34
39
  height: 3.5em;
35
40
  }
36
41
  }
42
+
37
43
  &:hover {
38
44
  // transition: ease-out 0.2s;
39
45
  // transform: scale(1.1);
40
46
  background: rgba(0, 0, 0, 0.05);
41
47
  border-radius: 4px;
42
48
  cursor: pointer;
49
+
43
50
  .icon-gengduo {
44
51
  display: block;
45
52
  }
46
53
  }
54
+
47
55
  .wrap_icon {
48
- width: 70px;
49
56
  display: inline-block;
57
+ width: 70px;
50
58
  margin-top: 6px;
59
+
51
60
  .wrap_ {
52
61
  .icon-logo {
53
62
  width: 70px;
54
63
  height: 50px;
55
64
  margin-bottom: 4px;
65
+
56
66
  img {
67
+ width: 50px;
57
68
  max-width: 100%;
69
+ height: 50px;
58
70
  max-height: 100%;
71
+ border-radius: 50%;
59
72
  }
60
73
  }
74
+
61
75
  .shortcut-logo {
62
76
  line-height: 77px;
77
+
63
78
  img {
64
79
  width: 35px;
65
80
  height: 35px;
66
81
  }
67
82
  }
83
+
68
84
  .icon_title {
69
85
  width: 73px;
70
86
  height: 20px;
71
87
  overflow: hidden;
72
- text-overflow: ellipsis;
73
88
  white-space: nowrap;
89
+ text-overflow: ellipsis;
74
90
  }
75
91
  }
92
+
76
93
  .quick-add {
77
94
  .icon-logo {
78
95
  width: 40px;
@@ -81,20 +98,21 @@
81
98
  text-align: center;
82
99
  background-color: rgba(0, 0, 0, 0.12);
83
100
  border-radius: 50%;
101
+
84
102
  i {
85
- line-height: 40px;
86
103
  color: rgba(0, 0, 0, 0.85);
87
104
  font-size: 14px;
105
+ line-height: 40px;
88
106
  }
89
107
  }
90
108
  }
91
109
  }
110
+
92
111
  .icon-gengduo {
93
- display: none;
94
112
  position: absolute;
95
113
  top: 2px;
96
114
  right: 4px;
115
+ display: none;
97
116
  }
98
117
  }
99
118
  }
100
-
@@ -47,6 +47,7 @@ const _sfc_main = defineComponent({
47
47
  return openBlock(), createBlock(unref(Drawer), {
48
48
  visible: vis.value,
49
49
  "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => vis.value = $event),
50
+ "unmount-on-close": "",
50
51
  class: "doc-history-drawer",
51
52
  title: "\u7248\u672C\u8BB0\u5F55",
52
53
  width: 1e3,
@@ -1,28 +1,27 @@
1
- import { defineComponent, toRef, onMounted, openBlock, createElementBlock, createElementVNode, createVNode, unref, withCtx, Fragment, createCommentVNode, createTextVNode, toDisplayString, isRef, renderList, createBlock } from "vue";
1
+ import { defineComponent, toRef, onMounted, openBlock, createElementBlock, createElementVNode, createVNode, unref, withModifiers, withCtx, Fragment, createCommentVNode, createTextVNode, toDisplayString, isRef, renderList, createBlock } from "vue";
2
2
  import { Spin, Link, Button, Select, Option } from "@arco-design/web-vue";
3
3
  import { IconClose } from "@arco-design/web-vue/es/icon";
4
4
  import { DEFAULT_BASE_API } from "../config.js";
5
5
  import _sfc_main$1 from "./components/PreviewIframe.js";
6
6
  import { useDocPreview, EXPIRE_TIME_OPTIONS } from "./scripts/hook.js";
7
- const _hoisted_1 = { class: "doc-preview-container" };
8
- const _hoisted_2 = { class: "preview-close" };
9
- const _hoisted_3 = { class: "doc-preview-share" };
10
- const _hoisted_4 = { class: "doc-preview-share-img" };
11
- const _hoisted_5 = ["src"];
12
- const _hoisted_6 = /* @__PURE__ */ createElementVNode("div", { class: "doc-preview-share-tips" }, "\u626B\u63CF\u4E8C\u7EF4\u7801\u8BBF\u95EE", -1);
13
- const _hoisted_7 = { class: "doc-preview-share-header" };
14
- const _hoisted_8 = /* @__PURE__ */ createElementVNode("span", null, "\u9884\u89C8\u5730\u5740", -1);
15
- const _hoisted_9 = { class: "doc-preview-share-link" };
16
- const _hoisted_10 = { class: "doc-preview-share-link-value" };
17
- const _hoisted_11 = { class: "doc-preview-share-link-hint" };
18
- const _hoisted_12 = { class: "doc-preview-share-action" };
19
- const _hoisted_13 = /* @__PURE__ */ createElementVNode("div", { class: "doc-preview-share-img" }, [
7
+ const _hoisted_1 = { class: "preview-close" };
8
+ const _hoisted_2 = { class: "doc-preview-share" };
9
+ const _hoisted_3 = { class: "doc-preview-share-img" };
10
+ const _hoisted_4 = ["src"];
11
+ const _hoisted_5 = /* @__PURE__ */ createElementVNode("div", { class: "doc-preview-share-tips" }, "\u626B\u63CF\u4E8C\u7EF4\u7801\u8BBF\u95EE", -1);
12
+ const _hoisted_6 = { class: "doc-preview-share-header" };
13
+ const _hoisted_7 = /* @__PURE__ */ createElementVNode("span", null, "\u9884\u89C8\u5730\u5740", -1);
14
+ const _hoisted_8 = { class: "doc-preview-share-link" };
15
+ const _hoisted_9 = { class: "doc-preview-share-link-value" };
16
+ const _hoisted_10 = { class: "doc-preview-share-link-hint" };
17
+ const _hoisted_11 = { class: "doc-preview-share-action" };
18
+ const _hoisted_12 = /* @__PURE__ */ createElementVNode("div", { class: "doc-preview-share-img" }, [
20
19
  /* @__PURE__ */ createElementVNode("div", { class: "doc-preview-share-img-hint" }, " \u6682\u65E0\u9884\u89C8 ")
21
20
  ], -1);
22
- const _hoisted_14 = /* @__PURE__ */ createElementVNode("div", { class: "doc-preview-share-tips" }, " \u5185\u5BB9\u6682\u65E0\u9884\u89C8\u94FE\u63A5\uFF0C\u53EF\u751F\u6210\u9884\u89C8\u94FE\u63A5 ", -1);
23
- const _hoisted_15 = { class: "doc-preview-share-header" };
24
- const _hoisted_16 = /* @__PURE__ */ createElementVNode("span", null, "\u94FE\u63A5\u6709\u6548\u65F6\u957F", -1);
25
- const _hoisted_17 = { class: "doc-preview-share-action" };
21
+ const _hoisted_13 = /* @__PURE__ */ createElementVNode("div", { class: "doc-preview-share-tips" }, " \u5185\u5BB9\u6682\u65E0\u9884\u89C8\u94FE\u63A5\uFF0C\u53EF\u751F\u6210\u9884\u89C8\u94FE\u63A5 ", -1);
22
+ const _hoisted_14 = { class: "doc-preview-share-header" };
23
+ const _hoisted_15 = /* @__PURE__ */ createElementVNode("span", null, "\u94FE\u63A5\u6709\u6548\u65F6\u957F", -1);
24
+ const _hoisted_16 = { class: "doc-preview-share-action" };
26
25
  const _sfc_main = defineComponent({
27
26
  ...{ name: "docPreview" },
28
27
  __name: "component",
@@ -49,29 +48,36 @@ const _sfc_main = defineComponent({
49
48
  generate();
50
49
  });
51
50
  return (_ctx, _cache) => {
52
- return openBlock(), createElementBlock("div", _hoisted_1, [
53
- createElementVNode("div", _hoisted_2, [
51
+ return openBlock(), createElementBlock("div", {
52
+ class: "doc-preview-container",
53
+ onClick: _cache[6] || (_cache[6] = ($event) => emits("close"))
54
+ }, [
55
+ createElementVNode("div", _hoisted_1, [
54
56
  createVNode(unref(IconClose), {
55
- onClick: _cache[0] || (_cache[0] = ($event) => emits("close"))
57
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => emits("close"), ["stop"]))
56
58
  })
57
59
  ]),
58
- createVNode(_sfc_main$1, { src: unref(innerUrl) }, null, 8, ["src"]),
60
+ createVNode(_sfc_main$1, {
61
+ src: unref(innerUrl),
62
+ onClick: _cache[1] || (_cache[1] = withModifiers(() => {
63
+ }, ["stop"]))
64
+ }, null, 8, ["src"]),
59
65
  createVNode(unref(Spin), { loading: unref(loading) }, {
60
66
  default: withCtx(() => [
61
- createElementVNode("div", _hoisted_3, [
67
+ createElementVNode("div", _hoisted_2, [
62
68
  unref(shareData) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
63
69
  createCommentVNode(" \u4E8C\u7EF4\u7801 "),
64
- createElementVNode("div", _hoisted_4, [
70
+ createElementVNode("div", _hoisted_3, [
65
71
  createElementVNode("img", {
66
72
  src: unref(shareData).qrCode,
67
73
  alt: ""
68
- }, null, 8, _hoisted_5)
74
+ }, null, 8, _hoisted_4)
69
75
  ]),
70
76
  createCommentVNode(" \u5907\u6CE8 "),
71
- _hoisted_6,
77
+ _hoisted_5,
72
78
  createCommentVNode(" \u94FE\u63A5\u524D\u7F6E\u64CD\u4F5C "),
73
- createElementVNode("div", _hoisted_7, [
74
- _hoisted_8,
79
+ createElementVNode("div", _hoisted_6, [
80
+ _hoisted_7,
75
81
  createVNode(unref(Link), {
76
82
  type: "text",
77
83
  onClick: unref(copy)
@@ -83,14 +89,14 @@ const _sfc_main = defineComponent({
83
89
  }, 8, ["onClick"])
84
90
  ]),
85
91
  createCommentVNode(" \u94FE\u63A5 "),
86
- createElementVNode("div", _hoisted_9, [
87
- createElementVNode("div", _hoisted_10, toDisplayString(unref(shareData).shareUrl), 1),
88
- createElementVNode("div", _hoisted_11, " \u94FE\u63A5\u5269\u4F59\u65F6\u95F4\uFF1A" + toDisplayString(unref(intervalTime)), 1)
92
+ createElementVNode("div", _hoisted_8, [
93
+ createElementVNode("div", _hoisted_9, toDisplayString(unref(shareData).shareUrl), 1),
94
+ createElementVNode("div", _hoisted_10, " \u94FE\u63A5\u5269\u4F59\u65F6\u95F4\uFF1A" + toDisplayString(unref(intervalTime)), 1)
89
95
  ]),
90
96
  createCommentVNode(" \u64CD\u4F5C "),
91
- createElementVNode("div", _hoisted_12, [
97
+ createElementVNode("div", _hoisted_11, [
92
98
  createVNode(unref(Button), {
93
- onClick: _cache[1] || (_cache[1] = ($event) => unref(cancel)())
99
+ onClick: _cache[2] || (_cache[2] = ($event) => unref(cancel)())
94
100
  }, {
95
101
  default: withCtx(() => [
96
102
  createTextVNode("\u53D6\u6D88\u9884\u89C8\u94FE\u63A5")
@@ -99,7 +105,7 @@ const _sfc_main = defineComponent({
99
105
  }),
100
106
  createVNode(unref(Button), {
101
107
  type: "primary",
102
- onClick: _cache[2] || (_cache[2] = ($event) => unref(cancel)(true))
108
+ onClick: _cache[3] || (_cache[3] = ($event) => unref(cancel)(true))
103
109
  }, {
104
110
  default: withCtx(() => [
105
111
  createTextVNode(" \u66F4\u65B0\u9884\u89C8\u6709\u6548\u671F ")
@@ -108,13 +114,13 @@ const _sfc_main = defineComponent({
108
114
  })
109
115
  ])
110
116
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
117
+ _hoisted_12,
111
118
  _hoisted_13,
112
- _hoisted_14,
113
- createElementVNode("div", _hoisted_15, [
114
- _hoisted_16,
119
+ createElementVNode("div", _hoisted_14, [
120
+ _hoisted_15,
115
121
  createVNode(unref(Select), {
116
122
  modelValue: unref(expireTime),
117
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(expireTime) ? expireTime.value = $event : null),
123
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(expireTime) ? expireTime.value = $event : null),
118
124
  size: "mini",
119
125
  style: { "width": "120px" }
120
126
  }, {
@@ -130,10 +136,10 @@ const _sfc_main = defineComponent({
130
136
  _: 1
131
137
  }, 8, ["modelValue"])
132
138
  ]),
133
- createElementVNode("div", _hoisted_17, [
139
+ createElementVNode("div", _hoisted_16, [
134
140
  createVNode(unref(Button), {
135
141
  type: "primary",
136
- onClick: _cache[4] || (_cache[4] = () => unref(generate)())
142
+ onClick: _cache[5] || (_cache[5] = () => unref(generate)())
137
143
  }, {
138
144
  default: withCtx(() => [
139
145
  createTextVNode(" \u751F\u6210\u9884\u89C8\u94FE\u63A5 ")
@@ -10,6 +10,7 @@ export default function useAttachement(options: OptionsType): {
10
10
  total: import("vue").Ref<number>;
11
11
  limit: import("vue").Ref<number>;
12
12
  offset: import("vue").Ref<number>;
13
+ pageIdx: import("vue").ComputedRef<number>;
13
14
  loading: import("vue").Ref<boolean>;
14
15
  changeFilter: (f: any) => void;
15
16
  changeKey: (k: string) => void;
@@ -33,6 +33,7 @@ function useAttachement(options) {
33
33
  ...filter.value
34
34
  };
35
35
  });
36
+ const pageIdx = computed(() => Math.floor(offset.value / limit.value) + 1);
36
37
  const loading = ref(true);
37
38
  const list = ref([]);
38
39
  const total = ref(0);
@@ -67,7 +68,7 @@ function useAttachement(options) {
67
68
  }
68
69
  function changeSize(s) {
69
70
  limit.value = s;
70
- loadData();
71
+ changePage(0);
71
72
  }
72
73
  function changeKey(k) {
73
74
  if (k === key.value)
@@ -84,6 +85,7 @@ function useAttachement(options) {
84
85
  total,
85
86
  limit,
86
87
  offset,
88
+ pageIdx,
87
89
  loading,
88
90
  changeFilter,
89
91
  changeKey,
@@ -99,9 +99,9 @@ function useUpload() {
99
99
  recordTaskStatusChange(item, 0, true);
100
100
  const progress = (progress2) => recordTaskStatusChange(item, progress2);
101
101
  const transing = task.start(BASE_API, progress);
102
- transing.then((res) => {
102
+ transing.then(async (res) => {
103
103
  if (res) {
104
- console.log("\u{1F680}\u{1F680}\u{1F680}\u{1F680}\u{1F680}\u{1F680} \u8F6C\u7801\u6210\u529F");
104
+ console.log("\u{1F680}\u{1F680}\u{1F680}\u{1F680}\u{1F680}\u{1F680} \u8F6C\u7801\u6210\u529F", res);
105
105
  recordTaskStatusChange({ ...item, status: 0 }, 1);
106
106
  setTimeout(() => uploadSuccess(file), 200);
107
107
  } else {
package/es/index.css CHANGED
@@ -1,33 +1,33 @@
1
1
  .reference-btn {
2
- border: none;
3
2
  padding: 12px 16px;
4
- border-radius: 4px;
5
3
  color: #5f5f5f;
4
+ border: none;
5
+ border-radius: 4px;
6
6
  }
7
7
  .apps-box-popover {
8
8
  position: relative;
9
9
  padding: 10px;
10
10
  }
11
11
  .app-title {
12
- font-size: 16px;
12
+ padding: 0 15px;
13
13
  font-weight: bold;
14
- padding: 0px 15px;
14
+ font-size: 16px;
15
15
  }
16
16
  .ul-list {
17
- list-style: none;
18
- overflow: hidden;
19
17
  width: 435px !important;
20
- text-align: center;
21
- padding: 0;
22
18
  margin: 0;
19
+ padding: 0;
20
+ overflow: hidden;
21
+ text-align: center;
22
+ list-style: none;
23
23
  }
24
24
  .ul-list .li_item {
25
+ position: relative;
25
26
  float: left;
26
27
  width: 85px;
27
28
  height: 90px;
28
- text-align: center;
29
29
  margin: 13px 0;
30
- position: relative;
30
+ text-align: center;
31
31
  }
32
32
  .ul-list .li_item .icon-logo .svg-icon {
33
33
  width: 4em;
@@ -42,8 +42,8 @@
42
42
  display: block;
43
43
  }
44
44
  .ul-list .li_item .wrap_icon {
45
- width: 70px;
46
45
  display: inline-block;
46
+ width: 70px;
47
47
  margin-top: 6px;
48
48
  }
49
49
  .ul-list .li_item .wrap_icon .wrap_ .icon-logo {
@@ -52,8 +52,11 @@
52
52
  margin-bottom: 4px;
53
53
  }
54
54
  .ul-list .li_item .wrap_icon .wrap_ .icon-logo img {
55
+ width: 50px;
55
56
  max-width: 100%;
57
+ height: 50px;
56
58
  max-height: 100%;
59
+ border-radius: 50%;
57
60
  }
58
61
  .ul-list .li_item .wrap_icon .wrap_ .shortcut-logo {
59
62
  line-height: 77px;
@@ -66,8 +69,8 @@
66
69
  width: 73px;
67
70
  height: 20px;
68
71
  overflow: hidden;
69
- text-overflow: ellipsis;
70
72
  white-space: nowrap;
73
+ text-overflow: ellipsis;
71
74
  }
72
75
  .ul-list .li_item .wrap_icon .quick-add .icon-logo {
73
76
  width: 40px;
@@ -78,15 +81,15 @@
78
81
  border-radius: 50%;
79
82
  }
80
83
  .ul-list .li_item .wrap_icon .quick-add .icon-logo i {
81
- line-height: 40px;
82
84
  color: rgba(0, 0, 0, 0.85);
83
85
  font-size: 14px;
86
+ line-height: 40px;
84
87
  }
85
88
  .ul-list .li_item .icon-gengduo {
86
- display: none;
87
89
  position: absolute;
88
90
  top: 2px;
89
91
  right: 4px;
92
+ display: none;
90
93
  }
91
94
  .reference-btn {
92
95
  border: none;
@@ -4267,11 +4270,6 @@
4267
4270
  .thumb-select-wrapper .thumb-upload-loading .arco-progress-circle-text {
4268
4271
  color: #fff;
4269
4272
  }
4270
- .thumb-select-wrapper .thumb-add {
4271
- color: var(--color-text-2);
4272
- font-size: 16px;
4273
- cursor: pointer;
4274
- }
4275
4273
  .thumb-select-wrapper .thumb-image img {
4276
4274
  width: 100%;
4277
4275
  height: 100%;
@@ -4328,29 +4326,41 @@
4328
4326
  opacity: 1;
4329
4327
  transition: all 0.3s ease-in-out;
4330
4328
  }
4331
- .thumb-select-wrapper .arco-dropdown-option-content {
4332
- display: flex;
4333
- gap: 8px;
4334
- align-items: center;
4335
- font-size: 14px;
4336
- }
4337
4329
  .card-list-wrapper {
4338
4330
  display: grid;
4339
4331
  grid-gap: 20px;
4340
4332
  grid-template-columns: repeat(5, 1fr);
4341
4333
  }
4342
- .list-filter-wrapper {
4334
+ .list-filter-wrapper .list-filter-tags {
4343
4335
  display: flex;
4344
4336
  justify-content: space-between;
4337
+ margin-top: 10px;
4345
4338
  }
4346
- .list-filter-wrapper .filter-list {
4339
+ .list-filter-wrapper .list-filter-tags .list-filter-tag {
4340
+ padding: 5px 16px;
4341
+ border-radius: 15px;
4342
+ cursor: pointer;
4343
+ }
4344
+ .list-filter-wrapper .list-filter-tags .list-filter-tag:hover {
4345
+ background-color: var(--color-fill-3);
4346
+ }
4347
+ .list-filter-wrapper .list-filter-tags .list-filter-tag.active {
4348
+ color: rgb(var(--primary-6));
4349
+ font-weight: bold;
4350
+ background: var(--color-fill-2);
4351
+ }
4352
+ .list-filter-wrapper .list-filter {
4353
+ display: flex;
4354
+ justify-content: space-between;
4355
+ }
4356
+ .list-filter-wrapper .list-filter .filter-list {
4347
4357
  display: flex;
4348
4358
  gap: 10px;
4349
4359
  }
4350
- .list-filter-wrapper .filter-list .filter-item {
4360
+ .list-filter-wrapper .list-filter .filter-list .filter-item {
4351
4361
  width: 100px;
4352
4362
  }
4353
- .list-filter-wrapper .arco-input-prepend {
4363
+ .list-filter-wrapper .list-filter .arco-input-prepend {
4354
4364
  padding: 0;
4355
4365
  }
4356
4366
  .list-panel-wrapper {
@@ -4397,7 +4407,12 @@
4397
4407
  overflow-y: scroll;
4398
4408
  }
4399
4409
  .list-panel-wrapper .list-selected-record::-webkit-scrollbar {
4400
- display: none;
4410
+ width: 6px;
4411
+ }
4412
+ .list-panel-wrapper .list-selected-record::-webkit-scrollbar-thumb {
4413
+ background-color: #ececec;
4414
+ -webkit-border-radius: 6px;
4415
+ opacity: 0.5;
4401
4416
  }
4402
4417
  .list-panel-wrapper .list-selected-record .list-selected-item {
4403
4418
  display: flex;
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, ref, provide, openBlock, createElementBlock, createBlock, resolveDynamicComponent, unref, mergeProps, withCtx, createElementVNode, createCommentVNode, createVNode, withDirectives, vShow, createTextVNode } from "vue";
1
+ import { defineComponent, computed, ref, provide, watch, openBlock, createElementBlock, createBlock, resolveDynamicComponent, unref, mergeProps, withCtx, createElementVNode, createCommentVNode, createVNode, withDirectives, vShow, isRef, createTextVNode } from "vue";
2
2
  import { Drawer, Modal, Scrollbar, Pagination, Button } from "@arco-design/web-vue";
3
3
  import emptyData from "../emptyData/index.js";
4
4
  import _sfc_main$1 from "./components/ListTabs/index.js";
@@ -66,6 +66,7 @@ const _sfc_main = defineComponent({
66
66
  list,
67
67
  total,
68
68
  limit,
69
+ pageIdx,
69
70
  loading,
70
71
  changeKey,
71
72
  changeFilter,
@@ -100,6 +101,18 @@ const _sfc_main = defineComponent({
100
101
  changeKey("local");
101
102
  activeKey.value = "local";
102
103
  }
104
+ const FilterRef = ref();
105
+ watch(
106
+ () => props.visible,
107
+ () => {
108
+ if (props.visible) {
109
+ activeKey.value = "all";
110
+ changeKey("all");
111
+ if (FilterRef.value)
112
+ FilterRef.value.resetFilter();
113
+ }
114
+ }
115
+ );
103
116
  return (_ctx, _cache) => {
104
117
  return openBlock(), createElementBlock("div", _hoisted_1, [
105
118
  (openBlock(), createBlock(resolveDynamicComponent(_ctx.wrap === "drawer" ? unref(Drawer) : unref(Modal)), mergeProps({ visible: _ctx.visible }, wrapProps.value), {
@@ -116,6 +129,8 @@ const _sfc_main = defineComponent({
116
129
  createCommentVNode(" \u7B5B\u9009 "),
117
130
  activeKey.value !== "local" ? (openBlock(), createElementBlock("div", _hoisted_4, [
118
131
  createVNode(_sfc_main$2, {
132
+ ref_key: "FilterRef",
133
+ ref: FilterRef,
119
134
  "disable-upload-by": !["all", "remind"].includes(activeKey.value),
120
135
  filterOptions: _ctx.filterOptions,
121
136
  onChange: unref(changeFilter),
@@ -156,15 +171,17 @@ const _sfc_main = defineComponent({
156
171
  createElementVNode("div", _hoisted_7, [
157
172
  activeKey.value !== "local" ? (openBlock(), createBlock(unref(Pagination), {
158
173
  key: 0,
174
+ current: unref(pageIdx),
175
+ "onUpdate:current": _cache[1] || (_cache[1] = ($event) => isRef(pageIdx) ? pageIdx.value = $event : null),
159
176
  total: unref(total),
160
177
  "page-size": unref(limit),
161
178
  "show-total": "",
162
179
  "show-page-size": "",
163
180
  "base-size": 3,
164
181
  "buffer-size": 1,
165
- onChange: _cache[1] || (_cache[1] = (e) => unref(changePage)((e - 1) * unref(limit))),
182
+ onChange: _cache[2] || (_cache[2] = (e) => unref(changePage)((e - 1) * unref(limit))),
166
183
  onPageSizeChange: unref(changeSize)
167
- }, null, 8, ["total", "page-size", "onPageSizeChange"])) : createCommentVNode("v-if", true)
184
+ }, null, 8, ["current", "total", "page-size", "onPageSizeChange"])) : createCommentVNode("v-if", true)
168
185
  ]),
169
186
  unref(selected).length ? (openBlock(), createElementBlock("div", _hoisted_8, [
170
187
  createVNode(_sfc_main$5, {
@@ -73,7 +73,7 @@ const _sfc_main = defineComponent({
73
73
  default: withCtx(() => [
74
74
  createVNode(unref(thumbCard), {
75
75
  url: item.url,
76
- thumb: item.url,
76
+ thumb: item.thumb || item.url,
77
77
  catalog: item.catalog,
78
78
  meta: item,
79
79
  options: {