@maketribe/ms-app 3.2.34 → 3.2.36
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/cjs/components/basic/doc-editor/plugins/ToolbarPlugin/FontStyleDefines.js +9 -2
- package/dist/cjs/components/basic/doc-editor/plugins/ToolbarPlugin/FontStyleDefines.js.map +1 -1
- package/dist/cjs/modules/cms/composables/part-extensions.js +3 -4
- package/dist/cjs/modules/cms/composables/part-extensions.js.map +1 -1
- package/dist/cjs/modules/cms/pages/cms-contents/index.vue2.js +222 -187
- package/dist/cjs/modules/cms/pages/cms-contents/index.vue2.js.map +1 -1
- package/dist/esm/components/basic/doc-editor/plugins/ToolbarPlugin/FontStyleDefines.js +9 -2
- package/dist/esm/components/basic/doc-editor/plugins/ToolbarPlugin/FontStyleDefines.js.map +1 -1
- package/dist/esm/modules/cms/composables/part-extensions.js +3 -4
- package/dist/esm/modules/cms/composables/part-extensions.js.map +1 -1
- package/dist/esm/modules/cms/pages/cms-contents/index.vue2.js +222 -187
- package/dist/esm/modules/cms/pages/cms-contents/index.vue2.js.map +1 -1
- package/dist/style/components/basic/doc-editor/index.css +1 -1
- package/dist/style/components/index.css +1 -1
- package/dist/style/index.css +1 -1
- package/dist/style/src/components/basic/doc-editor/index.scss +1 -2
- package/dist/types/modules/cms/composables/part-extensions.d.ts +1 -1
- package/package.json +3 -3
|
@@ -2,11 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const ROOT_FONT_SIZE = 14;
|
|
4
4
|
const FONT_SIZE_OPTIONS = [];
|
|
5
|
-
|
|
6
|
-
var size = 10 + i;
|
|
5
|
+
const setFontSize = function(size) {
|
|
7
6
|
FONT_SIZE_OPTIONS.push(
|
|
8
7
|
{ value: `${Math.round(size / ROOT_FONT_SIZE * 100) / 100}rem`, label: size + "px" }
|
|
9
8
|
);
|
|
9
|
+
};
|
|
10
|
+
for (let i = 0; i < 80; i += 2) {
|
|
11
|
+
setFontSize(10 + i);
|
|
12
|
+
if (i >= 2 && i < 22) {
|
|
13
|
+
setFontSize(10 + i + 0.5);
|
|
14
|
+
setFontSize(10 + i + 1);
|
|
15
|
+
setFontSize(10 + i + 1.5);
|
|
16
|
+
}
|
|
10
17
|
}
|
|
11
18
|
const familys = "微软雅黑='微软雅黑';宋体='宋体';黑体='黑体';仿宋='仿宋';楷体='楷体';隶书='隶书';幼圆='幼圆';Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings".split(";");
|
|
12
19
|
const FONT_FAMILY_OPTIONS = [{ value: "", label: "系统字体" }].concat(familys.map((fv) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FontStyleDefines.js","sources":["../../../../../../../src/components/basic/doc-editor/plugins/ToolbarPlugin/FontStyleDefines.ts"],"sourcesContent":["\r\nexport const ROOT_FONT_SIZE = 14;\r\n\r\nexport const FONT_SIZE_OPTIONS: any[] = []\r\n\r\n//
|
|
1
|
+
{"version":3,"file":"FontStyleDefines.js","sources":["../../../../../../../src/components/basic/doc-editor/plugins/ToolbarPlugin/FontStyleDefines.ts"],"sourcesContent":["\r\nexport const ROOT_FONT_SIZE = 14;\r\n\r\nexport const FONT_SIZE_OPTIONS: any[] = []\r\n\r\n// 设置样式\r\nconst setFontSize = function(size:any){\r\n FONT_SIZE_OPTIONS.push(\r\n {value:`${Math.round(size/ROOT_FONT_SIZE * 100) / 100}rem`,label:size+\"px\"}\r\n );\r\n}\r\n\r\n// 数据初始化\r\nfor(let i=0;i<80;i+=2){\r\n setFontSize(10 + i);\r\n if(i >= 2 && i < 22){\r\n setFontSize(10 + i + 0.5);\r\n setFontSize(10 + i + 1);\r\n setFontSize(10 + i + 1.5);\r\n }\r\n}\r\n\r\nconst familys = \"微软雅黑='微软雅黑';宋体='宋体';黑体='黑体';仿宋='仿宋';楷体='楷体';隶书='隶书';幼圆='幼圆';Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings\".split(\";\")\r\n\r\n// 字体列表\r\nexport const FONT_FAMILY_OPTIONS: any[] = [{value:\"\",label:\"系统字体\"}].concat(familys.map(fv=>{\r\n let fvl = fv.split(\"=\"),label=fvl[0],value=fvl[1] || `'${label}'`;\r\n return { value,label}\r\n}))\r\n"],"names":[],"mappings":";;AACO,MAAM,iBAAiB;AAEvB,MAAM,oBAA2B,CAAC;AAGzC,MAAM,cAAc,SAAS,MAAS;AAClB,oBAAA;AAAA,IAChB,EAAC,OAAM,GAAG,KAAK,MAAM,OAAK,iBAAiB,GAAG,IAAI,GAAG,OAAM,OAAM,OAAK,KAAI;AAAA,EAAA;AAE9E;AAGA,SAAQ,IAAE,GAAE,IAAE,IAAG,KAAG,GAAE;AACpB,cAAY,KAAK,CAAC;AACf,MAAA,KAAK,KAAK,IAAI,IAAG;AACN,gBAAA,KAAK,IAAI,GAAG;AACZ,gBAAA,KAAK,IAAI,CAAC;AACV,gBAAA,KAAK,IAAI,GAAG;AAAA,EAC1B;AACF;AAEA,MAAM,UAAU,kiBAAkiB,MAAM,GAAG;AAGpjB,MAAM,sBAA6B,CAAC,EAAC,OAAM,IAAG,OAAM,QAAO,EAAE,OAAO,QAAQ,IAAI,CAAI,OAAA;AACzF,MAAI,MAAM,GAAG,MAAM,GAAG,GAAE,QAAM,IAAI,CAAC,GAAE,QAAM,IAAI,CAAC,KAAK,IAAI,KAAK;AACvD,SAAA,EAAE,OAAM;AACjB,CAAC,CAAC;;;;"}
|
|
@@ -9,12 +9,11 @@ const registerPartExtension = (partIdorName, ext) => {
|
|
|
9
9
|
};
|
|
10
10
|
const PartContentExtensionList = [];
|
|
11
11
|
const usePartContentComponent = (partIdorName) => {
|
|
12
|
-
|
|
13
|
-
return (_a = PartContentExtensionList.find((item) => item.key == partIdorName)) == null ? void 0 : _a.component;
|
|
12
|
+
return PartContentExtensionList.find((item) => item.key == partIdorName);
|
|
14
13
|
};
|
|
15
|
-
const registerPartContentComponent = (partIdorName, component) => {
|
|
14
|
+
const registerPartContentComponent = (partIdorName, component, adComponent) => {
|
|
16
15
|
if (!PartExtensionList.find((item) => item.key == partIdorName)) {
|
|
17
|
-
PartContentExtensionList.push({ key: partIdorName, component });
|
|
16
|
+
PartContentExtensionList.push({ key: partIdorName, component, adComponent });
|
|
18
17
|
} else {
|
|
19
18
|
throw new Error(`重复的栏目内容扩展,栏目标识:[${partIdorName}]`);
|
|
20
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"part-extensions.js","sources":["../../../../../src/modules/cms/composables/part-extensions.ts"],"sourcesContent":["\r\nimport { type Component } from \"vue\"\r\n\r\n/**\r\n * 栏目扩展\r\n */\r\nexport type PartExtension = {\r\n title?:\"\",\r\n saveHandle?:Function,\r\n component:Component,\r\n save:Function\r\n}\r\n\r\n\r\nconst PartExtensionList:Array<({key:string|number,extension:PartExtension})> = [];\r\n\r\n/**\r\n * 使用扩展\r\n * @param partId 或者栏目名称\r\n * @returns \r\n */\r\nexport const usePartExtensionList = (partIdorName:string|number):any=>{\r\n return PartExtensionList.filter(item=>item.key == partIdorName).map(item=>item.extension);\r\n}\r\n\r\n/**\r\n * 注册扩展\r\n * @param partId \r\n * @returns \r\n */\r\nexport const registerPartExtension = (partIdorName:string|number,ext:PartExtension)=>{\r\n PartExtensionList.push({ key:partIdorName,extension:ext })\r\n}\r\n\r\n\r\n// 栏目内容扩展\r\nconst PartContentExtensionList:Array<({key:string|number,component:Component})> = [];\r\n\r\n/**\r\n * 使用扩展\r\n * @param partId 或者栏目名称\r\n * @returns \r\n */\r\nexport const usePartContentComponent = (partIdorName:string|number):any=>{\r\n return PartContentExtensionList.find(item=>item.key == partIdorName)
|
|
1
|
+
{"version":3,"file":"part-extensions.js","sources":["../../../../../src/modules/cms/composables/part-extensions.ts"],"sourcesContent":["\r\nimport { type Component } from \"vue\"\r\n\r\n/**\r\n * 栏目扩展\r\n */\r\nexport type PartExtension = {\r\n title?:\"\",\r\n saveHandle?:Function,\r\n component:Component,\r\n save:Function\r\n}\r\n\r\n\r\nconst PartExtensionList:Array<({key:string|number,extension:PartExtension})> = [];\r\n\r\n/**\r\n * 使用扩展\r\n * @param partId 或者栏目名称\r\n * @returns \r\n */\r\nexport const usePartExtensionList = (partIdorName:string|number):any=>{\r\n return PartExtensionList.filter(item=>item.key == partIdorName).map(item=>item.extension);\r\n}\r\n\r\n/**\r\n * 注册扩展\r\n * @param partId \r\n * @returns \r\n */\r\nexport const registerPartExtension = (partIdorName:string|number,ext:PartExtension)=>{\r\n PartExtensionList.push({ key:partIdorName,extension:ext })\r\n}\r\n\r\n\r\n// 栏目内容扩展\r\nconst PartContentExtensionList:Array<({key:string|number,component:Component,adComponent?:Component})> = [];\r\n\r\n/**\r\n * 使用扩展\r\n * @param partId 或者栏目名称\r\n * @returns \r\n */\r\nexport const usePartContentComponent = (partIdorName:string|number):any=>{\r\n return PartContentExtensionList.find(item=>item.key == partIdorName);\r\n}\r\n\r\n/**\r\n * 注册扩展\r\n * @param partId \r\n * @returns \r\n */\r\nexport const registerPartContentComponent = (partIdorName:string|number,component:any,adComponent?:any)=>{\r\n\r\n if(!PartExtensionList.find(item=>item.key == partIdorName)){\r\n PartContentExtensionList.push({ key:partIdorName,component,adComponent })\r\n }\r\n else{\r\n throw new Error(`重复的栏目内容扩展,栏目标识:[${partIdorName}]`);\r\n }\r\n \r\n}\r\n"],"names":[],"mappings":";;AAcA,MAAM,oBAAyE,CAAA;AAOlE,MAAA,uBAAuB,CAAC,iBAAiC;AAC7D,SAAA,kBAAkB,OAAO,CAAA,SAAM,KAAK,OAAO,YAAY,EAAE,IAAI,CAAM,SAAA,KAAK,SAAS;AAC1F;AAOa,MAAA,wBAAwB,CAAC,cAA2B,QAAoB;AACnF,oBAAkB,KAAK,EAAE,KAAI,cAAa,WAAU,KAAK;AAC3D;AAIA,MAAM,2BAAmG,CAAA;AAO5F,MAAA,0BAA0B,CAAC,iBAAiC;AACvE,SAAO,yBAAyB,KAAK,CAAM,SAAA,KAAK,OAAO,YAAY;AACrE;AAOO,MAAM,+BAA+B,CAAC,cAA2B,WAAc,gBAAmB;AAEvG,MAAG,CAAC,kBAAkB,KAAK,UAAM,KAAK,OAAO,YAAY,GAAE;AACzD,6BAAyB,KAAK,EAAE,KAAI,cAAa,WAAU,aAAa;AAAA,EAAA,OAEtE;AACF,UAAM,IAAI,MAAM,mBAAmB,YAAY,GAAG;AAAA,EACpD;AAEF;;;;;"}
|
|
@@ -53,13 +53,19 @@ const _hoisted_3 = { class: "flex items-center" };
|
|
|
53
53
|
const _hoisted_4 = { class: "mk-cms-contents__body" };
|
|
54
54
|
const _hoisted_5 = { class: "mk-cms-contents__body__right__action" };
|
|
55
55
|
const _hoisted_6 = { class: "el-dropdown-link" };
|
|
56
|
-
const _hoisted_7 = { style: { "background": "#fff", "margin-top": "-10px" } };
|
|
57
|
-
const _hoisted_8 = {
|
|
58
|
-
const _hoisted_9 =
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
const
|
|
56
|
+
const _hoisted_7 = { style: { "background": "#fff", "margin-top": "-10px", "padding": "10px", "box-sizing": "border-box" } };
|
|
57
|
+
const _hoisted_8 = { style: { "background": "#fff" } };
|
|
58
|
+
const _hoisted_9 = {
|
|
59
|
+
key: 1,
|
|
60
|
+
style: { "background": "#fff", "margin-top": "-10px", "padding": "10px", "box-sizing": "border-box" }
|
|
61
|
+
};
|
|
62
|
+
const _hoisted_10 = { style: { "background": "#fff", "margin-bottom": "10px" } };
|
|
63
|
+
const _hoisted_11 = { class: "mk-cms-contents__publish" };
|
|
64
|
+
const _hoisted_12 = /* @__PURE__ */ vue.createElementVNode("span", null, "是否发布列表:", -1);
|
|
65
|
+
const _hoisted_13 = /* @__PURE__ */ vue.createElementVNode("span", null, "是否发布封面:", -1);
|
|
66
|
+
const _hoisted_14 = /* @__PURE__ */ vue.createElementVNode("span", null, "是否发布内容:", -1);
|
|
67
|
+
const _hoisted_15 = /* @__PURE__ */ vue.createElementVNode("span", null, "是否发布资源:", -1);
|
|
68
|
+
const _hoisted_16 = /* @__PURE__ */ vue.createElementVNode("span", null, "是否强制发布:", -1);
|
|
63
69
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
64
70
|
__name: "index",
|
|
65
71
|
setup(__props) {
|
|
@@ -85,7 +91,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
85
91
|
const curSelectPartItem = vue.ref(null);
|
|
86
92
|
const partTreeRef = vue.ref(null);
|
|
87
93
|
const partExList = vue.ref([]);
|
|
88
|
-
const
|
|
94
|
+
const partContentExtension = vue.ref(null);
|
|
89
95
|
const partDataForm = vue.reactive(new CmsContentManPartForm.CmsContentManPartForm());
|
|
90
96
|
partDataForm.init();
|
|
91
97
|
let beforeInitFormPart = null;
|
|
@@ -110,7 +116,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
110
116
|
}
|
|
111
117
|
router.replace({ name: "cms/contents", query: { pid: curSelectPartItem.value.id } });
|
|
112
118
|
partExList.value = partExtensions.usePartExtensionList(curSelectPartItem.value.id).concat(partExtensions.usePartExtensionList(curSelectPartItem.value.name));
|
|
113
|
-
|
|
119
|
+
partContentExtension.value = partExtensions.usePartContentComponent(curSelectPartItem.value.id) || partExtensions.usePartContentComponent(curSelectPartItem.value.name);
|
|
114
120
|
}
|
|
115
121
|
};
|
|
116
122
|
const deletePartHandle = (item) => {
|
|
@@ -257,190 +263,219 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
257
263
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => activeTabName.value = $event),
|
|
258
264
|
class: "mk-cms-contents__body__right"
|
|
259
265
|
}, {
|
|
260
|
-
default: vue.withCtx(() =>
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
266
|
+
default: vue.withCtx(() => {
|
|
267
|
+
var _a;
|
|
268
|
+
return [
|
|
269
|
+
vue.createElementVNode("div", _hoisted_5, [
|
|
270
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(partExList.value, (ext, i) => {
|
|
271
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
272
|
+
activeTabName.value == `part-ext${i}` && ext.save ? (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
273
|
+
key: 0,
|
|
274
|
+
type: "primary",
|
|
275
|
+
text: "",
|
|
276
|
+
onClick: ($event) => ext.save()
|
|
277
|
+
}, {
|
|
278
|
+
default: vue.withCtx(() => [
|
|
279
|
+
vue.createVNode(_component_MKSvgIcon, {
|
|
280
|
+
iconClass: "save",
|
|
281
|
+
style: { "margin-right": "5px" }
|
|
282
|
+
}),
|
|
283
|
+
vue.createTextVNode(" 保存" + vue.toDisplayString(ext.title), 1)
|
|
284
|
+
]),
|
|
285
|
+
_: 2
|
|
286
|
+
}, 1032, ["onClick"])) : vue.createCommentVNode("", true)
|
|
287
|
+
], 64);
|
|
288
|
+
}), 256)),
|
|
289
|
+
activeTabName.value == "part" || activeTabName.value == "part-content" && !((_a = partContentExtension.value) == null ? void 0 : _a.component) ? (vue.openBlock(), vue.createBlock(_component_el_button, {
|
|
290
|
+
key: 0,
|
|
291
|
+
type: "primary",
|
|
292
|
+
text: "",
|
|
293
|
+
onClick: _cache[0] || (_cache[0] = ($event) => savePartHandle()),
|
|
294
|
+
disabled: !(partDataForm == null ? void 0 : partDataForm.isChanged)
|
|
295
|
+
}, {
|
|
296
|
+
default: vue.withCtx(() => [
|
|
297
|
+
vue.createVNode(_component_MKSvgIcon, {
|
|
298
|
+
iconClass: "save",
|
|
299
|
+
style: { "margin-right": "5px" }
|
|
300
|
+
}),
|
|
301
|
+
vue.createTextVNode(" 保存 ")
|
|
302
|
+
]),
|
|
303
|
+
_: 1
|
|
304
|
+
}, 8, ["disabled"])) : vue.createCommentVNode("", true),
|
|
305
|
+
vue.unref(CmsSettings).publish.mode == "static" && curSelectPartItem.value.coverTemplate || curSelectPartItem.value.listTemplate || curSelectPartItem.value.contentTemplate ? (vue.openBlock(), vue.createBlock(_component_el_dropdown, { key: 1 }, {
|
|
306
|
+
dropdown: vue.withCtx(() => [
|
|
307
|
+
vue.createVNode(_component_el_dropdown_menu, null, {
|
|
308
|
+
default: vue.withCtx(() => [
|
|
309
|
+
vue.unref(CmsSettings).publish.mode == "static" && curSelectPartItem.value.coverTemplate ? (vue.openBlock(), vue.createBlock(_component_el_dropdown_item, {
|
|
310
|
+
key: 0,
|
|
311
|
+
onClick: _cache[1] || (_cache[1] = ($event) => vue.unref(CmsPartForm.CmsPartForm).openPreview(curSelectPartItem.value.id))
|
|
312
|
+
}, {
|
|
313
|
+
default: vue.withCtx(() => [
|
|
314
|
+
vue.createVNode(_component_MKSvgIcon, {
|
|
315
|
+
iconClass: "View",
|
|
316
|
+
style: { "margin-left": "10px" }
|
|
317
|
+
}),
|
|
318
|
+
vue.createTextVNode(" 预览封面 ")
|
|
319
|
+
]),
|
|
320
|
+
_: 1
|
|
321
|
+
})) : vue.createCommentVNode("", true),
|
|
322
|
+
curSelectPartItem.value.listTemplate ? (vue.openBlock(), vue.createBlock(_component_el_dropdown_item, {
|
|
323
|
+
key: 1,
|
|
324
|
+
onClick: _cache[2] || (_cache[2] = ($event) => vue.unref(CmsPartForm.CmsPartForm).openPreview(curSelectPartItem.value.id, "1"))
|
|
325
|
+
}, {
|
|
326
|
+
default: vue.withCtx(() => [
|
|
327
|
+
vue.createVNode(_component_MKSvgIcon, {
|
|
328
|
+
iconClass: "View",
|
|
329
|
+
style: { "margin-left": "10px" }
|
|
330
|
+
}),
|
|
331
|
+
vue.createTextVNode(" 预览列表 ")
|
|
332
|
+
]),
|
|
333
|
+
_: 1
|
|
334
|
+
})) : vue.createCommentVNode("", true),
|
|
335
|
+
vue.createVNode(_component_el_dropdown_item, {
|
|
336
|
+
onClick: _cache[3] || (_cache[3] = ($event) => showPublish.value = true)
|
|
337
|
+
}, {
|
|
338
|
+
default: vue.withCtx(() => [
|
|
339
|
+
vue.createVNode(_component_MKSvgIcon, {
|
|
340
|
+
iconClass: "Promotion",
|
|
341
|
+
style: { "margin-left": "10px" }
|
|
342
|
+
}),
|
|
343
|
+
vue.createTextVNode(" 发布当前栏目 ")
|
|
344
|
+
]),
|
|
345
|
+
_: 1
|
|
346
|
+
})
|
|
347
|
+
]),
|
|
348
|
+
_: 1
|
|
349
|
+
})
|
|
350
|
+
]),
|
|
351
|
+
default: vue.withCtx(() => [
|
|
352
|
+
vue.createElementVNode("span", _hoisted_6, [
|
|
353
|
+
vue.createVNode(_component_el_button, {
|
|
354
|
+
type: "primary",
|
|
355
|
+
text: ""
|
|
329
356
|
}, {
|
|
330
357
|
default: vue.withCtx(() => [
|
|
331
|
-
vue.createVNode(_component_MKSvgIcon, {
|
|
332
|
-
iconClass: "Promotion",
|
|
333
|
-
style: { "margin-left": "10px" }
|
|
334
|
-
}),
|
|
335
|
-
vue.createTextVNode(" 发布当前栏目 ")
|
|
358
|
+
vue.createVNode(_component_MKSvgIcon, { iconClass: "MoreFilled" })
|
|
336
359
|
]),
|
|
337
360
|
_: 1
|
|
338
361
|
})
|
|
339
|
-
])
|
|
340
|
-
|
|
341
|
-
|
|
362
|
+
])
|
|
363
|
+
]),
|
|
364
|
+
_: 1
|
|
365
|
+
})) : vue.createCommentVNode("", true)
|
|
366
|
+
]),
|
|
367
|
+
curSelectPartItem.value.contentTemplate ? (vue.openBlock(), vue.createBlock(_component_el_tab_pane, {
|
|
368
|
+
key: 0,
|
|
369
|
+
label: "文章列表",
|
|
370
|
+
name: "article-list"
|
|
371
|
+
}, {
|
|
372
|
+
default: vue.withCtx(() => [
|
|
373
|
+
activeTabName.value == "article-list" ? (vue.openBlock(), vue.createBlock(articleList_vue_vue_type_script_setup_true_lang, {
|
|
374
|
+
key: 0,
|
|
375
|
+
part: curSelectPartItem.value,
|
|
376
|
+
style: { "height": "99%" }
|
|
377
|
+
}, null, 8, ["part"])) : vue.createCommentVNode("", true)
|
|
342
378
|
]),
|
|
379
|
+
_: 1
|
|
380
|
+
})) : vue.createCommentVNode("", true),
|
|
381
|
+
vue.withDirectives((vue.openBlock(), vue.createBlock(_component_el_tab_pane, {
|
|
382
|
+
label: "栏目设置",
|
|
383
|
+
name: "part"
|
|
384
|
+
}, {
|
|
343
385
|
default: vue.withCtx(() => [
|
|
344
|
-
vue.
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
vue.createVNode(_component_MKSvgIcon, { iconClass: "MoreFilled" })
|
|
351
|
-
]),
|
|
352
|
-
_: 1
|
|
353
|
-
})
|
|
354
|
-
])
|
|
386
|
+
activeTabName.value == "part" ? (vue.openBlock(), vue.createBlock(partInfo_vue_vue_type_script_setup_true_lang, {
|
|
387
|
+
key: 0,
|
|
388
|
+
part: curSelectPartItem.value,
|
|
389
|
+
ref: "partInfoRef",
|
|
390
|
+
partDataForm
|
|
391
|
+
}, null, 8, ["part", "partDataForm"])) : vue.createCommentVNode("", true)
|
|
355
392
|
]),
|
|
356
393
|
_: 1
|
|
357
|
-
}))
|
|
358
|
-
|
|
359
|
-
curSelectPartItem.value.contentTemplate ? (vue.openBlock(), vue.createBlock(_component_el_tab_pane, {
|
|
360
|
-
key: 0,
|
|
361
|
-
label: "文章列表",
|
|
362
|
-
name: "article-list"
|
|
363
|
-
}, {
|
|
364
|
-
default: vue.withCtx(() => [
|
|
365
|
-
activeTabName.value == "article-list" ? (vue.openBlock(), vue.createBlock(articleList_vue_vue_type_script_setup_true_lang, {
|
|
366
|
-
key: 0,
|
|
367
|
-
part: curSelectPartItem.value,
|
|
368
|
-
style: { "height": "99%" }
|
|
369
|
-
}, null, 8, ["part"])) : vue.createCommentVNode("", true)
|
|
370
|
-
]),
|
|
371
|
-
_: 1
|
|
372
|
-
})) : vue.createCommentVNode("", true),
|
|
373
|
-
vue.withDirectives((vue.openBlock(), vue.createBlock(_component_el_tab_pane, {
|
|
374
|
-
label: "栏目设置",
|
|
375
|
-
name: "part"
|
|
376
|
-
}, {
|
|
377
|
-
default: vue.withCtx(() => [
|
|
378
|
-
activeTabName.value == "part" ? (vue.openBlock(), vue.createBlock(partInfo_vue_vue_type_script_setup_true_lang, {
|
|
379
|
-
key: 0,
|
|
380
|
-
part: curSelectPartItem.value,
|
|
381
|
-
ref: "partInfoRef",
|
|
382
|
-
partDataForm
|
|
383
|
-
}, null, 8, ["part", "partDataForm"])) : vue.createCommentVNode("", true)
|
|
394
|
+
})), [
|
|
395
|
+
[_directive_loading, partDataForm.loading]
|
|
384
396
|
]),
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
vue.createElementVNode("div", _hoisted_7, [
|
|
405
|
-
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(partContentComponent.value)))
|
|
406
|
-
])
|
|
407
|
-
], 64)) : activeTabName.value == "part-content" ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.MKDocEditor), {
|
|
408
|
-
key: 1,
|
|
409
|
-
css: vue.unref(CmsSettings).part.doc.css,
|
|
410
|
-
js: vue.unref(CmsSettings).part.doc.js,
|
|
411
|
-
loading: partDataForm.loading,
|
|
412
|
-
content: (_d = partDataForm.data) == null ? void 0 : _d.content,
|
|
413
|
-
placeholder: "从这里开始写正文...",
|
|
414
|
-
onChange: docEditorChangeHandle
|
|
415
|
-
}, {
|
|
416
|
-
"before-extentions": vue.withCtx(() => {
|
|
417
|
-
var _a2, _b2, _c2;
|
|
418
|
-
return [
|
|
397
|
+
curSelectPartItem.value.cmsPartTypeId != 1 ? (vue.openBlock(), vue.createBlock(_component_el_tab_pane, {
|
|
398
|
+
key: 1,
|
|
399
|
+
label: "页面内容",
|
|
400
|
+
name: "part-content",
|
|
401
|
+
style: { "background-color": "#f4f4f4" }
|
|
402
|
+
}, {
|
|
403
|
+
default: vue.withCtx(() => {
|
|
404
|
+
var _a2, _b, _c, _d, _e;
|
|
405
|
+
return [
|
|
406
|
+
partContentExtension.value && activeTabName.value == "part-content" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
407
|
+
partContentExtension.value.component && partContentExtension.value.adComponent ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
408
|
+
vue.createElementVNode("div", _hoisted_7, [
|
|
409
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(partContentExtension.value.adComponent)))
|
|
410
|
+
]),
|
|
411
|
+
vue.createElementVNode("div", _hoisted_8, [
|
|
412
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(partContentExtension.value.component)))
|
|
413
|
+
])
|
|
414
|
+
], 64)) : vue.createCommentVNode("", true),
|
|
415
|
+
partContentExtension.value.component && !partContentExtension.value.adComponent ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
|
|
419
416
|
((_a2 = partDataForm.data) == null ? void 0 : _a2.id) ? (vue.openBlock(), vue.createBlock(partBannerEdit_vue_vue_type_script_setup_true_lang, {
|
|
420
417
|
key: 0,
|
|
421
|
-
partId: (
|
|
422
|
-
title: (
|
|
423
|
-
}, null, 8, ["partId", "title"])) : vue.createCommentVNode("", true)
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
418
|
+
partId: (_b = partDataForm.data) == null ? void 0 : _b.id,
|
|
419
|
+
title: (_c = partDataForm.data) == null ? void 0 : _c.title
|
|
420
|
+
}, null, 8, ["partId", "title"])) : vue.createCommentVNode("", true),
|
|
421
|
+
partContentExtension.value.component ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_9, [
|
|
422
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(partContentExtension.value.component)))
|
|
423
|
+
])) : vue.createCommentVNode("", true)
|
|
424
|
+
], 64)) : vue.createCommentVNode("", true),
|
|
425
|
+
!partContentExtension.value.component && partContentExtension.value.adComponent ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.MKDocEditor), {
|
|
426
|
+
key: 2,
|
|
427
|
+
css: vue.unref(CmsSettings).part.doc.css,
|
|
428
|
+
js: vue.unref(CmsSettings).part.doc.js,
|
|
429
|
+
loading: partDataForm.loading,
|
|
430
|
+
content: (_d = partDataForm.data) == null ? void 0 : _d.content,
|
|
431
|
+
placeholder: "从这里开始写正文...",
|
|
432
|
+
onChange: docEditorChangeHandle
|
|
433
|
+
}, {
|
|
434
|
+
"before-extentions": vue.withCtx(() => [
|
|
435
|
+
vue.createElementVNode("div", _hoisted_10, [
|
|
436
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(partContentExtension.value.adComponent)))
|
|
437
|
+
])
|
|
438
|
+
]),
|
|
439
|
+
_: 1
|
|
440
|
+
}, 8, ["css", "js", "loading", "content"])) : vue.createCommentVNode("", true)
|
|
441
|
+
], 64)) : activeTabName.value == "part-content" ? (vue.openBlock(), vue.createBlock(vue.unref(index$1.MKDocEditor), {
|
|
442
|
+
key: 1,
|
|
443
|
+
css: vue.unref(CmsSettings).part.doc.css,
|
|
444
|
+
js: vue.unref(CmsSettings).part.doc.js,
|
|
445
|
+
loading: partDataForm.loading,
|
|
446
|
+
content: (_e = partDataForm.data) == null ? void 0 : _e.content,
|
|
447
|
+
placeholder: "从这里开始写正文...",
|
|
448
|
+
onChange: docEditorChangeHandle
|
|
449
|
+
}, {
|
|
450
|
+
"before-extentions": vue.withCtx(() => {
|
|
451
|
+
var _a3, _b2, _c2;
|
|
452
|
+
return [
|
|
453
|
+
((_a3 = partDataForm.data) == null ? void 0 : _a3.id) ? (vue.openBlock(), vue.createBlock(partBannerEdit_vue_vue_type_script_setup_true_lang, {
|
|
454
|
+
key: 0,
|
|
455
|
+
partId: (_b2 = partDataForm.data) == null ? void 0 : _b2.id,
|
|
456
|
+
title: (_c2 = partDataForm.data) == null ? void 0 : _c2.title
|
|
457
|
+
}, null, 8, ["partId", "title"])) : vue.createCommentVNode("", true)
|
|
458
|
+
];
|
|
459
|
+
}),
|
|
460
|
+
_: 1
|
|
461
|
+
}, 8, ["css", "js", "loading", "content"])) : vue.createCommentVNode("", true)
|
|
462
|
+
];
|
|
463
|
+
}),
|
|
464
|
+
_: 1
|
|
465
|
+
})) : vue.createCommentVNode("", true),
|
|
466
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(partExList.value, (ext, i) => {
|
|
467
|
+
return vue.openBlock(), vue.createBlock(_component_el_tab_pane, {
|
|
468
|
+
label: ext.title || `页面扩展设置 ${i == 0 ? "" : i}`,
|
|
469
|
+
name: `part-ext${i}`
|
|
470
|
+
}, {
|
|
471
|
+
default: vue.withCtx(() => [
|
|
472
|
+
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(ext.component)))
|
|
473
|
+
]),
|
|
474
|
+
_: 2
|
|
475
|
+
}, 1032, ["label", "name"]);
|
|
476
|
+
}), 256))
|
|
477
|
+
];
|
|
478
|
+
}),
|
|
444
479
|
_: 1
|
|
445
480
|
}, 8, ["modelValue"])) : (vue.openBlock(), vue.createBlock(_component_el_empty, {
|
|
446
481
|
key: 1,
|
|
@@ -476,9 +511,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
476
511
|
}, 8, ["loading"])
|
|
477
512
|
]),
|
|
478
513
|
default: vue.withCtx(() => [
|
|
479
|
-
vue.createElementVNode("div",
|
|
514
|
+
vue.createElementVNode("div", _hoisted_11, [
|
|
480
515
|
vue.createElementVNode("div", null, [
|
|
481
|
-
|
|
516
|
+
_hoisted_12,
|
|
482
517
|
vue.createTextVNode(),
|
|
483
518
|
vue.createVNode(vue.unref(elementPlus.ElSwitch), {
|
|
484
519
|
modelValue: optionData.value.isPublishList,
|
|
@@ -487,7 +522,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
487
522
|
}, null, 8, ["modelValue", "disabled"])
|
|
488
523
|
]),
|
|
489
524
|
vue.createElementVNode("div", null, [
|
|
490
|
-
|
|
525
|
+
_hoisted_13,
|
|
491
526
|
vue.createTextVNode(),
|
|
492
527
|
vue.createVNode(vue.unref(elementPlus.ElSwitch), {
|
|
493
528
|
modelValue: optionData.value.isPublishCover,
|
|
@@ -496,7 +531,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
496
531
|
}, null, 8, ["modelValue", "disabled"])
|
|
497
532
|
]),
|
|
498
533
|
vue.createElementVNode("div", null, [
|
|
499
|
-
|
|
534
|
+
_hoisted_14,
|
|
500
535
|
vue.createTextVNode(),
|
|
501
536
|
vue.createVNode(vue.unref(elementPlus.ElSwitch), {
|
|
502
537
|
modelValue: optionData.value.isPublishContent,
|
|
@@ -505,7 +540,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
505
540
|
}, null, 8, ["modelValue", "disabled"])
|
|
506
541
|
]),
|
|
507
542
|
vue.createElementVNode("div", null, [
|
|
508
|
-
|
|
543
|
+
_hoisted_15,
|
|
509
544
|
vue.createTextVNode(),
|
|
510
545
|
vue.createVNode(vue.unref(elementPlus.ElSwitch), {
|
|
511
546
|
modelValue: optionData.value.isPublishAssets,
|
|
@@ -513,7 +548,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
513
548
|
}, null, 8, ["modelValue"])
|
|
514
549
|
]),
|
|
515
550
|
vue.createElementVNode("div", null, [
|
|
516
|
-
|
|
551
|
+
_hoisted_16,
|
|
517
552
|
vue.createTextVNode(),
|
|
518
553
|
vue.createVNode(vue.unref(elementPlus.ElSwitch), {
|
|
519
554
|
modelValue: optionData.value.isCompulsion,
|