super-page-designer 2.0.23 → 2.0.26
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/es/components/design/utils/assemblys-config.js +6 -41
- package/dist/es/components/design/utils/data-table-util.js +1 -1
- package/dist/es/components/design/utils/page-helper-util.d.ts +1 -0
- package/dist/es/components/design/utils/page-helper-util.js +8 -0
- package/dist/es/components/design/utils/page-permission-util.js +6 -0
- package/dist/es/components/design/utils/page-table-util.js +6 -4
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-attr-base.vue.js +88 -10
- package/dist/es/components/design/views/assemblys/data/bar-code/barcode-design.vue2.js +22 -9
- package/dist/es/components/design/views/assemblys/data/component/data-origin.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/table-design.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-base.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/data/table/tablecolumn-attr-event.vue.js +0 -1
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue.js +1 -1
- package/dist/es/components/design/views/assemblys/form/common/attr-event.vue2.js +2 -2
- package/dist/es/components/design/views/assemblys/form/common/bar-code-rule.vue.js +411 -112
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-attr-base.vue.js +2 -1
- package/dist/es/components/design/views/assemblys/form/input-text/inputtext-design.vue2.js +21 -15
- package/dist/es/components/design/views/assemblys/object-design.vue.js +11 -8
- package/dist/es/components/design/views/assemblys/workflow/component/combination.vue.js +19 -5
- package/dist/es/components/design/views/design/page-design.vue.js +35 -10
- package/dist/es/components/design/views/design/page-event/config.vue.d.ts +12 -1
- package/dist/es/components/design/views/design/page-event/config.vue.js +3 -3
- package/dist/es/components/design/views/design/page-event/config.vue2.js +1 -325
- package/dist/es/components/design/views/design/page-event/config.vue3.js +336 -1
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.d.ts +1 -8
- package/dist/es/components/design/views/design/page-event/page-event-container.vue.js +226 -569
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.d.ts +11 -5
- package/dist/es/components/design/views/design/page-event/page-event-content.vue.js +1 -1
- package/dist/es/components/design/views/design/page-event/page-event-content.vue2.js +510 -366
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.d.ts +8 -0
- package/dist/es/components/design/views/design/page-event/page-event-view.vue.js +48 -0
- package/dist/es/components/design/views/design/page-event/page-event-view.vue2.js +4 -0
- package/dist/es/components/design/views/design/view/assemblys-container.vue.d.ts +0 -6
- package/dist/es/components/design/views/design/view/assemblys-container.vue.js +14 -58
- package/dist/es/components/design/views/design/view/page-switch.vue.js +1 -1
- package/dist/es/components/design/views/design/view/page-switch.vue2.js +1 -0
- package/dist/es/components/design/views/design/view/view-design-display.vue.d.ts +2 -2
- package/dist/es/components/design/views/design/view/view-design-display.vue.js +35 -42
- package/dist/es/components/design/views/design/view/view-design-preview.vue.js +1 -1
- package/dist/es/stores/event-undo-redo-store.d.ts +22 -0
- package/dist/es/stores/event-undo-redo-store.js +56 -0
- package/dist/es/style.css +105 -105
- package/package.json +4 -4
|
@@ -65,7 +65,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
65
|
props.configure.events,
|
|
66
66
|
(newVal) => {
|
|
67
67
|
batchUpdatePermissions(props.configure, props.pageDesign);
|
|
68
|
-
const bindEvents = props.configure.events.filter((event) =>
|
|
68
|
+
const bindEvents = props.configure.events.filter((event) => {
|
|
69
|
+
return !event.isStandard && event.jsContent || event.isStandard && event.eventName;
|
|
70
|
+
});
|
|
69
71
|
console.log("bindEvents=========", bindEvents);
|
|
70
72
|
if (!props.configure.runtime) {
|
|
71
73
|
props.configure.runtime = {};
|
|
@@ -103,7 +105,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
103
105
|
if (!props.configure.runtime) {
|
|
104
106
|
props.configure.runtime = {};
|
|
105
107
|
}
|
|
106
|
-
console.log(
|
|
108
|
+
console.log(
|
|
109
|
+
"%c描述-183859",
|
|
110
|
+
"color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px",
|
|
111
|
+
props.configure.runtime.customParams
|
|
112
|
+
);
|
|
107
113
|
props.configure.runtime.customParams = customParams;
|
|
108
114
|
},
|
|
109
115
|
{ immediate: true }
|
|
@@ -141,12 +147,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
141
147
|
}
|
|
142
148
|
);
|
|
143
149
|
}
|
|
144
|
-
watch(
|
|
145
|
-
props.configure
|
|
146
|
-
|
|
147
|
-
watchValidate(props.configure, newValue, fieldInfo);
|
|
148
|
-
}
|
|
149
|
-
);
|
|
150
|
+
watch(props.configure.props.verification, (newValue, oldValue) => {
|
|
151
|
+
watchValidate(props.configure, newValue, fieldInfo);
|
|
152
|
+
});
|
|
150
153
|
}
|
|
151
154
|
const thisRef = ref(null);
|
|
152
155
|
const designStyle = ref({});
|
|
@@ -27,15 +27,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
27
27
|
emits: ["remove", "save", "close"],
|
|
28
28
|
setup(__props, { emit: __emit }) {
|
|
29
29
|
const props = __props;
|
|
30
|
-
console.log("%c描述-094410", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", props.fieldNameList);
|
|
31
30
|
const $emit = __emit;
|
|
32
31
|
const currentRow = ref({});
|
|
33
32
|
const tableData = ref([]);
|
|
34
33
|
const operationArr = ref([]);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
initTable();
|
|
35
|
+
function initTable() {
|
|
36
|
+
if (props.conditionList) {
|
|
37
|
+
tableData.value = JSON.parse(props.conditionList);
|
|
38
|
+
} else {
|
|
39
|
+
tableData.value = props.list;
|
|
40
|
+
}
|
|
41
|
+
if (tableData.value.length > 0) {
|
|
42
|
+
tableData.value.forEach((item, index) => {
|
|
43
|
+
console.log("%c描述-112048", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", item);
|
|
44
|
+
if (item.type === "date") {
|
|
45
|
+
tableData.value[index].isData = true;
|
|
46
|
+
} else {
|
|
47
|
+
tableData.value[index].isData = false;
|
|
48
|
+
}
|
|
49
|
+
let fieldItem = props.fieldMap[item.propName];
|
|
50
|
+
operationArr.value[index] = getOperators(fieldItem);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
39
53
|
}
|
|
40
54
|
function remove() {
|
|
41
55
|
if (Object.keys(currentRow.value).length !== 0) {
|
|
@@ -12,6 +12,8 @@ import { fetchPageDesignData } from "../../utils/page-service-util.js";
|
|
|
12
12
|
import { ElMessage, ElLoading } from "element-plus";
|
|
13
13
|
import PageSwitch from "./view/page-switch.vue.js";
|
|
14
14
|
import { undoRedo } from "../../../../stores/undo-redo-store.js";
|
|
15
|
+
import _sfc_main$2 from "./page-event/page-event-view.vue.js";
|
|
16
|
+
import eventBus from "../../utils/eventBus.js";
|
|
15
17
|
const _hoisted_1 = { class: "amb-page-container" };
|
|
16
18
|
const _hoisted_2 = { class: "amb-page-container-header-page" };
|
|
17
19
|
const _hoisted_3 = { class: "amb-page-container-header" };
|
|
@@ -33,6 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
35
|
const props = __props;
|
|
34
36
|
const pageDesign = ref(null);
|
|
35
37
|
const ViewDesignRef = ref(null);
|
|
38
|
+
const pageEventContainerRef = ref(null);
|
|
36
39
|
const pageDesignUtil = usePageContextStore();
|
|
37
40
|
const clickType = ref("page");
|
|
38
41
|
const definitionId = ref(null);
|
|
@@ -42,6 +45,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
45
|
const selectWfVersion = ref(null);
|
|
43
46
|
const isShowWfEditor = ref(false);
|
|
44
47
|
const viewDesignComponentKey = ref(0);
|
|
48
|
+
eventBus.$on("editComponentEvent", () => {
|
|
49
|
+
clickFrontLogic();
|
|
50
|
+
});
|
|
51
|
+
function clickFrontLogic() {
|
|
52
|
+
clickType.value = "front";
|
|
53
|
+
if (pageEventContainerRef.value && pageEventContainerRef.value.resize) {
|
|
54
|
+
pageEventContainerRef.value.resize();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
45
57
|
if (props.pageId) {
|
|
46
58
|
fetchPageDesignData(props.pageId).then((appPageDesign) => {
|
|
47
59
|
if (appPageDesign && appPageDesign.designJson) {
|
|
@@ -82,9 +94,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
82
94
|
});
|
|
83
95
|
}
|
|
84
96
|
pageDesignUtil.setPageContext(pageDesign2);
|
|
85
|
-
watch(
|
|
86
|
-
|
|
87
|
-
|
|
97
|
+
watch(
|
|
98
|
+
() => pageDesign2,
|
|
99
|
+
(newVal) => {
|
|
100
|
+
changePageDesign();
|
|
101
|
+
},
|
|
102
|
+
{ deep: true }
|
|
103
|
+
);
|
|
88
104
|
watch(
|
|
89
105
|
pageDesign2.events,
|
|
90
106
|
(newVal) => {
|
|
@@ -92,8 +108,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
92
108
|
pageDesign2.runtime = {};
|
|
93
109
|
}
|
|
94
110
|
if (pageDesign2.events) {
|
|
95
|
-
const bindEvents = pageDesign2.events.filter((event) =>
|
|
96
|
-
|
|
111
|
+
const bindEvents = pageDesign2.events.filter((event) => {
|
|
112
|
+
return !event.isStandard && event.jsContent || event.isStandard && event.eventName;
|
|
113
|
+
});
|
|
97
114
|
pageDesign2.runtime.events = bindEvents;
|
|
98
115
|
}
|
|
99
116
|
},
|
|
@@ -122,6 +139,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
122
139
|
{ immediate: true }
|
|
123
140
|
);
|
|
124
141
|
}
|
|
142
|
+
eventBus.$emit("changePageDesign");
|
|
125
143
|
}
|
|
126
144
|
let changePageDesign = debounce(() => {
|
|
127
145
|
undoRedoStore.addSnapshot(pageDesign.value);
|
|
@@ -289,14 +307,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
289
307
|
class: normalizeClass({ selected: clickType.value === "page" }),
|
|
290
308
|
onClick: _cache[0] || (_cache[0] = ($event) => clickType.value = "page")
|
|
291
309
|
}, "页面设计", 2),
|
|
310
|
+
createElementVNode("label", {
|
|
311
|
+
class: normalizeClass({ selected: clickType.value === "front" }),
|
|
312
|
+
onClick: _cache[1] || (_cache[1] = ($event) => clickFrontLogic())
|
|
313
|
+
}, "页面逻辑", 2),
|
|
292
314
|
createElementVNode("label", {
|
|
293
315
|
class: normalizeClass({ selected: clickType.value === "workflow" }),
|
|
294
|
-
onClick: _cache[
|
|
316
|
+
onClick: _cache[2] || (_cache[2] = ($event) => clickWorkflow())
|
|
295
317
|
}, "工作流设计", 2),
|
|
296
|
-
createElementVNode("label", {
|
|
297
|
-
class: normalizeClass({ selected: clickType.value === "front" }),
|
|
298
|
-
onClick: _cache[2] || (_cache[2] = ($event) => clickType.value = "front")
|
|
299
|
-
}, "前端逻辑", 2),
|
|
300
318
|
createElementVNode("label", {
|
|
301
319
|
class: normalizeClass({ selected: clickType.value === "service" }),
|
|
302
320
|
onClick: _cache[3] || (_cache[3] = ($event) => clickType.value = "service")
|
|
@@ -328,6 +346,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
328
346
|
]) : createCommentVNode("", true),
|
|
329
347
|
withDirectives(createVNode(unref(ServiceFlowDesginer), { pageContext: pageDesign.value }, null, 8, ["pageContext"]), [
|
|
330
348
|
[vShow, clickType.value === "service"]
|
|
349
|
+
]),
|
|
350
|
+
withDirectives(createVNode(_sfc_main$2, {
|
|
351
|
+
ref_key: "pageEventContainerRef",
|
|
352
|
+
ref: pageEventContainerRef,
|
|
353
|
+
configure: pageDesign.value
|
|
354
|
+
}, null, 8, ["configure"]), [
|
|
355
|
+
[vShow, clickType.value === "front"]
|
|
331
356
|
])
|
|
332
357
|
])) : createCommentVNode("", true)
|
|
333
358
|
]);
|
|
@@ -1,9 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 重新计算编辑框尺寸
|
|
3
|
+
*/
|
|
4
|
+
declare function resize(): void;
|
|
5
|
+
/**
|
|
6
|
+
* 更新内容
|
|
7
|
+
*/
|
|
8
|
+
declare function updateJsContent(newEvent: any): void;
|
|
1
9
|
declare const _default: import('vue').DefineComponent<{
|
|
2
10
|
eventForm: {
|
|
3
11
|
type: ObjectConstructor;
|
|
4
12
|
default: () => {};
|
|
5
13
|
};
|
|
6
|
-
}, {
|
|
14
|
+
}, {
|
|
15
|
+
resize: typeof resize;
|
|
16
|
+
updateJsContent: typeof updateJsContent;
|
|
17
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
18
|
fullScreen: (...args: any[]) => void;
|
|
8
19
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
20
|
eventForm: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import _sfc_main from "./config.
|
|
2
|
-
import "./config.
|
|
1
|
+
import _sfc_main from "./config.vue3.js";
|
|
2
|
+
import "./config.vue2.js";
|
|
3
3
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const config = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const config = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-26f79956"]]);
|
|
5
5
|
export {
|
|
6
6
|
config as default
|
|
7
7
|
};
|
|
@@ -1,325 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { useLocalStorage } from "@vueuse/core";
|
|
3
|
-
import { Search, FullScreen } from "@element-plus/icons-vue";
|
|
4
|
-
import { EditorView, basicSetup } from "codemirror";
|
|
5
|
-
import { javascriptLanguage, javascript } from "@codemirror/lang-javascript";
|
|
6
|
-
import { EditorState } from "@codemirror/state";
|
|
7
|
-
import "@codemirror/autocomplete";
|
|
8
|
-
import "@codemirror/language";
|
|
9
|
-
import { openSearchPanel } from "@codemirror/search";
|
|
10
|
-
const _withScopeId = (n) => (pushScopeId("data-v-24e5130d"), n = n(), popScopeId(), n);
|
|
11
|
-
const _hoisted_1 = { style: { "height": "400px" } };
|
|
12
|
-
const _hoisted_2 = {
|
|
13
|
-
style: { "padding": "8px 16px", "margin": "10px 0px", "background-color": "#f4f4f5" },
|
|
14
|
-
class: "pppp"
|
|
15
|
-
};
|
|
16
|
-
const _hoisted_3 = { style: { "color": "#909399", "font-size": "14px" } };
|
|
17
|
-
const _hoisted_4 = { key: 0 };
|
|
18
|
-
const _hoisted_5 = { key: 1 };
|
|
19
|
-
const _hoisted_6 = { class: "editorTool" };
|
|
20
|
-
const _hoisted_7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", {
|
|
21
|
-
style: {
|
|
22
|
-
minHeight: "400px",
|
|
23
|
-
maxHeight: "700px",
|
|
24
|
-
backgroundColor: "#fff",
|
|
25
|
-
color: "#333",
|
|
26
|
-
outline: "1px dotted #212121",
|
|
27
|
-
overflow: "auto"
|
|
28
|
-
},
|
|
29
|
-
id: "cf-codemirror"
|
|
30
|
-
}, null, -1));
|
|
31
|
-
const _hoisted_8 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", { style: { "color": "gray" } }, " }", -1));
|
|
32
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
33
|
-
__name: "config",
|
|
34
|
-
props: {
|
|
35
|
-
eventForm: {
|
|
36
|
-
type: Object,
|
|
37
|
-
default: () => {
|
|
38
|
-
return {};
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
emits: ["fullScreen"],
|
|
43
|
-
setup(__props, { expose: __expose, emit: __emit }) {
|
|
44
|
-
const props = __props;
|
|
45
|
-
const emits = __emit;
|
|
46
|
-
const fullScreenDrawer = ref(false);
|
|
47
|
-
const editorStyle = ref({ theme: "default", fontSize: 14, searchOpen: false });
|
|
48
|
-
const editor = ref(null);
|
|
49
|
-
onMounted(() => {
|
|
50
|
-
console.log("eventForm===", props.eventForm);
|
|
51
|
-
let cacheEditorStyle = useLocalStorage("editorStyle", "").value;
|
|
52
|
-
if (cacheEditorStyle) {
|
|
53
|
-
cacheEditorStyle = JSON.parse(cacheEditorStyle);
|
|
54
|
-
editorStyle.value.theme = cacheEditorStyle.theme || "default";
|
|
55
|
-
editorStyle.value.fontSize = cacheEditorStyle.fontSize || 14;
|
|
56
|
-
}
|
|
57
|
-
loadEditor();
|
|
58
|
-
});
|
|
59
|
-
function showFullScreen() {
|
|
60
|
-
if (fullScreenDrawer.value === true) {
|
|
61
|
-
fullScreenDrawer.value = false;
|
|
62
|
-
emits("fullScreen", { withHeader: true, drawerWidth: "50%" });
|
|
63
|
-
} else {
|
|
64
|
-
fullScreenDrawer.value = true;
|
|
65
|
-
emits("fullScreen", { withHeader: false, drawerWidth: "100%" });
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
const jsDocCompletions = javascriptLanguage.data.of({
|
|
69
|
-
autocomplete: myCompletions
|
|
70
|
-
});
|
|
71
|
-
function changeEditorState() {
|
|
72
|
-
useLocalStorage("editorStyle", editorStyle.value).value = editorStyle.value;
|
|
73
|
-
if (editor.value) {
|
|
74
|
-
if (editor.value) {
|
|
75
|
-
editor.value.destroy();
|
|
76
|
-
}
|
|
77
|
-
loadEditor();
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
function getEditorState() {
|
|
81
|
-
const mytheme = getTheme();
|
|
82
|
-
const baseTheme = EditorView.theme({
|
|
83
|
-
".cm-content, .cm-gutter": { minHeight: "400px" },
|
|
84
|
-
"&": {
|
|
85
|
-
fontSize: editorStyle.value.fontSize + "px"
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
return EditorState.create({
|
|
89
|
-
doc: props.eventForm.jsContent,
|
|
90
|
-
extensions: [
|
|
91
|
-
EditorState.tabSize.of(16),
|
|
92
|
-
basicSetup,
|
|
93
|
-
javascript(),
|
|
94
|
-
jsDocCompletions,
|
|
95
|
-
mytheme,
|
|
96
|
-
baseTheme,
|
|
97
|
-
EditorView.updateListener.of(function(value) {
|
|
98
|
-
props.eventForm.jsContent = value.state.doc.toString();
|
|
99
|
-
})
|
|
100
|
-
]
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
function getTheme() {
|
|
104
|
-
return EditorView.theme({});
|
|
105
|
-
}
|
|
106
|
-
function loadEditor() {
|
|
107
|
-
const state = getEditorState();
|
|
108
|
-
editor.value = new EditorView({
|
|
109
|
-
state,
|
|
110
|
-
parent: document.getElementById("cf-codemirror")
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
function myCompletions(context) {
|
|
114
|
-
let word = context.matchBefore(/\w*|logicContext\./);
|
|
115
|
-
if (word) {
|
|
116
|
-
if (word.from == word.to && !context.explicit)
|
|
117
|
-
return null;
|
|
118
|
-
if ((word == null ? void 0 : word.text) === "logicContext.") {
|
|
119
|
-
return {
|
|
120
|
-
from: word.from,
|
|
121
|
-
options: [
|
|
122
|
-
{ label: "logicContext.page", type: "property", info: "页面变量" },
|
|
123
|
-
{ label: "logicContext.logic", type: "property", info: "页面变量" },
|
|
124
|
-
{ label: "logicContext.task", type: "property", info: "任务变量" },
|
|
125
|
-
{ label: "logicContext.context", type: "property", info: "上下文变量" },
|
|
126
|
-
{ label: "logicContext.system", type: "property", info: "系统变量" },
|
|
127
|
-
{ label: "logicContext.data", type: "property", info: "数据模型变量" }
|
|
128
|
-
]
|
|
129
|
-
};
|
|
130
|
-
} else {
|
|
131
|
-
return {
|
|
132
|
-
from: word.from,
|
|
133
|
-
options: [{ label: "logicContext", type: "property" }]
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
} else {
|
|
137
|
-
return null;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
function openSearch() {
|
|
141
|
-
if (editor.value) {
|
|
142
|
-
editor.value.focus();
|
|
143
|
-
let newState = openSearchPanel(editor.value);
|
|
144
|
-
if (newState) {
|
|
145
|
-
editor.value.update([transaction]);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
__expose({});
|
|
150
|
-
return (_ctx, _cache) => {
|
|
151
|
-
const _component_el_option = resolveComponent("el-option");
|
|
152
|
-
const _component_el_select = resolveComponent("el-select");
|
|
153
|
-
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
154
|
-
const _component_el_icon = resolveComponent("el-icon");
|
|
155
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
156
|
-
createElementVNode("div", _hoisted_2, [
|
|
157
|
-
createElementVNode("span", _hoisted_3, [
|
|
158
|
-
createTextVNode(" function "),
|
|
159
|
-
__props.eventForm.name === "customFunc" ? (openBlock(), createElementBlock("span", _hoisted_4, " $page_" + toDisplayString(__props.eventForm.eventName) + "(" + toDisplayString(__props.eventForm.funcParam ? __props.eventForm.funcParam : "") + ") ", 1)) : (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(__props.eventForm.eventName) + "(params) ", 1)),
|
|
160
|
-
createTextVNode("{")
|
|
161
|
-
]),
|
|
162
|
-
createElementVNode("span", _hoisted_6, [
|
|
163
|
-
createVNode(_component_el_tooltip, {
|
|
164
|
-
class: "box-item",
|
|
165
|
-
effect: "dark",
|
|
166
|
-
content: "切换主题",
|
|
167
|
-
placement: "top"
|
|
168
|
-
}, {
|
|
169
|
-
default: withCtx(() => [
|
|
170
|
-
createVNode(_component_el_select, {
|
|
171
|
-
class: "editorOption",
|
|
172
|
-
onChange: changeEditorState,
|
|
173
|
-
modelValue: editorStyle.value.theme,
|
|
174
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => editorStyle.value.theme = $event),
|
|
175
|
-
placeholder: "",
|
|
176
|
-
size: "small",
|
|
177
|
-
style: { "width": "120px" }
|
|
178
|
-
}, {
|
|
179
|
-
default: withCtx(() => [
|
|
180
|
-
createVNode(_component_el_option, {
|
|
181
|
-
label: "默认",
|
|
182
|
-
value: "default"
|
|
183
|
-
}),
|
|
184
|
-
createVNode(_component_el_option, {
|
|
185
|
-
label: "VScodeDark",
|
|
186
|
-
value: "vscodeDark"
|
|
187
|
-
}),
|
|
188
|
-
createVNode(_component_el_option, {
|
|
189
|
-
label: "Dracula",
|
|
190
|
-
value: "dracula"
|
|
191
|
-
}),
|
|
192
|
-
createVNode(_component_el_option, {
|
|
193
|
-
label: "GithubLight",
|
|
194
|
-
value: "githubLight"
|
|
195
|
-
}),
|
|
196
|
-
createVNode(_component_el_option, {
|
|
197
|
-
label: "GithubDark",
|
|
198
|
-
value: "githubDark"
|
|
199
|
-
}),
|
|
200
|
-
createVNode(_component_el_option, {
|
|
201
|
-
label: "Eclipse",
|
|
202
|
-
value: "eclipse"
|
|
203
|
-
}),
|
|
204
|
-
createVNode(_component_el_option, {
|
|
205
|
-
label: "XcodeLight",
|
|
206
|
-
value: "xcodeLight"
|
|
207
|
-
}),
|
|
208
|
-
createVNode(_component_el_option, {
|
|
209
|
-
label: "XcodeDark",
|
|
210
|
-
value: "xcodeDark"
|
|
211
|
-
})
|
|
212
|
-
]),
|
|
213
|
-
_: 1
|
|
214
|
-
}, 8, ["modelValue"])
|
|
215
|
-
]),
|
|
216
|
-
_: 1
|
|
217
|
-
}),
|
|
218
|
-
createVNode(_component_el_tooltip, {
|
|
219
|
-
class: "box-item",
|
|
220
|
-
effect: "dark",
|
|
221
|
-
content: "切换字体大小",
|
|
222
|
-
placement: "top"
|
|
223
|
-
}, {
|
|
224
|
-
default: withCtx(() => [
|
|
225
|
-
createVNode(_component_el_select, {
|
|
226
|
-
class: "editorOption",
|
|
227
|
-
modelValue: editorStyle.value.fontSize,
|
|
228
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => editorStyle.value.fontSize = $event),
|
|
229
|
-
placeholder: "",
|
|
230
|
-
onChange: changeEditorState,
|
|
231
|
-
size: "small",
|
|
232
|
-
style: { "width": "80px" }
|
|
233
|
-
}, {
|
|
234
|
-
default: withCtx(() => [
|
|
235
|
-
createVNode(_component_el_option, {
|
|
236
|
-
label: "12",
|
|
237
|
-
value: 12
|
|
238
|
-
}),
|
|
239
|
-
createVNode(_component_el_option, {
|
|
240
|
-
label: "14",
|
|
241
|
-
value: 14
|
|
242
|
-
}),
|
|
243
|
-
createVNode(_component_el_option, {
|
|
244
|
-
label: "16",
|
|
245
|
-
value: 16
|
|
246
|
-
}),
|
|
247
|
-
createVNode(_component_el_option, {
|
|
248
|
-
label: "18",
|
|
249
|
-
value: 18
|
|
250
|
-
}),
|
|
251
|
-
createVNode(_component_el_option, {
|
|
252
|
-
label: "20",
|
|
253
|
-
value: 20
|
|
254
|
-
}),
|
|
255
|
-
createVNode(_component_el_option, {
|
|
256
|
-
label: "22",
|
|
257
|
-
value: 22
|
|
258
|
-
}),
|
|
259
|
-
createVNode(_component_el_option, {
|
|
260
|
-
label: "24",
|
|
261
|
-
value: 24
|
|
262
|
-
}),
|
|
263
|
-
createVNode(_component_el_option, {
|
|
264
|
-
label: "26",
|
|
265
|
-
value: 26
|
|
266
|
-
}),
|
|
267
|
-
createVNode(_component_el_option, {
|
|
268
|
-
label: "28",
|
|
269
|
-
value: 28
|
|
270
|
-
})
|
|
271
|
-
]),
|
|
272
|
-
_: 1
|
|
273
|
-
}, 8, ["modelValue"])
|
|
274
|
-
]),
|
|
275
|
-
_: 1
|
|
276
|
-
})
|
|
277
|
-
]),
|
|
278
|
-
createVNode(_component_el_tooltip, {
|
|
279
|
-
class: "box-item",
|
|
280
|
-
effect: "dark",
|
|
281
|
-
content: "打开搜索",
|
|
282
|
-
placement: "top"
|
|
283
|
-
}, {
|
|
284
|
-
default: withCtx(() => [
|
|
285
|
-
createVNode(_component_el_icon, {
|
|
286
|
-
class: "editorOption",
|
|
287
|
-
onClick: openSearch
|
|
288
|
-
}, {
|
|
289
|
-
default: withCtx(() => [
|
|
290
|
-
createVNode(unref(Search))
|
|
291
|
-
]),
|
|
292
|
-
_: 1
|
|
293
|
-
})
|
|
294
|
-
]),
|
|
295
|
-
_: 1
|
|
296
|
-
}),
|
|
297
|
-
createVNode(_component_el_tooltip, {
|
|
298
|
-
class: "box-item",
|
|
299
|
-
effect: "dark",
|
|
300
|
-
content: fullScreenDrawer.value ? "退出全屏" : "全屏",
|
|
301
|
-
placement: "top"
|
|
302
|
-
}, {
|
|
303
|
-
default: withCtx(() => [
|
|
304
|
-
createVNode(_component_el_icon, {
|
|
305
|
-
style: { "cursor": "pointer" },
|
|
306
|
-
onClick: showFullScreen
|
|
307
|
-
}, {
|
|
308
|
-
default: withCtx(() => [
|
|
309
|
-
createVNode(unref(FullScreen))
|
|
310
|
-
]),
|
|
311
|
-
_: 1
|
|
312
|
-
})
|
|
313
|
-
]),
|
|
314
|
-
_: 1
|
|
315
|
-
}, 8, ["content"])
|
|
316
|
-
]),
|
|
317
|
-
_hoisted_7,
|
|
318
|
-
_hoisted_8
|
|
319
|
-
]);
|
|
320
|
-
};
|
|
321
|
-
}
|
|
322
|
-
});
|
|
323
|
-
export {
|
|
324
|
-
_sfc_main as default
|
|
325
|
-
};
|
|
1
|
+
|