@cmstops/pro-compo 0.3.46 → 0.3.48

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 (257) hide show
  1. package/dist/index.css +25 -15
  2. package/dist/index.min.css +1 -1
  3. package/es/appCenter/component.d.ts +0 -0
  4. package/es/appCenter/index.d.ts +2 -0
  5. package/es/appCenter/script/api.d.ts +11 -0
  6. package/es/appCenter/script/apps.d.ts +14 -0
  7. package/es/appCenter/script/permissionMap.d.ts +6 -0
  8. package/es/appCenter/script/routeMap.d.ts +4 -0
  9. package/es/appCenter/style/index.d.ts +1 -0
  10. package/es/baseFilter/component.d.ts +0 -0
  11. package/es/baseFilter/components/FilterGroup.d.ts +0 -0
  12. package/es/baseFilter/components/filterItem.d.ts +0 -0
  13. package/es/baseFilter/index.d.ts +2 -0
  14. package/es/baseFilter/style/index.d.ts +1 -0
  15. package/es/baseFilter/useCalcWidth.d.ts +16 -0
  16. package/es/colorPalette/component.d.ts +0 -0
  17. package/es/colorPalette/components/colorPicker.d.ts +0 -0
  18. package/es/colorPalette/index.d.ts +2 -0
  19. package/es/colorPalette/style/index.d.ts +1 -0
  20. package/es/components.d.ts +5 -0
  21. package/es/config.d.ts +4 -0
  22. package/es/contentDetailList/__demo__/matrix/platform.d.ts +36 -0
  23. package/es/contentDetailList/component.d.ts +0 -0
  24. package/es/contentDetailList/components/Content/CompoItem/index.d.ts +0 -0
  25. package/es/contentDetailList/components/Content/ContentListItem/index.d.ts +0 -0
  26. package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.d.ts +0 -0
  27. package/es/contentDetailList/components/Content/DocItem/index.d.ts +0 -0
  28. package/es/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
  29. package/es/contentDetailList/components/Content/GroupPieceItem/index.d.ts +0 -0
  30. package/es/contentDetailList/components/Content/KongoNavItem/index.d.ts +0 -0
  31. package/es/contentDetailList/components/Content/LiveItem/index.d.ts +0 -0
  32. package/es/contentDetailList/components/Content/MaccountItem/index.d.ts +0 -0
  33. package/es/contentDetailList/components/Content/courseItem/index.d.ts +0 -0
  34. package/es/contentDetailList/components/Content/funhdItem/index.d.ts +0 -0
  35. package/es/contentDetailList/components/Content/index.d.ts +0 -0
  36. package/es/contentDetailList/components/CustomWrp/CustomItem.d.ts +0 -0
  37. package/es/contentDetailList/components/CustomWrp/index.d.ts +0 -0
  38. package/es/contentDetailList/components/Doc/index.d.ts +0 -0
  39. package/es/contentDetailList/components/Records/MatrixItem/index.d.ts +0 -0
  40. package/es/contentDetailList/components/Records/index.d.ts +0 -0
  41. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.d.ts +0 -0
  42. package/es/contentDetailList/components/ShowQRCode/index.d.ts +0 -0
  43. package/es/contentDetailList/index.d.ts +2 -0
  44. package/es/contentDetailList/script/api.d.ts +6 -0
  45. package/es/contentDetailList/style/index.d.ts +1 -0
  46. package/es/contentModal/component.d.ts +0 -0
  47. package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
  48. package/es/contentModal/components/CompoList/index.d.ts +0 -0
  49. package/es/contentModal/components/ContentList/MediaFilter/index.d.ts +0 -0
  50. package/es/contentModal/components/ContentList/index.d.ts +0 -0
  51. package/es/contentModal/components/EqxiuList/MediaFilter/index.d.ts +0 -0
  52. package/es/contentModal/components/EqxiuList/index.d.ts +0 -0
  53. package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
  54. package/es/contentModal/components/LiveList/index.d.ts +0 -0
  55. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
  56. package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
  57. package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
  58. package/es/contentModal/components/MpContentList/index.d.ts +0 -0
  59. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  60. package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
  61. package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
  62. package/es/contentModal/components/storeBox/index.d.ts +0 -0
  63. package/es/contentModal/index.d.ts +2 -0
  64. package/es/contentModal/script/api.d.ts +14 -0
  65. package/es/contentModal/style/index.d.ts +1 -0
  66. package/es/dataTags/component.d.ts +0 -0
  67. package/es/dataTags/index.d.ts +2 -0
  68. package/es/dataTags/style/index.d.ts +1 -0
  69. package/es/docHistory/component.d.ts +0 -0
  70. package/es/docHistory/component.js +27 -6
  71. package/es/docHistory/components/DocDiffPanel/index.d.ts +0 -0
  72. package/es/docHistory/components/DocHistoryList/index.d.ts +0 -0
  73. package/es/docHistory/index.d.ts +2 -0
  74. package/es/docHistory/scripts/diff.d.ts +1 -0
  75. package/es/docHistory/scripts/useDocHistory.d.ts +10 -0
  76. package/es/docHistory/style/index.css +3 -0
  77. package/es/docHistory/style/index.d.ts +1 -0
  78. package/es/docHistory/style/index.less +4 -0
  79. package/es/docPreview/component.d.ts +0 -0
  80. package/es/docPreview/component.js +31 -29
  81. package/es/docPreview/components/PreviewIframe.d.ts +0 -0
  82. package/es/docPreview/index.d.ts +2 -0
  83. package/es/docPreview/scripts/api.d.ts +1 -0
  84. package/es/docPreview/scripts/hook.d.ts +20 -0
  85. package/es/docPreview/scripts/hook.js +1 -1
  86. package/es/docPreview/style/index.d.ts +1 -0
  87. package/es/editMetaInfo/component.d.ts +0 -0
  88. package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
  89. package/es/editMetaInfo/index.d.ts +2 -0
  90. package/es/editMetaInfo/script/api.d.ts +6 -0
  91. package/es/editMetaInfo/script/restaurants.d.ts +4 -0
  92. package/es/editMetaInfo/style/index.d.ts +1 -0
  93. package/es/emptyData/component.d.ts +0 -0
  94. package/es/emptyData/index.d.ts +2 -0
  95. package/es/emptyData/style/index.d.ts +1 -0
  96. package/es/emptyData/svg/add.d.ts +0 -0
  97. package/es/hooks/assets.d.ts +1 -0
  98. package/es/hooks/batch.d.ts +8 -0
  99. package/es/hooks/dialogVisible.d.ts +8 -0
  100. package/es/hooks/source.d.ts +9 -0
  101. package/es/hooks/toggle.d.ts +6 -0
  102. package/es/hooks/useAttachement.d.ts +26 -0
  103. package/es/hooks/useAttachement.js +1 -1
  104. package/es/hooks/useLocalStorage.d.ts +8 -0
  105. package/es/hooks/useMediaContext.d.ts +12 -0
  106. package/es/hooks/usePopper.d.ts +8 -0
  107. package/es/hooks/useSelection.d.ts +23 -0
  108. package/es/hooks/useUpload.d.ts +16 -0
  109. package/es/hooks/useUpload.js +2 -2
  110. package/es/hooks/user.d.ts +9 -0
  111. package/es/imageCrop/component.d.ts +0 -0
  112. package/es/imageCrop/index.d.ts +2 -0
  113. package/es/imageCrop/script/api.d.ts +1 -0
  114. package/es/imageCrop/style/index.d.ts +1 -0
  115. package/es/index.css +25 -15
  116. package/es/index.d.ts +29 -0
  117. package/es/mediaFilter/component.d.ts +0 -0
  118. package/es/mediaFilter/components/DocFilter.d.ts +0 -0
  119. package/es/mediaFilter/components/FilterGroup.d.ts +0 -0
  120. package/es/mediaFilter/components/FilterItem.d.ts +0 -0
  121. package/es/mediaFilter/components/MpAccountFilter.d.ts +0 -0
  122. package/es/mediaFilter/components/MpContentFilter.d.ts +0 -0
  123. package/es/mediaFilter/index.d.ts +3 -0
  124. package/es/mediaFilter/script/optionsGetter.d.ts +26 -0
  125. package/es/mediaFilter/script/types.d.ts +16 -0
  126. package/es/mediaFilter/style/index.d.ts +1 -0
  127. package/es/mediaView/component.d.ts +0 -0
  128. package/es/mediaView/index.d.ts +2 -0
  129. package/es/mediaView/style/index.d.ts +1 -0
  130. package/es/messageBox/component.d.ts +0 -0
  131. package/es/messageBox/index.d.ts +2 -0
  132. package/es/messageBox/list.d.ts +0 -0
  133. package/es/messageBox/script/api.d.ts +6 -0
  134. package/es/messageBox/style/index.d.ts +1 -0
  135. package/es/previousVersion/component.d.ts +0 -0
  136. package/es/previousVersion/index.d.ts +2 -0
  137. package/es/previousVersion/script/api.d.ts +15 -0
  138. package/es/previousVersion/script/tool.d.ts +6 -0
  139. package/es/previousVersion/style/index.d.ts +1 -0
  140. package/es/resourceGridList/component.d.ts +0 -0
  141. package/es/resourceGridList/components/FileTypeThumb/index.d.ts +0 -0
  142. package/es/resourceGridList/index.d.ts +2 -0
  143. package/es/resourceGridList/style/index.d.ts +1 -0
  144. package/es/resourceModal/component.d.ts +0 -0
  145. package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
  146. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
  147. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
  148. package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
  149. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts +0 -0
  150. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts +0 -0
  151. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +3 -3
  152. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.d.ts +0 -0
  153. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
  154. package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
  155. package/es/resourceModal/index.d.ts +2 -0
  156. package/es/resourceModal/script/api.d.ts +25 -0
  157. package/es/resourceModal/script/mediaSelection.d.ts +14 -0
  158. package/es/resourceModal/style/index.d.ts +1 -0
  159. package/es/selectAvatarList/component.d.ts +0 -0
  160. package/es/selectAvatarList/index.d.ts +2 -0
  161. package/es/selectAvatarList/style/index.d.ts +1 -0
  162. package/es/selectGategory/component.d.ts +0 -0
  163. package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
  164. package/es/selectGategory/index.d.ts +2 -0
  165. package/es/selectGategory/script/api.d.ts +6 -0
  166. package/es/selectGategory/style/index.d.ts +1 -0
  167. package/es/selectResourceModal/component.d.ts +0 -0
  168. package/es/selectResourceModal/component.js +5 -0
  169. package/es/selectResourceModal/components/ListCardWrapper/index.d.ts +0 -0
  170. package/es/selectResourceModal/components/ListContent/index.d.ts +0 -0
  171. package/es/selectResourceModal/components/ListContentLocal/components/Upload.d.ts +0 -0
  172. package/es/selectResourceModal/components/ListContentLocal/index.d.ts +0 -0
  173. package/es/selectResourceModal/components/ListContentLocal/index.js +1 -1
  174. package/es/selectResourceModal/components/ListFilter/index.d.ts +0 -0
  175. package/es/selectResourceModal/components/ListFilter/index.js +169 -139
  176. package/es/selectResourceModal/components/ListFilter/scripts/api.d.ts +1 -0
  177. package/es/selectResourceModal/components/ListSelected/index.d.ts +0 -0
  178. package/es/selectResourceModal/components/ListTabs/index.d.ts +0 -0
  179. package/es/selectResourceModal/index.d.ts +2 -0
  180. package/es/selectResourceModal/scripts/useResourceSelect.d.ts +7 -0
  181. package/es/selectResourceModal/style/index.css +22 -4
  182. package/es/selectResourceModal/style/index.d.ts +1 -0
  183. package/es/selectResourceModal/style/listFilter.less +33 -9
  184. package/es/selectThumb/component.d.ts +0 -0
  185. package/es/selectThumb/components/card.d.ts +0 -0
  186. package/es/selectThumb/components/colorPalette.d.ts +0 -0
  187. package/es/selectThumb/components/colorPicker.d.ts +0 -0
  188. package/es/selectThumb/index.d.ts +2 -0
  189. package/es/selectThumb/style/index.d.ts +1 -0
  190. package/es/thumbCard/component.d.ts +0 -0
  191. package/es/thumbCard/component.js +5 -42
  192. package/es/thumbCard/index.d.ts +2 -0
  193. package/es/thumbCard/style/index.css +0 -11
  194. package/es/thumbCard/style/index.d.ts +1 -0
  195. package/es/thumbCard/style/index.less +0 -15
  196. package/es/typeIcons/component.d.ts +0 -0
  197. package/es/typeIcons/index.d.ts +2 -0
  198. package/es/typeIcons/style/index.d.ts +1 -0
  199. package/es/uploadBefore/component.d.ts +0 -0
  200. package/es/uploadBefore/components/UploadBefore.d.ts +0 -0
  201. package/es/uploadBefore/components/UploadForClick.d.ts +0 -0
  202. package/es/uploadBefore/index.d.ts +2 -0
  203. package/es/uploadBefore/script/api.d.ts +16 -0
  204. package/es/uploadBefore/script/fileTypeAdapter.d.ts +39 -0
  205. package/es/uploadBefore/script/fileUpload.d.ts +7 -0
  206. package/es/uploadBefore/script/uploadHooks.d.ts +55 -0
  207. package/es/uploadBefore/style/index.d.ts +1 -0
  208. package/es/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
  209. package/es/uploadStep/component.d.ts +0 -0
  210. package/es/uploadStep/index.d.ts +2 -0
  211. package/es/uploadStep/script/fileTypeAdapter.d.ts +20 -0
  212. package/es/uploadStep/style/index.d.ts +1 -0
  213. package/es/userAvater/component.d.ts +0 -0
  214. package/es/userAvater/index.d.ts +2 -0
  215. package/es/userAvater/script/api.d.ts +8 -0
  216. package/es/userAvater/style/index.d.ts +1 -0
  217. package/es/userDirector/component.d.ts +0 -0
  218. package/es/userDirector/components/userTree.d.ts +0 -0
  219. package/es/userDirector/index.d.ts +2 -0
  220. package/es/userDirector/script/api.d.ts +10 -0
  221. package/es/userDirector/style/index.d.ts +1 -0
  222. package/es/utils/auth.d.ts +5 -0
  223. package/es/utils/date.d.ts +3 -0
  224. package/es/utils/doc.d.ts +76 -0
  225. package/es/utils/filter.d.ts +9 -0
  226. package/es/utils/index.d.ts +17 -0
  227. package/es/utils/request.d.ts +9 -0
  228. package/es/utils/resource.d.ts +4 -0
  229. package/es/utils/resource.js +13 -0
  230. package/es/utils/transcodeMedia.d.ts +13 -0
  231. package/es/utils/tusUpload.d.ts +16 -0
  232. package/es/utils/typeMap.d.ts +185 -0
  233. package/es/utils/uploadCatalog.d.ts +1 -0
  234. package/es/videoThumb/component.d.ts +0 -0
  235. package/es/videoThumb/index.d.ts +2 -0
  236. package/es/videoThumb/scripts/api.d.ts +9 -0
  237. package/es/videoThumb/scripts/useVideoThumbs.d.ts +7 -0
  238. package/es/videoThumb/style/index.d.ts +1 -0
  239. package/lib/docHistory/component.js +25 -4
  240. package/lib/docHistory/style/index.css +3 -0
  241. package/lib/docHistory/style/index.less +4 -0
  242. package/lib/docPreview/component.js +31 -29
  243. package/lib/docPreview/scripts/hook.js +1 -1
  244. package/lib/hooks/useAttachement.js +1 -1
  245. package/lib/hooks/useUpload.js +2 -2
  246. package/lib/index.css +25 -15
  247. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +2 -2
  248. package/lib/selectResourceModal/component.js +5 -0
  249. package/lib/selectResourceModal/components/ListContentLocal/index.js +1 -1
  250. package/lib/selectResourceModal/components/ListFilter/index.js +168 -138
  251. package/lib/selectResourceModal/style/index.css +22 -4
  252. package/lib/selectResourceModal/style/listFilter.less +33 -9
  253. package/lib/thumbCard/component.js +2 -39
  254. package/lib/thumbCard/style/index.css +0 -11
  255. package/lib/thumbCard/style/index.less +0 -15
  256. package/lib/utils/resource.js +15 -0
  257. package/package.json +1 -1
@@ -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");
@@ -50,11 +57,12 @@ const _sfc_main = vue.defineComponent({
50
57
  const originFilter = {
51
58
  catalog: "",
52
59
  source: "",
53
- create_begin: "",
54
- create_end: "",
60
+ created_begin: "",
61
+ created_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 = () => {
@@ -62,16 +70,16 @@ const _sfc_main = vue.defineComponent({
62
70
  };
63
71
  const rangeTime = vue.computed({
64
72
  get() {
65
- return filter.value.create_begin && filter.value.create_end ? [filter.value.create_begin * 1e3, filter.value.create_end * 1e3] : null;
73
+ return filter.value.created_begin && filter.value.created_end ? [filter.value.created_begin * 1e3, filter.value.created_end * 1e3] : null;
66
74
  },
67
75
  set(val) {
68
76
  if (val) {
69
77
  const [start, end] = val;
70
- filter.value.create_begin = +new Date(start) / 1e3;
71
- filter.value.create_end = +new Date(end) / 1e3;
78
+ filter.value.created_begin = +new Date(start) / 1e3;
79
+ filter.value.created_end = +new Date(end) / 1e3;
72
80
  } else {
73
- filter.value.create_begin = "";
74
- filter.value.create_end = "";
81
+ filter.value.created_begin = "";
82
+ filter.value.created_end = "";
75
83
  }
76
84
  }
77
85
  });
@@ -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];
@@ -132,147 +148,161 @@ const _sfc_main = vue.defineComponent({
132
148
  originFilter.catalog = props.filterOptions.mediaType;
133
149
  }
134
150
  });
151
+ __expose({
152
+ resetFilter: handleReset
153
+ });
135
154
  return (_ctx, _cache) => {
136
155
  var _a;
137
156
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
138
157
  vue.createElementVNode("div", _hoisted_2, [
139
- vue.createCommentVNode(" \u5173\u952E\u8BCD "),
140
158
  vue.createElementVNode("div", _hoisted_3, [
141
- vue.createVNode(vue.unref(webVue.Input), {
142
- modelValue: searchInput.value,
143
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => searchInput.value = $event),
144
- "allow-clear": "",
145
- placeholder: "\u8BF7\u8F93\u5165\u5173\u952E\u8BCD"
146
- }, {
147
- prepend: vue.withCtx(() => [
148
- vue.createVNode(vue.unref(webVue.Dropdown), {
149
- onSelect: _cache[0] || (_cache[0] = (e) => searchType.value = e)
150
- }, {
151
- content: vue.withCtx(() => [
152
- vue.createVNode(vue.unref(webVue.Doption), { value: 0 }, {
153
- default: vue.withCtx(() => [
154
- vue.createTextVNode("\u7CBE\u51C6\u641C")
155
- ]),
156
- _: 1
157
- }),
158
- vue.createVNode(vue.unref(webVue.Doption), { value: 1 }, {
159
- default: vue.withCtx(() => [
160
- vue.createTextVNode("\u6A21\u7CCA\u641C")
161
- ]),
162
- _: 1
163
- })
164
- ]),
165
- default: vue.withCtx(() => [
166
- vue.createVNode(vue.unref(webVue.Button), null, {
167
- default: vue.withCtx(() => [
168
- vue.createTextVNode(vue.toDisplayString(searchTypeText.value), 1)
169
- ]),
170
- _: 1
171
- })
172
- ]),
173
- _: 1
174
- })
175
- ]),
176
- _: 1
177
- }, 8, ["modelValue"])
178
- ]),
179
- vue.createCommentVNode(" \u7D20\u6750\u7C7B\u578B "),
180
- vue.createElementVNode("div", _hoisted_4, [
181
- vue.createVNode(vue.unref(webVue.Select), {
182
- modelValue: filter.value.catalog,
183
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.catalog = $event),
184
- 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),
185
224
  "allow-clear": "",
186
- 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
187
275
  }, {
188
276
  default: vue.withCtx(() => [
189
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(resourceCatalog), (item) => {
190
- return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
191
- key: item.value,
192
- label: item.label,
193
- value: item.value
194
- }, null, 8, ["label", "value"]);
195
- }), 128))
277
+ vue.createTextVNode("\u91CD\u7F6E")
196
278
  ]),
197
279
  _: 1
198
- }, 8, ["modelValue", "disabled"])
280
+ })) : vue.createCommentVNode("v-if", true)
199
281
  ]),
200
- vue.createCommentVNode(" \u65F6\u95F4\u8303\u56F4 "),
201
- vue.createVNode(vue.unref(webVue.RangePicker), {
202
- modelValue: rangeTime.value,
203
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => rangeTime.value = $event),
204
- "allow-clear": "",
205
- style: { "width": "240px" }
206
- }, null, 8, ["modelValue"]),
207
- vue.createCommentVNode(" \u7D20\u6750\u4E0A\u4F20\u6765\u6E90 "),
208
- vue.createElementVNode("div", _hoisted_5, [
209
- vue.createVNode(vue.unref(webVue.Select), {
210
- modelValue: filter.value.source,
211
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.source = $event),
212
- "allow-clear": "",
213
- 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"))
214
286
  }, {
215
- default: vue.withCtx(() => [
216
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(resourceSource), (item) => {
217
- return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
218
- key: item.value,
219
- label: item.label,
220
- value: item.value
221
- }, null, 8, ["label", "value"]);
222
- }), 128))
287
+ icon: vue.withCtx(() => [
288
+ vue.createVNode(vue.unref(icon.IconUpload))
223
289
  ]),
224
- _: 1
225
- }, 8, ["modelValue"])
226
- ]),
227
- vue.createCommentVNode(" \u7D20\u6750\u4E0A\u4F20\u4EBA "),
228
- !_ctx.disableUploadBy ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
229
- vue.createVNode(vue.unref(webVue.Select), {
230
- modelValue: filter.value.upload_by,
231
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.upload_by = $event),
232
- "allow-clear": "",
233
- placeholder: "\u4E0A\u4F20\u4EBA",
234
- loading: vue.unref(loading),
235
- "allow-search": "",
236
- onSearch: vue.unref(handleSearch),
237
- onDropdownReachBottom: vue.unref(loadMore)
238
- }, {
239
290
  default: vue.withCtx(() => [
240
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(options), (item) => {
241
- return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
242
- key: item.id,
243
- label: item.label,
244
- value: item.value
245
- }, null, 8, ["label", "value"]);
246
- }), 128))
291
+ vue.createTextVNode(" \u4E0A\u4F20 ")
247
292
  ]),
248
293
  _: 1
249
- }, 8, ["modelValue", "loading", "onSearch", "onDropdownReachBottom"])
250
- ])) : vue.createCommentVNode("v-if", true),
251
- !isEmpty.value ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
252
- key: 1,
253
- type: "text",
254
- onClick: handleReset
255
- }, {
256
- default: vue.withCtx(() => [
257
- vue.createTextVNode("\u91CD\u7F6E")
258
- ]),
259
- _: 1
260
- })) : vue.createCommentVNode("v-if", true)
294
+ })
295
+ ])
261
296
  ]),
262
- vue.createElementVNode("div", _hoisted_7, [
263
- vue.createVNode(vue.unref(webVue.Button), {
264
- type: "primary",
265
- onClick: _cache[6] || (_cache[6] = ($event) => emits("upload"))
266
- }, {
267
- icon: vue.withCtx(() => [
268
- vue.createVNode(vue.unref(icon.IconUpload))
269
- ]),
270
- default: vue.withCtx(() => [
271
- vue.createTextVNode(" \u4E0A\u4F20 ")
272
- ]),
273
- _: 1
274
- })
275
- ])
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)
276
306
  ]);
277
307
  };
278
308
  }
@@ -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 {
@@ -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
  }
@@ -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({
@@ -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,15 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const keywordsSelection = [
4
+ { name: "\u5168\u90E8\u7ED3\u679C", value: "" },
5
+ { name: "\u6807\u9898", value: "alias" },
6
+ { name: "\u624B\u52A8\u6807\u7B7E", value: "tags" },
7
+ { name: "\u4EBA\u8138", value: "ai_figure" },
8
+ { name: "\u573A\u666F", value: "ai_scenario" },
9
+ { name: "\u5B9E\u4F53(\u56FE\u50CF)", value: "ai_entity" },
10
+ { name: "Logo", value: "ai_logo" },
11
+ { name: "\u6587\u672C(OCR)", value: "ai_ocr_keywords" },
12
+ { name: "\u8BED\u97F3", value: "ai_speech_keywords" },
13
+ { name: "\u77E5\u8BC6\u56FE\u8C31", value: "ai_knowledge_graph" }
14
+ ];
15
+ exports.keywordsSelection = keywordsSelection;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "0.3.46",
3
+ "version": "0.3.48",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",