@cmstops/pro-compo 0.3.77 → 0.3.79

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 (165) hide show
  1. package/dist/index.css +7 -0
  2. package/dist/index.min.css +1 -1
  3. package/es/appCenter/script/api.d.ts +5 -5
  4. package/es/baseFilter/components/FilterGroup.js +1 -1
  5. package/es/baseFilter/useCalcWidth.d.ts +2 -2
  6. package/es/contentDetailList/components/Content/DocItem/index.js +12 -14
  7. package/es/contentDetailList/components/Content/LiveItem/index.js +5 -6
  8. package/es/contentDetailList/components/Content/courseItem/index.js +7 -8
  9. package/es/contentDetailList/components/Content/funhdItem/index.js +7 -8
  10. package/es/contentDetailList/components/Content/index.js +2 -2
  11. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.js +10 -11
  12. package/es/contentDetailList/script/api.d.ts +2 -2
  13. package/es/contentModal/component.js +14 -14
  14. package/es/contentModal/components/MpContentList/MediaFilter/index.js +3 -4
  15. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.js +1 -1
  16. package/es/contentModal/components/storeBox/index.js +4 -4
  17. package/es/contentModal/script/api.d.ts +9 -9
  18. package/es/dataTags/component.js +10 -10
  19. package/es/docHistory/component.js +2 -2
  20. package/es/docHistory/scripts/useDocHistory.d.ts +5 -5
  21. package/es/docPreview/component.js +47 -56
  22. package/es/docPreview/components/PreviewIframe.js +9 -10
  23. package/es/docPreview/scripts/api.d.ts +1 -1
  24. package/es/docPreview/scripts/hook.d.ts +17 -7
  25. package/es/editMetaInfo/components/metaInfoForm.js +4 -4
  26. package/es/editMetaInfo/script/api.d.ts +2 -2
  27. package/es/emptyData/svg/acount.js +3 -5
  28. package/es/emptyData/svg/add.js +3 -5
  29. package/es/emptyData/svg/analize.js +3 -5
  30. package/es/emptyData/svg/analize_fail.js +3 -5
  31. package/es/emptyData/svg/empty.js +3 -5
  32. package/es/emptyData/svg/file.js +3 -5
  33. package/es/emptyData/svg/manager.js +3 -5
  34. package/es/emptyData/svg/message.js +14 -17
  35. package/es/emptyData/svg/noanalize.js +3 -5
  36. package/es/emptyData/svg/null.js +3 -5
  37. package/es/emptyData/svg/search.js +3 -5
  38. package/es/emptyData/svg/star.js +3 -5
  39. package/es/emptyData/svg/trash.js +3 -5
  40. package/es/emptyData/svg/user.js +3 -5
  41. package/es/hooks/assets.d.ts +1 -1
  42. package/es/hooks/batch.d.ts +1 -1
  43. package/es/hooks/dialogVisible.d.ts +1 -1
  44. package/es/hooks/source.d.ts +2 -2
  45. package/es/hooks/toggle.d.ts +1 -1
  46. package/es/hooks/useAttachement.d.ts +12 -12
  47. package/es/hooks/useMediaContext.d.ts +5 -5
  48. package/es/hooks/usePopper.d.ts +1 -1
  49. package/es/hooks/useSelection.d.ts +9 -2
  50. package/es/hooks/useUpload.d.ts +5 -5
  51. package/es/hooks/user.d.ts +2 -2
  52. package/es/imageCrop/component.js +4 -4
  53. package/es/imageCrop/script/api.d.ts +1 -1
  54. package/es/index.css +7 -0
  55. package/es/mediaFilter/components/DocFilter.js +1 -1
  56. package/es/mediaFilter/components/FilterGroup.js +1 -1
  57. package/es/mediaView/component.js +3 -5
  58. package/es/messageBox/component.js +2 -2
  59. package/es/messageBox/script/api.d.ts +2 -2
  60. package/es/previousVersion/component.js +3 -4
  61. package/es/previousVersion/script/api.d.ts +4 -4
  62. package/es/resourceGridList/component.js +15 -18
  63. package/es/resourceModal/component.js +2 -2
  64. package/es/resourceModal/components/MediaPreviewer/index.js +7 -10
  65. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +15 -17
  66. package/es/resourceModal/components/MediaSelection/MainContent/index.js +20 -24
  67. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +2 -2
  68. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +3 -4
  69. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +9 -13
  70. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -2
  71. package/es/resourceModal/script/api.d.ts +11 -11
  72. package/es/selectGategory/component.js +3 -4
  73. package/es/selectGategory/script/api.d.ts +2 -2
  74. package/es/selectResourceModal/component.js +10 -10
  75. package/es/selectResourceModal/components/List/ListAi/index.js +7 -8
  76. package/es/selectResourceModal/components/List/ListCardWrapper.js +6 -8
  77. package/es/selectResourceModal/components/List/ListLocal/Upload.js +1 -1
  78. package/es/selectResourceModal/components/List/ListNormal/Filter.js +7 -7
  79. package/es/selectResourceModal/components/List/ListSystem/Filter.js +2 -2
  80. package/es/selectResourceModal/components/List/ListSystem/SubList.js +3 -4
  81. package/es/selectResourceModal/components/List/ListSystem/index.js +1 -2
  82. package/es/selectResourceModal/scripts/selectionApis.d.ts +2 -2
  83. package/es/selectResourceModal/scripts/useResourceSelect.d.ts +1 -1
  84. package/es/selectResourceModal/scripts/useTabFilter.d.ts +1 -1
  85. package/es/selectThumb/component.js +27 -31
  86. package/es/uploadBefore/components/UploadBefore.js +2 -2
  87. package/es/uploadBefore/script/api.d.ts +4 -4
  88. package/es/uploadBefore/script/uploadHooks.d.ts +42 -1
  89. package/es/userAvater/component.js +2 -2
  90. package/es/userAvater/script/api.d.ts +4 -4
  91. package/es/userDirector/component.js +2 -2
  92. package/es/userDirector/script/api.d.ts +6 -6
  93. package/es/utils/filter.d.ts +12 -0
  94. package/es/utils/request.d.ts +1 -1
  95. package/es/utils/transcodeMedia.d.ts +1 -1
  96. package/es/videoThumb/component.js +47 -35
  97. package/es/videoThumb/scripts/api.d.ts +1 -1
  98. package/es/videoThumb/scripts/useVideoThumbs.d.ts +4 -3
  99. package/es/videoThumb/scripts/useVideoThumbs.js +1 -0
  100. package/es/videoThumb/style/index.css +7 -0
  101. package/es/videoThumb/style/index.less +8 -0
  102. package/lib/baseFilter/components/FilterGroup.js +1 -1
  103. package/lib/contentDetailList/components/Content/DocItem/index.js +12 -14
  104. package/lib/contentDetailList/components/Content/LiveItem/index.js +5 -6
  105. package/lib/contentDetailList/components/Content/courseItem/index.js +7 -8
  106. package/lib/contentDetailList/components/Content/funhdItem/index.js +7 -8
  107. package/lib/contentDetailList/components/Content/index.js +2 -2
  108. package/lib/contentDetailList/components/ShowQRCode/QrcodeView/index.js +10 -11
  109. package/lib/contentModal/component.js +14 -14
  110. package/lib/contentModal/components/MpContentList/MediaFilter/index.js +3 -4
  111. package/lib/contentModal/components/ViewAllColumn/MediaFilter/index.js +1 -1
  112. package/lib/contentModal/components/storeBox/index.js +4 -4
  113. package/lib/dataTags/component.js +10 -10
  114. package/lib/docHistory/component.js +2 -2
  115. package/lib/docPreview/component.js +47 -56
  116. package/lib/docPreview/components/PreviewIframe.js +9 -10
  117. package/lib/editMetaInfo/components/metaInfoForm.js +4 -4
  118. package/lib/emptyData/svg/acount.js +3 -5
  119. package/lib/emptyData/svg/add.js +3 -5
  120. package/lib/emptyData/svg/analize.js +3 -5
  121. package/lib/emptyData/svg/analize_fail.js +3 -5
  122. package/lib/emptyData/svg/empty.js +3 -5
  123. package/lib/emptyData/svg/file.js +3 -5
  124. package/lib/emptyData/svg/manager.js +3 -5
  125. package/lib/emptyData/svg/message.js +14 -17
  126. package/lib/emptyData/svg/noanalize.js +3 -5
  127. package/lib/emptyData/svg/null.js +3 -5
  128. package/lib/emptyData/svg/search.js +3 -5
  129. package/lib/emptyData/svg/star.js +3 -5
  130. package/lib/emptyData/svg/trash.js +3 -5
  131. package/lib/emptyData/svg/user.js +3 -5
  132. package/lib/imageCrop/component.js +4 -4
  133. package/lib/index.css +7 -0
  134. package/lib/mediaFilter/components/DocFilter.js +1 -1
  135. package/lib/mediaFilter/components/FilterGroup.js +1 -1
  136. package/lib/mediaView/component.js +3 -5
  137. package/lib/messageBox/component.js +2 -2
  138. package/lib/previousVersion/component.js +3 -4
  139. package/lib/resourceGridList/component.js +15 -18
  140. package/lib/resourceModal/component.js +2 -2
  141. package/lib/resourceModal/components/MediaPreviewer/index.js +7 -10
  142. package/lib/resourceModal/components/MediaSelection/DocAiMediaSelected/index.js +15 -17
  143. package/lib/resourceModal/components/MediaSelection/MainContent/index.js +20 -24
  144. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.js +2 -2
  145. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.js +3 -4
  146. package/lib/resourceModal/components/MediaSelection/SystemResourceSelected/index.js +9 -13
  147. package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -2
  148. package/lib/selectGategory/component.js +3 -4
  149. package/lib/selectResourceModal/component.js +10 -10
  150. package/lib/selectResourceModal/components/List/ListAi/index.js +6 -7
  151. package/lib/selectResourceModal/components/List/ListCardWrapper.js +6 -8
  152. package/lib/selectResourceModal/components/List/ListLocal/Upload.js +1 -1
  153. package/lib/selectResourceModal/components/List/ListNormal/Filter.js +7 -7
  154. package/lib/selectResourceModal/components/List/ListSystem/Filter.js +2 -2
  155. package/lib/selectResourceModal/components/List/ListSystem/SubList.js +3 -4
  156. package/lib/selectResourceModal/components/List/ListSystem/index.js +1 -2
  157. package/lib/selectThumb/component.js +27 -31
  158. package/lib/uploadBefore/components/UploadBefore.js +2 -2
  159. package/lib/userAvater/component.js +2 -2
  160. package/lib/userDirector/component.js +2 -2
  161. package/lib/videoThumb/component.js +46 -34
  162. package/lib/videoThumb/scripts/useVideoThumbs.js +1 -0
  163. package/lib/videoThumb/style/index.css +7 -0
  164. package/lib/videoThumb/style/index.less +8 -0
  165. package/package.json +1 -1
@@ -121,44 +121,44 @@ const _sfc_main = vue.defineComponent({
121
121
  onClear: vue.unref(handleClear)
122
122
  }, null, 8, ["maxcount", "selected", "onRemove", "onClear"]),
123
123
  vue.createVNode(vue.unref(webVue.Button), { onClick: vue.unref(close) }, {
124
- default: vue.withCtx(() => [
124
+ default: vue.withCtx(() => _cache[1] || (_cache[1] = [
125
125
  vue.createTextVNode("\u53D6\u6D88")
126
- ]),
126
+ ])),
127
127
  _: 1
128
128
  }, 8, ["onClick"]),
129
129
  vue.createVNode(vue.unref(webVue.Button), {
130
130
  type: "primary",
131
131
  onClick: confirm
132
132
  }, {
133
- default: vue.withCtx(() => [
133
+ default: vue.withCtx(() => _cache[2] || (_cache[2] = [
134
134
  vue.createTextVNode(" \u786E\u5B9A ")
135
- ]),
135
+ ])),
136
136
  _: 1
137
137
  })
138
138
  ], 64)) : vue.createCommentVNode("v-if", true)
139
139
  ], 64)) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
140
140
  vue.createVNode(vue.unref(webVue.Button), { onClick: vue.unref(close) }, {
141
- default: vue.withCtx(() => [
141
+ default: vue.withCtx(() => _cache[3] || (_cache[3] = [
142
142
  vue.createTextVNode("\u53D6\u6D88")
143
- ]),
143
+ ])),
144
144
  _: 1
145
145
  }, 8, ["onClick"]),
146
146
  vue.createVNode(vue.unref(webVue.Button), {
147
147
  type: "primary",
148
148
  onClick: ($event) => confirm("crop", onConfirm)
149
149
  }, {
150
- default: vue.withCtx(() => [
150
+ default: vue.withCtx(() => _cache[4] || (_cache[4] = [
151
151
  vue.createTextVNode(" \u88C1\u526A ")
152
- ]),
152
+ ])),
153
153
  _: 2
154
154
  }, 1032, ["onClick"]),
155
155
  vue.createVNode(vue.unref(webVue.Button), {
156
156
  type: "primary",
157
157
  onClick: ($event) => confirm("use", onConfirm)
158
158
  }, {
159
- default: vue.withCtx(() => [
159
+ default: vue.withCtx(() => _cache[5] || (_cache[5] = [
160
160
  vue.createTextVNode(" \u4F7F\u7528 ")
161
- ]),
161
+ ])),
162
162
  _: 2
163
163
  }, 1032, ["onClick"])
164
164
  ], 64))
@@ -1,11 +1,7 @@
1
1
  "use strict";
2
2
  var vue = require("vue");
3
3
  var ListWraper = require("../ListWraper.js");
4
- const _hoisted_1 = /* @__PURE__ */ vue.createElementVNode("div", { class: "title" }, [
5
- /* @__PURE__ */ vue.createElementVNode("div", { class: "line" }),
6
- /* @__PURE__ */ vue.createTextVNode(" \u5C01\u9762\u56FE ")
7
- ], -1);
8
- const _hoisted_2 = { class: "list-item-grid" };
4
+ const _hoisted_1 = { class: "list-item-grid" };
9
5
  const _sfc_main = vue.defineComponent({
10
6
  __name: "index",
11
7
  setup(__props) {
@@ -35,8 +31,11 @@ const _sfc_main = vue.defineComponent({
35
31
  ]),
36
32
  default: vue.withCtx(() => [
37
33
  aiThumbListReal.value.length ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
38
- _hoisted_1,
39
- vue.createElementVNode("div", _hoisted_2, [
34
+ _cache[0] || (_cache[0] = vue.createElementVNode("div", { class: "title" }, [
35
+ vue.createElementVNode("div", { class: "line" }),
36
+ vue.createTextVNode(" \u5C01\u9762\u56FE ")
37
+ ], -1)),
38
+ vue.createElementVNode("div", _hoisted_1, [
40
39
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(aiThumbListReal.value, (item) => {
41
40
  return vue.renderSlot(_ctx.$slots, "item", {
42
41
  key: item.url,
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
  var vue = require("vue");
3
3
  var index = require("../../../thumbCard/index.js");
4
- const _hoisted_1 = /* @__PURE__ */ vue.createElementVNode("div", { class: "mask" }, null, -1);
5
- const _hoisted_2 = { class: "card-alias" };
6
- const _hoisted_3 = {
4
+ const _hoisted_1 = { class: "card-alias" };
5
+ const _hoisted_2 = {
7
6
  key: 0,
8
7
  class: "check-box active"
9
8
  };
10
- const _hoisted_4 = /* @__PURE__ */ vue.createElementVNode("div", { class: "check-box" }, null, -1);
11
9
  const _sfc_main = vue.defineComponent({
12
10
  __name: "ListCardWrapper",
13
11
  props: {
@@ -83,17 +81,17 @@ const _sfc_main = vue.defineComponent({
83
81
  "handlers-key": handlersKey.value,
84
82
  onHandle: _cache[0] || (_cache[0] = (e) => emits("options", e))
85
83
  }, null, 8, ["url", "thumb", "catalog", "meta", "options", "handlers-key"]),
86
- _hoisted_1
84
+ _cache[1] || (_cache[1] = vue.createElementVNode("div", { class: "mask" }, null, -1))
87
85
  ], 2),
88
- vue.createElementVNode("div", _hoisted_2, vue.toDisplayString(_ctx.item.alias), 1),
86
+ vue.createElementVNode("div", _hoisted_1, vue.toDisplayString(_ctx.item.alias), 1),
89
87
  vue.createElementVNode("div", {
90
88
  class: "check-box-wrapper",
91
89
  onClick: vue.withModifiers(handleCheck, ["stop"])
92
90
  }, [
93
91
  vue.createCommentVNode(" \u5DF2\u9009 "),
94
- selectedOrder.value[resourceKey.value] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, vue.toDisplayString(selectedOrder.value[resourceKey.value]), 1)) : canIUse.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
92
+ selectedOrder.value[resourceKey.value] ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, vue.toDisplayString(selectedOrder.value[resourceKey.value]), 1)) : canIUse.value ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
95
93
  vue.createCommentVNode(" \u662F\u5426\u53EF\u4EE5\u9009\u62E9 "),
96
- _hoisted_4
94
+ _cache[2] || (_cache[2] = vue.createElementVNode("div", { class: "check-box" }, null, -1))
97
95
  ], 64)) : vue.createCommentVNode("v-if", true)
98
96
  ])
99
97
  ]);
@@ -46,7 +46,7 @@ const _sfc_main = vue.defineComponent({
46
46
  vue.createVNode(vue.unref(vueCmstopIcons.IconComputer))
47
47
  ]),
48
48
  default: vue.withCtx(() => [
49
- vue.createTextVNode(" \u672C\u5730\u4E0A\u4F20 ")
49
+ _cache[0] || (_cache[0] = vue.createTextVNode(" \u672C\u5730\u4E0A\u4F20 "))
50
50
  ]),
51
51
  _: 1
52
52
  })
@@ -176,15 +176,15 @@ const _sfc_main = vue.defineComponent({
176
176
  }, {
177
177
  content: vue.withCtx(() => [
178
178
  vue.createVNode(vue.unref(webVue.Doption), { value: 0 }, {
179
- default: vue.withCtx(() => [
179
+ default: vue.withCtx(() => _cache[7] || (_cache[7] = [
180
180
  vue.createTextVNode("\u7CBE\u51C6\u641C")
181
- ]),
181
+ ])),
182
182
  _: 1
183
183
  }),
184
184
  vue.createVNode(vue.unref(webVue.Doption), { value: 1 }, {
185
- default: vue.withCtx(() => [
185
+ default: vue.withCtx(() => _cache[8] || (_cache[8] = [
186
186
  vue.createTextVNode("\u6A21\u7CCA\u641C")
187
- ]),
187
+ ])),
188
188
  _: 1
189
189
  })
190
190
  ]),
@@ -279,9 +279,9 @@ const _sfc_main = vue.defineComponent({
279
279
  type: "text",
280
280
  onClick: handleReset
281
281
  }, {
282
- default: vue.withCtx(() => [
282
+ default: vue.withCtx(() => _cache[9] || (_cache[9] = [
283
283
  vue.createTextVNode(" \u91CD\u7F6E ")
284
- ]),
284
+ ])),
285
285
  _: 1
286
286
  })) : vue.createCommentVNode("v-if", true)
287
287
  ]),
@@ -294,7 +294,7 @@ const _sfc_main = vue.defineComponent({
294
294
  vue.createVNode(vue.unref(icon.IconUpload))
295
295
  ]),
296
296
  default: vue.withCtx(() => [
297
- vue.createTextVNode(" \u4E0A\u4F20 ")
297
+ _cache[10] || (_cache[10] = vue.createTextVNode(" \u4E0A\u4F20 "))
298
298
  ]),
299
299
  _: 1
300
300
  })
@@ -128,9 +128,9 @@ const _sfc_main = vue.defineComponent({
128
128
  type: "text",
129
129
  onClick: handleReset
130
130
  }, {
131
- default: vue.withCtx(() => [
131
+ default: vue.withCtx(() => _cache[3] || (_cache[3] = [
132
132
  vue.createTextVNode(" \u91CD\u7F6E ")
133
- ]),
133
+ ])),
134
134
  _: 1
135
135
  })) : vue.createCommentVNode("v-if", true)
136
136
  ])
@@ -3,7 +3,6 @@ var vue = require("vue");
3
3
  var sys_load_more = require("../../../assets/images/sys_load_more.js");
4
4
  var useAttachement = require("../../../../hooks/useAttachement.js");
5
5
  const _hoisted_1 = { class: "list-item-grid" };
6
- const _hoisted_2 = /* @__PURE__ */ vue.createElementVNode("img", { src: sys_load_more }, null, -1);
7
6
  const _sfc_main = vue.defineComponent({
8
7
  __name: "SubList",
9
8
  props: {
@@ -56,10 +55,10 @@ const _sfc_main = vue.defineComponent({
56
55
  key: 0,
57
56
  class: "item-load-more",
58
57
  onClick: loadMore
59
- }, [
60
- _hoisted_2,
58
+ }, _cache[0] || (_cache[0] = [
59
+ vue.createElementVNode("img", { src: sys_load_more }, null, -1),
61
60
  vue.createTextVNode(" \u70B9\u51FB\u52A0\u8F7D\u66F4\u591A ")
62
- ])) : vue.createCommentVNode("v-if", true)
61
+ ]))) : vue.createCommentVNode("v-if", true)
63
62
  ])
64
63
  ], 2112);
65
64
  };
@@ -9,7 +9,6 @@ const _hoisted_1 = {
9
9
  class: "scen-module"
10
10
  };
11
11
  const _hoisted_2 = { class: "title" };
12
- const _hoisted_3 = /* @__PURE__ */ vue.createElementVNode("div", { class: "line" }, null, -1);
13
12
  const _sfc_main = vue.defineComponent({
14
13
  __name: "index",
15
14
  emits: ["confirm"],
@@ -81,7 +80,7 @@ const _sfc_main = vue.defineComponent({
81
80
  }, [
82
81
  sceniro.data && sceniro.data.length > 0 ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
83
82
  vue.createElementVNode("div", _hoisted_2, [
84
- _hoisted_3,
83
+ _cache[0] || (_cache[0] = vue.createElementVNode("div", { class: "line" }, null, -1)),
85
84
  vue.createTextVNode(" " + vue.toDisplayString(sceniro.scenario_name), 1)
86
85
  ]),
87
86
  vue.createCommentVNode(" \u5185\u7F6E\u7D20\u6750 - \u573A\u666F\u5217\u8868 "),
@@ -28,40 +28,31 @@ const _hoisted_7 = {
28
28
  key: 0,
29
29
  class: "tip"
30
30
  };
31
- const _hoisted_8 = /* @__PURE__ */ vue.createElementVNode("span", { style: { "margin-right": "10px" } }, "\u72EC\u7ACB\u8F6E\u64AD\u56FE", -1);
32
- const _hoisted_9 = { class: "thumbbox" };
33
- const _hoisted_10 = {
31
+ const _hoisted_8 = { class: "thumbbox" };
32
+ const _hoisted_9 = {
34
33
  key: 2,
35
34
  class: "title"
36
35
  };
37
- const _hoisted_11 = /* @__PURE__ */ vue.createElementVNode("span", null, "\u72EC\u7ACB\u8F6E\u64AD\u56FE\u80CC\u666F\u989C\u8272", -1);
38
- const _hoisted_12 = [
39
- _hoisted_11
40
- ];
41
- const _hoisted_13 = { key: 0 };
42
- const _hoisted_14 = {
36
+ const _hoisted_10 = { key: 0 };
37
+ const _hoisted_11 = {
43
38
  key: 0,
44
39
  class: "star"
45
40
  };
46
- const _hoisted_15 = { key: 1 };
47
- const _hoisted_16 = {
41
+ const _hoisted_12 = { key: 1 };
42
+ const _hoisted_13 = {
48
43
  key: 2,
49
44
  class: "tip",
50
45
  style: { "margin-left": "10px" }
51
46
  };
52
- const _hoisted_17 = { class: "thumbbox" };
53
- const _hoisted_18 = {
47
+ const _hoisted_14 = { class: "thumbbox" };
48
+ const _hoisted_15 = {
54
49
  key: 0,
55
50
  class: "tip"
56
51
  };
57
- const _hoisted_19 = {
52
+ const _hoisted_16 = {
58
53
  key: 1,
59
54
  class: "title"
60
55
  };
61
- const _hoisted_20 = /* @__PURE__ */ vue.createElementVNode("span", null, "\u56FE\u7247\u80CC\u666F\u989C\u8272", -1);
62
- const _hoisted_21 = [
63
- _hoisted_20
64
- ];
65
56
  const _sfc_main = vue.defineComponent({
66
57
  ...{ name: "selectThumb" },
67
58
  __name: "component",
@@ -492,7 +483,7 @@ const _sfc_main = vue.defineComponent({
492
483
  class: "title",
493
484
  style: vue.normalizeStyle({ width: _ctx.offset })
494
485
  }, [
495
- _hoisted_8,
486
+ _cache[11] || (_cache[11] = vue.createElementVNode("span", { style: { "margin-right": "10px" } }, "\u72EC\u7ACB\u8F6E\u64AD\u56FE", -1)),
496
487
  vue.createCommentVNode(" \u4E0A\u4E0B\u5E03\u5C40\u5F00\u5173\u5728\u6807\u9898\u540E "),
497
488
  !_ctx.flex ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Switch), {
498
489
  key: 0,
@@ -501,7 +492,7 @@ const _sfc_main = vue.defineComponent({
501
492
  size: "small"
502
493
  }, null, 8, ["modelValue"])) : vue.createCommentVNode("v-if", true)
503
494
  ], 4),
504
- vue.createElementVNode("div", _hoisted_9, [
495
+ vue.createElementVNode("div", _hoisted_8, [
505
496
  vue.createCommentVNode(" \u5DE6\u53F3\u5E03\u5C40\u5F00\u5173\u663E\u793A "),
506
497
  _ctx.flex ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Switch), {
507
498
  key: 0,
@@ -524,7 +515,9 @@ const _sfc_main = vue.defineComponent({
524
515
  onUploadLocal: _cache[6] || (_cache[6] = (cb) => _ctx.$emit("upload", cb)),
525
516
  onOpen: openDialogMediaSelection
526
517
  }, null, 8, ["data", "parentRef", "preview-list", "is-popover"])) : vue.createCommentVNode("v-if", true),
527
- hasBanner.value && styleData.value.banner_theme_color ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_10, _hoisted_12)) : vue.createCommentVNode("v-if", true),
518
+ hasBanner.value && styleData.value.banner_theme_color ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, _cache[12] || (_cache[12] = [
519
+ vue.createElementVNode("span", null, "\u72EC\u7ACB\u8F6E\u64AD\u56FE\u80CC\u666F\u989C\u8272", -1)
520
+ ]))) : vue.createCommentVNode("v-if", true),
528
521
  vue.createCommentVNode(" banner\u8C03\u8272\u677F "),
529
522
  hasBanner.value ? (vue.openBlock(), vue.createBlock(colorPalette, {
530
523
  key: 3,
@@ -542,13 +535,13 @@ const _sfc_main = vue.defineComponent({
542
535
  class: "title",
543
536
  style: vue.normalizeStyle({ width: _ctx.offset })
544
537
  }, [
545
- docSeriesShowTopThemeColor.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_13, [
546
- _ctx.topImageTitleValid ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_14, "*")) : vue.createCommentVNode("v-if", true),
538
+ docSeriesShowTopThemeColor.value ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_10, [
539
+ _ctx.topImageTitleValid ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_11, "*")) : vue.createCommentVNode("v-if", true),
547
540
  vue.createElementVNode("span", null, vue.toDisplayString(_ctx.topImageTitle || "\u5C01\u9762\u5934\u56FE"), 1)
548
- ])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_15, "PC\u5C01\u9762\u56FE")),
549
- !_ctx.flex ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_16, " (\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A1242px*662px) ")) : vue.createCommentVNode("v-if", true)
541
+ ])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_12, "PC\u5C01\u9762\u56FE")),
542
+ !_ctx.flex ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_13, " (\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A1242px*662px) ")) : vue.createCommentVNode("v-if", true)
550
543
  ], 4),
551
- vue.createElementVNode("div", _hoisted_17, [
544
+ vue.createElementVNode("div", _hoisted_14, [
552
545
  vue.createVNode(card, {
553
546
  id: `pc-banner-card`,
554
547
  data: pcBanner.value,
@@ -562,8 +555,10 @@ const _sfc_main = vue.defineComponent({
562
555
  onUploadLocal: _cache[8] || (_cache[8] = (cb) => _ctx.$emit("upload", cb)),
563
556
  onOpen: openDialogMediaSelection
564
557
  }, null, 8, ["data", "parentRef", "previewList", "is-popover"]),
565
- _ctx.flex ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_18, "(\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A1242px*662px)")) : vue.createCommentVNode("v-if", true),
566
- docSeriesShowTopThemeColor.value && styleData.value.top_theme_color ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_19, _hoisted_21)) : vue.createCommentVNode("v-if", true),
558
+ _ctx.flex ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_15, "(\u5EFA\u8BAE\u5C3A\u5BF8\uFF1A1242px*662px)")) : vue.createCommentVNode("v-if", true),
559
+ docSeriesShowTopThemeColor.value && styleData.value.top_theme_color ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_16, _cache[13] || (_cache[13] = [
560
+ vue.createElementVNode("span", null, "\u56FE\u7247\u80CC\u666F\u989C\u8272", -1)
561
+ ]))) : vue.createCommentVNode("v-if", true),
567
562
  docSeriesShowTopThemeColor.value ? (vue.openBlock(), vue.createBlock(colorPalette, {
568
563
  key: 2,
569
564
  model: "top",
@@ -573,7 +568,7 @@ const _sfc_main = vue.defineComponent({
573
568
  ])
574
569
  ], 2)
575
570
  ], 64)) : vue.createCommentVNode("v-if", true),
576
- vue.createCommentVNode(" 2024.9.2 dyz\uFF1A\u5F03\u7528\u65E7\u5F39\u7A97 "),
571
+ vue.createCommentVNode(" 2024.9.2 v3.7.0 dyz\uFF1A\u5F03\u7528\u65E7\u5F39\u7A97 "),
577
572
  vue.createCommentVNode(` <resourceModal
578
573
  v-model:dialogVisible="dialogMediaSelectionShow"
579
574
  :preview="false"
@@ -583,17 +578,18 @@ const _sfc_main = vue.defineComponent({
583
578
  @submit="submitCallback"
584
579
  @upload="(cb) => $emit('upload', cb)"
585
580
  /> `),
586
- vue.createCommentVNode(" 2024.9.2 dyz\uFF1A\u4F7F\u7528\u65E7\u5F39\u7A97 "),
581
+ vue.createCommentVNode(" 2024.9.2 v3.7.0 dyz\uFF1A\u4F7F\u7528\u65B0\u5F39\u7A97 "),
587
582
  dialogMediaSelectionShow.value ? (vue.openBlock(), vue.createBlock(component, {
588
583
  key: 1,
589
584
  visible: dialogMediaSelectionShow.value,
590
585
  "onUpdate:visible": _cache[9] || (_cache[9] = ($event) => dialogMediaSelectionShow.value = $event),
591
586
  maxcount: 1,
587
+ "media-use-type": _ctx.mediaUseType,
592
588
  userInfo: { domain_id: 1, repository_id: 4 },
593
589
  filterOptions: { mediaType: "image", mediaTypeStrict: true },
594
590
  wrap: "modal",
595
591
  onSubmit: submitCallback
596
- }, null, 8, ["visible"])) : vue.createCommentVNode("v-if", true),
592
+ }, null, 8, ["visible", "media-use-type"])) : vue.createCommentVNode("v-if", true),
597
593
  refreshCrop.value ? (vue.openBlock(), vue.createBlock(component$1, {
598
594
  key: 2,
599
595
  visible: dialogCropperShow.value,
@@ -122,9 +122,9 @@ const _sfc_main = vue.defineComponent({
122
122
  onOk: handleOk,
123
123
  onCancel: handleClose
124
124
  }, {
125
- title: vue.withCtx(() => [
125
+ title: vue.withCtx(() => _cache[1] || (_cache[1] = [
126
126
  vue.createTextVNode("\u4E0A\u4F20\u914D\u7F6E")
127
- ]),
127
+ ])),
128
128
  default: vue.withCtx(() => [
129
129
  vue.createElementVNode("div", _hoisted_1, [
130
130
  vue.createVNode(vue.unref(webVue.Table), {
@@ -138,9 +138,9 @@ const _sfc_main = vue.defineComponent({
138
138
  type: "text",
139
139
  onClick: _cache[1] || (_cache[1] = ($event) => loginOut())
140
140
  }, {
141
- default: vue.withCtx(() => [
141
+ default: vue.withCtx(() => _cache[2] || (_cache[2] = [
142
142
  vue.createTextVNode("\u9000\u51FA")
143
- ]),
143
+ ])),
144
144
  _: 1
145
145
  })
146
146
  ])
@@ -226,9 +226,9 @@ const _sfc_main = vue.defineComponent({
226
226
  size: "mini",
227
227
  onClick: clearUserSelectedList
228
228
  }, {
229
- default: vue.withCtx(() => [
229
+ default: vue.withCtx(() => _cache[0] || (_cache[0] = [
230
230
  vue.createTextVNode("\u5168\u90E8\u6E05\u9664")
231
- ]),
231
+ ])),
232
232
  _: 1
233
233
  })
234
234
  ]),
@@ -1,12 +1,17 @@
1
1
  "use strict";
2
2
  var vue = require("vue");
3
+ var webVue = require("@arco-design/web-vue");
3
4
  var config = require("../config.js");
4
5
  var useVideoThumbs = require("./scripts/useVideoThumbs.js");
5
6
  const _hoisted_1 = { class: "video-thumb" };
6
- const _hoisted_2 = { class: "video-player-container" };
7
- const _hoisted_3 = ["src"];
8
- const _hoisted_4 = ["onClick"];
9
- const _hoisted_5 = ["src"];
7
+ const _hoisted_2 = {
8
+ key: 0,
9
+ class: "video-thumb-loading"
10
+ };
11
+ const _hoisted_3 = { class: "video-player-container" };
12
+ const _hoisted_4 = ["src"];
13
+ const _hoisted_5 = ["onClick"];
14
+ const _hoisted_6 = ["src"];
10
15
  const _sfc_main = vue.defineComponent({
11
16
  ...{ name: "videoThumb" },
12
17
  __name: "component",
@@ -22,7 +27,7 @@ const _sfc_main = vue.defineComponent({
22
27
  const props = __props;
23
28
  const emit = __emit;
24
29
  const BASE_API = props.BASE_API || config.DEFAULT_BASE_API;
25
- const { thumbs, curThumb, getVideoThumbs, handleSelectThumb } = useVideoThumbs.useVideoThumbs();
30
+ const { thumbs, loading, curThumb, getVideoThumbs, handleSelectThumb } = useVideoThumbs.useVideoThumbs();
26
31
  const videoThumbRef = vue.ref();
27
32
  const videoThumbDrager = vue.ref();
28
33
  const width = vue.computed(() => {
@@ -70,35 +75,42 @@ const _sfc_main = vue.defineComponent({
70
75
  });
71
76
  return (_ctx, _cache) => {
72
77
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
73
- vue.createElementVNode("div", _hoisted_2, [
74
- vue.createElementVNode("img", { src: vue.unref(curThumb) }, null, 8, _hoisted_3)
75
- ]),
76
- vue.createCommentVNode(" \u5C01\u9762\u56FE "),
77
- vue.createElementVNode("div", {
78
- ref_key: "videoThumbRef",
79
- ref: videoThumbRef,
80
- class: "video-thumb-list"
81
- }, [
82
- vue.unref(thumbs).length > 0 ? (vue.openBlock(), vue.createElementBlock("div", {
83
- key: 0,
84
- ref_key: "videoThumbDrager",
85
- ref: videoThumbDrager,
86
- class: "video-thumb-list-drager",
87
- onMousedown: _cache[0] || (_cache[0] = (...args) => vue.unref(handleMousedown) && vue.unref(handleMousedown)(...args))
88
- }, null, 544)) : vue.createCommentVNode("v-if", true),
89
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(thumbs), (thumb, idx) => {
90
- return vue.openBlock(), vue.createElementBlock("div", {
91
- key: thumb,
92
- class: vue.normalizeClass(["video-thumb-list-item", { active: vue.unref(curThumb) === thumb }]),
93
- onClick: ($event) => handleSelect(idx)
94
- }, [
95
- vue.createElementVNode("img", {
96
- src: thumb,
97
- alt: ""
98
- }, null, 8, _hoisted_5)
99
- ], 10, _hoisted_4);
100
- }), 128))
101
- ], 512)
78
+ vue.unref(loading) ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_2, [
79
+ vue.createVNode(vue.unref(webVue.Spin), {
80
+ loading: vue.unref(loading),
81
+ tip: "\u751F\u6210\u89C6\u9891\u5C01\u9762\u4E2D..."
82
+ }, null, 8, ["loading"])
83
+ ])) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
84
+ vue.createElementVNode("div", _hoisted_3, [
85
+ vue.createElementVNode("img", { src: vue.unref(curThumb) }, null, 8, _hoisted_4)
86
+ ]),
87
+ vue.createCommentVNode(" \u5C01\u9762\u56FE "),
88
+ vue.createElementVNode("div", {
89
+ ref_key: "videoThumbRef",
90
+ ref: videoThumbRef,
91
+ class: "video-thumb-list"
92
+ }, [
93
+ vue.unref(thumbs).length > 0 ? (vue.openBlock(), vue.createElementBlock("div", {
94
+ key: 0,
95
+ ref_key: "videoThumbDrager",
96
+ ref: videoThumbDrager,
97
+ class: "video-thumb-list-drager",
98
+ onMousedown: _cache[0] || (_cache[0] = (...args) => vue.unref(handleMousedown) && vue.unref(handleMousedown)(...args))
99
+ }, null, 544)) : vue.createCommentVNode("v-if", true),
100
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(thumbs), (thumb, idx) => {
101
+ return vue.openBlock(), vue.createElementBlock("div", {
102
+ key: thumb,
103
+ class: vue.normalizeClass(["video-thumb-list-item", { active: vue.unref(curThumb) === thumb }]),
104
+ onClick: ($event) => handleSelect(idx)
105
+ }, [
106
+ vue.createElementVNode("img", {
107
+ src: thumb,
108
+ alt: ""
109
+ }, null, 8, _hoisted_6)
110
+ ], 10, _hoisted_5);
111
+ }), 128))
112
+ ], 512)
113
+ ], 64))
102
114
  ]);
103
115
  };
104
116
  }
@@ -41,6 +41,7 @@ function useVideoThumbs() {
41
41
  curThumb.value = thumbs.value[idx];
42
42
  }
43
43
  return {
44
+ loading,
44
45
  thumbs,
45
46
  curThumb,
46
47
  getVideoThumbs,
@@ -54,3 +54,10 @@
54
54
  .video-thumb .video-thumb-list .video-thumb-list-drager:hover {
55
55
  transform: scale(1.05);
56
56
  }
57
+ .video-thumb-loading {
58
+ display: flex;
59
+ align-items: center;
60
+ justify-content: center;
61
+ width: 100%;
62
+ height: 100%;
63
+ }
@@ -66,4 +66,12 @@
66
66
  }
67
67
  }
68
68
  }
69
+
70
+ &-loading {
71
+ display: flex;
72
+ align-items: center;
73
+ justify-content: center;
74
+ width: 100%;
75
+ height: 100%;
76
+ }
69
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "0.3.77",
3
+ "version": "0.3.79",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",