@cmstops/pro-compo 0.1.32 → 0.1.34
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 +14 -5
- package/dist/index.min.css +1 -1
- package/es/config.d.ts +2 -2
- package/es/config.js +5 -4
- package/es/editMetaInfo/components/metaInfoForm.js +83 -81
- package/es/index.css +14 -5
- package/es/resourceModal/component.js +5 -5
- package/es/resourceModal/components/MediaSelection/MainContent/index.js +1 -1
- package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -2
- package/es/resourceModal/components/MediaSelection/index.js +8 -8
- package/es/resourceModal/script/api.d.ts +2 -2
- package/es/resourceModal/style/DocAiMediaSelected.less +2 -3
- package/es/resourceModal/style/MainContent.less +5 -3
- package/es/resourceModal/style/ToolbarSearch.less +13 -0
- package/es/resourceModal/style/index.css +14 -5
- package/es/selectGategory/component.js +6 -6
- package/es/selectGategory/components/ColumnSelection/index.js +3 -3
- package/es/selectThumb/component.js +2 -2
- package/es/uploadBefore/component.js +2 -2
- package/es/utils/tusUpload.js +1 -1
- package/lib/config.js +5 -4
- package/lib/editMetaInfo/components/metaInfoForm.js +82 -80
- package/lib/index.css +14 -5
- package/lib/resourceModal/component.js +5 -5
- package/lib/resourceModal/components/MediaSelection/MainContent/index.js +2 -2
- package/lib/resourceModal/components/MediaSelection/ToolbarSearch/index.js +2 -2
- package/lib/resourceModal/components/MediaSelection/index.js +8 -8
- package/lib/resourceModal/style/DocAiMediaSelected.less +2 -3
- package/lib/resourceModal/style/MainContent.less +5 -3
- package/lib/resourceModal/style/ToolbarSearch.less +13 -0
- package/lib/resourceModal/style/index.css +14 -5
- package/lib/selectGategory/component.js +6 -6
- package/lib/selectGategory/components/ColumnSelection/index.js +3 -3
- package/lib/selectThumb/component.js +2 -2
- package/lib/uploadBefore/component.js +2 -2
- package/lib/utils/tusUpload.js +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ const _sfc_main = defineComponent({
|
|
|
10
10
|
props: {
|
|
11
11
|
repository_id: {},
|
|
12
12
|
visible: { type: Boolean },
|
|
13
|
-
|
|
13
|
+
BASE_API: {},
|
|
14
14
|
columnData: {},
|
|
15
15
|
columnWithData: {}
|
|
16
16
|
},
|
|
@@ -18,7 +18,7 @@ const _sfc_main = defineComponent({
|
|
|
18
18
|
setup(__props, { emit: __emit }) {
|
|
19
19
|
const props = __props;
|
|
20
20
|
const emit = __emit;
|
|
21
|
-
const BASE_API = props.
|
|
21
|
+
const BASE_API = props.BASE_API || DEFAULT_BASE_API;
|
|
22
22
|
const selectColumnData = ref(props.columnData || []);
|
|
23
23
|
const selectColumnWithData = ref(props.columnWithData || []);
|
|
24
24
|
const visible = computed({
|
|
@@ -67,8 +67,8 @@ const _sfc_main = defineComponent({
|
|
|
67
67
|
"onUpdate:selectColumnData": _cache[0] || (_cache[0] = ($event) => selectColumnData.value = $event),
|
|
68
68
|
"add-text": "\u8BBE\u7F6E\u53D1\u5E03\u81F3\u680F\u76EE",
|
|
69
69
|
repository_id: _ctx.repository_id,
|
|
70
|
-
|
|
71
|
-
}, null, 8, ["selectColumnData", "repository_id", "
|
|
70
|
+
BASE_API: unref(BASE_API)
|
|
71
|
+
}, null, 8, ["selectColumnData", "repository_id", "BASE_API"]),
|
|
72
72
|
_hoisted_2,
|
|
73
73
|
createVNode(_sfc_main$1, {
|
|
74
74
|
selectColumnWithData: selectColumnWithData.value,
|
|
@@ -76,8 +76,8 @@ const _sfc_main = defineComponent({
|
|
|
76
76
|
"add-text": "\u8BBE\u7F6E\u540C\u6B65\u53D1\u5E03\u81F3\u680F\u76EE",
|
|
77
77
|
multiple: true,
|
|
78
78
|
repository_id: _ctx.repository_id,
|
|
79
|
-
|
|
80
|
-
}, null, 8, ["selectColumnWithData", "repository_id", "
|
|
79
|
+
BASE_API: unref(BASE_API)
|
|
80
|
+
}, null, 8, ["selectColumnWithData", "repository_id", "BASE_API"])
|
|
81
81
|
])
|
|
82
82
|
]),
|
|
83
83
|
_: 1
|
|
@@ -19,7 +19,7 @@ const _sfc_main = defineComponent({
|
|
|
19
19
|
...{ name: "selectGategory" },
|
|
20
20
|
__name: "index",
|
|
21
21
|
props: {
|
|
22
|
-
|
|
22
|
+
BASE_API: {},
|
|
23
23
|
repository_id: {},
|
|
24
24
|
selectColumnData: {},
|
|
25
25
|
selectColumnWithData: {},
|
|
@@ -106,7 +106,7 @@ const _sfc_main = defineComponent({
|
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
getCategoryPath(props.
|
|
109
|
+
getCategoryPath(props.BASE_API, {
|
|
110
110
|
repo: props.repository_id,
|
|
111
111
|
category: data == null ? void 0 : data.id
|
|
112
112
|
}).then((res) => {
|
|
@@ -152,7 +152,7 @@ const _sfc_main = defineComponent({
|
|
|
152
152
|
}
|
|
153
153
|
};
|
|
154
154
|
const getCategoryCategoriesData = async () => {
|
|
155
|
-
const { code, message } = await getCategoryCategoriesTree(props.
|
|
155
|
+
const { code, message } = await getCategoryCategoriesTree(props.BASE_API, {
|
|
156
156
|
repo_id: props.repository_id
|
|
157
157
|
});
|
|
158
158
|
if (code === 0) {
|
|
@@ -410,9 +410,9 @@ const _sfc_main = defineComponent({
|
|
|
410
410
|
preview: false,
|
|
411
411
|
"catalog-props": "image",
|
|
412
412
|
ai_static_covers: _ctx.aiImages,
|
|
413
|
-
|
|
413
|
+
BASE_API: unref(BASE_API),
|
|
414
414
|
onSubmit: submitCallback
|
|
415
|
-
}, null, 8, ["dialogVisible", "ai_static_covers", "
|
|
415
|
+
}, null, 8, ["dialogVisible", "ai_static_covers", "BASE_API"]),
|
|
416
416
|
createVNode(_sfc_main$4, {
|
|
417
417
|
visible: dialogCropperShow.value,
|
|
418
418
|
"onUpdate:visible": _cache[3] || (_cache[3] = ($event) => dialogCropperShow.value = $event),
|
|
@@ -70,9 +70,9 @@ const _sfc_main = defineComponent({
|
|
|
70
70
|
"onUpdate:visable": _cache[0] || (_cache[0] = ($event) => isRef(visBeforeUpload) ? visBeforeUpload.value = $event : null),
|
|
71
71
|
"file-list": unref(preOptionsList),
|
|
72
72
|
"onUpdate:fileList": _cache[1] || (_cache[1] = ($event) => isRef(preOptionsList) ? preOptionsList.value = $event : null),
|
|
73
|
-
|
|
73
|
+
BASE_API: baseApi.value,
|
|
74
74
|
onConfirm: afterPayload
|
|
75
|
-
}, null, 8, ["visable", "file-list", "
|
|
75
|
+
}, null, 8, ["visable", "file-list", "BASE_API"])
|
|
76
76
|
], 64);
|
|
77
77
|
};
|
|
78
78
|
}
|
package/es/utils/tusUpload.js
CHANGED
|
@@ -24,7 +24,7 @@ function uploadByTUS(file, progressCallback) {
|
|
|
24
24
|
function uploadConfig(file) {
|
|
25
25
|
const fType = getFileType(file);
|
|
26
26
|
return {
|
|
27
|
-
endpoint: DEFAULT_UPLOAD_URL
|
|
27
|
+
endpoint: `${DEFAULT_UPLOAD_URL}/upload`,
|
|
28
28
|
chunkSize: DEFAULT_UPLOAD_CHUNK_SIZE,
|
|
29
29
|
retryDelays: [0, 1e3, 3e3, 5e3],
|
|
30
30
|
overridePatchMethod: true,
|
package/lib/config.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
2
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const DEFAULT_BASE_API =
|
|
4
|
-
const DEFAULT_BASE_ACCOUNT_HOST =
|
|
5
|
-
const DEFAULT_UPLOAD_CHUNK_SIZE =
|
|
6
|
-
const DEFAULT_UPLOAD_URL =
|
|
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
|
+
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
|
+
const DEFAULT_UPLOAD_CHUNK_SIZE = ((_f = (_e = window.situoyun) == null ? void 0 : _e.env) == null ? void 0 : _f.UPLOAD_CHUNK_SIZE) || 5242880;
|
|
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";
|
|
7
8
|
exports.DEFAULT_BASE_ACCOUNT_HOST = DEFAULT_BASE_ACCOUNT_HOST;
|
|
8
9
|
exports.DEFAULT_BASE_API = DEFAULT_BASE_API;
|
|
9
10
|
exports.DEFAULT_UPLOAD_CHUNK_SIZE = DEFAULT_UPLOAD_CHUNK_SIZE;
|
|
@@ -159,10 +159,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
159
159
|
data.duty_editor = data.duty_editor && data.duty_editor.join(",");
|
|
160
160
|
data.extra_attrs = data.extra_attrs && data.extra_attrs.join(",");
|
|
161
161
|
data.relation_news = data.relation_news && JSON.stringify(data.relation_news);
|
|
162
|
-
data.comment_available = data.comment_available
|
|
163
|
-
data.statement = data.statement
|
|
164
|
-
data.is_recommend = data.is_recommend
|
|
165
|
-
data.album_status = data.album_status
|
|
162
|
+
data.comment_available = !!data.comment_available;
|
|
163
|
+
data.statement = !!data.statement;
|
|
164
|
+
data.is_recommend = !!data.is_recommend;
|
|
165
|
+
data.album_status = !!data.album_status;
|
|
166
166
|
delete data.line_time;
|
|
167
167
|
delete data.ori_count;
|
|
168
168
|
delete data.aiRelated;
|
|
@@ -240,9 +240,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
240
240
|
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Form), {
|
|
241
241
|
ref_key: "metaInfoFormRef",
|
|
242
242
|
ref: metaInfoFormRef,
|
|
243
|
+
model: form.value,
|
|
243
244
|
rules,
|
|
244
|
-
class: "meta-info-form"
|
|
245
|
-
model: form.value
|
|
245
|
+
class: "meta-info-form"
|
|
246
246
|
}, {
|
|
247
247
|
default: vue.withCtx(() => [
|
|
248
248
|
vue.createVNode(vue.unref(webVue.FormItem), {
|
|
@@ -254,27 +254,27 @@ const _sfc_main = vue.defineComponent({
|
|
|
254
254
|
vue.createVNode(vue.unref(webVue.Input), {
|
|
255
255
|
modelValue: form.value.title,
|
|
256
256
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form.value.title = $event),
|
|
257
|
+
"allow-clear": "",
|
|
257
258
|
class: "input-w",
|
|
258
|
-
placeholder: "\u4E3B\u6807\u9898",
|
|
259
259
|
"max-length": "100",
|
|
260
|
-
|
|
260
|
+
placeholder: "\u4E3B\u6807\u9898"
|
|
261
261
|
}, null, 8, ["modelValue"])
|
|
262
262
|
]),
|
|
263
263
|
_: 1
|
|
264
264
|
}),
|
|
265
265
|
vue.withDirectives(vue.createVNode(vue.unref(webVue.FormItem), {
|
|
266
266
|
key: "brief",
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
label: `${docBrief.value}\u63CF\u8FF0`,
|
|
268
|
+
field: "brief"
|
|
269
269
|
}, {
|
|
270
270
|
default: vue.withCtx(() => [
|
|
271
271
|
vue.createVNode(vue.unref(webVue.Input), {
|
|
272
272
|
modelValue: form.value.brief,
|
|
273
273
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form.value.brief = $event),
|
|
274
|
-
class: "input-w",
|
|
275
274
|
placeholder: `\u586B\u5199${docBrief.value}\u63CF\u8FF0`,
|
|
276
|
-
"
|
|
277
|
-
|
|
275
|
+
"allow-clear": "",
|
|
276
|
+
class: "input-w",
|
|
277
|
+
"max-length": "300"
|
|
278
278
|
}, null, 8, ["modelValue", "placeholder"])
|
|
279
279
|
]),
|
|
280
280
|
_: 1
|
|
@@ -283,9 +283,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
283
283
|
]),
|
|
284
284
|
vue.createVNode(vue.unref(webVue.FormItem), {
|
|
285
285
|
key: "style",
|
|
286
|
+
"content-class": "style-form-item",
|
|
286
287
|
field: "style",
|
|
287
|
-
"hide-label": ""
|
|
288
|
-
"content-class": "style-form-item"
|
|
288
|
+
"hide-label": ""
|
|
289
289
|
}, {
|
|
290
290
|
default: vue.withCtx(() => [
|
|
291
291
|
vue.createVNode(component, {
|
|
@@ -308,9 +308,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
308
308
|
vue.createVNode(vue.unref(webVue.Input), {
|
|
309
309
|
modelValue: form.value.sub_title,
|
|
310
310
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form.value.sub_title = $event),
|
|
311
|
+
"allow-clear": "",
|
|
311
312
|
class: "input-w",
|
|
312
|
-
placeholder: "\u586B\u5199\u526F\u6807\u9898"
|
|
313
|
-
"allow-clear": ""
|
|
313
|
+
placeholder: "\u586B\u5199\u526F\u6807\u9898"
|
|
314
314
|
}, null, 8, ["modelValue"])
|
|
315
315
|
]),
|
|
316
316
|
_: 1
|
|
@@ -324,9 +324,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
324
324
|
vue.createVNode(vue.unref(webVue.Input), {
|
|
325
325
|
modelValue: form.value.head_title,
|
|
326
326
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.value.head_title = $event),
|
|
327
|
+
"allow-clear": "",
|
|
327
328
|
class: "input-w",
|
|
328
|
-
placeholder: "\u586B\u5199\u5F15\u6807\u9898"
|
|
329
|
-
"allow-clear": ""
|
|
329
|
+
placeholder: "\u586B\u5199\u5F15\u6807\u9898"
|
|
330
330
|
}, null, 8, ["modelValue"])
|
|
331
331
|
]),
|
|
332
332
|
_: 1
|
|
@@ -340,9 +340,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
340
340
|
vue.createVNode(vue.unref(webVue.Input), {
|
|
341
341
|
modelValue: form.value.summary,
|
|
342
342
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.value.summary = $event),
|
|
343
|
+
"allow-clear": "",
|
|
343
344
|
class: "input-w",
|
|
344
|
-
placeholder: "\u586B\u5199\u6458\u8981"
|
|
345
|
-
"allow-clear": ""
|
|
345
|
+
placeholder: "\u586B\u5199\u6458\u8981"
|
|
346
346
|
}, null, 8, ["modelValue"])
|
|
347
347
|
]),
|
|
348
348
|
_: 1
|
|
@@ -356,9 +356,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
356
356
|
vue.createVNode(vue.unref(webVue.Input), {
|
|
357
357
|
modelValue: form.value.guide,
|
|
358
358
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => form.value.guide = $event),
|
|
359
|
+
"allow-clear": "",
|
|
359
360
|
class: "input-w",
|
|
360
|
-
placeholder: "\u586B\u5199\u5BFC\u8BFB"
|
|
361
|
-
"allow-clear": ""
|
|
361
|
+
placeholder: "\u586B\u5199\u5BFC\u8BFB"
|
|
362
362
|
}, null, 8, ["modelValue"])
|
|
363
363
|
]),
|
|
364
364
|
_: 1
|
|
@@ -372,9 +372,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
372
372
|
vue.createVNode(vue.unref(webVue.InputTag), {
|
|
373
373
|
modelValue: form.value.keywords,
|
|
374
374
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => form.value.keywords = $event),
|
|
375
|
+
"allow-clear": "",
|
|
375
376
|
class: "input-w",
|
|
376
|
-
placeholder: "\u8BBE\u7F6E\u5173\u952E\u8BCD"
|
|
377
|
-
"allow-clear": ""
|
|
377
|
+
placeholder: "\u8BBE\u7F6E\u5173\u952E\u8BCD"
|
|
378
378
|
}, null, 8, ["modelValue"])
|
|
379
379
|
]),
|
|
380
380
|
_: 1
|
|
@@ -395,9 +395,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
395
395
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(SourceInfo), (item) => {
|
|
396
396
|
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
397
397
|
key: item.value,
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
}, null, 8, ["
|
|
398
|
+
label: item.value,
|
|
399
|
+
value: item.value
|
|
400
|
+
}, null, 8, ["label", "value"]);
|
|
401
401
|
}), 128))
|
|
402
402
|
]),
|
|
403
403
|
_: 1
|
|
@@ -414,9 +414,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
414
414
|
vue.createVNode(vue.unref(webVue.Input), {
|
|
415
415
|
modelValue: form.value.source_url,
|
|
416
416
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => form.value.source_url = $event),
|
|
417
|
+
"allow-clear": "",
|
|
417
418
|
class: "input-w",
|
|
418
|
-
placeholder: "\u586B\u5199\u6765\u6E90URL"
|
|
419
|
-
"allow-clear": ""
|
|
419
|
+
placeholder: "\u586B\u5199\u6765\u6E90URL"
|
|
420
420
|
}, null, 8, ["modelValue"])
|
|
421
421
|
]),
|
|
422
422
|
_: 1
|
|
@@ -430,9 +430,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
430
430
|
vue.createVNode(vue.unref(webVue.Input), {
|
|
431
431
|
modelValue: form.value.author,
|
|
432
432
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => form.value.author = $event),
|
|
433
|
+
"allow-clear": "",
|
|
433
434
|
class: "input-w",
|
|
434
|
-
placeholder: "\u586B\u5199\u4F5C\u8005"
|
|
435
|
-
"allow-clear": ""
|
|
435
|
+
placeholder: "\u586B\u5199\u4F5C\u8005"
|
|
436
436
|
}, null, 8, ["modelValue"])
|
|
437
437
|
]),
|
|
438
438
|
_: 1
|
|
@@ -446,17 +446,17 @@ const _sfc_main = vue.defineComponent({
|
|
|
446
446
|
vue.createVNode(vue.unref(webVue.Select), {
|
|
447
447
|
modelValue: form.value.duty_editor,
|
|
448
448
|
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => form.value.duty_editor = $event),
|
|
449
|
-
multiple: "",
|
|
450
449
|
class: "input-w",
|
|
450
|
+
multiple: "",
|
|
451
451
|
placeholder: "\u8BBE\u7F6E\u7F16\u8F91"
|
|
452
452
|
}, {
|
|
453
453
|
default: vue.withCtx(() => [
|
|
454
454
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(dutyEditorOptions.value, (item) => {
|
|
455
455
|
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Option), {
|
|
456
456
|
key: item.value,
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
}, null, 8, ["
|
|
457
|
+
label: item.label,
|
|
458
|
+
value: item.value
|
|
459
|
+
}, null, 8, ["label", "value"]);
|
|
460
460
|
}), 128))
|
|
461
461
|
]),
|
|
462
462
|
_: 1
|
|
@@ -473,9 +473,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
473
473
|
vue.createVNode(vue.unref(webVue.InputTag), {
|
|
474
474
|
modelValue: form.value.extra_attrs,
|
|
475
475
|
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => form.value.extra_attrs = $event),
|
|
476
|
+
"allow-clear": "",
|
|
476
477
|
class: "input-w",
|
|
477
|
-
placeholder: "\u8BBE\u7F6E\u81EA\u5B9A\u4E49\u5C5E\u6027"
|
|
478
|
-
"allow-clear": ""
|
|
478
|
+
placeholder: "\u8BBE\u7F6E\u81EA\u5B9A\u4E49\u5C5E\u6027"
|
|
479
479
|
}, null, 8, ["modelValue"])
|
|
480
480
|
]),
|
|
481
481
|
_: 1
|
|
@@ -490,9 +490,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
490
490
|
vue.createVNode(vue.unref(webVue.DatePicker), {
|
|
491
491
|
modelValue: form.value.self_publish_time,
|
|
492
492
|
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => form.value.self_publish_time = $event),
|
|
493
|
-
"show-time": "",
|
|
494
|
-
placeholder: "\u9009\u62E9\u81EA\u5B9A\u4E49\u53D1\u5E03\u65F6\u95F4",
|
|
495
493
|
"time-picker-props": { defaultValue: "12:00:00" },
|
|
494
|
+
placeholder: "\u9009\u62E9\u81EA\u5B9A\u4E49\u53D1\u5E03\u65F6\u95F4",
|
|
495
|
+
"show-time": "",
|
|
496
496
|
"value-format": "timestamp"
|
|
497
497
|
}, null, 8, ["modelValue"])
|
|
498
498
|
]),
|
|
@@ -513,44 +513,46 @@ const _sfc_main = vue.defineComponent({
|
|
|
513
513
|
]),
|
|
514
514
|
_: 1
|
|
515
515
|
}),
|
|
516
|
-
vue.
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
vue.
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
vue.
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
516
|
+
form.value.line_time ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
517
|
+
vue.createVNode(vue.unref(webVue.FormItem), {
|
|
518
|
+
key: "online_time",
|
|
519
|
+
class: "horizontal",
|
|
520
|
+
field: "online_time",
|
|
521
|
+
label: "\u4E0A\u7EBF\u65F6\u95F4"
|
|
522
|
+
}, {
|
|
523
|
+
default: vue.withCtx(() => [
|
|
524
|
+
vue.createVNode(vue.unref(webVue.DatePicker), {
|
|
525
|
+
modelValue: form.value.online_time,
|
|
526
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => form.value.online_time = $event),
|
|
527
|
+
"disabled-date": disabledStartTime,
|
|
528
|
+
"time-picker-props": { defaultValue: "12:00:00" },
|
|
529
|
+
placeholder: "\u9009\u62E9\u4E0A\u7EBF\u65F6\u95F4",
|
|
530
|
+
"show-time": "",
|
|
531
|
+
"value-format": "timestamp"
|
|
532
|
+
}, null, 8, ["modelValue"])
|
|
533
|
+
]),
|
|
534
|
+
_: 1
|
|
535
|
+
}),
|
|
536
|
+
vue.createVNode(vue.unref(webVue.FormItem), {
|
|
537
|
+
key: "offline_time",
|
|
538
|
+
class: "horizontal",
|
|
539
|
+
field: "offline_time",
|
|
540
|
+
label: "\u4E0B\u7EBF\u65F6\u95F4"
|
|
541
|
+
}, {
|
|
542
|
+
default: vue.withCtx(() => [
|
|
543
|
+
vue.createVNode(vue.unref(webVue.DatePicker), {
|
|
544
|
+
modelValue: form.value.offline_time,
|
|
545
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => form.value.offline_time = $event),
|
|
546
|
+
"disabled-date": disabledEndTime,
|
|
547
|
+
"time-picker-props": { defaultValue: "12:00:00" },
|
|
548
|
+
placeholder: "\u9009\u62E9\u4E0B\u7EBF\u65F6\u95F4",
|
|
549
|
+
"show-time": "",
|
|
550
|
+
"value-format": "timestamp"
|
|
551
|
+
}, null, 8, ["modelValue"])
|
|
552
|
+
]),
|
|
553
|
+
_: 1
|
|
554
|
+
})
|
|
555
|
+
], 64)) : vue.createCommentVNode("v-if", true),
|
|
554
556
|
vue.createVNode(vue.unref(webVue.FormItem), {
|
|
555
557
|
key: "statement",
|
|
556
558
|
class: "horizontal",
|
|
@@ -690,10 +692,10 @@ const _sfc_main = vue.defineComponent({
|
|
|
690
692
|
}, 8, ["modelValue"]),
|
|
691
693
|
form.value.mourn_style == 1 ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_2, [
|
|
692
694
|
vue.createVNode(vue.unref(icon.IconInfoCircle)),
|
|
693
|
-
vue.createTextVNode(vue.toDisplayString(tips.value[0]), 1)
|
|
695
|
+
vue.createTextVNode(" " + vue.toDisplayString(tips.value[0]), 1)
|
|
694
696
|
])) : form.value.mourn_style == 2 ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_3, [
|
|
695
697
|
vue.createVNode(vue.unref(icon.IconInfoCircle)),
|
|
696
|
-
vue.createTextVNode(vue.toDisplayString(tips.value[1]), 1)
|
|
698
|
+
vue.createTextVNode(" " + vue.toDisplayString(tips.value[1]), 1)
|
|
697
699
|
])) : vue.createCommentVNode("v-if", true)
|
|
698
700
|
])) : vue.createCommentVNode("v-if", true)
|
|
699
701
|
]),
|
package/lib/index.css
CHANGED
|
@@ -571,11 +571,11 @@
|
|
|
571
571
|
width: 100%;
|
|
572
572
|
height: 100%;
|
|
573
573
|
overflow: hidden;
|
|
574
|
-
border: solid
|
|
574
|
+
border: solid 1px transparent;
|
|
575
575
|
border-radius: 4px;
|
|
576
576
|
}
|
|
577
577
|
.doc-ai-media-selected .arco-scrollbar .doc-ai-media-selected-scrollbar .thumb-list .thumb-wrap .thumb-item .pic.active {
|
|
578
|
-
border: solid
|
|
578
|
+
border: solid 1px #4886ff;
|
|
579
579
|
border-radius: 4px;
|
|
580
580
|
}
|
|
581
581
|
.doc-ai-media-selected .arco-scrollbar .doc-ai-media-selected-scrollbar .thumb-list .thumb-wrap .thumb-item .pic img {
|
|
@@ -600,6 +600,14 @@
|
|
|
600
600
|
width: auto;
|
|
601
601
|
margin-right: 10px;
|
|
602
602
|
}
|
|
603
|
+
.toolbar-search-container .top-container .filter-content .filter-right .arco-btn-size-medium.arco-btn-only-icon {
|
|
604
|
+
width: 48px;
|
|
605
|
+
color: #2f6ffb;
|
|
606
|
+
background-color: #e8f3ff;
|
|
607
|
+
}
|
|
608
|
+
.toolbar-search-container .top-container .filter-content .filter-right .arco-btn-size-medium.arco-btn-only-icon:hover {
|
|
609
|
+
background-color: #d3e6ff;
|
|
610
|
+
}
|
|
603
611
|
.keywordsSelection {
|
|
604
612
|
display: flex;
|
|
605
613
|
justify-content: space-between;
|
|
@@ -658,7 +666,7 @@
|
|
|
658
666
|
font-size: 0;
|
|
659
667
|
background: url('../assets/selection/folder.png') no-repeat 13px center;
|
|
660
668
|
background-size: 17px auto;
|
|
661
|
-
border: solid
|
|
669
|
+
border: solid 1px transparent;
|
|
662
670
|
border-radius: 4px;
|
|
663
671
|
}
|
|
664
672
|
.simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list .folder-item .wrap h4 {
|
|
@@ -685,13 +693,14 @@
|
|
|
685
693
|
padding: 14px 16px;
|
|
686
694
|
line-height: 24px;
|
|
687
695
|
background: #f7f8fa;
|
|
688
|
-
border: 1px solid
|
|
696
|
+
border: 1px solid transparent;
|
|
689
697
|
border-radius: 4px;
|
|
690
698
|
}
|
|
691
699
|
.simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .folder-list .folder-more-button .folder-more-wrap:hover {
|
|
692
700
|
color: #165dff;
|
|
693
701
|
background: #f2f3f5;
|
|
694
|
-
|
|
702
|
+
border: 1px solid #4886ff;
|
|
703
|
+
box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.1);
|
|
695
704
|
cursor: pointer;
|
|
696
705
|
}
|
|
697
706
|
.simple-resources .arco-scrollbar .dialog-media-selection-scroll .file-wrap .file-list {
|
|
@@ -13,7 +13,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
13
13
|
ai_static_covers: {},
|
|
14
14
|
ai_gif_covers: {},
|
|
15
15
|
preview: { type: Boolean },
|
|
16
|
-
|
|
16
|
+
BASE_API: {},
|
|
17
17
|
mediaUseType: {}
|
|
18
18
|
},
|
|
19
19
|
emits: ["update:dialogVisible", "submit"],
|
|
@@ -23,8 +23,8 @@ const _sfc_main = vue.defineComponent({
|
|
|
23
23
|
if (!injectMediaUseType && props.mediaUseType) {
|
|
24
24
|
vue.provide("mediaUseType", props.mediaUseType || mediaSelection.mediaUseEnum.THUMB);
|
|
25
25
|
}
|
|
26
|
-
vue.provide("baseAPI", props.
|
|
27
|
-
const BASE_API = props.
|
|
26
|
+
vue.provide("baseAPI", props.BASE_API || config.DEFAULT_BASE_API);
|
|
27
|
+
const BASE_API = props.BASE_API || config.DEFAULT_BASE_API;
|
|
28
28
|
const selectedMax = vue.ref(1);
|
|
29
29
|
const emit = __emit;
|
|
30
30
|
const submit = (itemData) => {
|
|
@@ -67,12 +67,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
67
67
|
vue.createVNode(index, {
|
|
68
68
|
"selected-max": selectedMax.value,
|
|
69
69
|
"catalog-props": _ctx.catalogProps,
|
|
70
|
-
|
|
70
|
+
"b-a-s-e-a-p-i": vue.unref(BASE_API),
|
|
71
71
|
ai_static_covers: _ctx.ai_static_covers,
|
|
72
72
|
ai_gif_covers: _ctx.ai_gif_covers,
|
|
73
73
|
preview: _ctx.preview,
|
|
74
74
|
onConfirm: submit
|
|
75
|
-
}, null, 8, ["selected-max", "catalog-props", "
|
|
75
|
+
}, null, 8, ["selected-max", "catalog-props", "b-a-s-e-a-p-i", "ai_static_covers", "ai_gif_covers", "preview"])
|
|
76
76
|
]),
|
|
77
77
|
_: 1
|
|
78
78
|
}, 8, ["visible"]);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var vue = require("vue");
|
|
3
3
|
var _null = require("../../../assets/selection/null.js");
|
|
4
4
|
var webVue = require("@arco-design/web-vue");
|
|
5
|
-
var
|
|
5
|
+
var vueCmstopIcons = require("@arco-iconbox/vue-cmstop-icons");
|
|
6
6
|
var component = require("../../../../typeIcons/component.js");
|
|
7
7
|
var index = require("./FileTypeThumb/index.js");
|
|
8
8
|
var filter = require("../../../script/filter.js");
|
|
@@ -133,7 +133,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
133
133
|
onClick: _cache[0] || (_cache[0] = ($event) => isFold.value = !isFold.value)
|
|
134
134
|
}, [
|
|
135
135
|
vue.createElementVNode("div", _hoisted_9, [
|
|
136
|
-
isFold.value ? (vue.openBlock(), vue.createBlock(vue.unref(
|
|
136
|
+
isFold.value ? (vue.openBlock(), vue.createBlock(vue.unref(vueCmstopIcons.IconDoubleDown), { key: 0 })) : (vue.openBlock(), vue.createBlock(vue.unref(vueCmstopIcons.IconDoubleUp), { key: 1 })),
|
|
137
137
|
vue.createTextVNode(" " + vue.toDisplayString(isFold.value ? "\u5C55\u5F00\u5168\u90E8" : "\u6536\u7F29\u5168\u90E8"), 1)
|
|
138
138
|
])
|
|
139
139
|
])) : vue.createCommentVNode("v-if", true)
|
|
@@ -16,7 +16,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
16
16
|
__name: "index",
|
|
17
17
|
props: {
|
|
18
18
|
activeMediaType: {},
|
|
19
|
-
|
|
19
|
+
BASE_API: {}
|
|
20
20
|
},
|
|
21
21
|
emits: ["search"],
|
|
22
22
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -39,7 +39,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
39
39
|
limit: limit.value,
|
|
40
40
|
offset: peopleOptions.value.length
|
|
41
41
|
};
|
|
42
|
-
const res = await api.getAccountList(props.
|
|
42
|
+
const res = await api.getAccountList(props.BASE_API, 1, query);
|
|
43
43
|
if (res && res.code !== 0)
|
|
44
44
|
return;
|
|
45
45
|
if (res && res.message) {
|
|
@@ -19,7 +19,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
19
19
|
__name: "index",
|
|
20
20
|
props: {
|
|
21
21
|
selectedMax: {},
|
|
22
|
-
|
|
22
|
+
BASE_API: {},
|
|
23
23
|
catalogProps: {},
|
|
24
24
|
preview: { type: Boolean },
|
|
25
25
|
ai_static_covers: {},
|
|
@@ -121,9 +121,9 @@ const _sfc_main = vue.defineComponent({
|
|
|
121
121
|
query = Object.assign(query, filter.value);
|
|
122
122
|
folderList.value = [];
|
|
123
123
|
}
|
|
124
|
-
const promise = filter.value ? [API(props.
|
|
125
|
-
API(props.
|
|
126
|
-
api.getDirectories(props.
|
|
124
|
+
const promise = filter.value ? [API(props.BASE_API, query)] : [
|
|
125
|
+
API(props.BASE_API, query),
|
|
126
|
+
api.getDirectories(props.BASE_API, { parent_id: query.directory_id })
|
|
127
127
|
];
|
|
128
128
|
Promise.all(promise).then((res) => {
|
|
129
129
|
const files = res[0].code === 0 ? res[0].message.data || [] : [];
|
|
@@ -177,7 +177,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
177
177
|
})) : vue.createCommentVNode("v-if", true),
|
|
178
178
|
vue.unref(mediaUseType) ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.TabPane), {
|
|
179
179
|
key: "system",
|
|
180
|
-
title: "\u5185\u7F6E\
|
|
180
|
+
title: "\u5185\u7F6E\u7D20\u6750"
|
|
181
181
|
})) : vue.createCommentVNode("v-if", true),
|
|
182
182
|
vue.createVNode(vue.unref(webVue.TabPane), {
|
|
183
183
|
key: "all",
|
|
@@ -204,7 +204,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
204
204
|
preview: _ctx.preview,
|
|
205
205
|
onConfirm: confirm
|
|
206
206
|
}, null, 8, ["ai_static_covers", "ai_gif_covers", "selected-max", "preview"])) : activeMediaType.value === "system" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
207
|
-
vue.createCommentVNode(" \u5185\u7F6E\
|
|
207
|
+
vue.createCommentVNode(" \u5185\u7F6E\u7D20\u6750 "),
|
|
208
208
|
vue.createVNode(index$1, { onConfirm: confirm })
|
|
209
209
|
], 2112)) : vue.createCommentVNode("v-if", true),
|
|
210
210
|
vue.createCommentVNode(" \u7D20\u6750\u5E93\u7D20\u6750 "),
|
|
@@ -216,7 +216,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
216
216
|
ref: getMoreData,
|
|
217
217
|
class: "tool-search-box",
|
|
218
218
|
"active-media-type": activeMediaType.value,
|
|
219
|
-
|
|
219
|
+
"b-a-s-e-a-p-i": _ctx.BASE_API,
|
|
220
220
|
onSearch: search
|
|
221
221
|
}, {
|
|
222
222
|
other: vue.withCtx(() => [
|
|
@@ -234,7 +234,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
234
234
|
})) : vue.createCommentVNode("v-if", true)
|
|
235
235
|
]),
|
|
236
236
|
_: 1
|
|
237
|
-
}, 8, ["active-media-type", "
|
|
237
|
+
}, 8, ["active-media-type", "b-a-s-e-a-p-i"])
|
|
238
238
|
]),
|
|
239
239
|
breadCrumbs.value.length > 1 ? (vue.openBlock(), vue.createBlock(vue.unref(webVue.Breadcrumb), {
|
|
240
240
|
key: 0,
|
|
@@ -32,12 +32,11 @@
|
|
|
32
32
|
width: 100%;
|
|
33
33
|
height: 100%;
|
|
34
34
|
overflow: hidden;
|
|
35
|
-
|
|
36
|
-
border: solid 3px transparent;
|
|
35
|
+
border: solid 1px transparent;
|
|
37
36
|
border-radius: 4px;
|
|
38
37
|
|
|
39
38
|
&.active {
|
|
40
|
-
border: solid
|
|
39
|
+
border: solid 1px #4886ff;
|
|
41
40
|
border-radius: 4px;
|
|
42
41
|
}
|
|
43
42
|
|