@cmstops/pro-compo 0.1.39 → 0.1.41

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, Fragment, renderList, toDisplayString, createTextVNode } from "vue";
1
+ import { defineComponent, openBlock, createElementBlock, createVNode, unref, withCtx, createElementVNode, Fragment, renderList, toDisplayString, createTextVNode, createBlock, createCommentVNode } from "vue";
2
2
  import { Popover, Scrollbar, Button, Badge } from "@arco-design/web-vue";
3
3
  import { IconCloseCircle } from "@arco-design/web-vue/es/icon";
4
4
  import _sfc_main$1 from "../../../typeIcons/component.js";
@@ -89,12 +89,15 @@ const _sfc_main = defineComponent({
89
89
  count: props.selectData.length
90
90
  }, {
91
91
  default: withCtx(() => [
92
- createVNode(unref(Button), { class: "button" }, {
92
+ props.selectData.length ? (openBlock(), createBlock(unref(Button), {
93
+ key: 0,
94
+ class: "button"
95
+ }, {
93
96
  default: withCtx(() => [
94
97
  createTextVNode("\u5DF2\u9009\u6570\u636E")
95
98
  ]),
96
99
  _: 1
97
- })
100
+ })) : createCommentVNode("v-if", true)
98
101
  ]),
99
102
  _: 1
100
103
  }, 8, ["count"])
package/es/index.css CHANGED
@@ -2258,9 +2258,9 @@
2258
2258
  margin-bottom: 10px;
2259
2259
  overflow: hidden;
2260
2260
  color: #1d2129;
2261
+ font-weight: 400;
2261
2262
  font-size: 14px;
2262
2263
  font-style: normal;
2263
- font-weight: 400;
2264
2264
  line-height: 22px;
2265
2265
  cursor: pointer;
2266
2266
  -webkit-line-clamp: 2;
@@ -2274,7 +2274,6 @@
2274
2274
  .medialist-kongo-item-view .info-view .abttrite-v .left {
2275
2275
  display: flex;
2276
2276
  align-items: center;
2277
- width: calc(100% - 160px);
2278
2277
  color: #808692;
2279
2278
  font-size: 12px;
2280
2279
  }
@@ -2924,12 +2923,12 @@
2924
2923
  display: inline-block;
2925
2924
  }
2926
2925
  .select-thumb-container .thumb-card-container {
2926
+ position: relative;
2927
2927
  width: 100px;
2928
2928
  height: 58px;
2929
2929
  margin-right: 10px;
2930
- border-radius: 4px;
2931
2930
  overflow: hidden;
2932
- position: relative;
2931
+ border-radius: 4px;
2933
2932
  }
2934
2933
  .select-thumb-container .thumb-card-container.model-5 {
2935
2934
  width: 75px;
@@ -2940,22 +2939,22 @@
2940
2939
  height: 58px;
2941
2940
  }
2942
2941
  .select-thumb-container .thumb-card-container .img-v {
2942
+ position: relative;
2943
2943
  width: 100%;
2944
2944
  height: 100%;
2945
- position: relative;
2946
2945
  }
2947
2946
  .select-thumb-container .thumb-card-container .img-v .change-icon {
2948
- width: 25px;
2949
- height: 25px;
2950
- font-size: 25px;
2951
2947
  position: absolute;
2952
- left: 0;
2953
- right: 0;
2954
2948
  top: 0;
2949
+ right: 0;
2955
2950
  bottom: 0;
2956
- margin: auto;
2951
+ left: 0;
2957
2952
  z-index: 1;
2958
- color: #ffffff;
2953
+ width: 25px;
2954
+ height: 25px;
2955
+ margin: auto;
2956
+ color: #fff;
2957
+ font-size: 25px;
2959
2958
  cursor: pointer;
2960
2959
  }
2961
2960
  .select-thumb-container .thumb-card-container .item {
@@ -2971,19 +2970,19 @@
2971
2970
  display: flex;
2972
2971
  align-items: center;
2973
2972
  justify-content: center;
2974
- background-color: #f9f9f9;
2973
+ background-image: url('../images/waterBg.png');
2975
2974
  }
2976
2975
  .select-thumb-container .thumb-card-container .mask {
2977
- display: none;
2978
- width: 100%;
2979
- height: 100%;
2980
- background: rgba(0, 0, 0, 0.3);
2981
2976
  position: absolute;
2982
2977
  top: 0;
2978
+ display: none;
2983
2979
  align-items: center;
2984
2980
  justify-content: center;
2981
+ width: 100%;
2982
+ height: 100%;
2985
2983
  color: #eaeaea;
2986
2984
  font-size: 18px;
2985
+ background: rgba(0, 0, 0, 0.3);
2987
2986
  }
2988
2987
  .select-thumb-container .thumb-card-container .mask i {
2989
2988
  display: inline-block;
@@ -2993,11 +2992,11 @@
2993
2992
  opacity: 0.4;
2994
2993
  }
2995
2994
  .select-thumb-container .thumb-card-container .mask .half {
2996
- height: 100%;
2997
- width: 48%;
2998
2995
  display: flex;
2999
2996
  align-items: center;
3000
2997
  justify-content: center;
2998
+ width: 48%;
2999
+ height: 100%;
3001
3000
  }
3002
3001
  .select-thumb-container .thumb-card-container .mask .half:hover {
3003
3002
  opacity: 0.7;
@@ -1,83 +1,96 @@
1
1
  .thumb-card-container {
2
- width: 100px;
2
+ position: relative;
3
+ width: 100px;
4
+ height: 58px;
5
+ margin-right: 10px;
6
+ overflow: hidden;
7
+ border-radius: 4px;
8
+
9
+ &.model-5 {
10
+ width: 75px;
11
+ height: 100px;
12
+ }
13
+
14
+ &.model-7 {
15
+ width: 232px;
3
16
  height: 58px;
4
- margin-right: 10px;
5
- border-radius: 4px;
6
- overflow: hidden;
17
+ }
18
+
19
+ .img-v {
7
20
  position: relative;
8
- &.model-5 {
9
- width: 75px;
10
- height: 100px;
11
- }
12
- &.model-7 {
13
- width: 232px;
14
- height: 58px;
21
+ width: 100%;
22
+ height: 100%;
23
+
24
+ .change-icon {
25
+ position: absolute;
26
+ top: 0;
27
+ right: 0;
28
+ bottom: 0;
29
+ left: 0;
30
+ z-index: 1;
31
+ width: 25px;
32
+ height: 25px;
33
+ margin: auto;
34
+ color: #fff;
35
+ font-size: 25px;
36
+ cursor: pointer;
15
37
  }
16
- .img-v {
38
+ }
39
+
40
+ .item {
41
+ width: 100%;
42
+ height: 100%;
43
+ cursor: pointer;
44
+
45
+ img {
17
46
  width: 100%;
18
47
  height: 100%;
19
- position: relative;
20
- .change-icon {
21
- width: 25px;
22
- height: 25px;
23
- font-size: 25px;
24
- position: absolute;
25
- left: 0;
26
- right: 0;
27
- top: 0;
28
- bottom: 0;
29
- margin: auto;
30
- z-index: 1;
31
- color: #ffffff;
32
- cursor: pointer;
33
- }
34
48
  }
35
- .item {
36
- width: 100%;
37
- height: 100%;
49
+
50
+ &.add-thumb {
51
+ display: flex;
52
+ align-items: center;
53
+ justify-content: center;
54
+ background-image: url('../images/waterBg.png');
55
+ }
56
+ }
57
+
58
+ .mask {
59
+ position: absolute;
60
+ top: 0;
61
+ display: none;
62
+ // display: flex;
63
+ align-items: center;
64
+ justify-content: center;
65
+ width: 100%;
66
+ height: 100%;
67
+ color: #eaeaea;
68
+ font-size: 18px;
69
+ background: rgba(0, 0, 0, 0.3);
70
+
71
+ i {
72
+ display: inline-block;
38
73
  cursor: pointer;
39
- img {
40
- width: 100%;
41
- height: 100%;
42
- }
43
- &.add-thumb {
44
- display: flex;
45
- align-items: center;
46
- justify-content: center;
47
- background-color: #f9f9f9;
74
+
75
+ &:active {
76
+ opacity: 0.4;
48
77
  }
49
78
  }
50
- .mask {
51
- display: none;
52
- width: 100%;
53
- height: 100%;
54
- background: rgba(0, 0, 0, 0.3);
55
- position: absolute;
56
- top: 0;
57
- // display: flex;
79
+
80
+ .half {
81
+ display: flex;
58
82
  align-items: center;
59
83
  justify-content: center;
60
- color: #eaeaea;
61
- font-size: 18px;
62
- i {
63
- display: inline-block;
64
- cursor: pointer;
65
- &:active {
66
- opacity: 0.4;
67
- }
68
- }
69
- .half {
70
- height: 100%;
71
- width: 48%;
72
- display: flex;
73
- align-items: center;
74
- justify-content: center;
75
- &:hover {
76
- opacity: 0.7;
77
- }
84
+ width: 48%;
85
+ height: 100%;
86
+
87
+ &:hover {
88
+ opacity: 0.7;
78
89
  }
79
90
  }
80
- .img-v:hover .mask {
81
- display: flex;
82
- }
83
- }
91
+ }
92
+
93
+ .img-v:hover .mask {
94
+ display: flex;
95
+ }
96
+ }
@@ -1,10 +1,10 @@
1
1
  .select-thumb-container .thumb-card-container {
2
+ position: relative;
2
3
  width: 100px;
3
4
  height: 58px;
4
5
  margin-right: 10px;
5
- border-radius: 4px;
6
6
  overflow: hidden;
7
- position: relative;
7
+ border-radius: 4px;
8
8
  }
9
9
  .select-thumb-container .thumb-card-container.model-5 {
10
10
  width: 75px;
@@ -15,22 +15,22 @@
15
15
  height: 58px;
16
16
  }
17
17
  .select-thumb-container .thumb-card-container .img-v {
18
+ position: relative;
18
19
  width: 100%;
19
20
  height: 100%;
20
- position: relative;
21
21
  }
22
22
  .select-thumb-container .thumb-card-container .img-v .change-icon {
23
- width: 25px;
24
- height: 25px;
25
- font-size: 25px;
26
23
  position: absolute;
27
- left: 0;
28
- right: 0;
29
24
  top: 0;
25
+ right: 0;
30
26
  bottom: 0;
31
- margin: auto;
27
+ left: 0;
32
28
  z-index: 1;
33
- color: #ffffff;
29
+ width: 25px;
30
+ height: 25px;
31
+ margin: auto;
32
+ color: #fff;
33
+ font-size: 25px;
34
34
  cursor: pointer;
35
35
  }
36
36
  .select-thumb-container .thumb-card-container .item {
@@ -46,19 +46,19 @@
46
46
  display: flex;
47
47
  align-items: center;
48
48
  justify-content: center;
49
- background-color: #f9f9f9;
49
+ background-image: url('../images/waterBg.png');
50
50
  }
51
51
  .select-thumb-container .thumb-card-container .mask {
52
- display: none;
53
- width: 100%;
54
- height: 100%;
55
- background: rgba(0, 0, 0, 0.3);
56
52
  position: absolute;
57
53
  top: 0;
54
+ display: none;
58
55
  align-items: center;
59
56
  justify-content: center;
57
+ width: 100%;
58
+ height: 100%;
60
59
  color: #eaeaea;
61
60
  font-size: 18px;
61
+ background: rgba(0, 0, 0, 0.3);
62
62
  }
63
63
  .select-thumb-container .thumb-card-container .mask i {
64
64
  display: inline-block;
@@ -68,11 +68,11 @@
68
68
  opacity: 0.4;
69
69
  }
70
70
  .select-thumb-container .thumb-card-container .mask .half {
71
- height: 100%;
72
- width: 48%;
73
71
  display: flex;
74
72
  align-items: center;
75
73
  justify-content: center;
74
+ width: 48%;
75
+ height: 100%;
76
76
  }
77
77
  .select-thumb-container .thumb-card-container .mask .half:hover {
78
78
  opacity: 0.7;
@@ -20,6 +20,7 @@
20
20
  width: 100%;
21
21
  height: 100%;
22
22
  border-radius: 4px;
23
+
23
24
  img {
24
25
  width: 100%;
25
26
  height: 100%;
@@ -50,9 +51,9 @@
50
51
  margin-bottom: 10px;
51
52
  overflow: hidden;
52
53
  color: #1d2129;
54
+ font-weight: 400;
53
55
  font-size: 14px;
54
56
  font-style: normal;
55
- font-weight: 400;
56
57
  line-height: 22px;
57
58
  cursor: pointer;
58
59
  -webkit-line-clamp: 2;
@@ -67,7 +68,6 @@
67
68
  .left {
68
69
  display: flex;
69
70
  align-items: center;
70
- width: calc(100% - 160px);
71
71
  color: #808692;
72
72
  font-size: 12px;
73
73
 
@@ -280,9 +280,9 @@
280
280
  margin-bottom: 10px;
281
281
  overflow: hidden;
282
282
  color: #1d2129;
283
+ font-weight: 400;
283
284
  font-size: 14px;
284
285
  font-style: normal;
285
- font-weight: 400;
286
286
  line-height: 22px;
287
287
  cursor: pointer;
288
288
  -webkit-line-clamp: 2;
@@ -296,7 +296,6 @@
296
296
  .medialist-kongo-item-view .info-view .abttrite-v .left {
297
297
  display: flex;
298
298
  align-items: center;
299
- width: calc(100% - 160px);
300
299
  color: #808692;
301
300
  font-size: 12px;
302
301
  }
@@ -29,21 +29,23 @@ const _sfc_main = vue.defineComponent({
29
29
  sort: -1,
30
30
  order: "create_time"
31
31
  });
32
- const bannerOptions = [
33
- {
34
- value: "",
35
- key: "all",
36
- label: "\u5168\u90E8\u8F6E\u64AD\u7C7B\u578B"
37
- },
38
- {
39
- value: "0",
40
- label: "\u65E0\u72EC\u7ACB\u8F6E\u64AD"
41
- },
42
- {
43
- value: "1",
44
- label: "\u6709\u72EC\u7ACB\u8F6E\u64AD"
45
- }
46
- ];
32
+ const bannerOptions = vue.computed(() => {
33
+ const options = [
34
+ {
35
+ value: "0",
36
+ key: "0",
37
+ label: "\u65E0\u72EC\u7ACB\u8F6E\u64AD"
38
+ },
39
+ {
40
+ value: "1",
41
+ key: "1",
42
+ label: "\u6709\u72EC\u7ACB\u8F6E\u64AD"
43
+ }
44
+ ];
45
+ return options.filter(
46
+ (item) => props.banner === "all" || props.banner === item.key
47
+ );
48
+ });
47
49
  const typeOptions = vue.computed(() => {
48
50
  const arr = Object.keys(doc.docSeries).map((key) => {
49
51
  return {
@@ -51,27 +53,25 @@ const _sfc_main = vue.defineComponent({
51
53
  label: doc.docSeries[key].replace("\u7A3F\u4EF6", "")
52
54
  };
53
55
  });
54
- const filterArr = arr.filter((item) => {
56
+ return arr.filter((item) => {
55
57
  if (props.series === "all") {
56
58
  return true;
57
59
  }
58
60
  return props.series.split(",").includes(item.value);
59
61
  });
60
- return [{ value: "", label: "\u5168\u90E8\u7A3F\u4EF6\u7C7B\u578B" }, ...filterArr];
61
62
  });
62
63
  const thumbOptions = vue.computed(() => {
63
- const arr = Object.keys(doc.docThumbMap()).map((key) => {
64
+ return Object.keys(doc.docThumbMap()).map((key) => {
64
65
  return {
65
66
  value: key,
66
67
  label: doc.docThumbMap()[key]
67
68
  };
68
69
  });
69
- return [{ value: "", label: "\u5168\u90E8\u5C01\u9762\u7C7B\u578B" }, ...arr];
70
70
  });
71
- const sortOptions = vue.computed(() => {
71
+ const sortMethodOptions = vue.computed(() => {
72
72
  return [
73
- { value: -1, label: "\u53D1\u5E03\u65F6\u95F4" },
74
- { value: 1, label: "\u521B\u5EFA\u65F6\u95F4" }
73
+ { value: "pub_time", label: "\u53D1\u5E03\u65F6\u95F4" },
74
+ { value: "create_time", label: "\u521B\u5EFA\u65F6\u95F4" }
75
75
  ];
76
76
  });
77
77
  const showReset = vue.computed(() => {
@@ -119,6 +119,13 @@ const _sfc_main = vue.defineComponent({
119
119
  column_id.value = val;
120
120
  }
121
121
  );
122
+ vue.watch(
123
+ () => props.banner,
124
+ (val) => {
125
+ filter.value.banner = val === "all" ? "" : val;
126
+ },
127
+ { immediate: true }
128
+ );
122
129
  vue.watch(
123
130
  () => column_id.value,
124
131
  (val) => {
@@ -147,6 +154,9 @@ const _sfc_main = vue.defineComponent({
147
154
  vue.createVNode(vue.unref(webVue.Select), {
148
155
  modelValue: filter.value.type,
149
156
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => filter.value.type = $event),
157
+ style: { width: "96px" },
158
+ "trigger-props": { autoFitPopupMinWidth: true },
159
+ "allow-clear": "",
150
160
  class: "filter-item",
151
161
  placeholder: "\u7C7B\u578B"
152
162
  }, {
@@ -164,6 +174,9 @@ const _sfc_main = vue.defineComponent({
164
174
  vue.createVNode(vue.unref(webVue.Select), {
165
175
  modelValue: filter.value.cover_type,
166
176
  "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => filter.value.cover_type = $event),
177
+ style: { width: "96px" },
178
+ "trigger-props": { autoFitPopupMinWidth: true },
179
+ "allow-clear": "",
167
180
  class: "filter-item",
168
181
  placeholder: "\u5C01\u9762"
169
182
  }, {
@@ -181,20 +194,24 @@ const _sfc_main = vue.defineComponent({
181
194
  vue.createVNode(vue.unref(webVue.Select), {
182
195
  modelValue: filter.value.banner,
183
196
  "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => filter.value.banner = $event),
197
+ style: { width: "124px" },
198
+ "trigger-props": { autoFitPopupMinWidth: true },
199
+ "allow-clear": "",
184
200
  class: "filter-item",
201
+ disabled: props.banner !== "all",
185
202
  placeholder: "\u72EC\u7ACB\u8F6E\u64AD"
186
203
  }, {
187
204
  default: vue.withCtx(() => [
188
- (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(bannerOptions, (item) => {
189
- return vue.createVNode(vue.unref(webVue.Option), {
205
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(bannerOptions.value, (item) => {
206
+ return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
190
207
  key: item.value,
191
208
  label: item.label,
192
209
  value: item.value
193
210
  }, null, 8, ["label", "value"]);
194
- }), 64))
211
+ }), 128))
195
212
  ]),
196
213
  _: 1
197
- }, 8, ["modelValue"]),
214
+ }, 8, ["modelValue", "disabled"]),
198
215
  vue.withDirectives(vue.createVNode(vue.unref(webVue.Button), {
199
216
  class: "reset-button",
200
217
  size: "small",
@@ -217,13 +234,13 @@ const _sfc_main = vue.defineComponent({
217
234
  onClick: reset
218
235
  }, [
219
236
  vue.createVNode(vue.unref(webVue.Select), {
220
- modelValue: filter.value.sort,
221
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.sort = $event),
237
+ modelValue: filter.value.order,
238
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filter.value.order = $event),
222
239
  class: "filter-item",
223
240
  placeholder: "\u53D1\u5E03\u65F6\u95F4"
224
241
  }, {
225
242
  default: vue.withCtx(() => [
226
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(sortOptions.value, (item) => {
243
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(sortMethodOptions.value, (item) => {
227
244
  return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
228
245
  key: item.value,
229
246
  label: item.label,
@@ -119,6 +119,13 @@ const _sfc_main = vue.defineComponent({
119
119
  const group_id = vue.ref(0);
120
120
  const scrollPercent = { y: "100%" };
121
121
  const search = (_filter) => {
122
+ columns.value.some((e) => {
123
+ if (e.dataIndex === "pub_time") {
124
+ e.title = _filter.order === "create_time" ? "\u521B\u5EFA\u65F6\u95F4" : "\u53D1\u5E03\u65F6\u95F4";
125
+ return e;
126
+ }
127
+ return false;
128
+ });
122
129
  _filter = { ..._filter };
123
130
  const where = [];
124
131
  _filter.keywords && where.push(`kw:${_filter.keywords}`);
@@ -90,12 +90,15 @@ const _sfc_main = vue.defineComponent({
90
90
  count: props.selectData.length
91
91
  }, {
92
92
  default: vue.withCtx(() => [
93
- vue.createVNode(vue.unref(webVue.Button), { class: "button" }, {
93
+ props.selectData.length ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Button), {
94
+ key: 0,
95
+ class: "button"
96
+ }, {
94
97
  default: vue.withCtx(() => [
95
98
  vue.createTextVNode("\u5DF2\u9009\u6570\u636E")
96
99
  ]),
97
100
  _: 1
98
- })
101
+ })) : vue.createCommentVNode("v-if", true)
99
102
  ]),
100
103
  _: 1
101
104
  }, 8, ["count"])