@cmstops/pro-compo 3.9.1-rc.5 → 3.9.1-stable.0

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 (37) hide show
  1. package/dist/index.css +4 -45
  2. package/dist/index.min.css +1 -1
  3. package/es/baseFilter/component.js +71 -14
  4. package/es/config.js +1 -1
  5. package/es/contentDetailList/component.js +0 -24
  6. package/es/contentDetailList/components/Content/index.js +1 -2
  7. package/es/contentDetailList/components/Doc/index.js +0 -6
  8. package/es/hooks/usePopper.d.ts +1 -1
  9. package/es/hooks/usePopper.js +3 -3
  10. package/es/index.css +4 -45
  11. package/es/selectResourceModal/components/List/ListNormal/Filter.js +90 -192
  12. package/es/selectResourceModal/components/List/ListNormal/index.js +7 -23
  13. package/es/selectResourceModal/style/index.css +4 -45
  14. package/es/selectResourceModal/style/index.less +0 -14
  15. package/es/selectResourceModal/style/list.less +4 -40
  16. package/es/selectThumb/component.js +18 -7
  17. package/es/utils/index.js +6 -6
  18. package/lib/baseFilter/component.js +69 -12
  19. package/lib/config.js +1 -1
  20. package/lib/contentDetailList/component.js +0 -24
  21. package/lib/contentDetailList/components/Content/index.js +1 -2
  22. package/lib/contentDetailList/components/Doc/index.js +0 -6
  23. package/lib/hooks/usePopper.js +3 -3
  24. package/lib/index.css +4 -45
  25. package/lib/selectResourceModal/components/List/ListNormal/Filter.js +87 -189
  26. package/lib/selectResourceModal/components/List/ListNormal/index.js +6 -22
  27. package/lib/selectResourceModal/style/index.css +4 -45
  28. package/lib/selectResourceModal/style/index.less +0 -14
  29. package/lib/selectResourceModal/style/list.less +4 -40
  30. package/lib/selectThumb/component.js +18 -7
  31. package/lib/utils/index.js +6 -6
  32. package/package.json +1 -1
  33. package/es/selectResourceModal/__demo__/module/DivWrapper.d.ts +0 -268
  34. package/es/selectResourceModal/__demo__/module/basic.d.ts +0 -299
  35. package/es/selectResourceModal/hooks/useResponsiveFilter.d.ts +0 -21
  36. package/es/selectResourceModal/hooks/useResponsiveFilter.js +0 -142
  37. package/lib/selectResourceModal/hooks/useResponsiveFilter.js +0 -144
@@ -14,14 +14,12 @@
14
14
 
15
15
  &-footer,
16
16
  &-header,
17
- &-content .resource-list-content-empty,
18
17
  &-content .arco-scrollbar-container {
19
18
  padding: 0 40px;
20
19
  }
21
20
 
22
21
  &-footer {
23
22
  display: flex;
24
- flex-wrap: wrap;
25
23
  justify-content: space-between;
26
24
  padding-bottom: 20px;
27
25
 
@@ -31,11 +29,6 @@
31
29
  gap: 10px;
32
30
  align-items: center;
33
31
  justify-content: flex-end;
34
- margin-top: 10px;
35
-
36
- .list-selected-wrapper {
37
- font-size: 12px;
38
- }
39
32
  }
40
33
  }
41
34
 
@@ -54,7 +47,7 @@
54
47
  .list-item-grid {
55
48
  display: grid;
56
49
  grid-gap: 20px;
57
- grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
50
+ grid-template-columns: repeat(5, 1fr);
58
51
  }
59
52
  }
60
53
 
@@ -115,8 +108,7 @@
115
108
  .resource-list .list-filter-wrapper {
116
109
  .list-filter-tags {
117
110
  display: flex;
118
- flex-wrap: wrap;
119
- gap: 10px;
111
+ justify-content: space-between;
120
112
  margin-top: 10px;
121
113
 
122
114
  .list-filter-tag {
@@ -141,46 +133,18 @@
141
133
  justify-content: space-between;
142
134
 
143
135
  .filter-list {
144
- position: relative; /** 给 popup 一个参考 */
145
136
  display: flex;
137
+ flex-wrap: wrap;
138
+ gap: 10px;
146
139
 
147
140
  .filter-item {
148
141
  width: 100px;
149
- margin-right: 10px;
150
- }
151
-
152
- .arco-trigger-popup {
153
- z-index: 100000 !important;
154
142
  }
155
143
  }
156
144
 
157
145
  .arco-input-prepend {
158
146
  padding: 0;
159
147
  }
160
-
161
- .more-btn {
162
- position: relative; /** 给 poperjs 一个参考 */
163
-
164
- .filter-pannel {
165
- inset: 40px auto auto auto !important;
166
- }
167
- }
168
- }
169
-
170
- .filter-extra {
171
- display: flex;
172
- gap: 10px;
173
- }
174
-
175
- .filter-pannel {
176
- z-index: 100000;
177
- display: flex;
178
- flex-direction: column;
179
- gap: 10px;
180
- padding: 10px;
181
- background-color: #fff;
182
- border-radius: 4px;
183
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
184
148
  }
185
149
  }
186
150
 
@@ -352,11 +352,9 @@ const _sfc_main = vue.defineComponent({
352
352
  if (!props.dataValue)
353
353
  return;
354
354
  if (styleData.value.model === oldData.value.model) {
355
- vue.nextTick(() => {
356
- styleData.value.data = oldData.value.data;
357
- styleData.value.cover_theme_color = oldData.value.cover_theme_color;
358
- styleData.value.cover_colorList = oldData.value.cover_colorList;
359
- });
355
+ styleData.value.data = oldData.value.data;
356
+ styleData.value.cover_theme_color = oldData.value.cover_theme_color;
357
+ styleData.value.cover_colorList = oldData.value.cover_colorList;
360
358
  } else {
361
359
  styleData.value.data = [];
362
360
  }
@@ -412,8 +410,21 @@ const _sfc_main = vue.defineComponent({
412
410
  callback(styleData2);
413
411
  };
414
412
  vue.onMounted(() => {
415
- if (!styleData.value.cover_url)
416
- ;
413
+ if (!styleData.value.cover_url) {
414
+ setTimeout(() => {
415
+ styleData.value.cover_url = styleData.value.data[0].url;
416
+ const getColors = index.getThemeColor(BASE_API, styleData.value.data[0].url);
417
+ getColors.then((themes) => {
418
+ styleData.value.cover_colorList = JSON.parse(JSON.stringify(themes));
419
+ styleData.value.cover_theme_color = `rgb(${themes[1]})`;
420
+ oldData.value = JSON.parse(JSON.stringify(styleData.value));
421
+ callback(styleData.value);
422
+ }).catch((e) => {
423
+ styleData.value.banner_theme_color = `rgb(255, 255, 255)`;
424
+ callback(styleData.value);
425
+ });
426
+ }, 700);
427
+ }
417
428
  });
418
429
  return (_ctx, _cache) => {
419
430
  var _a, _b, _c, _d, _e, _f;
@@ -144,13 +144,13 @@ async function copyContent(content) {
144
144
  }
145
145
  }
146
146
  function mediaTime(v) {
147
- const h = Math.floor(v / 3600);
148
- const m = Math.floor(v % 3600 / 60);
149
- const s = Math.floor(v % 60);
147
+ const h = Math.floor(v / (60 * 60));
148
+ const m = Math.floor((v - h) / 60);
149
+ const s = Math.floor(v - h * 360 - m * 60);
150
150
  let ret = "";
151
- ret += `${h < 10 ? `0${h}` : h}:`;
152
- ret += `${m < 10 ? `0${m}` : m}:`;
153
- ret += s < 10 ? `0${s}` : s;
151
+ ret += `${h < 10 ? `0${h}` : h || "--"}:`;
152
+ ret += `${m < 10 ? `0${m}` : m || "--"}:`;
153
+ ret += s < 10 ? `0${s}` : s || "--";
154
154
  return ret;
155
155
  }
156
156
  exports.copyContent = copyContent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmstops/pro-compo",
3
- "version": "3.9.1-rc.5",
3
+ "version": "3.9.1-stable.0",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "vue",
@@ -1,268 +0,0 @@
1
- /**
2
- * @file
3
- * @title selectResourceModal
4
- * @memberOf 组件类型,例如:数据输入
5
- * @description 描述你的组件。
6
- */
7
- export declare const DivWrapper: {
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
- };
242
- argTypes: {
243
- userInfo: {
244
- description: string;
245
- control: {
246
- type: string;
247
- };
248
- };
249
- maxcount: {
250
- description: string;
251
- control: {
252
- type: string;
253
- };
254
- };
255
- filterOptions: {
256
- description: string;
257
- control: {
258
- type: string;
259
- };
260
- };
261
- onSubmit: {
262
- action: string;
263
- };
264
- onUpdateVis: {
265
- action: string;
266
- };
267
- };
268
- };