@cmstops/pro-compo 3.9.1-stable.0 → 3.9.1-stable.1

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 (38) hide show
  1. package/dist/index.css +45 -4
  2. package/dist/index.min.css +1 -1
  3. package/es/config.js +1 -1
  4. package/es/contentDetailList/component.js +24 -0
  5. package/es/contentDetailList/components/Content/index.js +2 -1
  6. package/es/contentDetailList/components/Doc/index.js +6 -0
  7. package/es/hooks/usePopper.d.ts +1 -1
  8. package/es/hooks/usePopper.js +3 -3
  9. package/es/hooks/useUpload.d.ts +50 -2
  10. package/es/hooks/useUpload.js +43 -4
  11. package/es/index.css +45 -4
  12. package/es/selectResourceModal/__demo__/module/DivWrapper.d.ts +268 -0
  13. package/es/selectResourceModal/__demo__/module/basic.d.ts +299 -0
  14. package/es/selectResourceModal/components/List/ListLocal/index.js +8 -3
  15. package/es/selectResourceModal/components/List/ListNormal/Filter.js +198 -90
  16. package/es/selectResourceModal/components/List/ListNormal/index.js +23 -7
  17. package/es/selectResourceModal/hooks/useResponsiveFilter.d.ts +21 -0
  18. package/es/selectResourceModal/hooks/useResponsiveFilter.js +142 -0
  19. package/es/selectResourceModal/style/index.css +45 -4
  20. package/es/selectResourceModal/style/index.less +14 -0
  21. package/es/selectResourceModal/style/list.less +40 -4
  22. package/es/utils/index.js +6 -6
  23. package/lib/config.js +1 -1
  24. package/lib/contentDetailList/component.js +24 -0
  25. package/lib/contentDetailList/components/Content/index.js +2 -1
  26. package/lib/contentDetailList/components/Doc/index.js +6 -0
  27. package/lib/hooks/usePopper.js +3 -3
  28. package/lib/hooks/useUpload.js +43 -3
  29. package/lib/index.css +45 -4
  30. package/lib/selectResourceModal/components/List/ListLocal/index.js +6 -1
  31. package/lib/selectResourceModal/components/List/ListNormal/Filter.js +195 -87
  32. package/lib/selectResourceModal/components/List/ListNormal/index.js +22 -6
  33. package/lib/selectResourceModal/hooks/useResponsiveFilter.js +144 -0
  34. package/lib/selectResourceModal/style/index.css +45 -4
  35. package/lib/selectResourceModal/style/index.less +14 -0
  36. package/lib/selectResourceModal/style/list.less +40 -4
  37. package/lib/utils/index.js +6 -6
  38. package/package.json +1 -1
@@ -0,0 +1,299 @@
1
+ /**
2
+ * @file
3
+ * @title selectResourceModal
4
+ * @memberOf 组件类型,例如:数据输入
5
+ * @description 描述你的组件。
6
+ */
7
+ export declare const BasicDemo: {
8
+ (args: any): {
9
+ components: {
10
+ selectResourceModal: any;
11
+ AButton: {
12
+ new (...args: any[]): {
13
+ $: import("vue").ComponentInternalInstance;
14
+ $data: {};
15
+ $props: Partial<{
16
+ disabled: boolean;
17
+ loading: boolean;
18
+ long: boolean;
19
+ htmlType: string;
20
+ }> & Omit<Readonly<{
21
+ type?: unknown;
22
+ shape?: unknown;
23
+ status?: unknown;
24
+ size?: unknown;
25
+ long?: unknown;
26
+ loading?: unknown;
27
+ disabled?: unknown;
28
+ htmlType?: unknown;
29
+ href?: unknown;
30
+ } & {
31
+ disabled: boolean;
32
+ loading: boolean;
33
+ long: boolean;
34
+ htmlType: string;
35
+ } & {
36
+ size?: "small" | "mini" | "medium" | "large" | undefined;
37
+ type?: "text" | "dashed" | "outline" | "primary" | "secondary" | undefined;
38
+ href?: string | undefined;
39
+ shape?: "circle" | "round" | "square" | undefined;
40
+ status?: "success" | "normal" | "warning" | "danger" | undefined;
41
+ }> & {
42
+ onClick?: ((ev: MouseEvent) => any) | undefined;
43
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "long" | "loading" | "disabled" | "htmlType">;
44
+ $attrs: {
45
+ [x: string]: unknown;
46
+ };
47
+ $refs: {
48
+ [x: string]: unknown;
49
+ };
50
+ $slots: Readonly<{
51
+ [name: string]: import("vue").Slot<any> | undefined;
52
+ }>;
53
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null;
54
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null;
55
+ $emit: (event: "click", ev: MouseEvent) => void;
56
+ $el: any;
57
+ $options: import("vue").ComponentOptionsBase<Readonly<{
58
+ type?: unknown;
59
+ shape?: unknown;
60
+ status?: unknown;
61
+ size?: unknown;
62
+ long?: unknown;
63
+ loading?: unknown;
64
+ disabled?: unknown;
65
+ htmlType?: unknown;
66
+ href?: unknown;
67
+ } & {
68
+ disabled: boolean;
69
+ loading: boolean;
70
+ long: boolean;
71
+ htmlType: string;
72
+ } & {
73
+ size?: "small" | "mini" | "medium" | "large" | undefined;
74
+ type?: "text" | "dashed" | "outline" | "primary" | "secondary" | undefined;
75
+ href?: string | undefined;
76
+ shape?: "circle" | "round" | "square" | undefined;
77
+ status?: "success" | "normal" | "warning" | "danger" | undefined;
78
+ }> & {
79
+ onClick?: ((ev: MouseEvent) => any) | undefined;
80
+ }, {
81
+ prefixCls: string;
82
+ cls: import("vue").ComputedRef<(string | {
83
+ [x: string]: boolean;
84
+ })[]>;
85
+ mergedDisabled: import("vue").ComputedRef<boolean>;
86
+ handleClick: (ev: MouseEvent) => void;
87
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
88
+ click: (ev: MouseEvent) => true;
89
+ }, string, {
90
+ disabled: boolean;
91
+ loading: boolean;
92
+ long: boolean;
93
+ htmlType: string;
94
+ }, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions> & {
95
+ beforeCreate?: (() => void) | (() => void)[] | undefined;
96
+ created?: (() => void) | (() => void)[] | undefined;
97
+ beforeMount?: (() => void) | (() => void)[] | undefined;
98
+ mounted?: (() => void) | (() => void)[] | undefined;
99
+ beforeUpdate?: (() => void) | (() => void)[] | undefined;
100
+ updated?: (() => void) | (() => void)[] | undefined;
101
+ activated?: (() => void) | (() => void)[] | undefined;
102
+ deactivated?: (() => void) | (() => void)[] | undefined;
103
+ beforeDestroy?: (() => void) | (() => void)[] | undefined;
104
+ beforeUnmount?: (() => void) | (() => void)[] | undefined;
105
+ destroyed?: (() => void) | (() => void)[] | undefined;
106
+ unmounted?: (() => void) | (() => void)[] | undefined;
107
+ renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
108
+ renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[] | undefined;
109
+ errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[] | undefined;
110
+ };
111
+ $forceUpdate: () => void;
112
+ $nextTick: typeof import("vue").nextTick;
113
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
114
+ } & Readonly<{
115
+ type?: unknown;
116
+ shape?: unknown;
117
+ status?: unknown;
118
+ size?: unknown;
119
+ long?: unknown;
120
+ loading?: unknown;
121
+ disabled?: unknown;
122
+ htmlType?: unknown;
123
+ href?: unknown;
124
+ } & {
125
+ disabled: boolean;
126
+ loading: boolean;
127
+ long: boolean;
128
+ htmlType: string;
129
+ } & {
130
+ size?: "small" | "mini" | "medium" | "large" | undefined;
131
+ type?: "text" | "dashed" | "outline" | "primary" | "secondary" | undefined;
132
+ href?: string | undefined;
133
+ shape?: "circle" | "round" | "square" | undefined;
134
+ status?: "success" | "normal" | "warning" | "danger" | undefined;
135
+ }> & {
136
+ onClick?: ((ev: MouseEvent) => any) | undefined;
137
+ } & import("vue").ShallowUnwrapRef<{
138
+ prefixCls: string;
139
+ cls: import("vue").ComputedRef<(string | {
140
+ [x: string]: boolean;
141
+ })[]>;
142
+ mergedDisabled: import("vue").ComputedRef<boolean>;
143
+ handleClick: (ev: MouseEvent) => void;
144
+ }> & import("vue").ComponentCustomProperties;
145
+ __isFragment?: undefined;
146
+ __isTeleport?: undefined;
147
+ __isSuspense?: undefined;
148
+ } & import("vue").ComponentOptionsBase<Readonly<{
149
+ type?: unknown;
150
+ shape?: unknown;
151
+ status?: unknown;
152
+ size?: unknown;
153
+ long?: unknown;
154
+ loading?: unknown;
155
+ disabled?: unknown;
156
+ htmlType?: unknown;
157
+ href?: unknown;
158
+ } & {
159
+ disabled: boolean;
160
+ loading: boolean;
161
+ long: boolean;
162
+ htmlType: string;
163
+ } & {
164
+ size?: "small" | "mini" | "medium" | "large" | undefined;
165
+ type?: "text" | "dashed" | "outline" | "primary" | "secondary" | undefined;
166
+ href?: string | undefined;
167
+ shape?: "circle" | "round" | "square" | undefined;
168
+ status?: "success" | "normal" | "warning" | "danger" | undefined;
169
+ }> & {
170
+ onClick?: ((ev: MouseEvent) => any) | undefined;
171
+ }, {
172
+ prefixCls: string;
173
+ cls: import("vue").ComputedRef<(string | {
174
+ [x: string]: boolean;
175
+ })[]>;
176
+ mergedDisabled: import("vue").ComputedRef<boolean>;
177
+ handleClick: (ev: MouseEvent) => void;
178
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
179
+ click: (ev: MouseEvent) => true;
180
+ }, string, {
181
+ disabled: boolean;
182
+ loading: boolean;
183
+ long: boolean;
184
+ htmlType: string;
185
+ }, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
186
+ Group: import("vue").DefineComponent<{
187
+ type: {
188
+ type: import("vue").PropType<"text" | "dashed" | "outline" | "primary" | "secondary">;
189
+ };
190
+ status: {
191
+ type: import("vue").PropType<"success" | "normal" | "warning" | "danger">;
192
+ };
193
+ shape: {
194
+ type: import("vue").PropType<"circle" | "round" | "square">;
195
+ };
196
+ size: {
197
+ type: import("vue").PropType<"small" | "mini" | "medium" | "large">;
198
+ };
199
+ disabled: {
200
+ type: BooleanConstructor;
201
+ };
202
+ }, {
203
+ prefixCls: string;
204
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
205
+ type?: unknown;
206
+ status?: unknown;
207
+ shape?: unknown;
208
+ size?: unknown;
209
+ disabled?: unknown;
210
+ } & {
211
+ disabled: boolean;
212
+ } & {
213
+ size?: "small" | "mini" | "medium" | "large" | undefined;
214
+ type?: "text" | "dashed" | "outline" | "primary" | "secondary" | undefined;
215
+ shape?: "circle" | "round" | "square" | undefined;
216
+ status?: "success" | "normal" | "warning" | "danger" | undefined;
217
+ }>, {
218
+ disabled: boolean;
219
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
220
+ install: (app: import("vue").App<any>, options?: import("@arco-design/web-vue/es/_utils/types").ArcoOptions | undefined) => void;
221
+ };
222
+ };
223
+ setup(): {
224
+ visible: import("vue").Ref<boolean, boolean>;
225
+ submit: (data: any, ...args: any) => void;
226
+ args: any;
227
+ };
228
+ template: string;
229
+ };
230
+ args: {
231
+ wrap: string;
232
+ userInfo: {
233
+ domain_id: number;
234
+ repository_id: number;
235
+ };
236
+ maxcount: number;
237
+ filterOptions: {
238
+ mediaType: string;
239
+ mediaTypeStrict: boolean;
240
+ };
241
+ mediaUseType: number;
242
+ aiThumbList: string[];
243
+ videoThumbOptions: {
244
+ src: string;
245
+ duration: number;
246
+ };
247
+ };
248
+ argTypes: {
249
+ wrap: {
250
+ description: string;
251
+ control: {
252
+ type: string;
253
+ options: string[];
254
+ };
255
+ };
256
+ userInfo: {
257
+ description: string;
258
+ control: {
259
+ type: string;
260
+ };
261
+ };
262
+ maxcount: {
263
+ description: string;
264
+ control: {
265
+ type: string;
266
+ };
267
+ };
268
+ filterOptions: {
269
+ description: string;
270
+ control: {
271
+ type: string;
272
+ };
273
+ };
274
+ mediaUseType: {
275
+ description: string;
276
+ control: {
277
+ type: string;
278
+ };
279
+ };
280
+ aiThumbList: {
281
+ description: string;
282
+ control: {
283
+ type: string;
284
+ };
285
+ };
286
+ videoThumbOptions: {
287
+ description: string;
288
+ control: {
289
+ type: string;
290
+ };
291
+ };
292
+ onSubmit: {
293
+ action: string;
294
+ };
295
+ onUpdateVis: {
296
+ action: string;
297
+ };
298
+ };
299
+ };
@@ -1,6 +1,6 @@
1
- import { defineComponent, inject, computed, openBlock, createBlock, withCtx, renderSlot, createElementVNode, createVNode, unref, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList } from "vue";
1
+ import { defineComponent, inject, computed, onMounted, openBlock, createBlock, withCtx, renderSlot, createElementVNode, createVNode, unref, createElementBlock, toDisplayString, createCommentVNode, Fragment, renderList } from "vue";
2
2
  import _sfc_main$2 from "./Upload.js";
3
- import useUpload from "../../../../hooks/useUpload.js";
3
+ import useUpload, { useUploadConfig } from "../../../../hooks/useUpload.js";
4
4
  import _sfc_main$1 from "../ListWraper.js";
5
5
  const _hoisted_1 = { class: "list-upload" };
6
6
  const _hoisted_2 = { class: "list-content" };
@@ -22,6 +22,7 @@ const _sfc_main = defineComponent({
22
22
  var _a;
23
23
  return (_a = userInfo == null ? void 0 : userInfo.value) == null ? void 0 : _a.repository_id;
24
24
  });
25
+ const { template, initTemplate } = useUploadConfig();
25
26
  const { list, uploadFile, reTranscode, transcodingFile, removeRecord } = useUpload();
26
27
  function handleChange(file) {
27
28
  if (!baseAPI || !repoId.value)
@@ -31,7 +32,8 @@ const _sfc_main = defineComponent({
31
32
  file.file,
32
33
  0,
33
34
  repoId.value,
34
- (media) => transcodingFile(baseAPI, media, repoId.value)
35
+ (media) => transcodingFile(baseAPI, media, repoId.value),
36
+ { template: template.value }
35
37
  );
36
38
  }
37
39
  async function handleOptions(e) {
@@ -54,6 +56,9 @@ const _sfc_main = defineComponent({
54
56
  removeRecord(e.item);
55
57
  }
56
58
  }
59
+ onMounted(() => {
60
+ initTemplate(baseAPI);
61
+ });
57
62
  return (_ctx, _cache) => {
58
63
  return openBlock(), createBlock(_sfc_main$1, null, {
59
64
  "footer-extra": withCtx(() => [