@cmstops/pro-compo 0.3.6 → 0.3.7
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 +2 -2
- package/dist/index.min.css +1 -1
- package/es/contentDetailList/components/Content/DocItem/index.js +29 -28
- package/es/contentDetailList/components/ShowQRCode/index.js +3 -12
- package/es/contentDetailList/style/DocItem.less +7 -5
- package/es/contentDetailList/style/index.css +2 -2
- package/es/editMetaInfo/components/metaInfoForm.js +33 -23
- package/es/index.css +2 -2
- package/es/selectThumb/component.js +18 -53
- package/es/utils/doc.js +1 -9
- package/lib/contentDetailList/components/Content/DocItem/index.js +28 -27
- package/lib/contentDetailList/components/ShowQRCode/index.js +2 -11
- package/lib/contentDetailList/style/DocItem.less +7 -5
- package/lib/contentDetailList/style/index.css +2 -2
- package/lib/editMetaInfo/components/metaInfoForm.js +32 -22
- package/lib/index.css +2 -2
- package/lib/selectThumb/component.js +17 -52
- package/lib/utils/doc.js +0 -9
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, watch, onMounted, openBlock, createBlock, unref, withCtx, createVNode, withDirectives, vShow, createElementBlock, Fragment, renderList, createCommentVNode, createTextVNode, toDisplayString, toRaw } from "vue";
|
|
2
|
-
import { Form, FormItem, Input, InputTag, Select, Option,
|
|
2
|
+
import { Form, FormItem, Input, InputTag, Select, Option, Switch, DatePicker, InputNumber, RadioGroup, Radio, Message } from "@arco-design/web-vue";
|
|
3
3
|
import { IconInfoCircle } from "@arco-design/web-vue/es/icon";
|
|
4
4
|
import { docSeries } from "../../utils/doc.js";
|
|
5
5
|
import _sfc_main$1 from "../../selectThumb/component.js";
|
|
@@ -118,6 +118,15 @@ const _sfc_main = defineComponent({
|
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
};
|
|
121
|
+
const defaultSourceValue = computed(() => {
|
|
122
|
+
const defaultValue = SourceInfo.value.find((x) => x.default);
|
|
123
|
+
return defaultValue ? defaultValue.value : "";
|
|
124
|
+
});
|
|
125
|
+
const changeStatement = (val) => {
|
|
126
|
+
if (val && defaultSourceValue.value) {
|
|
127
|
+
form.value.source = defaultSourceValue.value;
|
|
128
|
+
}
|
|
129
|
+
};
|
|
121
130
|
const lineTimeChange = () => {
|
|
122
131
|
form.value.online_time = "";
|
|
123
132
|
form.value.offline_time = "";
|
|
@@ -443,6 +452,21 @@ const _sfc_main = defineComponent({
|
|
|
443
452
|
]),
|
|
444
453
|
_: 1
|
|
445
454
|
}),
|
|
455
|
+
createVNode(unref(FormItem), {
|
|
456
|
+
key: "statement",
|
|
457
|
+
class: "horizontal",
|
|
458
|
+
field: "statement",
|
|
459
|
+
label: "\u539F\u521B\u58F0\u660E"
|
|
460
|
+
}, {
|
|
461
|
+
default: withCtx(() => [
|
|
462
|
+
createVNode(unref(Switch), {
|
|
463
|
+
modelValue: form.value.statement,
|
|
464
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => form.value.statement = $event),
|
|
465
|
+
onChange: changeStatement
|
|
466
|
+
}, null, 8, ["modelValue"])
|
|
467
|
+
]),
|
|
468
|
+
_: 1
|
|
469
|
+
}),
|
|
446
470
|
createVNode(unref(FormItem), {
|
|
447
471
|
key: "source_url",
|
|
448
472
|
field: "source_url",
|
|
@@ -451,7 +475,7 @@ const _sfc_main = defineComponent({
|
|
|
451
475
|
default: withCtx(() => [
|
|
452
476
|
createVNode(unref(Input), {
|
|
453
477
|
modelValue: form.value.source_url,
|
|
454
|
-
"onUpdate:modelValue": _cache[
|
|
478
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => form.value.source_url = $event),
|
|
455
479
|
"allow-clear": "",
|
|
456
480
|
class: "input-w",
|
|
457
481
|
placeholder: "\u586B\u5199\u6765\u6E90URL"
|
|
@@ -467,7 +491,7 @@ const _sfc_main = defineComponent({
|
|
|
467
491
|
default: withCtx(() => [
|
|
468
492
|
createVNode(unref(Input), {
|
|
469
493
|
modelValue: form.value.author,
|
|
470
|
-
"onUpdate:modelValue": _cache[
|
|
494
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => form.value.author = $event),
|
|
471
495
|
"allow-clear": "",
|
|
472
496
|
class: "input-w",
|
|
473
497
|
placeholder: "\u586B\u5199\u4F5C\u8005"
|
|
@@ -483,7 +507,7 @@ const _sfc_main = defineComponent({
|
|
|
483
507
|
default: withCtx(() => [
|
|
484
508
|
createVNode(unref(Select), {
|
|
485
509
|
modelValue: form.value.duty_editor,
|
|
486
|
-
"onUpdate:modelValue": _cache[
|
|
510
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => form.value.duty_editor = $event),
|
|
487
511
|
class: "input-w",
|
|
488
512
|
multiple: "",
|
|
489
513
|
placeholder: "\u8BBE\u7F6E\u7F16\u8F91"
|
|
@@ -510,7 +534,7 @@ const _sfc_main = defineComponent({
|
|
|
510
534
|
default: withCtx(() => [
|
|
511
535
|
createVNode(unref(InputTag), {
|
|
512
536
|
modelValue: form.value.extra_attrs,
|
|
513
|
-
"onUpdate:modelValue": _cache[
|
|
537
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => form.value.extra_attrs = $event),
|
|
514
538
|
"allow-clear": "",
|
|
515
539
|
class: "input-w",
|
|
516
540
|
placeholder: "\u8BBE\u7F6E\u81EA\u5B9A\u4E49\u5C5E\u6027"
|
|
@@ -527,7 +551,7 @@ const _sfc_main = defineComponent({
|
|
|
527
551
|
default: withCtx(() => [
|
|
528
552
|
createVNode(unref(DatePicker), {
|
|
529
553
|
modelValue: form.value.self_publish_time,
|
|
530
|
-
"onUpdate:modelValue": _cache[
|
|
554
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => form.value.self_publish_time = $event),
|
|
531
555
|
"time-picker-props": { defaultValue: "12:00:00" },
|
|
532
556
|
placeholder: "\u9009\u62E9\u81EA\u5B9A\u4E49\u53D1\u5E03\u65F6\u95F4",
|
|
533
557
|
"show-time": "",
|
|
@@ -545,7 +569,7 @@ const _sfc_main = defineComponent({
|
|
|
545
569
|
default: withCtx(() => [
|
|
546
570
|
createVNode(unref(Switch), {
|
|
547
571
|
modelValue: form.value.line_time,
|
|
548
|
-
"onUpdate:modelValue": _cache[
|
|
572
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => form.value.line_time = $event),
|
|
549
573
|
onChange: lineTimeChange
|
|
550
574
|
}, null, 8, ["modelValue"])
|
|
551
575
|
]),
|
|
@@ -561,7 +585,7 @@ const _sfc_main = defineComponent({
|
|
|
561
585
|
default: withCtx(() => [
|
|
562
586
|
createVNode(unref(DatePicker), {
|
|
563
587
|
modelValue: form.value.online_time,
|
|
564
|
-
"onUpdate:modelValue": _cache[
|
|
588
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => form.value.online_time = $event),
|
|
565
589
|
"disabled-date": disabledStartTime,
|
|
566
590
|
"time-picker-props": { defaultValue: "12:00:00" },
|
|
567
591
|
disabled: disabledDatePickerOnlineTime.value,
|
|
@@ -581,7 +605,7 @@ const _sfc_main = defineComponent({
|
|
|
581
605
|
default: withCtx(() => [
|
|
582
606
|
createVNode(unref(DatePicker), {
|
|
583
607
|
modelValue: form.value.offline_time,
|
|
584
|
-
"onUpdate:modelValue": _cache[
|
|
608
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => form.value.offline_time = $event),
|
|
585
609
|
"disabled-date": disabledEndTime,
|
|
586
610
|
"time-picker-props": { defaultValue: "12:00:00" },
|
|
587
611
|
placeholder: "\u9009\u62E9\u4E0B\u7EBF\u65F6\u95F4",
|
|
@@ -592,20 +616,6 @@ const _sfc_main = defineComponent({
|
|
|
592
616
|
_: 1
|
|
593
617
|
})
|
|
594
618
|
], 64)) : createCommentVNode("v-if", true),
|
|
595
|
-
createVNode(unref(FormItem), {
|
|
596
|
-
key: "statement",
|
|
597
|
-
class: "horizontal",
|
|
598
|
-
field: "statement",
|
|
599
|
-
label: "\u539F\u521B\u58F0\u660E"
|
|
600
|
-
}, {
|
|
601
|
-
default: withCtx(() => [
|
|
602
|
-
createVNode(unref(Switch), {
|
|
603
|
-
modelValue: form.value.statement,
|
|
604
|
-
"onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => form.value.statement = $event)
|
|
605
|
-
}, null, 8, ["modelValue"])
|
|
606
|
-
]),
|
|
607
|
-
_: 1
|
|
608
|
-
}),
|
|
609
619
|
createVNode(unref(FormItem), {
|
|
610
620
|
key: "ori_count",
|
|
611
621
|
class: "horizontal",
|
package/es/index.css
CHANGED
|
@@ -2610,11 +2610,11 @@
|
|
|
2610
2610
|
-webkit-line-clamp: 2;
|
|
2611
2611
|
-webkit-box-orient: vertical;
|
|
2612
2612
|
}
|
|
2613
|
-
.medialist-doc-item-view .info-view .title:hover {
|
|
2613
|
+
.medialist-doc-item-view .info-view .title .text:hover {
|
|
2614
2614
|
color: #4886ff;
|
|
2615
2615
|
text-decoration: underline;
|
|
2616
2616
|
}
|
|
2617
|
-
.medialist-doc-item-view .info-view .title:hover .index {
|
|
2617
|
+
.medialist-doc-item-view .info-view .title .text:hover .index {
|
|
2618
2618
|
text-decoration: unset;
|
|
2619
2619
|
}
|
|
2620
2620
|
.medialist-doc-item-view .info-view .abttrite-v {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, provide, computed, watch, nextTick, openBlock, createElementBlock, createCommentVNode, createElementVNode, normalizeClass, normalizeStyle, toDisplayString, Fragment, renderList, createBlock, createVNode, unref, withCtx, createTextVNode } from "vue";
|
|
2
2
|
import { RadioGroup, Radio, Switch } from "@arco-design/web-vue";
|
|
3
|
-
import { docThumbObjMap, docThumbArrMap
|
|
3
|
+
import { docThumbObjMap, docThumbArrMap } from "../utils/doc.js";
|
|
4
4
|
import _sfc_main$3 from "../resourceModal/component.js";
|
|
5
5
|
import _sfc_main$4 from "../imageCrop/component.js";
|
|
6
6
|
import _sfc_main$1 from "./components/card.js";
|
|
@@ -87,7 +87,7 @@ const _sfc_main = defineComponent({
|
|
|
87
87
|
const emit = __emit;
|
|
88
88
|
const props = __props;
|
|
89
89
|
const BASE_API = props.BASE_API || DEFAULT_BASE_API;
|
|
90
|
-
|
|
90
|
+
ref(props.cropper || false);
|
|
91
91
|
const oldData = ref(null);
|
|
92
92
|
const styleData = ref({});
|
|
93
93
|
const thumbBannerModel = ref("banner");
|
|
@@ -242,64 +242,29 @@ const _sfc_main = defineComponent({
|
|
|
242
242
|
].includes(series);
|
|
243
243
|
});
|
|
244
244
|
const submitCallback = (data) => {
|
|
245
|
-
|
|
246
|
-
const isPcBaner = props.mode === "doc" && thumbBannerModel.value === "pcBanner" && !docSeriesShowTopThemeColor.value;
|
|
247
|
-
const _useCropper = ["thumb", "doc"].includes(props.mode) ? true : useCropper.value;
|
|
248
|
-
if (["smiple", "thumbs"].includes(props.mode)) {
|
|
249
|
-
dialogMediaSelectionShow.value = false;
|
|
250
|
-
const media = data[0];
|
|
251
|
-
const temp = JSON.parse(JSON.stringify(styleData.value.data || []));
|
|
252
|
-
temp[thumbOptionIndex.value] = { url: media.url, thumb: media.url };
|
|
253
|
-
styleData.value.data = temp;
|
|
254
|
-
callback(styleData.value);
|
|
255
|
-
} else if (isPcBaner || !_useCropper) {
|
|
256
|
-
dialogMediaSelectionShow.value = false;
|
|
245
|
+
if (thumbBannerModel.value === "pc_banner" && !docSeriesShowTopThemeColor.value) {
|
|
257
246
|
data.map(async (media) => {
|
|
258
247
|
const { width, height } = await loadImage(media.url);
|
|
259
248
|
styleData.value.pc_banner_url = `${media.url}?width=${width}&height=${height}`;
|
|
260
249
|
styleData.value.pc_banner_url_info = JSON.stringify({ width, height });
|
|
261
|
-
callback(styleData.value);
|
|
262
|
-
return media;
|
|
263
250
|
});
|
|
264
|
-
} else {
|
|
265
|
-
|
|
266
|
-
if (
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
}
|
|
272
|
-
if (thumbBannerModel.value === "thumb") {
|
|
273
|
-
aspectRatioProp.value = ((_c = props.cropperRatios) == null ? void 0 : _c[0]) || docThumbRatioMap()[model.value];
|
|
274
|
-
if (data.length) {
|
|
275
|
-
const media = data[0];
|
|
276
|
-
const wh = [];
|
|
277
|
-
(_d = media.metas) == null ? void 0 : _d.map((item) => {
|
|
278
|
-
if (item.key === "width")
|
|
279
|
-
wh.unshift(parseInt(item.value, 10));
|
|
280
|
-
if (item.key === "height")
|
|
281
|
-
wh.push(parseInt(item.value, 10));
|
|
282
|
-
return item;
|
|
283
|
-
});
|
|
284
|
-
if (wh.length === 2 && Math.abs(wh[0] / wh[1] - curtemplate.value.ratio) <= 0.05) {
|
|
285
|
-
const [width, height] = wh;
|
|
286
|
-
const temp = JSON.parse(JSON.stringify(styleData.value.data || []));
|
|
287
|
-
temp[thumbOptionIndex.value] = {
|
|
288
|
-
url: `${media.url}?width=${width}&height=${height}`,
|
|
289
|
-
thumb: `${media.url}?width=${width}&height=${height}`
|
|
290
|
-
};
|
|
291
|
-
styleData.value.data = temp;
|
|
292
|
-
callback(styleData.value);
|
|
293
|
-
dialogMediaSelectionShow.value = false;
|
|
294
|
-
return false;
|
|
295
|
-
}
|
|
296
|
-
}
|
|
251
|
+
} else if (thumbBannerModel.value === "thumb") {
|
|
252
|
+
let temp = [];
|
|
253
|
+
if (model.value === "1") {
|
|
254
|
+
temp = JSON.parse(JSON.stringify(styleData.value.data));
|
|
255
|
+
temp[thumbOptionIndex.value] = { url: data[0].url, thumb: data[0].url };
|
|
256
|
+
} else {
|
|
257
|
+
temp = [{ url: data[0].url, thumb: data[0].url }];
|
|
297
258
|
}
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
259
|
+
styleData.value.data = temp;
|
|
260
|
+
} else if (thumbBannerModel.value === "banner") {
|
|
261
|
+
styleData.value.banner_url = data[0].url;
|
|
262
|
+
} else {
|
|
263
|
+
styleData.value.top_image_url = data[0].url;
|
|
264
|
+
styleData.value.pc_banner_url = data[0].url;
|
|
301
265
|
}
|
|
302
|
-
|
|
266
|
+
callback(styleData.value);
|
|
267
|
+
dialogMediaSelectionShow.value = false;
|
|
303
268
|
};
|
|
304
269
|
const cropConfirm = (data) => {
|
|
305
270
|
dialogMediaSelectionShow.value = false;
|
package/es/utils/doc.js
CHANGED
|
@@ -44,14 +44,6 @@ const docThumbObjMap = {
|
|
|
44
44
|
5: { alias: "\u7AD6\u56FE", maxLength: 1, value: "5", ratioStr: "3:4", ratio: 3 / 4 },
|
|
45
45
|
7: { alias: "\u7A84\u56FE", maxLength: 1, value: "7", ratioStr: "4:1", ratio: 4 / 1 }
|
|
46
46
|
};
|
|
47
|
-
const docThumbRatioMap = () => {
|
|
48
|
-
const obj = {};
|
|
49
|
-
Object.keys(docThumbObjMap).map((key) => {
|
|
50
|
-
obj[key] = docThumbObjMap[key].ratio;
|
|
51
|
-
return {};
|
|
52
|
-
});
|
|
53
|
-
return obj;
|
|
54
|
-
};
|
|
55
47
|
const docThumbArrMap = () => {
|
|
56
48
|
return Object.values(docThumbObjMap);
|
|
57
49
|
};
|
|
@@ -115,4 +107,4 @@ function getDocThumb(item) {
|
|
|
115
107
|
}
|
|
116
108
|
return item.cover && item.cover.data && item.cover.data[0] && item.cover.data[0].thumb;
|
|
117
109
|
}
|
|
118
|
-
export { approvalItem, docPubStateMap, docSeries, docStateMap, docThumbArrMap, docThumbMap, docThumbObjMap,
|
|
110
|
+
export { approvalItem, docPubStateMap, docSeries, docStateMap, docThumbArrMap, docThumbMap, docThumbObjMap, docThumbTypeMap, getDocThumb, stateOptions, typeOptions };
|
|
@@ -15,20 +15,21 @@ const _hoisted_2 = {
|
|
|
15
15
|
};
|
|
16
16
|
const _hoisted_3 = { class: "batch-select" };
|
|
17
17
|
const _hoisted_4 = { class: "info-view" };
|
|
18
|
-
const _hoisted_5 = { class: "
|
|
19
|
-
const _hoisted_6 = { class: "
|
|
20
|
-
const _hoisted_7 = { class: "
|
|
21
|
-
const _hoisted_8 = {
|
|
22
|
-
const _hoisted_9 =
|
|
23
|
-
const _hoisted_10 =
|
|
24
|
-
const _hoisted_11 = {
|
|
25
|
-
const _hoisted_12 = {
|
|
26
|
-
const _hoisted_13 =
|
|
27
|
-
const _hoisted_14 = {
|
|
18
|
+
const _hoisted_5 = { class: "title" };
|
|
19
|
+
const _hoisted_6 = { class: "abttrite-v" };
|
|
20
|
+
const _hoisted_7 = { class: "left" };
|
|
21
|
+
const _hoisted_8 = { class: "tags" };
|
|
22
|
+
const _hoisted_9 = { key: 0 };
|
|
23
|
+
const _hoisted_10 = /* @__PURE__ */ vue.createElementVNode("span", null, "\u5BA1\u6838\u72B6\u6001: ", -1);
|
|
24
|
+
const _hoisted_11 = { key: 1 };
|
|
25
|
+
const _hoisted_12 = { class: "abttr" };
|
|
26
|
+
const _hoisted_13 = { style: { "font-size": "14px", "margin-bottom": "5px", "font-weight": "bold" } };
|
|
27
|
+
const _hoisted_14 = /* @__PURE__ */ vue.createElementVNode("span", { style: { "font-size": "10px" } }, "\u540C\u65F6\u53D1\u5E03\u5230:", -1);
|
|
28
|
+
const _hoisted_15 = {
|
|
28
29
|
key: 1,
|
|
29
30
|
style: { "font-size": "10px" }
|
|
30
31
|
};
|
|
31
|
-
const
|
|
32
|
+
const _hoisted_16 = { class: "right" };
|
|
32
33
|
const _sfc_main = vue.defineComponent({
|
|
33
34
|
__name: "index",
|
|
34
35
|
props: {
|
|
@@ -117,25 +118,25 @@ const _sfc_main = vue.defineComponent({
|
|
|
117
118
|
}, vue.toDisplayString(localLiveStatus.value.label), 5)) : vue.createCommentVNode("v-if", true)
|
|
118
119
|
]),
|
|
119
120
|
vue.createElementVNode("div", _hoisted_4, [
|
|
120
|
-
vue.createElementVNode("div",
|
|
121
|
-
class: "title",
|
|
122
|
-
onClick: clickTitle
|
|
123
|
-
}, [
|
|
121
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
124
122
|
vue.createVNode(index$1, {
|
|
125
123
|
item: _ctx.item,
|
|
126
124
|
BASE_API: _ctx.BASE_API
|
|
127
125
|
}, null, 8, ["item", "BASE_API"]),
|
|
128
126
|
vue.renderSlot(_ctx.$slots, "index"),
|
|
129
|
-
vue.
|
|
127
|
+
vue.createElementVNode("span", {
|
|
128
|
+
class: "text",
|
|
129
|
+
onClick: clickTitle
|
|
130
|
+
}, vue.toDisplayString(_ctx.item.alias || _ctx.item.title), 1)
|
|
130
131
|
]),
|
|
131
|
-
vue.createElementVNode("div",
|
|
132
|
-
vue.createElementVNode("div",
|
|
132
|
+
vue.createElementVNode("div", _hoisted_6, [
|
|
133
|
+
vue.createElementVNode("div", _hoisted_7, [
|
|
133
134
|
vue.createVNode(component, {
|
|
134
135
|
class: "icon",
|
|
135
136
|
doc: true,
|
|
136
137
|
type: _ctx.item.series
|
|
137
138
|
}, null, 8, ["type"]),
|
|
138
|
-
vue.createElementVNode("span",
|
|
139
|
+
vue.createElementVNode("span", _hoisted_8, [
|
|
139
140
|
showDataTags.value ? (vue.openBlock(), vue.createBlock(component$1, {
|
|
140
141
|
key: 0,
|
|
141
142
|
item: _ctx.item
|
|
@@ -145,15 +146,15 @@ const _sfc_main = vue.defineComponent({
|
|
|
145
146
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.abttrites, (column, i) => {
|
|
146
147
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: i }, [
|
|
147
148
|
vue.createCommentVNode(" \u5BA1\u6838\u72B6\u6001 "),
|
|
148
|
-
column.key === "approval_status" ? (vue.openBlock(), vue.createElementBlock("span",
|
|
149
|
-
|
|
149
|
+
column.key === "approval_status" ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_9, [
|
|
150
|
+
_hoisted_10,
|
|
150
151
|
vue.unref(doc.approvalItem)(_ctx.item) ? (vue.openBlock(), vue.createBlock(index$2, {
|
|
151
152
|
key: 0,
|
|
152
153
|
item: vue.unref(doc.approvalItem)(_ctx.item)
|
|
153
|
-
}, null, 8, ["item"])) : (vue.openBlock(), vue.createElementBlock("span",
|
|
154
|
+
}, null, 8, ["item"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_11, "--"))
|
|
154
155
|
])) : column.key === "state" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
155
156
|
vue.createCommentVNode(" \u72B6\u6001 "),
|
|
156
|
-
vue.createElementVNode("span",
|
|
157
|
+
vue.createElementVNode("span", _hoisted_12, [
|
|
157
158
|
vue.createVNode(vue.unref(webVue.Tooltip), {
|
|
158
159
|
content: `\u72B6\u6001: ${vue.unref(doc.docStateMap)[_ctx.item.state]}`,
|
|
159
160
|
position: "top"
|
|
@@ -173,12 +174,12 @@ const _sfc_main = vue.defineComponent({
|
|
|
173
174
|
}, {
|
|
174
175
|
content: vue.withCtx(() => [
|
|
175
176
|
_ctx.item.other_categories ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
176
|
-
vue.createElementVNode("div",
|
|
177
|
+
vue.createElementVNode("div", _hoisted_13, "\u680F\u76EE: " + vue.toDisplayString(_ctx.item.primary_category || "--"), 1),
|
|
177
178
|
vue.createElementVNode("span", null, [
|
|
178
|
-
|
|
179
|
+
_hoisted_14,
|
|
179
180
|
vue.createTextVNode(" " + vue.toDisplayString(_ctx.item.other_categories.join("\u3001")), 1)
|
|
180
181
|
])
|
|
181
|
-
], 64)) : (vue.openBlock(), vue.createElementBlock("div",
|
|
182
|
+
], 64)) : (vue.openBlock(), vue.createElementBlock("div", _hoisted_15, "\u680F\u76EE: " + vue.toDisplayString(_ctx.item.primary_category || "--"), 1))
|
|
182
183
|
]),
|
|
183
184
|
default: vue.withCtx(() => [
|
|
184
185
|
vue.createVNode(vue.unref(webVue.Button), {
|
|
@@ -230,7 +231,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
230
231
|
], 64);
|
|
231
232
|
}), 128))
|
|
232
233
|
]),
|
|
233
|
-
vue.createElementVNode("div",
|
|
234
|
+
vue.createElementVNode("div", _hoisted_16, [
|
|
234
235
|
vue.renderSlot(_ctx.$slots, "option", { row: _ctx.item })
|
|
235
236
|
])
|
|
236
237
|
])
|
|
@@ -32,7 +32,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
32
32
|
return (_ctx, _cache) => {
|
|
33
33
|
return vue.openBlock(), vue.createBlock(vue.unref(webVue.Popover), {
|
|
34
34
|
position: "bottom",
|
|
35
|
-
trigger: "
|
|
35
|
+
trigger: "click",
|
|
36
36
|
onShow: openPopover,
|
|
37
37
|
onHide: _cache[1] || (_cache[1] = ($event) => showQR.value = false)
|
|
38
38
|
}, {
|
|
@@ -47,16 +47,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
47
47
|
]),
|
|
48
48
|
default: vue.withCtx(() => [
|
|
49
49
|
vue.createElementVNode("section", _hoisted_1, [
|
|
50
|
-
vue.createVNode(vue.unref(
|
|
51
|
-
effect: "dark",
|
|
52
|
-
content: "\u70B9\u51FB\u53EF\u67E5\u770B\u5185\u5BB9\u5206\u4EAB\u4E8C\u7EF4\u7801",
|
|
53
|
-
position: "top"
|
|
54
|
-
}, {
|
|
55
|
-
default: vue.withCtx(() => [
|
|
56
|
-
vue.createVNode(vue.unref(icon.IconQrcode))
|
|
57
|
-
]),
|
|
58
|
-
_: 1
|
|
59
|
-
})
|
|
50
|
+
vue.createVNode(vue.unref(icon.IconQrcode))
|
|
60
51
|
])
|
|
61
52
|
]),
|
|
62
53
|
_: 1
|
|
@@ -77,12 +77,14 @@
|
|
|
77
77
|
-webkit-line-clamp: 2;
|
|
78
78
|
-webkit-box-orient: vertical;
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
80
|
+
.text {
|
|
81
|
+
&:hover {
|
|
82
|
+
color: #4886ff;
|
|
83
|
+
text-decoration: underline;
|
|
83
84
|
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
.index {
|
|
86
|
+
text-decoration: unset;
|
|
87
|
+
}
|
|
86
88
|
}
|
|
87
89
|
}
|
|
88
90
|
}
|
|
@@ -583,11 +583,11 @@
|
|
|
583
583
|
-webkit-line-clamp: 2;
|
|
584
584
|
-webkit-box-orient: vertical;
|
|
585
585
|
}
|
|
586
|
-
.medialist-doc-item-view .info-view .title:hover {
|
|
586
|
+
.medialist-doc-item-view .info-view .title .text:hover {
|
|
587
587
|
color: #4886ff;
|
|
588
588
|
text-decoration: underline;
|
|
589
589
|
}
|
|
590
|
-
.medialist-doc-item-view .info-view .title:hover .index {
|
|
590
|
+
.medialist-doc-item-view .info-view .title .text:hover .index {
|
|
591
591
|
text-decoration: unset;
|
|
592
592
|
}
|
|
593
593
|
.medialist-doc-item-view .info-view .abttrite-v {
|
|
@@ -119,6 +119,15 @@ const _sfc_main = vue.defineComponent({
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
|
+
const defaultSourceValue = vue.computed(() => {
|
|
123
|
+
const defaultValue = SourceInfo.value.find((x) => x.default);
|
|
124
|
+
return defaultValue ? defaultValue.value : "";
|
|
125
|
+
});
|
|
126
|
+
const changeStatement = (val) => {
|
|
127
|
+
if (val && defaultSourceValue.value) {
|
|
128
|
+
form.value.source = defaultSourceValue.value;
|
|
129
|
+
}
|
|
130
|
+
};
|
|
122
131
|
const lineTimeChange = () => {
|
|
123
132
|
form.value.online_time = "";
|
|
124
133
|
form.value.offline_time = "";
|
|
@@ -444,6 +453,21 @@ const _sfc_main = vue.defineComponent({
|
|
|
444
453
|
]),
|
|
445
454
|
_: 1
|
|
446
455
|
}),
|
|
456
|
+
vue.createVNode(vue.unref(webVue.FormItem), {
|
|
457
|
+
key: "statement",
|
|
458
|
+
class: "horizontal",
|
|
459
|
+
field: "statement",
|
|
460
|
+
label: "\u539F\u521B\u58F0\u660E"
|
|
461
|
+
}, {
|
|
462
|
+
default: vue.withCtx(() => [
|
|
463
|
+
vue.createVNode(vue.unref(webVue.Switch), {
|
|
464
|
+
modelValue: form.value.statement,
|
|
465
|
+
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => form.value.statement = $event),
|
|
466
|
+
onChange: changeStatement
|
|
467
|
+
}, null, 8, ["modelValue"])
|
|
468
|
+
]),
|
|
469
|
+
_: 1
|
|
470
|
+
}),
|
|
447
471
|
vue.createVNode(vue.unref(webVue.FormItem), {
|
|
448
472
|
key: "source_url",
|
|
449
473
|
field: "source_url",
|
|
@@ -452,7 +476,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
452
476
|
default: vue.withCtx(() => [
|
|
453
477
|
vue.createVNode(vue.unref(webVue.Input), {
|
|
454
478
|
modelValue: form.value.source_url,
|
|
455
|
-
"onUpdate:modelValue": _cache[
|
|
479
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => form.value.source_url = $event),
|
|
456
480
|
"allow-clear": "",
|
|
457
481
|
class: "input-w",
|
|
458
482
|
placeholder: "\u586B\u5199\u6765\u6E90URL"
|
|
@@ -468,7 +492,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
468
492
|
default: vue.withCtx(() => [
|
|
469
493
|
vue.createVNode(vue.unref(webVue.Input), {
|
|
470
494
|
modelValue: form.value.author,
|
|
471
|
-
"onUpdate:modelValue": _cache[
|
|
495
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => form.value.author = $event),
|
|
472
496
|
"allow-clear": "",
|
|
473
497
|
class: "input-w",
|
|
474
498
|
placeholder: "\u586B\u5199\u4F5C\u8005"
|
|
@@ -484,7 +508,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
484
508
|
default: vue.withCtx(() => [
|
|
485
509
|
vue.createVNode(vue.unref(webVue.Select), {
|
|
486
510
|
modelValue: form.value.duty_editor,
|
|
487
|
-
"onUpdate:modelValue": _cache[
|
|
511
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => form.value.duty_editor = $event),
|
|
488
512
|
class: "input-w",
|
|
489
513
|
multiple: "",
|
|
490
514
|
placeholder: "\u8BBE\u7F6E\u7F16\u8F91"
|
|
@@ -511,7 +535,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
511
535
|
default: vue.withCtx(() => [
|
|
512
536
|
vue.createVNode(vue.unref(webVue.InputTag), {
|
|
513
537
|
modelValue: form.value.extra_attrs,
|
|
514
|
-
"onUpdate:modelValue": _cache[
|
|
538
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => form.value.extra_attrs = $event),
|
|
515
539
|
"allow-clear": "",
|
|
516
540
|
class: "input-w",
|
|
517
541
|
placeholder: "\u8BBE\u7F6E\u81EA\u5B9A\u4E49\u5C5E\u6027"
|
|
@@ -528,7 +552,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
528
552
|
default: vue.withCtx(() => [
|
|
529
553
|
vue.createVNode(vue.unref(webVue.DatePicker), {
|
|
530
554
|
modelValue: form.value.self_publish_time,
|
|
531
|
-
"onUpdate:modelValue": _cache[
|
|
555
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => form.value.self_publish_time = $event),
|
|
532
556
|
"time-picker-props": { defaultValue: "12:00:00" },
|
|
533
557
|
placeholder: "\u9009\u62E9\u81EA\u5B9A\u4E49\u53D1\u5E03\u65F6\u95F4",
|
|
534
558
|
"show-time": "",
|
|
@@ -546,7 +570,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
546
570
|
default: vue.withCtx(() => [
|
|
547
571
|
vue.createVNode(vue.unref(webVue.Switch), {
|
|
548
572
|
modelValue: form.value.line_time,
|
|
549
|
-
"onUpdate:modelValue": _cache[
|
|
573
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => form.value.line_time = $event),
|
|
550
574
|
onChange: lineTimeChange
|
|
551
575
|
}, null, 8, ["modelValue"])
|
|
552
576
|
]),
|
|
@@ -562,7 +586,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
562
586
|
default: vue.withCtx(() => [
|
|
563
587
|
vue.createVNode(vue.unref(webVue.DatePicker), {
|
|
564
588
|
modelValue: form.value.online_time,
|
|
565
|
-
"onUpdate:modelValue": _cache[
|
|
589
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => form.value.online_time = $event),
|
|
566
590
|
"disabled-date": disabledStartTime,
|
|
567
591
|
"time-picker-props": { defaultValue: "12:00:00" },
|
|
568
592
|
disabled: disabledDatePickerOnlineTime.value,
|
|
@@ -582,7 +606,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
582
606
|
default: vue.withCtx(() => [
|
|
583
607
|
vue.createVNode(vue.unref(webVue.DatePicker), {
|
|
584
608
|
modelValue: form.value.offline_time,
|
|
585
|
-
"onUpdate:modelValue": _cache[
|
|
609
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => form.value.offline_time = $event),
|
|
586
610
|
"disabled-date": disabledEndTime,
|
|
587
611
|
"time-picker-props": { defaultValue: "12:00:00" },
|
|
588
612
|
placeholder: "\u9009\u62E9\u4E0B\u7EBF\u65F6\u95F4",
|
|
@@ -593,20 +617,6 @@ const _sfc_main = vue.defineComponent({
|
|
|
593
617
|
_: 1
|
|
594
618
|
})
|
|
595
619
|
], 64)) : vue.createCommentVNode("v-if", true),
|
|
596
|
-
vue.createVNode(vue.unref(webVue.FormItem), {
|
|
597
|
-
key: "statement",
|
|
598
|
-
class: "horizontal",
|
|
599
|
-
field: "statement",
|
|
600
|
-
label: "\u539F\u521B\u58F0\u660E"
|
|
601
|
-
}, {
|
|
602
|
-
default: vue.withCtx(() => [
|
|
603
|
-
vue.createVNode(vue.unref(webVue.Switch), {
|
|
604
|
-
modelValue: form.value.statement,
|
|
605
|
-
"onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => form.value.statement = $event)
|
|
606
|
-
}, null, 8, ["modelValue"])
|
|
607
|
-
]),
|
|
608
|
-
_: 1
|
|
609
|
-
}),
|
|
610
620
|
vue.createVNode(vue.unref(webVue.FormItem), {
|
|
611
621
|
key: "ori_count",
|
|
612
622
|
class: "horizontal",
|
package/lib/index.css
CHANGED
|
@@ -2610,11 +2610,11 @@
|
|
|
2610
2610
|
-webkit-line-clamp: 2;
|
|
2611
2611
|
-webkit-box-orient: vertical;
|
|
2612
2612
|
}
|
|
2613
|
-
.medialist-doc-item-view .info-view .title:hover {
|
|
2613
|
+
.medialist-doc-item-view .info-view .title .text:hover {
|
|
2614
2614
|
color: #4886ff;
|
|
2615
2615
|
text-decoration: underline;
|
|
2616
2616
|
}
|
|
2617
|
-
.medialist-doc-item-view .info-view .title:hover .index {
|
|
2617
|
+
.medialist-doc-item-view .info-view .title .text:hover .index {
|
|
2618
2618
|
text-decoration: unset;
|
|
2619
2619
|
}
|
|
2620
2620
|
.medialist-doc-item-view .info-view .abttrite-v {
|