@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
@@ -0,0 +1,13 @@
1
+ const keywordsSelection = [
2
+ { name: "\u5168\u90E8\u7ED3\u679C", value: "" },
3
+ { name: "\u6807\u9898", value: "alias" },
4
+ { name: "\u624B\u52A8\u6807\u7B7E", value: "tags" },
5
+ { name: "\u4EBA\u8138", value: "ai_figure" },
6
+ { name: "\u573A\u666F", value: "ai_scenario" },
7
+ { name: "\u5B9E\u4F53(\u56FE\u50CF)", value: "ai_entity" },
8
+ { name: "Logo", value: "ai_logo" },
9
+ { name: "\u6587\u672C(OCR)", value: "ai_ocr_keywords" },
10
+ { name: "\u8BED\u97F3", value: "ai_speech_keywords" },
11
+ { name: "\u77E5\u8BC6\u56FE\u8C31", value: "ai_knowledge_graph" }
12
+ ];
13
+ export { keywordsSelection };
@@ -174,7 +174,6 @@ export declare const RESOURCE_CATALOG_DICT: {
174
174
  image: string;
175
175
  video: string;
176
176
  audio: string;
177
- other: string;
178
177
  };
179
178
  export declare const RESOURCE_SOURCE_OPTIONS: {
180
179
  value: string;
@@ -170,8 +170,7 @@ const RESOURCE_SOURCE_DICT = {
170
170
  const RESOURCE_CATALOG_DICT = {
171
171
  image: "\u56FE\u7247",
172
172
  video: "\u89C6\u9891",
173
- audio: "\u97F3\u9891",
174
- other: "\u5176\u4ED6"
173
+ audio: "\u97F3\u9891"
175
174
  };
176
175
  const RESOURCE_SOURCE_OPTIONS = object2LabelList(RESOURCE_SOURCE_DICT);
177
176
  const RESOURCE_CATALOG_OPTIONS = object2LabelList(RESOURCE_CATALOG_DICT);
@@ -111,8 +111,37 @@ const _sfc_main = vue.defineComponent({
111
111
  }, 500);
112
112
  }
113
113
  };
114
+ const getAppBtnSlot = async () => {
115
+ await api.getPubApps(BASE_API, { rid, type: "2,3" });
116
+ const params = {
117
+ slot_key: "head-applist-panel"
118
+ };
119
+ api.getBtnSlot(BASE_API, params).then((res) => {
120
+ if (res.code === 0 && res.data.buttons && res.data.buttons["head-applist-panel"] && res.data.buttons["head-applist-panel"].buttons) {
121
+ const appLists = res.data.buttons["head-applist-panel"].buttons.map(
122
+ (item) => ({
123
+ alias: item.name,
124
+ actions: [
125
+ {
126
+ alias: item.name,
127
+ brief: item.name,
128
+ key: "appSlotBtn",
129
+ icon: item.app_icon,
130
+ real: item.permission,
131
+ params: item,
132
+ target_url: "",
133
+ type: 3
134
+ }
135
+ ]
136
+ })
137
+ );
138
+ StorePubApplication.value.push(...appLists);
139
+ }
140
+ });
141
+ };
114
142
  vue.onMounted(() => {
115
143
  load();
144
+ getAppBtnSlot();
116
145
  });
117
146
  return (_ctx, _cache) => {
118
147
  return vue.openBlock(), vue.createElementBlock("div", null, [
@@ -26,6 +26,14 @@ function setResentApp(BASE_API, params) {
26
26
  method: "post"
27
27
  });
28
28
  }
29
+ function getBtnSlot(BASE_API, params) {
30
+ return request(BASE_API, {
31
+ url: "/poplar/v3/cosmos-center/buttons",
32
+ method: "get",
33
+ params
34
+ });
35
+ }
36
+ exports.getBtnSlot = getBtnSlot;
29
37
  exports.getPubApps = getPubApps;
30
38
  exports.getResentApp = getResentApp;
31
39
  exports.getUserRepoActs = getUserRepoActs;
@@ -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
-
@@ -48,6 +48,7 @@ const _sfc_main = vue.defineComponent({
48
48
  return vue.openBlock(), vue.createBlock(vue.unref(webVue.Drawer), {
49
49
  visible: vis.value,
50
50
  "onUpdate:visible": _cache[0] || (_cache[0] = ($event) => vis.value = $event),
51
+ "unmount-on-close": "",
51
52
  class: "doc-history-drawer",
52
53
  title: "\u7248\u672C\u8BB0\u5F55",
53
54
  width: 1e3,
@@ -5,25 +5,24 @@ var icon = require("@arco-design/web-vue/es/icon");
5
5
  var config = require("../config.js");
6
6
  var PreviewIframe = require("./components/PreviewIframe.js");
7
7
  var hook = require("./scripts/hook.js");
8
- const _hoisted_1 = { class: "doc-preview-container" };
9
- const _hoisted_2 = { class: "preview-close" };
10
- const _hoisted_3 = { class: "doc-preview-share" };
11
- const _hoisted_4 = { class: "doc-preview-share-img" };
12
- const _hoisted_5 = ["src"];
13
- const _hoisted_6 = /* @__PURE__ */ vue.createElementVNode("div", { class: "doc-preview-share-tips" }, "\u626B\u63CF\u4E8C\u7EF4\u7801\u8BBF\u95EE", -1);
14
- const _hoisted_7 = { class: "doc-preview-share-header" };
15
- const _hoisted_8 = /* @__PURE__ */ vue.createElementVNode("span", null, "\u9884\u89C8\u5730\u5740", -1);
16
- const _hoisted_9 = { class: "doc-preview-share-link" };
17
- const _hoisted_10 = { class: "doc-preview-share-link-value" };
18
- const _hoisted_11 = { class: "doc-preview-share-link-hint" };
19
- const _hoisted_12 = { class: "doc-preview-share-action" };
20
- const _hoisted_13 = /* @__PURE__ */ vue.createElementVNode("div", { class: "doc-preview-share-img" }, [
8
+ const _hoisted_1 = { class: "preview-close" };
9
+ const _hoisted_2 = { class: "doc-preview-share" };
10
+ const _hoisted_3 = { class: "doc-preview-share-img" };
11
+ const _hoisted_4 = ["src"];
12
+ const _hoisted_5 = /* @__PURE__ */ vue.createElementVNode("div", { class: "doc-preview-share-tips" }, "\u626B\u63CF\u4E8C\u7EF4\u7801\u8BBF\u95EE", -1);
13
+ const _hoisted_6 = { class: "doc-preview-share-header" };
14
+ const _hoisted_7 = /* @__PURE__ */ vue.createElementVNode("span", null, "\u9884\u89C8\u5730\u5740", -1);
15
+ const _hoisted_8 = { class: "doc-preview-share-link" };
16
+ const _hoisted_9 = { class: "doc-preview-share-link-value" };
17
+ const _hoisted_10 = { class: "doc-preview-share-link-hint" };
18
+ const _hoisted_11 = { class: "doc-preview-share-action" };
19
+ const _hoisted_12 = /* @__PURE__ */ vue.createElementVNode("div", { class: "doc-preview-share-img" }, [
21
20
  /* @__PURE__ */ vue.createElementVNode("div", { class: "doc-preview-share-img-hint" }, " \u6682\u65E0\u9884\u89C8 ")
22
21
  ], -1);
23
- const _hoisted_14 = /* @__PURE__ */ vue.createElementVNode("div", { class: "doc-preview-share-tips" }, " \u5185\u5BB9\u6682\u65E0\u9884\u89C8\u94FE\u63A5\uFF0C\u53EF\u751F\u6210\u9884\u89C8\u94FE\u63A5 ", -1);
24
- const _hoisted_15 = { class: "doc-preview-share-header" };
25
- const _hoisted_16 = /* @__PURE__ */ vue.createElementVNode("span", null, "\u94FE\u63A5\u6709\u6548\u65F6\u957F", -1);
26
- const _hoisted_17 = { class: "doc-preview-share-action" };
22
+ const _hoisted_13 = /* @__PURE__ */ vue.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_14 = { class: "doc-preview-share-header" };
24
+ const _hoisted_15 = /* @__PURE__ */ vue.createElementVNode("span", null, "\u94FE\u63A5\u6709\u6548\u65F6\u957F", -1);
25
+ const _hoisted_16 = { class: "doc-preview-share-action" };
27
26
  const _sfc_main = vue.defineComponent({
28
27
  ...{ name: "docPreview" },
29
28
  __name: "component",
@@ -50,29 +49,36 @@ const _sfc_main = vue.defineComponent({
50
49
  generate();
51
50
  });
52
51
  return (_ctx, _cache) => {
53
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
54
- vue.createElementVNode("div", _hoisted_2, [
52
+ return vue.openBlock(), vue.createElementBlock("div", {
53
+ class: "doc-preview-container",
54
+ onClick: _cache[6] || (_cache[6] = ($event) => emits("close"))
55
+ }, [
56
+ vue.createElementVNode("div", _hoisted_1, [
55
57
  vue.createVNode(vue.unref(icon.IconClose), {
56
- onClick: _cache[0] || (_cache[0] = ($event) => emits("close"))
58
+ onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => emits("close"), ["stop"]))
57
59
  })
58
60
  ]),
59
- vue.createVNode(PreviewIframe, { src: vue.unref(innerUrl) }, null, 8, ["src"]),
61
+ vue.createVNode(PreviewIframe, {
62
+ src: vue.unref(innerUrl),
63
+ onClick: _cache[1] || (_cache[1] = vue.withModifiers(() => {
64
+ }, ["stop"]))
65
+ }, null, 8, ["src"]),
60
66
  vue.createVNode(vue.unref(webVue.Spin), { loading: vue.unref(loading) }, {
61
67
  default: vue.withCtx(() => [
62
- vue.createElementVNode("div", _hoisted_3, [
68
+ vue.createElementVNode("div", _hoisted_2, [
63
69
  vue.unref(shareData) ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
64
70
  vue.createCommentVNode(" \u4E8C\u7EF4\u7801 "),
65
- vue.createElementVNode("div", _hoisted_4, [
71
+ vue.createElementVNode("div", _hoisted_3, [
66
72
  vue.createElementVNode("img", {
67
73
  src: vue.unref(shareData).qrCode,
68
74
  alt: ""
69
- }, null, 8, _hoisted_5)
75
+ }, null, 8, _hoisted_4)
70
76
  ]),
71
77
  vue.createCommentVNode(" \u5907\u6CE8 "),
72
- _hoisted_6,
78
+ _hoisted_5,
73
79
  vue.createCommentVNode(" \u94FE\u63A5\u524D\u7F6E\u64CD\u4F5C "),
74
- vue.createElementVNode("div", _hoisted_7, [
75
- _hoisted_8,
80
+ vue.createElementVNode("div", _hoisted_6, [
81
+ _hoisted_7,
76
82
  vue.createVNode(vue.unref(webVue.Link), {
77
83
  type: "text",
78
84
  onClick: vue.unref(copy)
@@ -84,14 +90,14 @@ const _sfc_main = vue.defineComponent({
84
90
  }, 8, ["onClick"])
85
91
  ]),
86
92
  vue.createCommentVNode(" \u94FE\u63A5 "),
87
- vue.createElementVNode("div", _hoisted_9, [
88
- vue.createElementVNode("div", _hoisted_10, vue.toDisplayString(vue.unref(shareData).shareUrl), 1),
89
- vue.createElementVNode("div", _hoisted_11, " \u94FE\u63A5\u5269\u4F59\u65F6\u95F4\uFF1A" + vue.toDisplayString(vue.unref(intervalTime)), 1)
93
+ vue.createElementVNode("div", _hoisted_8, [
94
+ vue.createElementVNode("div", _hoisted_9, vue.toDisplayString(vue.unref(shareData).shareUrl), 1),
95
+ vue.createElementVNode("div", _hoisted_10, " \u94FE\u63A5\u5269\u4F59\u65F6\u95F4\uFF1A" + vue.toDisplayString(vue.unref(intervalTime)), 1)
90
96
  ]),
91
97
  vue.createCommentVNode(" \u64CD\u4F5C "),
92
- vue.createElementVNode("div", _hoisted_12, [
98
+ vue.createElementVNode("div", _hoisted_11, [
93
99
  vue.createVNode(vue.unref(webVue.Button), {
94
- onClick: _cache[1] || (_cache[1] = ($event) => vue.unref(cancel)())
100
+ onClick: _cache[2] || (_cache[2] = ($event) => vue.unref(cancel)())
95
101
  }, {
96
102
  default: vue.withCtx(() => [
97
103
  vue.createTextVNode("\u53D6\u6D88\u9884\u89C8\u94FE\u63A5")
@@ -100,7 +106,7 @@ const _sfc_main = vue.defineComponent({
100
106
  }),
101
107
  vue.createVNode(vue.unref(webVue.Button), {
102
108
  type: "primary",
103
- onClick: _cache[2] || (_cache[2] = ($event) => vue.unref(cancel)(true))
109
+ onClick: _cache[3] || (_cache[3] = ($event) => vue.unref(cancel)(true))
104
110
  }, {
105
111
  default: vue.withCtx(() => [
106
112
  vue.createTextVNode(" \u66F4\u65B0\u9884\u89C8\u6709\u6548\u671F ")
@@ -109,13 +115,13 @@ const _sfc_main = vue.defineComponent({
109
115
  })
110
116
  ])
111
117
  ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
118
+ _hoisted_12,
112
119
  _hoisted_13,
113
- _hoisted_14,
114
- vue.createElementVNode("div", _hoisted_15, [
115
- _hoisted_16,
120
+ vue.createElementVNode("div", _hoisted_14, [
121
+ _hoisted_15,
116
122
  vue.createVNode(vue.unref(webVue.Select), {
117
123
  modelValue: vue.unref(expireTime),
118
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.isRef(expireTime) ? expireTime.value = $event : null),
124
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(expireTime) ? expireTime.value = $event : null),
119
125
  size: "mini",
120
126
  style: { "width": "120px" }
121
127
  }, {
@@ -131,10 +137,10 @@ const _sfc_main = vue.defineComponent({
131
137
  _: 1
132
138
  }, 8, ["modelValue"])
133
139
  ]),
134
- vue.createElementVNode("div", _hoisted_17, [
140
+ vue.createElementVNode("div", _hoisted_16, [
135
141
  vue.createVNode(vue.unref(webVue.Button), {
136
142
  type: "primary",
137
- onClick: _cache[4] || (_cache[4] = () => vue.unref(generate)())
143
+ onClick: _cache[5] || (_cache[5] = () => vue.unref(generate)())
138
144
  }, {
139
145
  default: vue.withCtx(() => [
140
146
  vue.createTextVNode(" \u751F\u6210\u9884\u89C8\u94FE\u63A5 ")
@@ -35,6 +35,7 @@ function useAttachement(options) {
35
35
  ...filter.value
36
36
  };
37
37
  });
38
+ const pageIdx = vue.computed(() => Math.floor(offset.value / limit.value) + 1);
38
39
  const loading = vue.ref(true);
39
40
  const list = vue.ref([]);
40
41
  const total = vue.ref(0);
@@ -69,7 +70,7 @@ function useAttachement(options) {
69
70
  }
70
71
  function changeSize(s) {
71
72
  limit.value = s;
72
- loadData();
73
+ changePage(0);
73
74
  }
74
75
  function changeKey(k) {
75
76
  if (k === key.value)
@@ -86,6 +87,7 @@ function useAttachement(options) {
86
87
  total,
87
88
  limit,
88
89
  offset,
90
+ pageIdx,
89
91
  loading,
90
92
  changeFilter,
91
93
  changeKey,
@@ -101,9 +101,9 @@ function useUpload() {
101
101
  recordTaskStatusChange(item, 0, true);
102
102
  const progress = (progress2) => recordTaskStatusChange(item, progress2);
103
103
  const transing = task.start(BASE_API, progress);
104
- transing.then((res) => {
104
+ transing.then(async (res) => {
105
105
  if (res) {
106
- console.log("\u{1F680}\u{1F680}\u{1F680}\u{1F680}\u{1F680}\u{1F680} \u8F6C\u7801\u6210\u529F");
106
+ console.log("\u{1F680}\u{1F680}\u{1F680}\u{1F680}\u{1F680}\u{1F680} \u8F6C\u7801\u6210\u529F", res);
107
107
  recordTaskStatusChange({ ...item, status: 0 }, 1);
108
108
  setTimeout(() => uploadSuccess(file), 200);
109
109
  } else {
package/lib/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;