@cmstops/pro-compo 0.1.19 → 0.1.21
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 +65 -11
- package/dist/index.min.css +1 -1
- package/es/contentDetailList/component.js +142 -51
- package/es/contentDetailList/components/Content/index.js +218 -239
- package/es/contentDetailList/components/Doc/index.js +24 -35
- package/es/contentDetailList/style/Content.less +1 -1
- package/es/contentDetailList/style/ContentListItem.less +1 -4
- package/es/contentDetailList/style/Doc.less +1 -5
- package/es/contentDetailList/style/DocItem.less +1 -0
- package/es/contentDetailList/style/index.css +10 -11
- package/es/contentModal/component.js +0 -1
- package/es/contentModal/components/ViewAllColumn/index.js +1 -0
- package/es/editMetaInfo/component.d.ts +0 -0
- package/es/editMetaInfo/component.js +87 -0
- package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
- package/es/editMetaInfo/components/metaInfoForm.js +621 -0
- package/es/editMetaInfo/index.d.ts +2 -0
- package/es/editMetaInfo/index.js +7 -0
- package/es/editMetaInfo/script/api.d.ts +6 -0
- package/es/editMetaInfo/script/api.js +17 -0
- package/es/editMetaInfo/script/restaurants.d.ts +4 -0
- package/es/editMetaInfo/script/restaurants.js +127 -0
- package/es/editMetaInfo/style/css.js +1 -0
- package/es/editMetaInfo/style/index.css +20 -0
- package/es/editMetaInfo/style/index.d.ts +1 -0
- package/es/editMetaInfo/style/index.js +1 -0
- package/es/editMetaInfo/style/index.less +30 -0
- package/es/hooks/dialogVisible.d.ts +8 -0
- package/es/hooks/dialogVisible.js +19 -0
- package/es/index.css +65 -11
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/index.less +1 -0
- package/es/selectThumb/component.js +3 -1
- package/es/selectThumb/components/colorPalette.js +32 -26
- package/es/selectThumb/components/colorPicker.d.ts +0 -0
- package/es/selectThumb/components/colorPicker.js +54 -0
- package/es/selectThumb/style/colorPalette.less +31 -0
- package/es/selectThumb/style/index.css +35 -0
- package/es/selectThumb/style/index.less +7 -0
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +16 -1
- package/lib/contentDetailList/component.js +145 -50
- package/lib/contentDetailList/components/Content/index.js +217 -242
- package/lib/contentDetailList/components/Doc/index.js +23 -34
- package/lib/contentDetailList/style/Content.less +1 -1
- package/lib/contentDetailList/style/ContentListItem.less +1 -4
- package/lib/contentDetailList/style/Doc.less +1 -5
- package/lib/contentDetailList/style/DocItem.less +1 -0
- package/lib/contentDetailList/style/index.css +10 -11
- package/lib/contentModal/component.js +0 -1
- package/lib/contentModal/components/ViewAllColumn/index.js +1 -0
- package/lib/editMetaInfo/component.js +88 -0
- package/lib/editMetaInfo/components/metaInfoForm.js +622 -0
- package/lib/editMetaInfo/index.js +8 -0
- package/lib/editMetaInfo/script/api.js +20 -0
- package/lib/editMetaInfo/script/restaurants.js +128 -0
- package/lib/editMetaInfo/style/css.js +2 -0
- package/lib/editMetaInfo/style/index.css +20 -0
- package/lib/editMetaInfo/style/index.js +2 -0
- package/lib/editMetaInfo/style/index.less +30 -0
- package/lib/hooks/dialogVisible.js +20 -0
- package/lib/index.css +65 -11
- package/lib/index.js +2 -0
- package/lib/index.less +1 -0
- package/lib/selectThumb/component.js +3 -1
- package/lib/selectThumb/components/colorPalette.js +32 -26
- package/lib/selectThumb/components/colorPicker.js +55 -0
- package/lib/selectThumb/style/colorPalette.less +31 -0
- package/lib/selectThumb/style/index.css +35 -0
- package/lib/selectThumb/style/index.less +7 -0
- package/lib/utils/index.js +16 -0
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
.content-
|
|
1
|
+
.content-detail-list-container *::selection {
|
|
2
2
|
display: none;
|
|
3
3
|
}
|
|
4
|
-
.content-
|
|
4
|
+
.content-detail-list-container .fix_position {
|
|
5
5
|
position: relative;
|
|
6
6
|
margin-right: 10px;
|
|
7
7
|
color: #4886ff;
|
|
8
8
|
}
|
|
9
|
-
.content-
|
|
9
|
+
.content-detail-list-container .fix_position .doc-fixed-num {
|
|
10
10
|
position: absolute;
|
|
11
11
|
right: -7px;
|
|
12
12
|
bottom: 0;
|
|
13
13
|
color: #bababa;
|
|
14
14
|
font-size: 12px;
|
|
15
15
|
}
|
|
16
|
-
.content-
|
|
16
|
+
.content-detail-list-container .index {
|
|
17
17
|
display: inline-block;
|
|
18
18
|
flex-shrink: 0;
|
|
19
19
|
box-sizing: border-box;
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
background: #edf3ff;
|
|
29
29
|
border-radius: 3px;
|
|
30
30
|
}
|
|
31
|
-
.content-
|
|
32
|
-
.content-
|
|
31
|
+
.content-detail-list-container .d_time,
|
|
32
|
+
.content-detail-list-container .add_new {
|
|
33
33
|
margin: 0;
|
|
34
34
|
margin-right: 10px;
|
|
35
35
|
font-size: 14px;
|
|
36
36
|
vertical-align: middle;
|
|
37
37
|
}
|
|
38
|
-
.content-
|
|
38
|
+
.content-detail-list-container .d_time {
|
|
39
39
|
color: #7da8ff;
|
|
40
40
|
}
|
|
41
41
|
.medialist-component-item-view {
|
|
@@ -157,6 +157,7 @@
|
|
|
157
157
|
padding: 2px 0;
|
|
158
158
|
}
|
|
159
159
|
.medialist-component-item-view .info-view .title {
|
|
160
|
+
width: calc(100% - 50px);
|
|
160
161
|
display: flex;
|
|
161
162
|
align-items: center;
|
|
162
163
|
margin-bottom: 10px;
|
|
@@ -534,12 +535,9 @@
|
|
|
534
535
|
.medialist-account-item-view .info-view .abttrite-v .right {
|
|
535
536
|
margin-right: 20px;
|
|
536
537
|
}
|
|
537
|
-
.
|
|
538
|
+
.content-detail-list-container {
|
|
538
539
|
width: 100%;
|
|
539
540
|
}
|
|
540
|
-
.media-common-detail-list-container .data-ul {
|
|
541
|
-
height: 100%;
|
|
542
|
-
}
|
|
543
541
|
.medialist-doc-item-view {
|
|
544
542
|
display: flex;
|
|
545
543
|
padding: 10px;
|
|
@@ -588,6 +586,7 @@
|
|
|
588
586
|
padding: 2px 0;
|
|
589
587
|
}
|
|
590
588
|
.medialist-doc-item-view .info-view .title {
|
|
589
|
+
width: calc(100% - 50px);
|
|
591
590
|
display: flex;
|
|
592
591
|
align-items: center;
|
|
593
592
|
margin-bottom: 10px;
|
|
@@ -54,7 +54,6 @@ const _sfc_main = vue.defineComponent({
|
|
|
54
54
|
};
|
|
55
55
|
const { userInfo, getUserInfoHandle } = user["default"](BASE_API);
|
|
56
56
|
const HandleOpen = () => {
|
|
57
|
-
console.log(props.outsideSelectData);
|
|
58
57
|
selectedData.value = props.defaultSelectedData || [];
|
|
59
58
|
};
|
|
60
59
|
const HandleClose = () => {
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var vue = require("vue");
|
|
3
|
+
var webVue = require("@arco-design/web-vue");
|
|
4
|
+
var api = require("./script/api.js");
|
|
5
|
+
var metaInfoForm = require("./components/metaInfoForm.js");
|
|
6
|
+
var dialogVisible = require("../hooks/dialogVisible.js");
|
|
7
|
+
var config = require("../config.js");
|
|
8
|
+
const _hoisted_1 = { class: "edit-meta-info-container" };
|
|
9
|
+
const _hoisted_2 = { style: { "padding": "20px" } };
|
|
10
|
+
const _sfc_main = vue.defineComponent({
|
|
11
|
+
...{ name: "editMetaInfo" },
|
|
12
|
+
__name: "component",
|
|
13
|
+
props: {
|
|
14
|
+
BASE_API: {},
|
|
15
|
+
visible: { type: Boolean },
|
|
16
|
+
hashId: {}
|
|
17
|
+
},
|
|
18
|
+
emits: ["update:visible", "submit"],
|
|
19
|
+
setup(__props, { emit }) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const metaInfoFormRef = vue.ref();
|
|
22
|
+
const editorDataPubInfo = vue.ref(null);
|
|
23
|
+
const BASE_API = props.BASE_API || config.DEFAULT_BASE_API;
|
|
24
|
+
const handleOpen = async () => {
|
|
25
|
+
if (props.hashId) {
|
|
26
|
+
const { code, message } = await api.getDocDetailsNew(BASE_API, {
|
|
27
|
+
hashid: props.hashId
|
|
28
|
+
});
|
|
29
|
+
if (code === 0) {
|
|
30
|
+
editorDataPubInfo.value = {
|
|
31
|
+
id: message.id,
|
|
32
|
+
title: message.title,
|
|
33
|
+
series: message.series,
|
|
34
|
+
...message.meta
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const { visible, setVisible } = dialogVisible(props, emit);
|
|
40
|
+
const handleOk = async () => {
|
|
41
|
+
const meta = await metaInfoFormRef.value.getFormData("valid");
|
|
42
|
+
if (meta) {
|
|
43
|
+
const data = { id: editorDataPubInfo.value.id, meta };
|
|
44
|
+
emit("submit", data);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const handleCancel = () => {
|
|
48
|
+
setVisible(false);
|
|
49
|
+
};
|
|
50
|
+
return (_ctx, _cache) => {
|
|
51
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
52
|
+
vue.createVNode(vue.unref(webVue.Modal), {
|
|
53
|
+
visible: vue.unref(visible),
|
|
54
|
+
width: "800px",
|
|
55
|
+
"mask-closable": false,
|
|
56
|
+
"title-align": "start",
|
|
57
|
+
"body-class": "edit-meta-info-dialog-body",
|
|
58
|
+
"unmount-on-close": "",
|
|
59
|
+
title: "\u7F16\u8F91\u7A3F\u7B7E",
|
|
60
|
+
onOpen: handleOpen,
|
|
61
|
+
onOk: handleOk,
|
|
62
|
+
onCancel: handleCancel
|
|
63
|
+
}, {
|
|
64
|
+
default: vue.withCtx(() => [
|
|
65
|
+
vue.createVNode(vue.unref(webVue.Scrollbar), {
|
|
66
|
+
"outer-style": "height: 60vh; overflow: auto",
|
|
67
|
+
style: { "height": "100%", "overflow": "auto" }
|
|
68
|
+
}, {
|
|
69
|
+
default: vue.withCtx(() => [
|
|
70
|
+
vue.createElementVNode("div", _hoisted_2, [
|
|
71
|
+
vue.createVNode(metaInfoForm, {
|
|
72
|
+
ref_key: "metaInfoFormRef",
|
|
73
|
+
ref: metaInfoFormRef,
|
|
74
|
+
BASE_API: vue.unref(BASE_API),
|
|
75
|
+
"init-data": editorDataPubInfo.value
|
|
76
|
+
}, null, 8, ["BASE_API", "init-data"])
|
|
77
|
+
])
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
})
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
}, 8, ["visible"])
|
|
84
|
+
]);
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
module.exports = _sfc_main;
|