@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.
- package/dist/index.css +4 -45
- package/dist/index.min.css +1 -1
- package/es/baseFilter/component.js +71 -14
- package/es/config.js +1 -1
- package/es/contentDetailList/component.js +0 -24
- package/es/contentDetailList/components/Content/index.js +1 -2
- package/es/contentDetailList/components/Doc/index.js +0 -6
- package/es/hooks/usePopper.d.ts +1 -1
- package/es/hooks/usePopper.js +3 -3
- package/es/index.css +4 -45
- package/es/selectResourceModal/components/List/ListNormal/Filter.js +90 -192
- package/es/selectResourceModal/components/List/ListNormal/index.js +7 -23
- package/es/selectResourceModal/style/index.css +4 -45
- package/es/selectResourceModal/style/index.less +0 -14
- package/es/selectResourceModal/style/list.less +4 -40
- package/es/selectThumb/component.js +18 -7
- package/es/utils/index.js +6 -6
- package/lib/baseFilter/component.js +69 -12
- package/lib/config.js +1 -1
- package/lib/contentDetailList/component.js +0 -24
- package/lib/contentDetailList/components/Content/index.js +1 -2
- package/lib/contentDetailList/components/Doc/index.js +0 -6
- package/lib/hooks/usePopper.js +3 -3
- package/lib/index.css +4 -45
- package/lib/selectResourceModal/components/List/ListNormal/Filter.js +87 -189
- package/lib/selectResourceModal/components/List/ListNormal/index.js +6 -22
- package/lib/selectResourceModal/style/index.css +4 -45
- package/lib/selectResourceModal/style/index.less +0 -14
- package/lib/selectResourceModal/style/list.less +4 -40
- package/lib/selectThumb/component.js +18 -7
- package/lib/utils/index.js +6 -6
- package/package.json +1 -1
- package/es/selectResourceModal/__demo__/module/DivWrapper.d.ts +0 -268
- package/es/selectResourceModal/__demo__/module/basic.d.ts +0 -299
- package/es/selectResourceModal/hooks/useResponsiveFilter.d.ts +0 -21
- package/es/selectResourceModal/hooks/useResponsiveFilter.js +0 -142
- 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(
|
|
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
|
-
|
|
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
|
|
|
@@ -351,11 +351,9 @@ const _sfc_main = defineComponent({
|
|
|
351
351
|
if (!props.dataValue)
|
|
352
352
|
return;
|
|
353
353
|
if (styleData.value.model === oldData.value.model) {
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
styleData.value.cover_colorList = oldData.value.cover_colorList;
|
|
358
|
-
});
|
|
354
|
+
styleData.value.data = oldData.value.data;
|
|
355
|
+
styleData.value.cover_theme_color = oldData.value.cover_theme_color;
|
|
356
|
+
styleData.value.cover_colorList = oldData.value.cover_colorList;
|
|
359
357
|
} else {
|
|
360
358
|
styleData.value.data = [];
|
|
361
359
|
}
|
|
@@ -411,8 +409,21 @@ const _sfc_main = defineComponent({
|
|
|
411
409
|
callback(styleData2);
|
|
412
410
|
};
|
|
413
411
|
onMounted(() => {
|
|
414
|
-
if (!styleData.value.cover_url)
|
|
415
|
-
|
|
412
|
+
if (!styleData.value.cover_url) {
|
|
413
|
+
setTimeout(() => {
|
|
414
|
+
styleData.value.cover_url = styleData.value.data[0].url;
|
|
415
|
+
const getColors = getThemeColor(BASE_API, styleData.value.data[0].url);
|
|
416
|
+
getColors.then((themes) => {
|
|
417
|
+
styleData.value.cover_colorList = JSON.parse(JSON.stringify(themes));
|
|
418
|
+
styleData.value.cover_theme_color = `rgb(${themes[1]})`;
|
|
419
|
+
oldData.value = JSON.parse(JSON.stringify(styleData.value));
|
|
420
|
+
callback(styleData.value);
|
|
421
|
+
}).catch((e) => {
|
|
422
|
+
styleData.value.banner_theme_color = `rgb(255, 255, 255)`;
|
|
423
|
+
callback(styleData.value);
|
|
424
|
+
});
|
|
425
|
+
}, 700);
|
|
426
|
+
}
|
|
416
427
|
});
|
|
417
428
|
return (_ctx, _cache) => {
|
|
418
429
|
var _a, _b, _c, _d, _e, _f;
|
package/es/utils/index.js
CHANGED
|
@@ -137,13 +137,13 @@ async function copyContent(content) {
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
function mediaTime(v) {
|
|
140
|
-
const h = Math.floor(v /
|
|
141
|
-
const m = Math.floor(v
|
|
142
|
-
const s = Math.floor(v
|
|
140
|
+
const h = Math.floor(v / (60 * 60));
|
|
141
|
+
const m = Math.floor((v - h) / 60);
|
|
142
|
+
const s = Math.floor(v - h * 360 - m * 60);
|
|
143
143
|
let ret = "";
|
|
144
|
-
ret += `${h < 10 ? `0${h}` : h}:`;
|
|
145
|
-
ret += `${m < 10 ? `0${m}` : m}:`;
|
|
146
|
-
ret += s < 10 ? `0${s}` : s;
|
|
144
|
+
ret += `${h < 10 ? `0${h}` : h || "--"}:`;
|
|
145
|
+
ret += `${m < 10 ? `0${m}` : m || "--"}:`;
|
|
146
|
+
ret += s < 10 ? `0${s}` : s || "--";
|
|
147
147
|
return ret;
|
|
148
148
|
}
|
|
149
149
|
export { copyContent, dateYYYYDDMMHHmm, generateUUID, getRealUrl, getThemeColor, mediaTime, noCoverText, replaceSuffix, timeFormat, to, validateForm };
|
|
@@ -38,9 +38,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
38
38
|
});
|
|
39
39
|
return _columns;
|
|
40
40
|
});
|
|
41
|
-
const getOptions = (
|
|
42
|
-
return item
|
|
43
|
-
|
|
41
|
+
const getOptions = vue.computed(() => {
|
|
42
|
+
return (item) => {
|
|
43
|
+
return item.options ? item.options : [];
|
|
44
|
+
};
|
|
45
|
+
});
|
|
44
46
|
const hasValue = vue.computed(() => {
|
|
45
47
|
return (key) => {
|
|
46
48
|
var _a, _b;
|
|
@@ -77,7 +79,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
77
79
|
_form[column.range] = rangeTemp[column.range];
|
|
78
80
|
} else if (column.component === "select") {
|
|
79
81
|
_form[column.key] = column.defaultValue || null;
|
|
80
|
-
} else {
|
|
82
|
+
} else if (column.component === "input-group") {
|
|
83
|
+
_form[column.selectKey] = column.selectDefaultValue || "";
|
|
84
|
+
_form[column.inputKey] = column.inputDefaultValue || "";
|
|
85
|
+
} else if (column.component) {
|
|
81
86
|
_form[column.key] = column.defaultValue || "";
|
|
82
87
|
}
|
|
83
88
|
});
|
|
@@ -179,17 +184,48 @@ const _sfc_main = vue.defineComponent({
|
|
|
179
184
|
active: hasValue.value(item.key)
|
|
180
185
|
}, {
|
|
181
186
|
default: vue.withCtx(() => [
|
|
182
|
-
item.component === "input" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.
|
|
183
|
-
|
|
187
|
+
item.slot ? vue.renderSlot(_ctx.$slots, item.slot, { key: 0 }) : item.component === "input-group" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.InputGroup), { key: 1 }, {
|
|
188
|
+
default: vue.withCtx(() => [
|
|
189
|
+
vue.createVNode(vue.unref(webVue.Select), {
|
|
190
|
+
modelValue: form.value[item.selectKey],
|
|
191
|
+
"onUpdate:modelValue": ($event) => form.value[item.selectKey] = $event,
|
|
192
|
+
"default-active-first-option": "",
|
|
193
|
+
style: { "width": "100px" }
|
|
194
|
+
}, {
|
|
195
|
+
default: vue.withCtx(() => [
|
|
196
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.selectOptions, (option, idx) => {
|
|
197
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
198
|
+
key: idx,
|
|
199
|
+
value: option.value
|
|
200
|
+
}, {
|
|
201
|
+
default: vue.withCtx(() => [
|
|
202
|
+
vue.createTextVNode(vue.toDisplayString(option.label), 1)
|
|
203
|
+
]),
|
|
204
|
+
_: 2
|
|
205
|
+
}, 1032, ["value"]);
|
|
206
|
+
}), 128))
|
|
207
|
+
]),
|
|
208
|
+
_: 2
|
|
209
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"]),
|
|
210
|
+
vue.createVNode(vue.unref(webVue.Input), {
|
|
211
|
+
modelValue: form.value[item.inputKey],
|
|
212
|
+
"onUpdate:modelValue": ($event) => form.value[item.inputKey] = $event,
|
|
213
|
+
placeholder: item.placeholder ? item.placeholder : `\u8BF7\u8F93\u5165${item.inputLabel}`,
|
|
214
|
+
style: { "width": "180px" }
|
|
215
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])
|
|
216
|
+
]),
|
|
217
|
+
_: 2
|
|
218
|
+
}, 1024)) : item.component === "input" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.InputSearch), {
|
|
219
|
+
key: 2,
|
|
184
220
|
modelValue: form.value[item.key],
|
|
185
221
|
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
186
222
|
style: vue.normalizeStyle({ width: styleWidth(columnsMap.value[item.key]) }),
|
|
187
223
|
"allow-clear": "",
|
|
188
224
|
size: "medium",
|
|
189
|
-
placeholder: `\u8BF7\u8F93\u5165${item.label}`
|
|
225
|
+
placeholder: item.placeholder ? item.placeholder : `\u8BF7\u8F93\u5165${item.label}`
|
|
190
226
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "style", "placeholder"])) : vue.createCommentVNode("v-if", true),
|
|
191
227
|
item.component === "select" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Select), {
|
|
192
|
-
key:
|
|
228
|
+
key: 3,
|
|
193
229
|
modelValue: form.value[item.key],
|
|
194
230
|
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
195
231
|
"popup-container": "#base-filter-popup-container",
|
|
@@ -197,13 +233,13 @@ const _sfc_main = vue.defineComponent({
|
|
|
197
233
|
"allow-search": item.allowSearch,
|
|
198
234
|
"default-active-first-option": false,
|
|
199
235
|
style: vue.normalizeStyle({ width: styleWidth(columnsMap.value[item.key]) }),
|
|
200
|
-
placeholder: `\u8BF7\u9009\u62E9${item.label}`,
|
|
236
|
+
placeholder: item.placeholder ? item.placeholder : `\u8BF7\u9009\u62E9${item.label}`,
|
|
201
237
|
onSearch: ($event) => handleSelectSearch($event, item),
|
|
202
238
|
onPopupVisibleChange: ($event) => handleSelectPopupChange($event, item),
|
|
203
239
|
onChange: ($event) => handleSelectChange($event, item)
|
|
204
240
|
}, {
|
|
205
241
|
default: vue.withCtx(() => [
|
|
206
|
-
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getOptions(item), (opt) => {
|
|
242
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(getOptions.value(item), (opt) => {
|
|
207
243
|
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
208
244
|
key: opt.value,
|
|
209
245
|
label: opt.label,
|
|
@@ -214,7 +250,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
214
250
|
_: 2
|
|
215
251
|
}, 1032, ["modelValue", "onUpdate:modelValue", "allow-search", "style", "placeholder", "onSearch", "onPopupVisibleChange", "onChange"])) : vue.createCommentVNode("v-if", true),
|
|
216
252
|
item.component === "range-picker" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.RangePicker), {
|
|
217
|
-
key:
|
|
253
|
+
key: 4,
|
|
218
254
|
modelValue: form.value[item.key].range,
|
|
219
255
|
"onUpdate:modelValue": ($event) => form.value[item.key].range = $event,
|
|
220
256
|
style: vue.normalizeStyle({ width: styleWidth(form.value[item.key]) }),
|
|
@@ -225,7 +261,28 @@ const _sfc_main = vue.defineComponent({
|
|
|
225
261
|
"popup-container": "#base-filter-popup-container",
|
|
226
262
|
onClick: _cache[1] || (_cache[1] = vue.withModifiers(() => {
|
|
227
263
|
}, ["stop"]))
|
|
228
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "style"])) : vue.createCommentVNode("v-if", true)
|
|
264
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "style"])) : vue.createCommentVNode("v-if", true),
|
|
265
|
+
item.component === "radio" ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.RadioGroup), {
|
|
266
|
+
key: 5,
|
|
267
|
+
modelValue: form.value[item.key],
|
|
268
|
+
"onUpdate:modelValue": ($event) => form.value[item.key] = $event,
|
|
269
|
+
type: "button"
|
|
270
|
+
}, {
|
|
271
|
+
default: vue.withCtx(() => [
|
|
272
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(item.options || [], (option, idx) => {
|
|
273
|
+
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Radio), {
|
|
274
|
+
key: idx,
|
|
275
|
+
value: option.value
|
|
276
|
+
}, {
|
|
277
|
+
default: vue.withCtx(() => [
|
|
278
|
+
vue.createTextVNode(vue.toDisplayString(option.label), 1)
|
|
279
|
+
]),
|
|
280
|
+
_: 2
|
|
281
|
+
}, 1032, ["value"]);
|
|
282
|
+
}), 128))
|
|
283
|
+
]),
|
|
284
|
+
_: 2
|
|
285
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])) : vue.createCommentVNode("v-if", true)
|
|
229
286
|
]),
|
|
230
287
|
_: 2
|
|
231
288
|
}, 1032, ["active"]);
|
package/lib/config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
4
|
-
const DEFAULT_BASE_API = ((_b = (_a = window.situoyun) == null ? void 0 : _a.env) == null ? void 0 : _b.BASE_HOST) || "https://site.
|
|
4
|
+
const DEFAULT_BASE_API = ((_b = (_a = window.situoyun) == null ? void 0 : _a.env) == null ? void 0 : _b.BASE_HOST) || "https://site.cmstop.xyz";
|
|
5
5
|
const DEFAULT_BASE_ACCOUNT_HOST = ((_d = (_c = window.situoyun) == null ? void 0 : _c.env) == null ? void 0 : _d.BASE_ACCOUNT_HOST) || "https://account.cmstop.xyz";
|
|
6
6
|
const DEFAULT_UPLOAD_CHUNK_SIZE = ((_f = (_e = window.situoyun) == null ? void 0 : _e.env) == null ? void 0 : _f.UPLOAD_CHUNK_SIZE) || 5242880;
|
|
7
7
|
const DEFAULT_UPLOAD_URL = ((_h = (_g = window.situoyun) == null ? void 0 : _g.env) == null ? void 0 : _h.BASE_STATIC_FILE_API) || "https://oss.cmstop.xyz/maple/v1";
|
|
@@ -109,12 +109,6 @@ const _sfc_main = vue.defineComponent({
|
|
|
109
109
|
onCellMouseEnter: tableCellMouseEnter,
|
|
110
110
|
onCellMouseLeave: tableCellMouseLeave
|
|
111
111
|
}, {
|
|
112
|
-
"after-index": vue.withCtx(() => [
|
|
113
|
-
vue.renderSlot(_ctx.$slots, "after-index", {
|
|
114
|
-
row: element,
|
|
115
|
-
index: index$4
|
|
116
|
-
})
|
|
117
|
-
]),
|
|
118
112
|
batch: vue.withCtx(() => [
|
|
119
113
|
vue.renderSlot(_ctx.$slots, "batch", {
|
|
120
114
|
row: element,
|
|
@@ -139,12 +133,6 @@ const _sfc_main = vue.defineComponent({
|
|
|
139
133
|
onCellMouseEnter: tableCellMouseEnter,
|
|
140
134
|
onCellMouseLeave: tableCellMouseLeave
|
|
141
135
|
}, {
|
|
142
|
-
"after-index": vue.withCtx(() => [
|
|
143
|
-
vue.renderSlot(_ctx.$slots, "after-index", {
|
|
144
|
-
row: element,
|
|
145
|
-
index: index$4
|
|
146
|
-
})
|
|
147
|
-
]),
|
|
148
136
|
tip: vue.withCtx(() => [
|
|
149
137
|
vue.renderSlot(_ctx.$slots, "tip", {
|
|
150
138
|
row: element,
|
|
@@ -241,12 +229,6 @@ const _sfc_main = vue.defineComponent({
|
|
|
241
229
|
onCellMouseEnter: tableCellMouseEnter,
|
|
242
230
|
onCellMouseLeave: tableCellMouseLeave
|
|
243
231
|
}, {
|
|
244
|
-
"after-index": vue.withCtx(() => [
|
|
245
|
-
vue.renderSlot(_ctx.$slots, "after-index", {
|
|
246
|
-
row: item,
|
|
247
|
-
index: index$4
|
|
248
|
-
})
|
|
249
|
-
]),
|
|
250
232
|
batch: vue.withCtx(() => [
|
|
251
233
|
vue.renderSlot(_ctx.$slots, "batch", {
|
|
252
234
|
row: item,
|
|
@@ -271,12 +253,6 @@ const _sfc_main = vue.defineComponent({
|
|
|
271
253
|
onCellMouseEnter: tableCellMouseEnter,
|
|
272
254
|
onCellMouseLeave: tableCellMouseLeave
|
|
273
255
|
}, {
|
|
274
|
-
"after-index": vue.withCtx(() => [
|
|
275
|
-
vue.renderSlot(_ctx.$slots, "after-index", {
|
|
276
|
-
row: item,
|
|
277
|
-
index: index$4
|
|
278
|
-
})
|
|
279
|
-
]),
|
|
280
256
|
tip: vue.withCtx(() => [
|
|
281
257
|
vue.renderSlot(_ctx.$slots, "tip", {
|
|
282
258
|
row: item,
|
|
@@ -143,8 +143,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
143
143
|
})
|
|
144
144
|
]),
|
|
145
145
|
index: vue.withCtx(() => [
|
|
146
|
-
vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(_ctx.index + 1), 1)
|
|
147
|
-
vue.renderSlot(_ctx.$slots, "after-index")
|
|
146
|
+
vue.createElementVNode("span", _hoisted_1, vue.toDisplayString(_ctx.index + 1), 1)
|
|
148
147
|
]),
|
|
149
148
|
tip: vue.withCtx(() => [
|
|
150
149
|
vue.createCommentVNode(" \u5148\u6DFB\u52A0\u6587\u4EF6\u8D44\u6E90\uFF0C\u672A\u53D1\u5E03 "),
|
|
@@ -38,12 +38,6 @@ const _sfc_main = vue.defineComponent({
|
|
|
38
38
|
index: _ctx.index
|
|
39
39
|
})
|
|
40
40
|
]),
|
|
41
|
-
"after-index": vue.withCtx(() => [
|
|
42
|
-
vue.renderSlot(_ctx.$slots, "after-index", {
|
|
43
|
-
row: _ctx.element,
|
|
44
|
-
index: _ctx.index
|
|
45
|
-
})
|
|
46
|
-
]),
|
|
47
41
|
batch: vue.withCtx(() => [
|
|
48
42
|
vue.renderSlot(_ctx.$slots, "batch", {
|
|
49
43
|
row: _ctx.item,
|
package/lib/hooks/usePopper.js
CHANGED
|
@@ -9,16 +9,16 @@ function usePopper(pannel, triggerEl) {
|
|
|
9
9
|
};
|
|
10
10
|
const show = () => {
|
|
11
11
|
visible.value = true;
|
|
12
|
-
window.onclick = () => {
|
|
12
|
+
window.onclick = (e) => {
|
|
13
13
|
hide();
|
|
14
14
|
visible.value = false;
|
|
15
15
|
window.onclick = null;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
const initPopper = (placement = "bottom-start"
|
|
18
|
+
const initPopper = (placement = "bottom-start") => {
|
|
19
19
|
if (!pannel.value || !triggerEl.value)
|
|
20
20
|
return;
|
|
21
|
-
const offset =
|
|
21
|
+
const offset = [0, 10];
|
|
22
22
|
if (window.__POWERED_BY_WUJIE__) {
|
|
23
23
|
offset[1] = -54;
|
|
24
24
|
}
|
package/lib/index.css
CHANGED
|
@@ -4529,13 +4529,11 @@
|
|
|
4529
4529
|
}
|
|
4530
4530
|
.resource-list-footer,
|
|
4531
4531
|
.resource-list-header,
|
|
4532
|
-
.resource-list-content .resource-list-content-empty,
|
|
4533
4532
|
.resource-list-content .arco-scrollbar-container {
|
|
4534
4533
|
padding: 0 40px;
|
|
4535
4534
|
}
|
|
4536
4535
|
.resource-list-footer {
|
|
4537
4536
|
display: flex;
|
|
4538
|
-
flex-wrap: wrap;
|
|
4539
4537
|
justify-content: space-between;
|
|
4540
4538
|
padding-bottom: 20px;
|
|
4541
4539
|
}
|
|
@@ -4545,10 +4543,6 @@
|
|
|
4545
4543
|
gap: 10px;
|
|
4546
4544
|
align-items: center;
|
|
4547
4545
|
justify-content: flex-end;
|
|
4548
|
-
margin-top: 10px;
|
|
4549
|
-
}
|
|
4550
|
-
.resource-list-footer .footer-right .list-selected-wrapper {
|
|
4551
|
-
font-size: 12px;
|
|
4552
4546
|
}
|
|
4553
4547
|
.resource-list-content-loading {
|
|
4554
4548
|
display: flex;
|
|
@@ -4560,7 +4554,7 @@
|
|
|
4560
4554
|
.resource-list .list-item-grid {
|
|
4561
4555
|
display: grid;
|
|
4562
4556
|
grid-gap: 20px;
|
|
4563
|
-
grid-template-columns: repeat(
|
|
4557
|
+
grid-template-columns: repeat(5, 1fr);
|
|
4564
4558
|
}
|
|
4565
4559
|
.resource-list .list-content {
|
|
4566
4560
|
margin-top: 30px;
|
|
@@ -4603,8 +4597,7 @@
|
|
|
4603
4597
|
}
|
|
4604
4598
|
.resource-list .list-filter-wrapper .list-filter-tags {
|
|
4605
4599
|
display: flex;
|
|
4606
|
-
|
|
4607
|
-
gap: 10px;
|
|
4600
|
+
justify-content: space-between;
|
|
4608
4601
|
margin-top: 10px;
|
|
4609
4602
|
}
|
|
4610
4603
|
.resource-list .list-filter-wrapper .list-filter-tags .list-filter-tag {
|
|
@@ -4625,41 +4618,16 @@
|
|
|
4625
4618
|
justify-content: space-between;
|
|
4626
4619
|
}
|
|
4627
4620
|
.resource-list .list-filter-wrapper .list-filter .filter-list {
|
|
4628
|
-
position: relative;
|
|
4629
|
-
/** 给 popup 一个参考 */
|
|
4630
4621
|
display: flex;
|
|
4622
|
+
flex-wrap: wrap;
|
|
4623
|
+
gap: 10px;
|
|
4631
4624
|
}
|
|
4632
4625
|
.resource-list .list-filter-wrapper .list-filter .filter-list .filter-item {
|
|
4633
4626
|
width: 100px;
|
|
4634
|
-
margin-right: 10px;
|
|
4635
|
-
}
|
|
4636
|
-
.resource-list .list-filter-wrapper .list-filter .filter-list .arco-trigger-popup {
|
|
4637
|
-
z-index: 100000 !important;
|
|
4638
4627
|
}
|
|
4639
4628
|
.resource-list .list-filter-wrapper .list-filter .arco-input-prepend {
|
|
4640
4629
|
padding: 0;
|
|
4641
4630
|
}
|
|
4642
|
-
.resource-list .list-filter-wrapper .list-filter .more-btn {
|
|
4643
|
-
position: relative;
|
|
4644
|
-
/** 给 poperjs 一个参考 */
|
|
4645
|
-
}
|
|
4646
|
-
.resource-list .list-filter-wrapper .list-filter .more-btn .filter-pannel {
|
|
4647
|
-
inset: 40px auto auto auto !important;
|
|
4648
|
-
}
|
|
4649
|
-
.resource-list .list-filter-wrapper .filter-extra {
|
|
4650
|
-
display: flex;
|
|
4651
|
-
gap: 10px;
|
|
4652
|
-
}
|
|
4653
|
-
.resource-list .list-filter-wrapper .filter-pannel {
|
|
4654
|
-
z-index: 100000;
|
|
4655
|
-
display: flex;
|
|
4656
|
-
flex-direction: column;
|
|
4657
|
-
gap: 10px;
|
|
4658
|
-
padding: 10px;
|
|
4659
|
-
background-color: #fff;
|
|
4660
|
-
border-radius: 4px;
|
|
4661
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
4662
|
-
}
|
|
4663
4631
|
.resource-list .title {
|
|
4664
4632
|
display: flex;
|
|
4665
4633
|
gap: 8px;
|
|
@@ -4673,10 +4641,6 @@
|
|
|
4673
4641
|
height: 16px;
|
|
4674
4642
|
background-color: #4886ff;
|
|
4675
4643
|
}
|
|
4676
|
-
.resource-select-wrap {
|
|
4677
|
-
width: 100%;
|
|
4678
|
-
height: 100%;
|
|
4679
|
-
}
|
|
4680
4644
|
.resource-select-modal-body {
|
|
4681
4645
|
height: 80vh;
|
|
4682
4646
|
padding: 0;
|
|
@@ -4705,11 +4669,6 @@
|
|
|
4705
4669
|
.resource-select-container .resource-select-header .arco-tabs-content {
|
|
4706
4670
|
display: none !important;
|
|
4707
4671
|
}
|
|
4708
|
-
.resource-select-container .resource-list-content .resource-list-content-empty {
|
|
4709
|
-
box-sizing: border-box;
|
|
4710
|
-
width: 100%;
|
|
4711
|
-
height: 100%;
|
|
4712
|
-
}
|
|
4713
4672
|
.iframe-container {
|
|
4714
4673
|
position: relative;
|
|
4715
4674
|
height: 95vh;
|