@tmagic/editor 1.7.0-beta.5 → 1.7.1
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/style.css +13 -1
- package/dist/tmagic-editor.js +353 -286
- package/dist/tmagic-editor.umd.cjs +382 -314
- package/package.json +7 -7
- package/src/components/CodeBlockEditor.vue +1 -1
- package/src/fields/Code.vue +1 -0
- package/src/fields/DataSourceFields.vue +2 -2
- package/src/fields/DataSourceMocks.vue +1 -1
- package/src/fields/KeyValue.vue +4 -1
- package/src/index.ts +1 -0
- package/src/layouts/CodeEditor.vue +77 -5
- package/src/layouts/sidebar/data-source/DataSourceAddButton.vue +46 -0
- package/src/layouts/sidebar/data-source/DataSourceListPanel.vue +8 -23
- package/src/layouts/sidebar/layer/LayerNodeTool.vue +8 -3
- package/src/theme/layer-panel.scss +16 -0
- package/src/theme/props-panel.scss +1 -1
- package/src/utils/data-source/index.ts +2 -2
- package/types/index.d.ts +95 -76
package/dist/tmagic-editor.js
CHANGED
|
@@ -7,7 +7,7 @@ export { default as formPlugin } from '@tmagic/form';
|
|
|
7
7
|
import tablePlugin__default, { MagicTable } from '@tmagic/table';
|
|
8
8
|
export * from '@tmagic/table';
|
|
9
9
|
export { default as tablePlugin } from '@tmagic/table';
|
|
10
|
-
import { defineComponent, createBlock, createElementBlock, openBlock, unref, withCtx, createVNode, createElementVNode, normalizeClass, resolveDynamicComponent, toRaw, ref, useTemplateRef, watch, onMounted, onBeforeUnmount, onUnmounted, Teleport, normalizeStyle, createCommentVNode, nextTick,
|
|
10
|
+
import { defineComponent, createBlock, createElementBlock, openBlock, unref, withCtx, createVNode, createElementVNode, normalizeClass, resolveDynamicComponent, toRaw, ref, computed, useTemplateRef, watch, onMounted, onBeforeUnmount, onUnmounted, Teleport, normalizeStyle, createCommentVNode, nextTick, reactive, resolveComponent, inject, Fragment, renderList, mergeProps, mergeModels, useModel, provide, renderSlot, toDisplayString, shallowReactive, createTextVNode, isRef, createStaticVNode, watchEffect, markRaw, withDirectives, vShow, shallowRef, withModifiers, createSlots, toHandlers, getCurrentInstance, Transition, normalizeProps, guardReactiveProps, resolveDirective, mergeDefaults } from 'vue';
|
|
11
11
|
import { Edit, FullScreen, View, Close, Coin, Delete, Plus, Grid, ArrowDown, ArrowLeftBold, ArrowRightBold, Files, Search, DocumentCopy, CaretBottom, Memo, ScaleToOriginal, ZoomOut, ZoomIn, Right, Back, Document, Sugar, ArrowRight, CopyDocument, Hide, EditPen, List, Goods, CloseBold, Top, Bottom } from '@element-plus/icons-vue';
|
|
12
12
|
import { throttle, isEmpty, isObject, cloneDeep, mergeWith, uniq, get, map, has, pick, keys } from 'lodash-es';
|
|
13
13
|
import serialize from 'serialize-javascript';
|
|
@@ -28,7 +28,7 @@ import Sortable from 'sortablejs';
|
|
|
28
28
|
import KeyController from 'keycon';
|
|
29
29
|
|
|
30
30
|
const _hoisted_1$$ = ["src"];
|
|
31
|
-
const _sfc_main$
|
|
31
|
+
const _sfc_main$1s = /* @__PURE__ */ defineComponent({
|
|
32
32
|
...{
|
|
33
33
|
name: "MEditorIcon"
|
|
34
34
|
},
|
|
@@ -96,7 +96,7 @@ const _hoisted_2$o = {
|
|
|
96
96
|
ref: "codeEditor",
|
|
97
97
|
class: "magic-code-editor-content"
|
|
98
98
|
};
|
|
99
|
-
const _sfc_main$
|
|
99
|
+
const _sfc_main$1r = /* @__PURE__ */ defineComponent({
|
|
100
100
|
...{
|
|
101
101
|
name: "MEditorCodeEditor"
|
|
102
102
|
},
|
|
@@ -112,12 +112,50 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
112
112
|
height: {},
|
|
113
113
|
autoSave: { type: Boolean, default: true },
|
|
114
114
|
parse: { type: Boolean, default: false },
|
|
115
|
-
disabledFullScreen: { type: Boolean, default: false }
|
|
115
|
+
disabledFullScreen: { type: Boolean, default: false },
|
|
116
|
+
autosize: {}
|
|
116
117
|
},
|
|
117
118
|
emits: ["initd", "save"],
|
|
118
119
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
119
120
|
const props = __props;
|
|
120
121
|
const emit = __emit;
|
|
122
|
+
const autoHeight = ref("");
|
|
123
|
+
const computeHeight = computed(() => {
|
|
124
|
+
if (fullScreen.value) {
|
|
125
|
+
return "100%";
|
|
126
|
+
}
|
|
127
|
+
if (props.height) {
|
|
128
|
+
return props.height;
|
|
129
|
+
}
|
|
130
|
+
if (props.autosize) {
|
|
131
|
+
return autoHeight.value;
|
|
132
|
+
}
|
|
133
|
+
return "100%";
|
|
134
|
+
});
|
|
135
|
+
const setAutoHeight = (v = "") => {
|
|
136
|
+
let lines = Math.max(v.split("\n").length, props.autosize?.minRows || 1);
|
|
137
|
+
if (v) {
|
|
138
|
+
if (props.autosize?.maxRows) {
|
|
139
|
+
lines = Math.min(lines, props.autosize.maxRows);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
let lineHeight = 20;
|
|
143
|
+
if (vsEditor) {
|
|
144
|
+
const editorOptions = vsEditor.getOptions();
|
|
145
|
+
lineHeight = editorOptions.get(monaco.editor.EditorOption.lineHeight) || 20;
|
|
146
|
+
}
|
|
147
|
+
const newHeight = `${lines * lineHeight + 10}px`;
|
|
148
|
+
if (autoHeight.value !== newHeight) {
|
|
149
|
+
autoHeight.value = newHeight;
|
|
150
|
+
nextTick(() => {
|
|
151
|
+
vsEditor?.layout();
|
|
152
|
+
if (vsEditor) {
|
|
153
|
+
vsEditor.setScrollTop(0);
|
|
154
|
+
vsEditor.revealLine(1);
|
|
155
|
+
}
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
};
|
|
121
159
|
const toString = (v, language) => {
|
|
122
160
|
let value;
|
|
123
161
|
if (typeof v !== "string") {
|
|
@@ -159,6 +197,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
159
197
|
);
|
|
160
198
|
const setEditorValue = (v, m) => {
|
|
161
199
|
values.value = toString(v, props.language.toLocaleLowerCase());
|
|
200
|
+
setAutoHeight(values.value);
|
|
162
201
|
if (props.type === "diff") {
|
|
163
202
|
const originalModel = monaco.editor.createModel(values.value, "text/javascript");
|
|
164
203
|
const modifiedModel = monaco.editor.createModel(toString(m, props.language), "text/javascript");
|
|
@@ -204,8 +243,18 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
204
243
|
};
|
|
205
244
|
if (props.type === "diff") {
|
|
206
245
|
vsDiffEditor = getEditorConfig("customCreateMonacoDiffEditor")(monaco, codeEditorEl.value, options);
|
|
246
|
+
vsDiffEditor.getModifiedEditor().onDidChangeModelContent(() => {
|
|
247
|
+
if (props.autosize) {
|
|
248
|
+
setAutoHeight(getEditorValue());
|
|
249
|
+
}
|
|
250
|
+
});
|
|
207
251
|
} else {
|
|
208
252
|
vsEditor = getEditorConfig("customCreateMonacoEditor")(monaco, codeEditorEl.value, options);
|
|
253
|
+
vsEditor.onDidChangeModelContent(() => {
|
|
254
|
+
if (props.autosize) {
|
|
255
|
+
setAutoHeight(getEditorValue());
|
|
256
|
+
}
|
|
257
|
+
});
|
|
209
258
|
}
|
|
210
259
|
setEditorValue(props.initValues, props.modifiedValues);
|
|
211
260
|
emit("initd", vsEditor);
|
|
@@ -295,8 +344,8 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
295
344
|
createElementVNode(
|
|
296
345
|
"div",
|
|
297
346
|
{
|
|
298
|
-
class: normalizeClass(
|
|
299
|
-
style: normalizeStyle(
|
|
347
|
+
class: normalizeClass({ "magic-code-editor-wrapper": true, "full-screen": fullScreen.value }),
|
|
348
|
+
style: normalizeStyle({ height: computeHeight.value })
|
|
300
349
|
},
|
|
301
350
|
[
|
|
302
351
|
!__props.disabledFullScreen ? (openBlock(), createBlock(unref(TMagicButton), {
|
|
@@ -307,7 +356,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
307
356
|
onClick: fullScreenHandler
|
|
308
357
|
}, {
|
|
309
358
|
default: withCtx(() => [
|
|
310
|
-
createVNode(_sfc_main$
|
|
359
|
+
createVNode(_sfc_main$1s, { icon: unref(FullScreen) }, null, 8, ["icon"])
|
|
311
360
|
]),
|
|
312
361
|
_: 1
|
|
313
362
|
/* STABLE */
|
|
@@ -329,7 +378,7 @@ const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
|
329
378
|
}
|
|
330
379
|
});
|
|
331
380
|
|
|
332
|
-
const _sfc_main$
|
|
381
|
+
const _sfc_main$1q = /* @__PURE__ */ defineComponent({
|
|
333
382
|
...{
|
|
334
383
|
name: "MFieldsVsCode"
|
|
335
384
|
},
|
|
@@ -353,7 +402,7 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
353
402
|
emit("change", v);
|
|
354
403
|
};
|
|
355
404
|
return (_ctx, _cache) => {
|
|
356
|
-
return openBlock(), createBlock(_sfc_main$
|
|
405
|
+
return openBlock(), createBlock(_sfc_main$1r, {
|
|
357
406
|
height: __props.config.height,
|
|
358
407
|
"init-values": __props.model[__props.name],
|
|
359
408
|
language: __props.config.language,
|
|
@@ -361,14 +410,15 @@ const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
|
361
410
|
...__props.config.options,
|
|
362
411
|
readOnly: __props.disabled
|
|
363
412
|
},
|
|
413
|
+
autosize: __props.config.autosize,
|
|
364
414
|
parse: __props.config.parse,
|
|
365
415
|
onSave: save
|
|
366
|
-
}, null, 8, ["height", "init-values", "language", "options", "parse"]);
|
|
416
|
+
}, null, 8, ["height", "init-values", "language", "options", "autosize", "parse"]);
|
|
367
417
|
};
|
|
368
418
|
}
|
|
369
419
|
});
|
|
370
420
|
|
|
371
|
-
const _sfc_main$
|
|
421
|
+
const _sfc_main$1p = /* @__PURE__ */ defineComponent({
|
|
372
422
|
...{
|
|
373
423
|
name: "MFieldsCodeLink"
|
|
374
424
|
},
|
|
@@ -456,7 +506,7 @@ const useServices = () => {
|
|
|
456
506
|
return services;
|
|
457
507
|
};
|
|
458
508
|
|
|
459
|
-
const _sfc_main$
|
|
509
|
+
const _sfc_main$1o = /* @__PURE__ */ defineComponent({
|
|
460
510
|
...{
|
|
461
511
|
name: "MFieldsCodeSelect"
|
|
462
512
|
},
|
|
@@ -2809,7 +2859,7 @@ const fillConfig = (config) => [
|
|
|
2809
2859
|
name: "beforeRequest",
|
|
2810
2860
|
type: "vs-code",
|
|
2811
2861
|
parse: true,
|
|
2812
|
-
|
|
2862
|
+
autosize: { minRows: 10, maxRows: 30 }
|
|
2813
2863
|
}
|
|
2814
2864
|
]
|
|
2815
2865
|
},
|
|
@@ -2821,7 +2871,7 @@ const fillConfig = (config) => [
|
|
|
2821
2871
|
name: "afterResponse",
|
|
2822
2872
|
type: "vs-code",
|
|
2823
2873
|
parse: true,
|
|
2824
|
-
|
|
2874
|
+
autosize: { minRows: 10, maxRows: 30 }
|
|
2825
2875
|
}
|
|
2826
2876
|
]
|
|
2827
2877
|
}
|
|
@@ -3206,7 +3256,7 @@ const MIN_RIGHT_COLUMN_WIDTH = 300;
|
|
|
3206
3256
|
const H_GUIDE_LINE_STORAGE_KEY = "$MagicStageHorizontalGuidelinesData";
|
|
3207
3257
|
const V_GUIDE_LINE_STORAGE_KEY = "$MagicStageVerticalGuidelinesData";
|
|
3208
3258
|
|
|
3209
|
-
const _sfc_main$
|
|
3259
|
+
const _sfc_main$1n = /* @__PURE__ */ defineComponent({
|
|
3210
3260
|
...{
|
|
3211
3261
|
name: "MEditorCodeParams"
|
|
3212
3262
|
},
|
|
@@ -3267,7 +3317,7 @@ const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
|
3267
3317
|
|
|
3268
3318
|
const _hoisted_1$Z = { class: "m-fields-code-select-col" };
|
|
3269
3319
|
const _hoisted_2$n = { class: "code-select-container" };
|
|
3270
|
-
const _sfc_main$
|
|
3320
|
+
const _sfc_main$1m = /* @__PURE__ */ defineComponent({
|
|
3271
3321
|
...{
|
|
3272
3322
|
name: "MFieldsCodeSelectCol"
|
|
3273
3323
|
},
|
|
@@ -3376,7 +3426,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
3376
3426
|
onClick: _cache[0] || (_cache[0] = ($event) => editCode(__props.model[__props.name]))
|
|
3377
3427
|
}, {
|
|
3378
3428
|
default: withCtx(() => [
|
|
3379
|
-
createVNode(_sfc_main$
|
|
3429
|
+
createVNode(_sfc_main$1s, {
|
|
3380
3430
|
icon: !notEditable.value ? unref(Edit) : unref(View)
|
|
3381
3431
|
}, null, 8, ["icon"])
|
|
3382
3432
|
]),
|
|
@@ -3385,7 +3435,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
3385
3435
|
}, 8, ["size"])) : createCommentVNode("v-if", true)
|
|
3386
3436
|
]),
|
|
3387
3437
|
createCommentVNode(" 参数填写框 "),
|
|
3388
|
-
paramsConfig.value.length ? (openBlock(), createBlock(_sfc_main$
|
|
3438
|
+
paramsConfig.value.length ? (openBlock(), createBlock(_sfc_main$1n, {
|
|
3389
3439
|
name: "params",
|
|
3390
3440
|
key: __props.model[__props.name],
|
|
3391
3441
|
model: __props.model,
|
|
@@ -3399,7 +3449,7 @@ const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
|
3399
3449
|
}
|
|
3400
3450
|
});
|
|
3401
3451
|
|
|
3402
|
-
const _sfc_main$
|
|
3452
|
+
const _sfc_main$1l = /* @__PURE__ */ defineComponent({
|
|
3403
3453
|
...{
|
|
3404
3454
|
name: "MFieldsCondOpSelect"
|
|
3405
3455
|
},
|
|
@@ -3502,7 +3552,7 @@ const _hoisted_1$Y = {
|
|
|
3502
3552
|
ref: "title",
|
|
3503
3553
|
class: "m-editor-float-box-title"
|
|
3504
3554
|
};
|
|
3505
|
-
const _sfc_main$
|
|
3555
|
+
const _sfc_main$1k = /* @__PURE__ */ defineComponent({
|
|
3506
3556
|
__name: "FloatingBox",
|
|
3507
3557
|
props: /* @__PURE__ */ mergeModels({
|
|
3508
3558
|
position: { default: () => ({ left: 0, top: 0 }) },
|
|
@@ -3664,7 +3714,7 @@ const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
|
3664
3714
|
onClick: closeHandler
|
|
3665
3715
|
}, {
|
|
3666
3716
|
default: withCtx(() => [
|
|
3667
|
-
createVNode(_sfc_main$
|
|
3717
|
+
createVNode(_sfc_main$1s, { icon: unref(Close) }, null, 8, ["icon"])
|
|
3668
3718
|
]),
|
|
3669
3719
|
_: 1
|
|
3670
3720
|
/* STABLE */
|
|
@@ -4197,7 +4247,7 @@ const useNodeStatus$1 = (nodeData) => {
|
|
|
4197
4247
|
|
|
4198
4248
|
const _hoisted_1$X = { class: "m-editor-data-source-fields" };
|
|
4199
4249
|
const _hoisted_2$m = { class: "m-editor-data-source-fields-footer" };
|
|
4200
|
-
const _sfc_main$
|
|
4250
|
+
const _sfc_main$1j = /* @__PURE__ */ defineComponent({
|
|
4201
4251
|
...{
|
|
4202
4252
|
name: "MFieldsDataSourceFields"
|
|
4203
4253
|
},
|
|
@@ -4371,7 +4421,6 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
4371
4421
|
{
|
|
4372
4422
|
name: "defaultValue",
|
|
4373
4423
|
text: "默认值",
|
|
4374
|
-
height: "200px",
|
|
4375
4424
|
parse: true,
|
|
4376
4425
|
type: (mForm, { model }) => {
|
|
4377
4426
|
if (model.type === "number") return "number";
|
|
@@ -4379,6 +4428,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
4379
4428
|
if (model.type === "string") return "text";
|
|
4380
4429
|
return "vs-code";
|
|
4381
4430
|
},
|
|
4431
|
+
autosize: { minRows: 1, maxRows: 30 },
|
|
4382
4432
|
options: [
|
|
4383
4433
|
{ text: "true", value: true },
|
|
4384
4434
|
{ text: "false", value: false }
|
|
@@ -4403,7 +4453,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
4403
4453
|
type: "vs-code",
|
|
4404
4454
|
labelWidth: "0",
|
|
4405
4455
|
language: "json",
|
|
4406
|
-
|
|
4456
|
+
autosize: { minRows: 30, maxRows: 50 },
|
|
4407
4457
|
options: inject("codeOptions", {})
|
|
4408
4458
|
}
|
|
4409
4459
|
];
|
|
@@ -4504,7 +4554,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
4504
4554
|
/* STABLE */
|
|
4505
4555
|
}, 8, ["disabled"])
|
|
4506
4556
|
]),
|
|
4507
|
-
createVNode(_sfc_main$
|
|
4557
|
+
createVNode(_sfc_main$1k, {
|
|
4508
4558
|
visible: addDialogVisible.value,
|
|
4509
4559
|
"onUpdate:visible": _cache[2] || (_cache[2] = ($event) => addDialogVisible.value = $event),
|
|
4510
4560
|
width: width.value,
|
|
@@ -4528,7 +4578,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
4528
4578
|
_: 1
|
|
4529
4579
|
/* STABLE */
|
|
4530
4580
|
}, 8, ["visible", "width", "height", "title", "position"]),
|
|
4531
|
-
createVNode(_sfc_main$
|
|
4581
|
+
createVNode(_sfc_main$1k, {
|
|
4532
4582
|
visible: addFromJsonDialogVisible.value,
|
|
4533
4583
|
"onUpdate:visible": _cache[5] || (_cache[5] = ($event) => addFromJsonDialogVisible.value = $event),
|
|
4534
4584
|
width: width.value,
|
|
@@ -4555,7 +4605,7 @@ const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
|
4555
4605
|
});
|
|
4556
4606
|
|
|
4557
4607
|
const _hoisted_1$W = { class: "m-editor-data-source-field-select" };
|
|
4558
|
-
const _sfc_main$
|
|
4608
|
+
const _sfc_main$1i = /* @__PURE__ */ defineComponent({
|
|
4559
4609
|
__name: "FieldSelect",
|
|
4560
4610
|
props: /* @__PURE__ */ mergeModels({
|
|
4561
4611
|
value: {},
|
|
@@ -4723,7 +4773,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
4723
4773
|
onClick: _cache[0] || (_cache[0] = ($event) => editHandler(selectDataSourceId.value))
|
|
4724
4774
|
}, {
|
|
4725
4775
|
default: withCtx(() => [
|
|
4726
|
-
createVNode(_sfc_main$
|
|
4776
|
+
createVNode(_sfc_main$1s, {
|
|
4727
4777
|
icon: !notEditable.value ? unref(Edit) : unref(View)
|
|
4728
4778
|
}, null, 8, ["icon"])
|
|
4729
4779
|
]),
|
|
@@ -4740,7 +4790,7 @@ const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
|
4740
4790
|
});
|
|
4741
4791
|
|
|
4742
4792
|
const _hoisted_1$V = { class: "m-fields-data-source-field-select" };
|
|
4743
|
-
const _sfc_main$
|
|
4793
|
+
const _sfc_main$1h = /* @__PURE__ */ defineComponent({
|
|
4744
4794
|
...{
|
|
4745
4795
|
name: "MFieldsDataSourceFieldSelect"
|
|
4746
4796
|
},
|
|
@@ -4844,7 +4894,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
4844
4894
|
};
|
|
4845
4895
|
return (_ctx, _cache) => {
|
|
4846
4896
|
return openBlock(), createElementBlock("div", _hoisted_1$V, [
|
|
4847
|
-
!disabledDataSource.value && (showDataSourceFieldSelect.value || !__props.config.fieldConfig) ? (openBlock(), createBlock(_sfc_main$
|
|
4897
|
+
!disabledDataSource.value && (showDataSourceFieldSelect.value || !__props.config.fieldConfig) ? (openBlock(), createBlock(_sfc_main$1i, {
|
|
4848
4898
|
key: 0,
|
|
4849
4899
|
"model-value": __props.model[__props.name],
|
|
4850
4900
|
disabled: __props.disabled,
|
|
@@ -4878,7 +4928,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
4878
4928
|
onClick: _cache[0] || (_cache[0] = ($event) => showDataSourceFieldSelect.value = !showDataSourceFieldSelect.value)
|
|
4879
4929
|
}, {
|
|
4880
4930
|
default: withCtx(() => [
|
|
4881
|
-
createVNode(_sfc_main$
|
|
4931
|
+
createVNode(_sfc_main$1s, { icon: unref(Coin) }, null, 8, ["icon"])
|
|
4882
4932
|
]),
|
|
4883
4933
|
_: 1
|
|
4884
4934
|
/* STABLE */
|
|
@@ -4894,7 +4944,7 @@ const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
|
4894
4944
|
|
|
4895
4945
|
const _hoisted_1$U = { style: { "display": "flex", "flex-direction": "column", "line-height": "1.2em" } };
|
|
4896
4946
|
const _hoisted_2$l = { style: { "font-size": "10px", "color": "rgba(0, 0, 0, 0.6)" } };
|
|
4897
|
-
const _sfc_main$
|
|
4947
|
+
const _sfc_main$1g = /* @__PURE__ */ defineComponent({
|
|
4898
4948
|
...{
|
|
4899
4949
|
name: "MFieldsDataSourceInput"
|
|
4900
4950
|
},
|
|
@@ -5104,7 +5154,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
5104
5154
|
}
|
|
5105
5155
|
), {
|
|
5106
5156
|
suffix: withCtx(() => [
|
|
5107
|
-
createVNode(_sfc_main$
|
|
5157
|
+
createVNode(_sfc_main$1s, { icon: unref(Coin) }, null, 8, ["icon"])
|
|
5108
5158
|
]),
|
|
5109
5159
|
default: withCtx(({ item }) => [
|
|
5110
5160
|
createElementVNode("div", _hoisted_1$U, [
|
|
@@ -5199,7 +5249,7 @@ const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
|
5199
5249
|
256
|
|
5200
5250
|
/* UNKEYED_FRAGMENT */
|
|
5201
5251
|
)),
|
|
5202
|
-
createVNode(_sfc_main$
|
|
5252
|
+
createVNode(_sfc_main$1s, {
|
|
5203
5253
|
class: "tmagic-data-source-input-icon",
|
|
5204
5254
|
icon: unref(Coin)
|
|
5205
5255
|
}, null, 8, ["icon"])
|
|
@@ -5223,7 +5273,7 @@ const _hoisted_1$T = { style: { "display": "flex", "margin-bottom": "10px" } };
|
|
|
5223
5273
|
const _hoisted_2$k = { style: { "flex": "1" } };
|
|
5224
5274
|
const _hoisted_3$7 = { style: { "flex": "1" } };
|
|
5225
5275
|
const _hoisted_4$5 = { class: "dialog-footer" };
|
|
5226
|
-
const _sfc_main$
|
|
5276
|
+
const _sfc_main$1f = /* @__PURE__ */ defineComponent({
|
|
5227
5277
|
...{
|
|
5228
5278
|
name: "MEditorCodeBlockEditor"
|
|
5229
5279
|
},
|
|
@@ -5339,7 +5389,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
5339
5389
|
name: "content",
|
|
5340
5390
|
type: "vs-code",
|
|
5341
5391
|
options: inject("codeOptions", {}),
|
|
5342
|
-
|
|
5392
|
+
autosize: { minRows: 10, maxRows: 30 },
|
|
5343
5393
|
onChange: (formState, code) => {
|
|
5344
5394
|
try {
|
|
5345
5395
|
getEditorConfig("parseDSL")(code);
|
|
@@ -5409,7 +5459,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
5409
5459
|
null,
|
|
5410
5460
|
[
|
|
5411
5461
|
createCommentVNode(" 代码块编辑区 "),
|
|
5412
|
-
createVNode(_sfc_main$
|
|
5462
|
+
createVNode(_sfc_main$1k, {
|
|
5413
5463
|
visible: boxVisible.value,
|
|
5414
5464
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => boxVisible.value = $event),
|
|
5415
5465
|
width: width.value,
|
|
@@ -5538,7 +5588,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
5538
5588
|
})
|
|
5539
5589
|
])
|
|
5540
5590
|
]),
|
|
5541
|
-
createVNode(_sfc_main$
|
|
5591
|
+
createVNode(_sfc_main$1r, {
|
|
5542
5592
|
ref: "magicVsEditor",
|
|
5543
5593
|
type: "diff",
|
|
5544
5594
|
language: "json",
|
|
@@ -5562,7 +5612,7 @@ const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
|
5562
5612
|
|
|
5563
5613
|
const _hoisted_1$S = { class: "m-editor-data-source-methods" };
|
|
5564
5614
|
const _hoisted_2$j = { class: "m-editor-data-source-methods-footer" };
|
|
5565
|
-
const _sfc_main$
|
|
5615
|
+
const _sfc_main$1e = /* @__PURE__ */ defineComponent({
|
|
5566
5616
|
...{
|
|
5567
5617
|
name: "MFieldsDataSourceMethods"
|
|
5568
5618
|
},
|
|
@@ -5705,7 +5755,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
5705
5755
|
/* STABLE */
|
|
5706
5756
|
}, 8, ["disabled"])
|
|
5707
5757
|
]),
|
|
5708
|
-
codeConfig.value ? (openBlock(), createBlock(_sfc_main$
|
|
5758
|
+
codeConfig.value ? (openBlock(), createBlock(_sfc_main$1f, {
|
|
5709
5759
|
key: 0,
|
|
5710
5760
|
ref: "codeBlockEditor",
|
|
5711
5761
|
disabled: __props.disabled,
|
|
@@ -5721,7 +5771,7 @@ const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
|
5721
5771
|
|
|
5722
5772
|
const _hoisted_1$R = { class: "m-fields-data-source-method-select" };
|
|
5723
5773
|
const _hoisted_2$i = { class: "data-source-method-select-container" };
|
|
5724
|
-
const _sfc_main$
|
|
5774
|
+
const _sfc_main$1d = /* @__PURE__ */ defineComponent({
|
|
5725
5775
|
...{
|
|
5726
5776
|
name: "MFieldsDataSourceMethodSelect"
|
|
5727
5777
|
},
|
|
@@ -5834,7 +5884,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
5834
5884
|
onClick: editCodeHandler
|
|
5835
5885
|
}, {
|
|
5836
5886
|
default: withCtx(() => [
|
|
5837
|
-
createVNode(_sfc_main$
|
|
5887
|
+
createVNode(_sfc_main$1s, {
|
|
5838
5888
|
icon: !notEditable.value ? unref(Edit) : unref(View)
|
|
5839
5889
|
}, null, 8, ["icon"])
|
|
5840
5890
|
]),
|
|
@@ -5846,7 +5896,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
5846
5896
|
/* STABLE */
|
|
5847
5897
|
}, 8, ["content"])) : createCommentVNode("v-if", true)
|
|
5848
5898
|
]),
|
|
5849
|
-
paramsConfig.value.length ? (openBlock(), createBlock(_sfc_main$
|
|
5899
|
+
paramsConfig.value.length ? (openBlock(), createBlock(_sfc_main$1n, {
|
|
5850
5900
|
name: "params",
|
|
5851
5901
|
key: __props.model[__props.name],
|
|
5852
5902
|
model: __props.model,
|
|
@@ -5862,7 +5912,7 @@ const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
|
5862
5912
|
|
|
5863
5913
|
const _hoisted_1$Q = { class: "m-editor-data-source-fields" };
|
|
5864
5914
|
const _hoisted_2$h = { class: "m-editor-data-source-fields-footer" };
|
|
5865
|
-
const _sfc_main$
|
|
5915
|
+
const _sfc_main$1c = /* @__PURE__ */ defineComponent({
|
|
5866
5916
|
...{
|
|
5867
5917
|
name: "MFieldsDataSourceMocks"
|
|
5868
5918
|
},
|
|
@@ -5929,7 +5979,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
5929
5979
|
language: "json",
|
|
5930
5980
|
options: inject("codeOptions", {}),
|
|
5931
5981
|
defaultValue: "{}",
|
|
5932
|
-
|
|
5982
|
+
autosize: { minRows: 30, maxRows: 50 },
|
|
5933
5983
|
onChange: (formState, v) => {
|
|
5934
5984
|
if (typeof v !== "string") return v;
|
|
5935
5985
|
return JSON.parse(v);
|
|
@@ -5952,7 +6002,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
5952
6002
|
const columns = [
|
|
5953
6003
|
{
|
|
5954
6004
|
type: "expand",
|
|
5955
|
-
component: _sfc_main$
|
|
6005
|
+
component: _sfc_main$1r,
|
|
5956
6006
|
props: (row) => ({
|
|
5957
6007
|
initValues: row.data,
|
|
5958
6008
|
language: "json",
|
|
@@ -6091,7 +6141,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
6091
6141
|
/* STABLE */
|
|
6092
6142
|
}, 8, ["disabled"])
|
|
6093
6143
|
]),
|
|
6094
|
-
createVNode(_sfc_main$
|
|
6144
|
+
createVNode(_sfc_main$1k, {
|
|
6095
6145
|
visible: addDialogVisible.value,
|
|
6096
6146
|
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => addDialogVisible.value = $event),
|
|
6097
6147
|
width: width.value,
|
|
@@ -6120,7 +6170,7 @@ const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
|
6120
6170
|
});
|
|
6121
6171
|
|
|
6122
6172
|
const _hoisted_1$P = { class: "m-fields-data-source-select" };
|
|
6123
|
-
const _sfc_main$
|
|
6173
|
+
const _sfc_main$1b = /* @__PURE__ */ defineComponent({
|
|
6124
6174
|
...{
|
|
6125
6175
|
name: "MFieldsDataSourceSelect"
|
|
6126
6176
|
},
|
|
@@ -6200,7 +6250,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
6200
6250
|
onClick: editHandler
|
|
6201
6251
|
}, {
|
|
6202
6252
|
default: withCtx(() => [
|
|
6203
|
-
createVNode(_sfc_main$
|
|
6253
|
+
createVNode(_sfc_main$1s, {
|
|
6204
6254
|
icon: !notEditable.value ? unref(Edit) : unref(View)
|
|
6205
6255
|
}, null, 8, ["icon"])
|
|
6206
6256
|
]),
|
|
@@ -6216,7 +6266,7 @@ const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
|
6216
6266
|
}
|
|
6217
6267
|
});
|
|
6218
6268
|
|
|
6219
|
-
const _sfc_main$
|
|
6269
|
+
const _sfc_main$1a = /* @__PURE__ */ defineComponent({
|
|
6220
6270
|
...{
|
|
6221
6271
|
name: "m-fields-display-conds"
|
|
6222
6272
|
},
|
|
@@ -6354,7 +6404,7 @@ const _hoisted_2$g = {
|
|
|
6354
6404
|
key: 1,
|
|
6355
6405
|
class: "fullWidth"
|
|
6356
6406
|
};
|
|
6357
|
-
const _sfc_main$
|
|
6407
|
+
const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
6358
6408
|
...{
|
|
6359
6409
|
name: "MFieldsEventSelect"
|
|
6360
6410
|
},
|
|
@@ -6710,7 +6760,7 @@ const _hoisted_1$N = {
|
|
|
6710
6760
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6711
6761
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
6712
6762
|
};
|
|
6713
|
-
const _sfc_main$
|
|
6763
|
+
const _sfc_main$18 = /* @__PURE__ */ defineComponent({
|
|
6714
6764
|
...{
|
|
6715
6765
|
name: "MEditorCodeIcon"
|
|
6716
6766
|
},
|
|
@@ -6726,7 +6776,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
6726
6776
|
|
|
6727
6777
|
const _hoisted_1$M = { class: "m-fields-key-value" };
|
|
6728
6778
|
const _hoisted_2$f = { key: 0 };
|
|
6729
|
-
const _sfc_main$
|
|
6779
|
+
const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
6730
6780
|
...{
|
|
6731
6781
|
name: "MFieldsKeyValue"
|
|
6732
6782
|
},
|
|
@@ -6856,14 +6906,17 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
6856
6906
|
/* STABLE */
|
|
6857
6907
|
}, 8, ["size", "disabled", "icon"])
|
|
6858
6908
|
])) : createCommentVNode("v-if", true),
|
|
6859
|
-
__props.config.advanced && showCode.value ? (openBlock(), createBlock(_sfc_main$
|
|
6909
|
+
__props.config.advanced && showCode.value ? (openBlock(), createBlock(_sfc_main$1r, {
|
|
6860
6910
|
key: 1,
|
|
6861
|
-
height: "200px",
|
|
6862
6911
|
"init-values": __props.model[__props.name],
|
|
6863
6912
|
language: "javascript",
|
|
6864
6913
|
options: {
|
|
6865
6914
|
readOnly: __props.disabled
|
|
6866
6915
|
},
|
|
6916
|
+
autosize: {
|
|
6917
|
+
minRows: 1,
|
|
6918
|
+
maxRows: 20
|
|
6919
|
+
},
|
|
6867
6920
|
parse: true,
|
|
6868
6921
|
onSave: save
|
|
6869
6922
|
}, null, 8, ["init-values", "options"])) : createCommentVNode("v-if", true),
|
|
@@ -6872,7 +6925,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
6872
6925
|
size: "default",
|
|
6873
6926
|
disabled: __props.disabled,
|
|
6874
6927
|
link: "",
|
|
6875
|
-
icon: _sfc_main$
|
|
6928
|
+
icon: _sfc_main$18,
|
|
6876
6929
|
onClick: _cache[0] || (_cache[0] = ($event) => showCode.value = !showCode.value)
|
|
6877
6930
|
}, null, 8, ["disabled"])) : createCommentVNode("v-if", true)
|
|
6878
6931
|
]);
|
|
@@ -6882,7 +6935,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
6882
6935
|
|
|
6883
6936
|
const _hoisted_1$L = { class: "m-fields-page-fragment-select" };
|
|
6884
6937
|
const _hoisted_2$e = { class: "page-fragment-select-container" };
|
|
6885
|
-
const _sfc_main$
|
|
6938
|
+
const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
6886
6939
|
...{
|
|
6887
6940
|
name: "MFieldsPageFragmentSelect"
|
|
6888
6941
|
},
|
|
@@ -6940,7 +6993,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
6940
6993
|
onChange: changeHandler
|
|
6941
6994
|
}, null, 8, ["model", "name", "size", "prop", "disabled"]),
|
|
6942
6995
|
createCommentVNode(" 编辑按钮 "),
|
|
6943
|
-
__props.model[__props.name] ? (openBlock(), createBlock(_sfc_main$
|
|
6996
|
+
__props.model[__props.name] ? (openBlock(), createBlock(_sfc_main$1s, {
|
|
6944
6997
|
key: 0,
|
|
6945
6998
|
class: "icon",
|
|
6946
6999
|
icon: unref(Edit),
|
|
@@ -6955,7 +7008,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
6955
7008
|
const _hoisted_1$K = { class: "background-position-container" };
|
|
6956
7009
|
const _hoisted_2$d = { class: "presets-value-list" };
|
|
6957
7010
|
const _hoisted_3$6 = { class: "custom-value" };
|
|
6958
|
-
const _sfc_main$
|
|
7011
|
+
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
6959
7012
|
__name: "BackgroundPosition",
|
|
6960
7013
|
props: {
|
|
6961
7014
|
config: {},
|
|
@@ -7067,7 +7120,7 @@ const _export_sfc = (sfc, props) => {
|
|
|
7067
7120
|
return target;
|
|
7068
7121
|
};
|
|
7069
7122
|
|
|
7070
|
-
const _sfc_main$
|
|
7123
|
+
const _sfc_main$14 = { };
|
|
7071
7124
|
|
|
7072
7125
|
const _hoisted_1$J = {
|
|
7073
7126
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7079,9 +7132,9 @@ function _sfc_render$k(_ctx, _cache) {
|
|
|
7079
7132
|
createStaticVNode("<path d=\"M884.736 102.4l-147.456 0c-20.48 0-36.864 16.384-36.864 36.864l0 147.456C696.32 311.296 712.704 327.68 733.184 327.68l147.456 0c20.48 0 36.864-16.384 36.864-36.864L917.504 139.264C921.6 118.784 905.216 102.4 884.736 102.4zM884.736 290.816l-147.456 0L737.28 139.264l147.456 0L884.736 290.816z\"></path><path d=\"M884.736 696.32l-147.456 0c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864l0-147.456C921.6 712.704 905.216 696.32 884.736 696.32zM884.736 884.736l-147.456 0 0-147.456 147.456 0L884.736 884.736z\"></path><path d=\"M884.736 401.408l-147.456 0c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864l0-147.456C921.6 417.792 905.216 401.408 884.736 401.408zM884.736 585.728l-147.456 0 0-147.456 147.456 0L884.736 585.728z\"></path><path d=\"M585.728 401.408l-147.456 0c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864l0-147.456C622.592 417.792 606.208 401.408 585.728 401.408zM585.728 585.728l-147.456 0 0-147.456 147.456 0L585.728 585.728z\"></path><path d=\"M585.728 102.4l-147.456 0c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864L622.592 139.264C622.592 118.784 606.208 102.4 585.728 102.4zM585.728 290.816l-147.456 0L438.272 139.264l147.456 0L585.728 290.816z\"></path><path d=\"M585.728 696.32l-147.456 0c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864l0-147.456C622.592 712.704 606.208 696.32 585.728 696.32zM585.728 884.736l-147.456 0 0-147.456 147.456 0L585.728 884.736z\"></path><path d=\"M290.816 696.32 139.264 696.32c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864l0-147.456C327.68 712.704 311.296 696.32 290.816 696.32zM290.816 884.736 139.264 884.736l0-147.456 147.456 0L286.72 884.736z\"></path><path d=\"M290.816 401.408 139.264 401.408c-20.48 0-36.864 16.384-36.864 36.864l0 147.456c0 20.48 16.384 36.864 36.864 36.864l147.456 0c20.48 0 36.864-16.384 36.864-36.864l0-147.456C327.68 417.792 311.296 401.408 290.816 401.408zM290.816 585.728 139.264 585.728l0-147.456 147.456 0L286.72 585.728z\"></path><path d=\"M290.816 102.4 139.264 102.4c-20.48 0-36.864 16.384-36.864 36.864l0 147.456C102.4 311.296 118.784 327.68 139.264 327.68l147.456 0C311.296 327.68 327.68 311.296 327.68 290.816L327.68 139.264C327.68 118.784 311.296 102.4 290.816 102.4zM290.816 290.816 139.264 290.816 139.264 139.264l147.456 0L286.72 290.816z\"></path>", 9)
|
|
7080
7133
|
]))]))
|
|
7081
7134
|
}
|
|
7082
|
-
const BackgroundRepeat = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7135
|
+
const BackgroundRepeat = /*#__PURE__*/_export_sfc(_sfc_main$14, [['render',_sfc_render$k]]);
|
|
7083
7136
|
|
|
7084
|
-
const _sfc_main$
|
|
7137
|
+
const _sfc_main$13 = { };
|
|
7085
7138
|
|
|
7086
7139
|
const _hoisted_1$I = {
|
|
7087
7140
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7096,9 +7149,9 @@ function _sfc_render$j(_ctx, _cache) {
|
|
|
7096
7149
|
}, null, -1 /* CACHED */)
|
|
7097
7150
|
]))]))
|
|
7098
7151
|
}
|
|
7099
|
-
const BackgroundRepeatX = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7152
|
+
const BackgroundRepeatX = /*#__PURE__*/_export_sfc(_sfc_main$13, [['render',_sfc_render$j]]);
|
|
7100
7153
|
|
|
7101
|
-
const _sfc_main$
|
|
7154
|
+
const _sfc_main$12 = { };
|
|
7102
7155
|
|
|
7103
7156
|
const _hoisted_1$H = {
|
|
7104
7157
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7113,9 +7166,9 @@ function _sfc_render$i(_ctx, _cache) {
|
|
|
7113
7166
|
}, null, -1 /* CACHED */)
|
|
7114
7167
|
]))]))
|
|
7115
7168
|
}
|
|
7116
|
-
const BackgroundRepeatY = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7169
|
+
const BackgroundRepeatY = /*#__PURE__*/_export_sfc(_sfc_main$12, [['render',_sfc_render$i]]);
|
|
7117
7170
|
|
|
7118
|
-
const _sfc_main$
|
|
7171
|
+
const _sfc_main$11 = { };
|
|
7119
7172
|
|
|
7120
7173
|
const _hoisted_1$G = {
|
|
7121
7174
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7130,9 +7183,9 @@ function _sfc_render$h(_ctx, _cache) {
|
|
|
7130
7183
|
}, null, -1 /* CACHED */)
|
|
7131
7184
|
]))]))
|
|
7132
7185
|
}
|
|
7133
|
-
const BackgroundNoRepeat = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7186
|
+
const BackgroundNoRepeat = /*#__PURE__*/_export_sfc(_sfc_main$11, [['render',_sfc_render$h]]);
|
|
7134
7187
|
|
|
7135
|
-
const _sfc_main
|
|
7188
|
+
const _sfc_main$10 = /* @__PURE__ */ defineComponent({
|
|
7136
7189
|
__name: "Background",
|
|
7137
7190
|
props: {
|
|
7138
7191
|
values: {},
|
|
@@ -7191,7 +7244,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
7191
7244
|
name: "backgroundPosition",
|
|
7192
7245
|
text: "背景定位",
|
|
7193
7246
|
type: "component",
|
|
7194
|
-
component: _sfc_main$
|
|
7247
|
+
component: _sfc_main$15,
|
|
7195
7248
|
labelWidth: "68px"
|
|
7196
7249
|
}
|
|
7197
7250
|
]
|
|
@@ -7211,7 +7264,7 @@ const _sfc_main$$ = /* @__PURE__ */ defineComponent({
|
|
|
7211
7264
|
}
|
|
7212
7265
|
});
|
|
7213
7266
|
|
|
7214
|
-
const _sfc_main
|
|
7267
|
+
const _sfc_main$$ = { };
|
|
7215
7268
|
|
|
7216
7269
|
const _hoisted_1$F = {
|
|
7217
7270
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7223,9 +7276,9 @@ function _sfc_render$g(_ctx, _cache) {
|
|
|
7223
7276
|
createElementVNode("path", { d: "M128 810.666667h768v85.333333H128z m0-170.666667h512v85.333333H128z m0-170.666667h768v85.333334H128z m0-341.333333h768v85.333333H128z m0 170.666667h512v85.333333H128z" }, null, -1 /* CACHED */)
|
|
7224
7277
|
]))]))
|
|
7225
7278
|
}
|
|
7226
|
-
const AlignLeft = /*#__PURE__*/_export_sfc(_sfc_main
|
|
7279
|
+
const AlignLeft = /*#__PURE__*/_export_sfc(_sfc_main$$, [['render',_sfc_render$g]]);
|
|
7227
7280
|
|
|
7228
|
-
const _sfc_main$
|
|
7281
|
+
const _sfc_main$_ = { };
|
|
7229
7282
|
|
|
7230
7283
|
const _hoisted_1$E = {
|
|
7231
7284
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7237,9 +7290,9 @@ function _sfc_render$f(_ctx, _cache) {
|
|
|
7237
7290
|
createElementVNode("path", { d: "M128 810.666667h768v85.333333H128z m128-170.666667h512v85.333333H256z m-128-170.666667h768v85.333334H128z m0-341.333333h768v85.333333H128z m128 170.666667h512v85.333333H256z" }, null, -1 /* CACHED */)
|
|
7238
7291
|
]))]))
|
|
7239
7292
|
}
|
|
7240
|
-
const AlignCenter = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7293
|
+
const AlignCenter = /*#__PURE__*/_export_sfc(_sfc_main$_, [['render',_sfc_render$f]]);
|
|
7241
7294
|
|
|
7242
|
-
const _sfc_main$
|
|
7295
|
+
const _sfc_main$Z = { };
|
|
7243
7296
|
|
|
7244
7297
|
const _hoisted_1$D = {
|
|
7245
7298
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7251,9 +7304,9 @@ function _sfc_render$e(_ctx, _cache) {
|
|
|
7251
7304
|
createElementVNode("path", { d: "M128 128h768v85.333333H128z m0 682.666667h768v85.333333H128z m213.333333-170.666667h554.666667v85.333333H341.333333z m-213.333333-170.666667h768v85.333334H128z m213.333333-170.666666h554.666667v85.333333H341.333333z" }, null, -1 /* CACHED */)
|
|
7252
7305
|
]))]))
|
|
7253
7306
|
}
|
|
7254
|
-
const AlignRight = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7307
|
+
const AlignRight = /*#__PURE__*/_export_sfc(_sfc_main$Z, [['render',_sfc_render$e]]);
|
|
7255
7308
|
|
|
7256
|
-
const _sfc_main$
|
|
7309
|
+
const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
7257
7310
|
__name: "Font",
|
|
7258
7311
|
props: {
|
|
7259
7312
|
values: {},
|
|
@@ -7348,7 +7401,7 @@ const _hoisted_2$c = {
|
|
|
7348
7401
|
};
|
|
7349
7402
|
const _hoisted_3$5 = { class: "next-input" };
|
|
7350
7403
|
const _hoisted_4$4 = ["model-value", "title", "disabled", "onChange"];
|
|
7351
|
-
const _sfc_main$
|
|
7404
|
+
const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
7352
7405
|
__name: "Box",
|
|
7353
7406
|
props: {
|
|
7354
7407
|
disabled: { type: Boolean },
|
|
@@ -7441,7 +7494,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
7441
7494
|
}
|
|
7442
7495
|
});
|
|
7443
7496
|
|
|
7444
|
-
const _sfc_main$
|
|
7497
|
+
const _sfc_main$W = { };
|
|
7445
7498
|
|
|
7446
7499
|
const _hoisted_1$B = {
|
|
7447
7500
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7453,9 +7506,9 @@ function _sfc_render$d(_ctx, _cache) {
|
|
|
7453
7506
|
createElementVNode("path", { d: "M960 128a64 64 0 0 1 64 64v640a64 64 0 0 1-64 64H64a64 64 0 0 1-64-64V192a64 64 0 0 1 64-64h896z m0 64H64v640h896V192z m-96 64a32 32 0 0 1 32 32v448a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32h704z" }, null, -1 /* CACHED */)
|
|
7454
7507
|
]))]))
|
|
7455
7508
|
}
|
|
7456
|
-
const DisplayBlock = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7509
|
+
const DisplayBlock = /*#__PURE__*/_export_sfc(_sfc_main$W, [['render',_sfc_render$d]]);
|
|
7457
7510
|
|
|
7458
|
-
const _sfc_main$
|
|
7511
|
+
const _sfc_main$V = { };
|
|
7459
7512
|
|
|
7460
7513
|
const _hoisted_1$A = {
|
|
7461
7514
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7467,9 +7520,9 @@ function _sfc_render$c(_ctx, _cache) {
|
|
|
7467
7520
|
createElementVNode("path", { d: "M960 128a64 64 0 0 1 64 64v640a64 64 0 0 1-64 64H64a64 64 0 0 1-64-64V192a64 64 0 0 1 64-64h896z m0 64H64v640h896V192zM352 256v512H160V256h192z m256 0v512h-192V256h192z m256 0v512h-192V256h192z" }, null, -1 /* CACHED */)
|
|
7468
7521
|
]))]))
|
|
7469
7522
|
}
|
|
7470
|
-
const DisplayFlex = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7523
|
+
const DisplayFlex = /*#__PURE__*/_export_sfc(_sfc_main$V, [['render',_sfc_render$c]]);
|
|
7471
7524
|
|
|
7472
|
-
const _sfc_main$
|
|
7525
|
+
const _sfc_main$U = { };
|
|
7473
7526
|
|
|
7474
7527
|
const _hoisted_1$z = {
|
|
7475
7528
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7481,9 +7534,9 @@ function _sfc_render$b(_ctx, _cache) {
|
|
|
7481
7534
|
createElementVNode("path", { d: "M787.616 651.36a142.72 142.72 0 0 0 52.864 31.904 205.504 205.504 0 0 0 67.264 10.848 245.76 245.76 0 0 0 38.784-2.4c9.504-1.6 19.36-4 30.208-7.04 8.16-2.24 15.968-5.12 23.36-8.32l23.392-10.816V587.52h-8.736c-3.968 3.424-8.96 7.648-15.104 12.544a190.272 190.272 0 0 1-19.936 13.504 120.32 120.32 0 0 1-27.616 12.544 102.528 102.528 0 0 1-62.72-0.576 80 80 0 0 1-29.824-17.088 89.28 89.28 0 0 1-21.664-32.512c-5.696-13.664-8.64-30.784-8.64-51.296 0-19.744 2.72-36.384 7.968-50.08 5.248-13.664 12.384-24.896 20.992-33.056 9.12-8.832 18.816-14.816 29.632-18.816a101.824 101.824 0 0 1 63.68-0.736c9.408 3.136 18.08 7.04 26.112 11.68 13.024 7.808 25.28 16.768 36.672 26.784H1024v-78.72c-6.08-2.88-13.12-6.08-21.12-9.6a205.984 205.984 0 0 0-57.152-15.36 270.016 270.016 0 0 0-37.056-2.304c-24.864 0-47.744 4-68.704 11.84-20.992 7.776-38.432 18.784-52.64 33.6a144.256 144.256 0 0 0-33.632 54.176 207.68 207.68 0 0 0-12.48 70.176c0 27.84 3.968 52.352 12.16 73.568a146.08 146.08 0 0 0 34.176 53.184l0.064 0.416z m-186.112 34.656a122.912 122.912 0 0 0 42.784-21.504c11.2-8.32 20.224-19.296 26.24-31.936 6.56-13.664 9.888-28.704 9.664-43.904 0-22.784-6.272-41.024-18.912-54.72-12.544-13.92-29.664-23.04-51.104-27.36v-2.304c14.4-6.24 26.688-16.448 35.52-29.408 8.384-12.544 12.544-27.008 12.544-43.52 0-14.24-2.944-26.784-9.12-37.6a65.696 65.696 0 0 0-27.936-26.24 117.44 117.44 0 0 0-36.48-12.096A437.312 437.312 0 0 0 526.656 352h-127.552v340.384h143.392c23.84 0 43.52-2.112 59.008-6.4z m-118.112-271.584h7.968c16.544 0 29.472 0.128 38.656 0.352 9.248 0.576 16.864 1.728 23.04 4a26.24 26.24 0 0 1 14.4 13.12c2.656 5.28 4.064 11.072 4.128 16.96 0.16 6.656-1.056 13.248-3.52 19.392a28.064 28.064 0 0 1-15.04 13.696c-7.04 2.912-14.56 4.48-22.208 4.576-9.472 0.32-20.864 0.544-34.24 0.544h-13.184v-72.64z m6.144 215.52h-6.144v-84.8h18.464c12.64 0 24.736 0 36.384 0.256 9.216-0.16 18.432 0.896 27.36 3.2 9.696 2.848 16.544 7.232 20.512 13.12 4 5.92 6.08 14.24 6.08 25.088 0 8.192-1.728 15.488-4.992 21.824-3.232 6.336-9.696 11.392-18.24 15.392-8.544 4-18.24 5.696-28.48 6.272-10.304 0.224-27.392 0.224-51.328 0.224l0.384-0.576z m-378.56-6.016h124.672l23.36 68.416H348.8L224.32 353.728H124.416L0 692.384h87.52l23.488-68.416-0.064-0.032z m62.336-183.552l41.472 121.44h-82.88l41.408-121.44z" }, null, -1 /* CACHED */)
|
|
7482
7535
|
]))]))
|
|
7483
7536
|
}
|
|
7484
|
-
const DisplayInline = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7537
|
+
const DisplayInline = /*#__PURE__*/_export_sfc(_sfc_main$U, [['render',_sfc_render$b]]);
|
|
7485
7538
|
|
|
7486
|
-
const _sfc_main$
|
|
7539
|
+
const _sfc_main$T = { };
|
|
7487
7540
|
|
|
7488
7541
|
const _hoisted_1$y = {
|
|
7489
7542
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7495,9 +7548,9 @@ function _sfc_render$a(_ctx, _cache) {
|
|
|
7495
7548
|
createElementVNode("path", { d: "M960 128a64 64 0 0 1 64 64v640a64 64 0 0 1-64 64H64a64 64 0 0 1-64-64V192a64 64 0 0 1 64-64h896z m0 64H64v640h896V192z m-131.936 158.496c65.984 1.824 109.024 32.512 129.184 92.064l-65.952 15.136-1.856-5.664c-9.984-27.52-30.432-42.112-61.376-43.84-46.72 2.784-71.456 35.296-74.208 97.6 1.856 63.2 26.56 96.64 74.24 100.32 37.536-0.928 59.52-23.36 65.92-67.328L960 559.36l-1.792 7.232c-16.96 63.872-60.352 95.84-130.144 95.84-93.44-4.608-142.464-56.8-147.04-156.672 4.576-98.048 53.6-149.792 147.04-155.296z m-568.928 4.128l114.08 302.336H297.6l-22.016-65.984H160.192L138.24 656.96H64l112.672-302.336h82.464z m278.976 0l7.68 0.32c62.816 3.36 96 27.104 99.52 71.136 0 35.744-19.712 59.552-59.104 71.456 42.144 9.184 65.952 32.544 71.456 70.08 0 59.552-37.568 89.344-112.672 89.344h-148.416v-302.336h141.536z m-4.128 173.152H465.28v81.088h67.328c33.92 0 51.296-13.76 52.224-41.248-2.752-25.632-19.68-38.912-50.848-39.84zM217.92 408.224h-1.376l-0.96 7.36c-1.184 7.232-3.168 13.92-5.92 20.128l-34.336 103.04h87.936l-38.464-104.416-2.624-9.024c-1.6-5.888-3.04-11.584-4.256-17.088z m309.184-2.752H465.28v71.456h61.824c29.344-0.928 44.448-13.76 45.376-38.464-0.96-22.016-16.032-32.992-45.376-32.992z" }, null, -1 /* CACHED */)
|
|
7496
7549
|
]))]))
|
|
7497
7550
|
}
|
|
7498
|
-
const DisplayInlineBlock = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7551
|
+
const DisplayInlineBlock = /*#__PURE__*/_export_sfc(_sfc_main$T, [['render',_sfc_render$a]]);
|
|
7499
7552
|
|
|
7500
|
-
const _sfc_main$
|
|
7553
|
+
const _sfc_main$S = { };
|
|
7501
7554
|
|
|
7502
7555
|
const _hoisted_1$x = {
|
|
7503
7556
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7509,9 +7562,9 @@ function _sfc_render$9(_ctx, _cache) {
|
|
|
7509
7562
|
createElementVNode("path", { d: "M931.37 477.14c-43.94-69.49-93.39-125.03-147.99-166.35L663.31 441.46c8.79 21.36 13.63 44.91 13.63 69.62 0 96.27-73.84 174.32-164.95 174.32-21.63 0-42.28-4.39-61.32-12.47l-94.09 102.52a455.097 455.097 0 0 0 155.41 26.2c172.62 0 312.43-85.54 419.59-256.63 12.83-20.43 12.72-47.45-0.21-67.88zM795.52 127.99L682.24 252.82C627.73 231 570.1 220.04 512.11 220.5c-171.15 0-310.99 85.66-419.48 256.75-12.93 20.43-13.04 47.33-0.2 67.78 46.95 75.15 100.3 133.68 160.01 175.82L131.9 853.65l38.9 42.36 663.6-725.76-38.88-42.26zM519.68 438.37c-3.72-0.59-7.46-0.81-11.27-0.81-45.63 0-82.43 39.03-82.43 87.16 0 4.97 0.42 9.81 1.14 14.54l-57.15 60.14-5.92 8.33c-13.15-24.94-20.5-53.68-20.5-84.28 0-96.3 73.84-174.45 164.95-174.45 27.2 0 52.76 6.93 75.4 19.29l-64.22 70.08z m52.05 135.53c21.74-23.26 27.17-55.48 16.31-81.39l-96.42 103.16c26.59 9.08 58.38 1.48 80.11-21.77z" }, null, -1 /* CACHED */)
|
|
7510
7563
|
]))]))
|
|
7511
7564
|
}
|
|
7512
|
-
const DisplayNone = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7565
|
+
const DisplayNone = /*#__PURE__*/_export_sfc(_sfc_main$S, [['render',_sfc_render$9]]);
|
|
7513
7566
|
|
|
7514
|
-
const _sfc_main$
|
|
7567
|
+
const _sfc_main$R = { };
|
|
7515
7568
|
|
|
7516
7569
|
const _hoisted_1$w = {
|
|
7517
7570
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7523,9 +7576,9 @@ function _sfc_render$8(_ctx, _cache) {
|
|
|
7523
7576
|
createElementVNode("path", { d: "M896 320H128V0h768v320z m0 320H128v-256h768v256z m-128 192l-256 192-256-192 192-0.032V704h128v128h192z" }, null, -1 /* CACHED */)
|
|
7524
7577
|
]))]))
|
|
7525
7578
|
}
|
|
7526
|
-
const FlexDirectionColumn = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7579
|
+
const FlexDirectionColumn = /*#__PURE__*/_export_sfc(_sfc_main$R, [['render',_sfc_render$8]]);
|
|
7527
7580
|
|
|
7528
|
-
const _sfc_main$
|
|
7581
|
+
const _sfc_main$Q = { };
|
|
7529
7582
|
|
|
7530
7583
|
const _hoisted_1$v = {
|
|
7531
7584
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7537,9 +7590,9 @@ function _sfc_render$7(_ctx, _cache) {
|
|
|
7537
7590
|
createElementVNode("path", { d: "M896 704H128v320h768V704z m0-320H128v256h768v-256z m-128-192l-256-192-256 192 192 0.032V320h128V192h192z" }, null, -1 /* CACHED */)
|
|
7538
7591
|
]))]))
|
|
7539
7592
|
}
|
|
7540
|
-
const FlexDirectionColumnReverse = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7593
|
+
const FlexDirectionColumnReverse = /*#__PURE__*/_export_sfc(_sfc_main$Q, [['render',_sfc_render$7]]);
|
|
7541
7594
|
|
|
7542
|
-
const _sfc_main$
|
|
7595
|
+
const _sfc_main$P = { };
|
|
7543
7596
|
|
|
7544
7597
|
const _hoisted_1$u = {
|
|
7545
7598
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7551,9 +7604,9 @@ function _sfc_render$6(_ctx, _cache) {
|
|
|
7551
7604
|
createElementVNode("path", { d: "M320 128v768H0V128h320z m320 0v768h-256V128h256z m192 128l192 256-192 256-0.032-192H704v-128h128V256z" }, null, -1 /* CACHED */)
|
|
7552
7605
|
]))]))
|
|
7553
7606
|
}
|
|
7554
|
-
const FlexDirectionRow = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7607
|
+
const FlexDirectionRow = /*#__PURE__*/_export_sfc(_sfc_main$P, [['render',_sfc_render$6]]);
|
|
7555
7608
|
|
|
7556
|
-
const _sfc_main$
|
|
7609
|
+
const _sfc_main$O = { };
|
|
7557
7610
|
|
|
7558
7611
|
const _hoisted_1$t = {
|
|
7559
7612
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7565,9 +7618,9 @@ function _sfc_render$5(_ctx, _cache) {
|
|
|
7565
7618
|
createElementVNode("path", { d: "M704 128v768h320V128H704zM384 128v768h256V128h-256zM192 256l-192 256 192 256 0.032-192H320v-128H192V256z" }, null, -1 /* CACHED */)
|
|
7566
7619
|
]))]))
|
|
7567
7620
|
}
|
|
7568
|
-
const FlexDirectionRowReverse = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7621
|
+
const FlexDirectionRowReverse = /*#__PURE__*/_export_sfc(_sfc_main$O, [['render',_sfc_render$5]]);
|
|
7569
7622
|
|
|
7570
|
-
const _sfc_main$
|
|
7623
|
+
const _sfc_main$N = { };
|
|
7571
7624
|
|
|
7572
7625
|
const _hoisted_1$s = {
|
|
7573
7626
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7579,9 +7632,9 @@ function _sfc_render$4(_ctx, _cache) {
|
|
|
7579
7632
|
createElementVNode("path", { d: "M480 1024V0h64v1024h-64z m128-64V64h320v896H608zM96 960V64h320v896H96z" }, null, -1 /* CACHED */)
|
|
7580
7633
|
]))]))
|
|
7581
7634
|
}
|
|
7582
|
-
const JustifyContentCenter = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7635
|
+
const JustifyContentCenter = /*#__PURE__*/_export_sfc(_sfc_main$N, [['render',_sfc_render$4]]);
|
|
7583
7636
|
|
|
7584
|
-
const _sfc_main$
|
|
7637
|
+
const _sfc_main$M = { };
|
|
7585
7638
|
|
|
7586
7639
|
const _hoisted_1$r = {
|
|
7587
7640
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7593,9 +7646,9 @@ function _sfc_render$3(_ctx, _cache) {
|
|
|
7593
7646
|
createElementVNode("path", { d: "M416 160H96v704h320V160z m384 0H480v704h320V160z m128-160h-64v1024h64V0z" }, null, -1 /* CACHED */)
|
|
7594
7647
|
]))]))
|
|
7595
7648
|
}
|
|
7596
|
-
const JustifyContentFlexEnd = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7649
|
+
const JustifyContentFlexEnd = /*#__PURE__*/_export_sfc(_sfc_main$M, [['render',_sfc_render$3]]);
|
|
7597
7650
|
|
|
7598
|
-
const _sfc_main$
|
|
7651
|
+
const _sfc_main$L = { };
|
|
7599
7652
|
|
|
7600
7653
|
const _hoisted_1$q = {
|
|
7601
7654
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7607,9 +7660,9 @@ function _sfc_render$2(_ctx, _cache) {
|
|
|
7607
7660
|
createElementVNode("path", { d: "M608 160h320v704H608V160zM224 160h320v704H224V160zM96 0h64v1024H96V0z" }, null, -1 /* CACHED */)
|
|
7608
7661
|
]))]))
|
|
7609
7662
|
}
|
|
7610
|
-
const JustifyContentFlexStart = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7663
|
+
const JustifyContentFlexStart = /*#__PURE__*/_export_sfc(_sfc_main$L, [['render',_sfc_render$2]]);
|
|
7611
7664
|
|
|
7612
|
-
const _sfc_main$
|
|
7665
|
+
const _sfc_main$K = { };
|
|
7613
7666
|
|
|
7614
7667
|
const _hoisted_1$p = {
|
|
7615
7668
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7621,9 +7674,9 @@ function _sfc_render$1(_ctx, _cache) {
|
|
|
7621
7674
|
createElementVNode("path", { d: "M320 864H192v160H128v-160H0V160h128V0h64v160h128v704z m704 0h-128v160h-64v-160h-128V160h128V0h64v160h128v704z" }, null, -1 /* CACHED */)
|
|
7622
7675
|
]))]))
|
|
7623
7676
|
}
|
|
7624
|
-
const JustifyContentSpaceAround = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7677
|
+
const JustifyContentSpaceAround = /*#__PURE__*/_export_sfc(_sfc_main$K, [['render',_sfc_render$1]]);
|
|
7625
7678
|
|
|
7626
|
-
const _sfc_main$
|
|
7679
|
+
const _sfc_main$J = { };
|
|
7627
7680
|
|
|
7628
7681
|
const _hoisted_1$o = {
|
|
7629
7682
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7635,9 +7688,9 @@ function _sfc_render(_ctx, _cache) {
|
|
|
7635
7688
|
createElementVNode("path", { d: "M64 1024H0V0h64v1024z m384-160H128V160h320v704z m448 0H576V160h320v704z m128 160h-64V0h64v1024z" }, null, -1 /* CACHED */)
|
|
7636
7689
|
]))]))
|
|
7637
7690
|
}
|
|
7638
|
-
const JustifyContentSpaceBetween = /*#__PURE__*/_export_sfc(_sfc_main$
|
|
7691
|
+
const JustifyContentSpaceBetween = /*#__PURE__*/_export_sfc(_sfc_main$J, [['render',_sfc_render]]);
|
|
7639
7692
|
|
|
7640
|
-
const _sfc_main$
|
|
7693
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
7641
7694
|
__name: "Layout",
|
|
7642
7695
|
props: {
|
|
7643
7696
|
values: {},
|
|
@@ -7801,7 +7854,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
7801
7854
|
disabled: __props.disabled,
|
|
7802
7855
|
onChange: change
|
|
7803
7856
|
}, null, 8, ["model", "size", "disabled"]),
|
|
7804
|
-
withDirectives(createVNode(_sfc_main$
|
|
7857
|
+
withDirectives(createVNode(_sfc_main$X, {
|
|
7805
7858
|
model: __props.values,
|
|
7806
7859
|
size: __props.size,
|
|
7807
7860
|
disabled: __props.disabled,
|
|
@@ -7817,7 +7870,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
7817
7870
|
}
|
|
7818
7871
|
});
|
|
7819
7872
|
|
|
7820
|
-
const _sfc_main$
|
|
7873
|
+
const _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
7821
7874
|
__name: "Position",
|
|
7822
7875
|
props: {
|
|
7823
7876
|
values: {},
|
|
@@ -7928,7 +7981,7 @@ const _hoisted_3$4 = { class: "border-icon-container-row" };
|
|
|
7928
7981
|
const _hoisted_4$3 = { class: "border-icon-container-row" };
|
|
7929
7982
|
const _hoisted_5$1 = { class: "border-icon-container-row" };
|
|
7930
7983
|
const _hoisted_6$1 = { class: "border-value-container" };
|
|
7931
|
-
const _sfc_main$
|
|
7984
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
7932
7985
|
__name: "Border",
|
|
7933
7986
|
props: {
|
|
7934
7987
|
model: {},
|
|
@@ -8056,7 +8109,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
8056
8109
|
}
|
|
8057
8110
|
});
|
|
8058
8111
|
|
|
8059
|
-
const _sfc_main$
|
|
8112
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
8060
8113
|
__name: "Border",
|
|
8061
8114
|
props: {
|
|
8062
8115
|
values: {},
|
|
@@ -8094,7 +8147,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
8094
8147
|
disabled: __props.disabled,
|
|
8095
8148
|
onChange: change
|
|
8096
8149
|
}, null, 8, ["model", "size", "disabled"]),
|
|
8097
|
-
createVNode(_sfc_main$
|
|
8150
|
+
createVNode(_sfc_main$G, {
|
|
8098
8151
|
model: __props.values,
|
|
8099
8152
|
size: __props.size,
|
|
8100
8153
|
disabled: __props.disabled,
|
|
@@ -8108,7 +8161,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
8108
8161
|
}
|
|
8109
8162
|
});
|
|
8110
8163
|
|
|
8111
|
-
const _sfc_main$
|
|
8164
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
8112
8165
|
...{
|
|
8113
8166
|
name: "MFieldsStyleSetter"
|
|
8114
8167
|
},
|
|
@@ -8133,23 +8186,23 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
8133
8186
|
{
|
|
8134
8187
|
name: "font",
|
|
8135
8188
|
title: "布局",
|
|
8136
|
-
component: _sfc_main$
|
|
8189
|
+
component: _sfc_main$I
|
|
8137
8190
|
},
|
|
8138
8191
|
{
|
|
8139
8192
|
title: "位置",
|
|
8140
|
-
component: _sfc_main$
|
|
8193
|
+
component: _sfc_main$H
|
|
8141
8194
|
},
|
|
8142
8195
|
{
|
|
8143
8196
|
title: "背景",
|
|
8144
|
-
component: _sfc_main
|
|
8197
|
+
component: _sfc_main$10
|
|
8145
8198
|
},
|
|
8146
8199
|
{
|
|
8147
8200
|
title: "文字",
|
|
8148
|
-
component: _sfc_main$
|
|
8201
|
+
component: _sfc_main$Y
|
|
8149
8202
|
},
|
|
8150
8203
|
{
|
|
8151
8204
|
title: "边框与圆角",
|
|
8152
|
-
component: _sfc_main$
|
|
8205
|
+
component: _sfc_main$F
|
|
8153
8206
|
}
|
|
8154
8207
|
];
|
|
8155
8208
|
const collapseValue = shallowRef(
|
|
@@ -8177,7 +8230,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
8177
8230
|
name: `${index}`
|
|
8178
8231
|
}, {
|
|
8179
8232
|
title: withCtx(() => [
|
|
8180
|
-
createVNode(_sfc_main$
|
|
8233
|
+
createVNode(_sfc_main$1s, { icon: unref(Grid) }, null, 8, ["icon"]),
|
|
8181
8234
|
createTextVNode(
|
|
8182
8235
|
toDisplayString(item.title),
|
|
8183
8236
|
1
|
|
@@ -8213,7 +8266,7 @@ const _hoisted_1$m = {
|
|
|
8213
8266
|
class: "m-fields-ui-select",
|
|
8214
8267
|
style: { "display": "flex" }
|
|
8215
8268
|
};
|
|
8216
|
-
const _sfc_main$
|
|
8269
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
8217
8270
|
...{
|
|
8218
8271
|
name: "MFieldsUISelect"
|
|
8219
8272
|
},
|
|
@@ -8396,7 +8449,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
8396
8449
|
}
|
|
8397
8450
|
});
|
|
8398
8451
|
|
|
8399
|
-
const _sfc_main$
|
|
8452
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
8400
8453
|
...{
|
|
8401
8454
|
name: "MEditorResizer"
|
|
8402
8455
|
},
|
|
@@ -8423,7 +8476,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
8423
8476
|
}
|
|
8424
8477
|
});
|
|
8425
8478
|
|
|
8426
|
-
const _sfc_main$
|
|
8479
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
8427
8480
|
...{
|
|
8428
8481
|
name: "MEditorSplitView"
|
|
8429
8482
|
},
|
|
@@ -8577,7 +8630,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
8577
8630
|
6
|
|
8578
8631
|
/* CLASS, STYLE */
|
|
8579
8632
|
),
|
|
8580
|
-
createVNode(_sfc_main$
|
|
8633
|
+
createVNode(_sfc_main$C, { onChange: changeLeft })
|
|
8581
8634
|
],
|
|
8582
8635
|
64
|
|
8583
8636
|
/* STABLE_FRAGMENT */
|
|
@@ -8598,7 +8651,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
8598
8651
|
Fragment,
|
|
8599
8652
|
{ key: 1 },
|
|
8600
8653
|
[
|
|
8601
|
-
createVNode(_sfc_main$
|
|
8654
|
+
createVNode(_sfc_main$C, { onChange: changeRight }),
|
|
8602
8655
|
createElementVNode(
|
|
8603
8656
|
"div",
|
|
8604
8657
|
{
|
|
@@ -8628,7 +8681,7 @@ const _hoisted_1$l = {
|
|
|
8628
8681
|
class: "menu-item-text"
|
|
8629
8682
|
};
|
|
8630
8683
|
const _hoisted_2$a = { class: "el-dropdown-link menubar-menu-button" };
|
|
8631
|
-
const _sfc_main$
|
|
8684
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
8632
8685
|
...{
|
|
8633
8686
|
name: "MEditorToolButton"
|
|
8634
8687
|
},
|
|
@@ -8730,7 +8783,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
8730
8783
|
__props.data.icon ? {
|
|
8731
8784
|
name: "icon",
|
|
8732
8785
|
fn: withCtx(() => [
|
|
8733
|
-
createVNode(_sfc_main$
|
|
8786
|
+
createVNode(_sfc_main$1s, {
|
|
8734
8787
|
icon: __props.data.icon
|
|
8735
8788
|
}, null, 8, ["icon"])
|
|
8736
8789
|
]),
|
|
@@ -8764,7 +8817,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
8764
8817
|
__props.data.icon ? {
|
|
8765
8818
|
name: "icon",
|
|
8766
8819
|
fn: withCtx(() => [
|
|
8767
|
-
createVNode(_sfc_main$
|
|
8820
|
+
createVNode(_sfc_main$1s, {
|
|
8768
8821
|
icon: __props.data.icon
|
|
8769
8822
|
}, null, 8, ["icon"])
|
|
8770
8823
|
]),
|
|
@@ -8863,7 +8916,7 @@ const _hoisted_2$9 = {
|
|
|
8863
8916
|
key: 1,
|
|
8864
8917
|
style: { "width": "21px" }
|
|
8865
8918
|
};
|
|
8866
|
-
const _sfc_main$
|
|
8919
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
8867
8920
|
...{
|
|
8868
8921
|
name: "MEditorPageBarAddButton"
|
|
8869
8922
|
},
|
|
@@ -8885,10 +8938,10 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
8885
8938
|
return showAddPageButton.value ? (openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
8886
8939
|
createVNode(unref(TMagicPopover), { "popper-class": "data-source-list-panel-add-menu" }, {
|
|
8887
8940
|
reference: withCtx(() => [
|
|
8888
|
-
createVNode(_sfc_main$
|
|
8941
|
+
createVNode(_sfc_main$1s, { icon: unref(Plus) }, null, 8, ["icon"])
|
|
8889
8942
|
]),
|
|
8890
8943
|
default: withCtx(() => [
|
|
8891
|
-
createVNode(_sfc_main$
|
|
8944
|
+
createVNode(_sfc_main$A, {
|
|
8892
8945
|
data: {
|
|
8893
8946
|
type: "button",
|
|
8894
8947
|
text: "页面",
|
|
@@ -8897,7 +8950,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
8897
8950
|
}
|
|
8898
8951
|
}
|
|
8899
8952
|
}, null, 8, ["data"]),
|
|
8900
|
-
createVNode(_sfc_main$
|
|
8953
|
+
createVNode(_sfc_main$A, {
|
|
8901
8954
|
data: {
|
|
8902
8955
|
type: "button",
|
|
8903
8956
|
text: "页面片",
|
|
@@ -8924,7 +8977,7 @@ const _hoisted_2$8 = {
|
|
|
8924
8977
|
class: "m-editor-page-bar-items",
|
|
8925
8978
|
ref: "itemsContainer"
|
|
8926
8979
|
};
|
|
8927
|
-
const _sfc_main$
|
|
8980
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
8928
8981
|
...{
|
|
8929
8982
|
name: "MEditorPageBarScrollContainer"
|
|
8930
8983
|
},
|
|
@@ -9062,14 +9115,14 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
9062
9115
|
class: "m-editor-page-bar-item m-editor-page-bar-item-icon m-editor-page-bar-item-left-icon",
|
|
9063
9116
|
onClick: _cache[0] || (_cache[0] = ($event) => scroll("left"))
|
|
9064
9117
|
}, [
|
|
9065
|
-
createVNode(_sfc_main$
|
|
9118
|
+
createVNode(_sfc_main$1s, { icon: unref(ArrowLeftBold) }, null, 8, ["icon"])
|
|
9066
9119
|
])) : createCommentVNode("v-if", true),
|
|
9067
9120
|
canScroll.value ? (openBlock(), createElementBlock("div", {
|
|
9068
9121
|
key: 2,
|
|
9069
9122
|
class: "m-editor-page-bar-item m-editor-page-bar-item-icon m-editor-page-bar-item-right-icon",
|
|
9070
9123
|
onClick: _cache[1] || (_cache[1] = ($event) => scroll("right"))
|
|
9071
9124
|
}, [
|
|
9072
|
-
createVNode(_sfc_main$
|
|
9125
|
+
createVNode(_sfc_main$1s, { icon: unref(ArrowRightBold) }, null, 8, ["icon"])
|
|
9073
9126
|
])) : createCommentVNode("v-if", true)
|
|
9074
9127
|
],
|
|
9075
9128
|
512
|
|
@@ -9086,7 +9139,7 @@ const _hoisted_1$i = {
|
|
|
9086
9139
|
};
|
|
9087
9140
|
const _hoisted_2$7 = { class: "page-bar-popover-wrapper" };
|
|
9088
9141
|
const _hoisted_3$3 = { class: "page-bar-popover-inner" };
|
|
9089
|
-
const _sfc_main$
|
|
9142
|
+
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
9090
9143
|
...{
|
|
9091
9144
|
name: "MEditorPageList"
|
|
9092
9145
|
},
|
|
@@ -9127,7 +9180,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
9127
9180
|
Fragment,
|
|
9128
9181
|
null,
|
|
9129
9182
|
renderList(__props.list, (item, index) => {
|
|
9130
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9183
|
+
return openBlock(), createBlock(_sfc_main$A, {
|
|
9131
9184
|
data: {
|
|
9132
9185
|
type: "button",
|
|
9133
9186
|
text: item.devconfig?.tabName || item.name || item.id,
|
|
@@ -9153,7 +9206,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
9153
9206
|
});
|
|
9154
9207
|
|
|
9155
9208
|
const _hoisted_1$h = { class: "m-editor-page-bar-item m-editor-page-bar-item-icon m-editor-page-bar-search" };
|
|
9156
|
-
const _sfc_main$
|
|
9209
|
+
const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
9157
9210
|
__name: "Search",
|
|
9158
9211
|
props: {
|
|
9159
9212
|
"query": {},
|
|
@@ -9192,7 +9245,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
9192
9245
|
};
|
|
9193
9246
|
return (_ctx, _cache) => {
|
|
9194
9247
|
return openBlock(), createElementBlock("div", _hoisted_1$h, [
|
|
9195
|
-
createVNode(_sfc_main$
|
|
9248
|
+
createVNode(_sfc_main$1s, {
|
|
9196
9249
|
icon: unref(Search),
|
|
9197
9250
|
onClick: _cache[0] || (_cache[0] = ($event) => visible.value = !visible.value),
|
|
9198
9251
|
class: normalizeClass({ "icon-active": visible.value })
|
|
@@ -9220,7 +9273,7 @@ const _hoisted_1$g = { class: "m-editor-page-bar-tabs" };
|
|
|
9220
9273
|
const _hoisted_2$6 = ["data-page-id", "onClick"];
|
|
9221
9274
|
const _hoisted_3$2 = { class: "m-editor-page-bar-title" };
|
|
9222
9275
|
const _hoisted_4$2 = ["title"];
|
|
9223
|
-
const _sfc_main$
|
|
9276
|
+
const _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
9224
9277
|
...{
|
|
9225
9278
|
name: "MEditorPageBar"
|
|
9226
9279
|
},
|
|
@@ -9296,20 +9349,20 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
9296
9349
|
});
|
|
9297
9350
|
return (_ctx, _cache) => {
|
|
9298
9351
|
return openBlock(), createElementBlock("div", _hoisted_1$g, [
|
|
9299
|
-
createVNode(_sfc_main$
|
|
9352
|
+
createVNode(_sfc_main$y, {
|
|
9300
9353
|
ref: "pageBarScrollContainer",
|
|
9301
9354
|
"page-bar-sort-options": __props.pageBarSortOptions,
|
|
9302
9355
|
length: list.value.length
|
|
9303
9356
|
}, {
|
|
9304
9357
|
prepend: withCtx(() => [
|
|
9305
9358
|
renderSlot(_ctx.$slots, "page-bar-add-button", {}, () => [
|
|
9306
|
-
createVNode(_sfc_main$
|
|
9359
|
+
createVNode(_sfc_main$z)
|
|
9307
9360
|
]),
|
|
9308
|
-
createVNode(_sfc_main$
|
|
9361
|
+
createVNode(_sfc_main$w, {
|
|
9309
9362
|
query: query.value,
|
|
9310
9363
|
"onUpdate:query": _cache[0] || (_cache[0] = ($event) => query.value = $event)
|
|
9311
9364
|
}, null, 8, ["query"]),
|
|
9312
|
-
createVNode(_sfc_main$
|
|
9365
|
+
createVNode(_sfc_main$x, { list: list.value }, {
|
|
9313
9366
|
"page-list-popover": withCtx(({ list: list2 }) => [
|
|
9314
9367
|
renderSlot(_ctx.$slots, "page-list-popover", { list: list2 })
|
|
9315
9368
|
]),
|
|
@@ -9359,7 +9412,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
9359
9412
|
default: withCtx(() => [
|
|
9360
9413
|
createElementVNode("div", null, [
|
|
9361
9414
|
renderSlot(_ctx.$slots, "page-bar-popover", { page: item }, () => [
|
|
9362
|
-
createVNode(_sfc_main$
|
|
9415
|
+
createVNode(_sfc_main$A, {
|
|
9363
9416
|
data: {
|
|
9364
9417
|
type: "button",
|
|
9365
9418
|
text: "复制",
|
|
@@ -9367,7 +9420,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
9367
9420
|
handler: () => copy(item)
|
|
9368
9421
|
}
|
|
9369
9422
|
}, null, 8, ["data"]),
|
|
9370
|
-
createVNode(_sfc_main$
|
|
9423
|
+
createVNode(_sfc_main$A, {
|
|
9371
9424
|
data: {
|
|
9372
9425
|
type: "button",
|
|
9373
9426
|
text: "删除",
|
|
@@ -9400,7 +9453,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
9400
9453
|
|
|
9401
9454
|
const _hoisted_1$f = { class: "m-editor-empty-panel" };
|
|
9402
9455
|
const _hoisted_2$5 = { class: "m-editor-empty-content" };
|
|
9403
|
-
const _sfc_main$
|
|
9456
|
+
const _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
9404
9457
|
...{
|
|
9405
9458
|
name: "MEditorAddPageBox"
|
|
9406
9459
|
},
|
|
@@ -9427,7 +9480,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
9427
9480
|
onClick: _cache[0] || (_cache[0] = ($event) => clickHandler(unref(NodeType).PAGE))
|
|
9428
9481
|
}, [
|
|
9429
9482
|
createElementVNode("div", null, [
|
|
9430
|
-
createVNode(_sfc_main$
|
|
9483
|
+
createVNode(_sfc_main$1s, { icon: unref(Plus) }, null, 8, ["icon"])
|
|
9431
9484
|
]),
|
|
9432
9485
|
_cache[2] || (_cache[2] = createElementVNode(
|
|
9433
9486
|
"p",
|
|
@@ -9443,7 +9496,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
9443
9496
|
onClick: _cache[1] || (_cache[1] = ($event) => clickHandler(unref(NodeType).PAGE_FRAGMENT))
|
|
9444
9497
|
}, [
|
|
9445
9498
|
createElementVNode("div", null, [
|
|
9446
|
-
createVNode(_sfc_main$
|
|
9499
|
+
createVNode(_sfc_main$1s, { icon: unref(Plus) }, null, 8, ["icon"])
|
|
9447
9500
|
]),
|
|
9448
9501
|
_cache[3] || (_cache[3] = createElementVNode(
|
|
9449
9502
|
"p",
|
|
@@ -9464,7 +9517,7 @@ const _hoisted_1$e = {
|
|
|
9464
9517
|
ref: "content",
|
|
9465
9518
|
style: { "min-width": "900px" }
|
|
9466
9519
|
};
|
|
9467
|
-
const _sfc_main$
|
|
9520
|
+
const _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
9468
9521
|
...{
|
|
9469
9522
|
name: "MEditorFramework"
|
|
9470
9523
|
},
|
|
@@ -9536,13 +9589,13 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
9536
9589
|
renderSlot(_ctx.$slots, "nav"),
|
|
9537
9590
|
renderSlot(_ctx.$slots, "content-before"),
|
|
9538
9591
|
showSrc.value ? renderSlot(_ctx.$slots, "src-code", { key: 0 }, () => [
|
|
9539
|
-
createVNode(_sfc_main$
|
|
9592
|
+
createVNode(_sfc_main$1r, {
|
|
9540
9593
|
class: "m-editor-content",
|
|
9541
9594
|
"init-values": root.value,
|
|
9542
9595
|
options: unref(codeOptions),
|
|
9543
9596
|
onSave: saveCode
|
|
9544
9597
|
}, null, 8, ["init-values", "options"])
|
|
9545
|
-
]) : (openBlock(), createBlock(_sfc_main$
|
|
9598
|
+
]) : (openBlock(), createBlock(_sfc_main$B, {
|
|
9546
9599
|
key: 1,
|
|
9547
9600
|
ref: "splitView",
|
|
9548
9601
|
class: "m-editor-content",
|
|
@@ -9562,10 +9615,10 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
9562
9615
|
]),
|
|
9563
9616
|
center: withCtx(() => [
|
|
9564
9617
|
page.value ? renderSlot(_ctx.$slots, "workspace", { key: 0 }) : renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
|
|
9565
|
-
createVNode(_sfc_main$
|
|
9618
|
+
createVNode(_sfc_main$u, { "disabled-page-fragment": __props.disabledPageFragment }, null, 8, ["disabled-page-fragment"])
|
|
9566
9619
|
]),
|
|
9567
9620
|
renderSlot(_ctx.$slots, "page-bar", {}, () => [
|
|
9568
|
-
createVNode(_sfc_main$
|
|
9621
|
+
createVNode(_sfc_main$v, {
|
|
9569
9622
|
"disabled-page-fragment": __props.disabledPageFragment,
|
|
9570
9623
|
"page-bar-sort-options": __props.pageBarSortOptions,
|
|
9571
9624
|
"filter-function": __props.pageFilterFunction
|
|
@@ -9608,7 +9661,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
9608
9661
|
}
|
|
9609
9662
|
});
|
|
9610
9663
|
|
|
9611
|
-
const _sfc_main$
|
|
9664
|
+
const _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
9612
9665
|
...{
|
|
9613
9666
|
name: "MEditorNavMenu"
|
|
9614
9667
|
},
|
|
@@ -9800,7 +9853,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
9800
9853
|
Fragment,
|
|
9801
9854
|
null,
|
|
9802
9855
|
renderList(buttons.value[key], (item, index) => {
|
|
9803
|
-
return openBlock(), createBlock(_sfc_main$
|
|
9856
|
+
return openBlock(), createBlock(_sfc_main$A, {
|
|
9804
9857
|
data: item,
|
|
9805
9858
|
key: index
|
|
9806
9859
|
}, null, 8, ["data"]);
|
|
@@ -9825,7 +9878,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
9825
9878
|
});
|
|
9826
9879
|
|
|
9827
9880
|
const _hoisted_1$d = { class: "m-editor-props-form-panel" };
|
|
9828
|
-
const _sfc_main$
|
|
9881
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
9829
9882
|
...{
|
|
9830
9883
|
name: "MEditorFormPanel"
|
|
9831
9884
|
},
|
|
@@ -9910,12 +9963,12 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
9910
9963
|
onClick: _cache[0] || (_cache[0] = ($event) => showSrc.value = !showSrc.value)
|
|
9911
9964
|
}, {
|
|
9912
9965
|
default: withCtx(() => [
|
|
9913
|
-
createVNode(_sfc_main$
|
|
9966
|
+
createVNode(_sfc_main$1s, { icon: unref(Document) }, null, 8, ["icon"])
|
|
9914
9967
|
]),
|
|
9915
9968
|
_: 1
|
|
9916
9969
|
/* STABLE */
|
|
9917
9970
|
}, 8, ["type"])) : createCommentVNode("v-if", true),
|
|
9918
|
-
showSrc.value ? (openBlock(), createBlock(_sfc_main$
|
|
9971
|
+
showSrc.value ? (openBlock(), createBlock(_sfc_main$1r, {
|
|
9919
9972
|
key: 1,
|
|
9920
9973
|
class: "m-editor-props-panel-src-code",
|
|
9921
9974
|
height: `${unref(editorContentHeight)}px`,
|
|
@@ -9980,7 +10033,7 @@ const _hoisted_1$c = {
|
|
|
9980
10033
|
class: "m-editor-props-panel"
|
|
9981
10034
|
};
|
|
9982
10035
|
const _hoisted_2$4 = { class: "m-editor-props-style-panel-title" };
|
|
9983
|
-
const _sfc_main$
|
|
10036
|
+
const _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
9984
10037
|
...{
|
|
9985
10038
|
name: "MEditorPropsPanel"
|
|
9986
10039
|
},
|
|
@@ -10098,7 +10151,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10098
10151
|
_hoisted_1$c,
|
|
10099
10152
|
[
|
|
10100
10153
|
renderSlot(_ctx.$slots, "props-panel-header"),
|
|
10101
|
-
createVNode(_sfc_main$
|
|
10154
|
+
createVNode(_sfc_main$r, {
|
|
10102
10155
|
ref: "propertyFormPanel",
|
|
10103
10156
|
class: normalizeClass(["m-editor-props-property-panel", { "show-style-panel": unref(showStylePanel) }]),
|
|
10104
10157
|
config: curFormConfig.value,
|
|
@@ -10111,11 +10164,11 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10111
10164
|
onMounted: mountedHandler,
|
|
10112
10165
|
onUnmounted: unmountedHandler
|
|
10113
10166
|
}, null, 8, ["class", "config", "values", "disabledShowSrc", "extendState"]),
|
|
10114
|
-
unref(showStylePanel) ? (openBlock(), createBlock(_sfc_main$
|
|
10167
|
+
unref(showStylePanel) ? (openBlock(), createBlock(_sfc_main$C, {
|
|
10115
10168
|
key: 0,
|
|
10116
10169
|
onChange: widthChange
|
|
10117
10170
|
})) : createCommentVNode("v-if", true),
|
|
10118
|
-
unref(showStylePanel) ? (openBlock(), createBlock(_sfc_main$
|
|
10171
|
+
unref(showStylePanel) ? (openBlock(), createBlock(_sfc_main$r, {
|
|
10119
10172
|
key: 1,
|
|
10120
10173
|
class: "m-editor-props-style-panel",
|
|
10121
10174
|
"label-position": "top",
|
|
@@ -10144,7 +10197,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10144
10197
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(toggleStylePanel)(false))
|
|
10145
10198
|
}, {
|
|
10146
10199
|
default: withCtx(() => [
|
|
10147
|
-
createVNode(_sfc_main$
|
|
10200
|
+
createVNode(_sfc_main$1s, { icon: unref(Close) }, null, 8, ["icon"])
|
|
10148
10201
|
]),
|
|
10149
10202
|
_: 1
|
|
10150
10203
|
/* STABLE */
|
|
@@ -10162,7 +10215,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10162
10215
|
onClick: _cache[1] || (_cache[1] = ($event) => unref(toggleStylePanel)(true))
|
|
10163
10216
|
}, {
|
|
10164
10217
|
default: withCtx(() => [
|
|
10165
|
-
createVNode(_sfc_main$
|
|
10218
|
+
createVNode(_sfc_main$1s, { icon: unref(Sugar) }, null, 8, ["icon"])
|
|
10166
10219
|
]),
|
|
10167
10220
|
_: 1
|
|
10168
10221
|
/* STABLE */
|
|
@@ -10177,7 +10230,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10177
10230
|
}
|
|
10178
10231
|
});
|
|
10179
10232
|
|
|
10180
|
-
const _sfc_main$
|
|
10233
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
10181
10234
|
...{
|
|
10182
10235
|
name: "MEditorContentMenu"
|
|
10183
10236
|
},
|
|
@@ -10317,7 +10370,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
10317
10370
|
Fragment,
|
|
10318
10371
|
null,
|
|
10319
10372
|
renderList(__props.menuData, (item, index) => {
|
|
10320
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10373
|
+
return openBlock(), createBlock(_sfc_main$A, {
|
|
10321
10374
|
"event-type": "mouseup",
|
|
10322
10375
|
ref_for: true,
|
|
10323
10376
|
ref: "buttons",
|
|
@@ -10357,7 +10410,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
10357
10410
|
}
|
|
10358
10411
|
});
|
|
10359
10412
|
|
|
10360
|
-
const _sfc_main$
|
|
10413
|
+
const _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
10361
10414
|
...{
|
|
10362
10415
|
name: "MEditorSearchInput"
|
|
10363
10416
|
},
|
|
@@ -10407,7 +10460,7 @@ const _hoisted_4$1 = {
|
|
|
10407
10460
|
key: 0,
|
|
10408
10461
|
class: "m-editor-tree-node-children"
|
|
10409
10462
|
};
|
|
10410
|
-
const _sfc_main$
|
|
10463
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
10411
10464
|
...{
|
|
10412
10465
|
name: "MEditorTreeNode"
|
|
10413
10466
|
},
|
|
@@ -10484,7 +10537,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
10484
10537
|
onMouseenter: mouseenterHandler
|
|
10485
10538
|
},
|
|
10486
10539
|
[
|
|
10487
|
-
createVNode(_sfc_main$
|
|
10540
|
+
createVNode(_sfc_main$1s, {
|
|
10488
10541
|
class: "expand-icon",
|
|
10489
10542
|
style: normalizeStyle(hasChildren.value ? "" : "color: transparent; cursor: default"),
|
|
10490
10543
|
icon: expanded.value ? unref(ArrowDown) : unref(ArrowRight),
|
|
@@ -10554,7 +10607,7 @@ const _hoisted_1$a = {
|
|
|
10554
10607
|
key: 1,
|
|
10555
10608
|
class: "m-editor-tree-empty"
|
|
10556
10609
|
};
|
|
10557
|
-
const _sfc_main$
|
|
10610
|
+
const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
10558
10611
|
...{
|
|
10559
10612
|
name: "MEditorTree"
|
|
10560
10613
|
},
|
|
@@ -10585,7 +10638,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
10585
10638
|
Fragment,
|
|
10586
10639
|
{ key: 0 },
|
|
10587
10640
|
renderList(__props.data, (item) => {
|
|
10588
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10641
|
+
return openBlock(), createBlock(_sfc_main$n, {
|
|
10589
10642
|
key: item.id,
|
|
10590
10643
|
data: item,
|
|
10591
10644
|
indent: __props.indent,
|
|
@@ -10624,7 +10677,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
|
10624
10677
|
}
|
|
10625
10678
|
});
|
|
10626
10679
|
|
|
10627
|
-
const _sfc_main$
|
|
10680
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
10628
10681
|
...{
|
|
10629
10682
|
name: "MEditorCodeBlockList"
|
|
10630
10683
|
},
|
|
@@ -10730,7 +10783,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
10730
10783
|
deleteCode
|
|
10731
10784
|
});
|
|
10732
10785
|
return (_ctx, _cache) => {
|
|
10733
|
-
return openBlock(), createBlock(_sfc_main$
|
|
10786
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
10734
10787
|
data: codeList.value,
|
|
10735
10788
|
"node-status-map": unref(nodeStatusMap),
|
|
10736
10789
|
indent: __props.indent,
|
|
@@ -10761,7 +10814,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
10761
10814
|
placement: "bottom"
|
|
10762
10815
|
}, {
|
|
10763
10816
|
default: withCtx(() => [
|
|
10764
|
-
createVNode(_sfc_main$
|
|
10817
|
+
createVNode(_sfc_main$1s, {
|
|
10765
10818
|
icon: editable.value ? unref(Edit) : unref(View),
|
|
10766
10819
|
class: "edit-icon",
|
|
10767
10820
|
onClick: withModifiers(($event) => editCode(`${data.key}`), ["stop"])
|
|
@@ -10780,7 +10833,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
10780
10833
|
},
|
|
10781
10834
|
{
|
|
10782
10835
|
default: withCtx(() => [
|
|
10783
|
-
createVNode(_sfc_main$
|
|
10836
|
+
createVNode(_sfc_main$1s, {
|
|
10784
10837
|
icon: unref(Close),
|
|
10785
10838
|
class: "edit-icon",
|
|
10786
10839
|
onClick: withModifiers(($event) => deleteCode(`${data.key}`), ["stop"])
|
|
@@ -10871,7 +10924,7 @@ const useContentMenu$1 = (deleteCode) => {
|
|
|
10871
10924
|
};
|
|
10872
10925
|
|
|
10873
10926
|
const _hoisted_1$9 = { class: "search-wrapper" };
|
|
10874
|
-
const _sfc_main$
|
|
10927
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
10875
10928
|
...{
|
|
10876
10929
|
name: "MEditorCodeBlockListPanel"
|
|
10877
10930
|
},
|
|
@@ -10926,7 +10979,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
10926
10979
|
default: withCtx(() => [
|
|
10927
10980
|
renderSlot(_ctx.$slots, "code-block-panel-header", {}, () => [
|
|
10928
10981
|
createElementVNode("div", _hoisted_1$9, [
|
|
10929
|
-
createVNode(_sfc_main$
|
|
10982
|
+
createVNode(_sfc_main$o, { onSearch: filterTextChangeHandler }),
|
|
10930
10983
|
editable.value ? (openBlock(), createBlock(unref(TMagicButton), {
|
|
10931
10984
|
key: 0,
|
|
10932
10985
|
class: "create-code-button",
|
|
@@ -10948,7 +11001,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
10948
11001
|
])
|
|
10949
11002
|
]),
|
|
10950
11003
|
createCommentVNode(" 代码块列表 "),
|
|
10951
|
-
createVNode(_sfc_main$
|
|
11004
|
+
createVNode(_sfc_main$l, {
|
|
10952
11005
|
ref: "codeBlockList",
|
|
10953
11006
|
"custom-error": __props.customError,
|
|
10954
11007
|
indent: __props.indent,
|
|
@@ -10970,7 +11023,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
10970
11023
|
_: 3
|
|
10971
11024
|
/* FORWARDED */
|
|
10972
11025
|
}),
|
|
10973
|
-
unref(codeConfig) ? (openBlock(), createBlock(_sfc_main$
|
|
11026
|
+
unref(codeConfig) ? (openBlock(), createBlock(_sfc_main$1f, {
|
|
10974
11027
|
key: 0,
|
|
10975
11028
|
ref_key: "codeBlockEditor",
|
|
10976
11029
|
ref: codeBlockEditor,
|
|
@@ -10980,7 +11033,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
10980
11033
|
onClose: editDialogCloseHandler
|
|
10981
11034
|
}, null, 8, ["disabled", "content", "onSubmit"])) : createCommentVNode("v-if", true),
|
|
10982
11035
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
10983
|
-
menuData.value.length ? (openBlock(), createBlock(_sfc_main$
|
|
11036
|
+
menuData.value.length ? (openBlock(), createBlock(_sfc_main$p, {
|
|
10984
11037
|
key: 0,
|
|
10985
11038
|
"menu-data": menuData.value,
|
|
10986
11039
|
ref: "menu",
|
|
@@ -11027,6 +11080,71 @@ const useDataSourceEdit = (dataSourceService) => {
|
|
|
11027
11080
|
};
|
|
11028
11081
|
};
|
|
11029
11082
|
|
|
11083
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
11084
|
+
...{
|
|
11085
|
+
name: "MEditorDataSourceAddButton"
|
|
11086
|
+
},
|
|
11087
|
+
__name: "DataSourceAddButton",
|
|
11088
|
+
props: {
|
|
11089
|
+
datasourceTypeList: {},
|
|
11090
|
+
addButtonConfig: {},
|
|
11091
|
+
addButtonText: {}
|
|
11092
|
+
},
|
|
11093
|
+
emits: ["add"],
|
|
11094
|
+
setup(__props) {
|
|
11095
|
+
return (_ctx, _cache) => {
|
|
11096
|
+
return openBlock(), createBlock(unref(TMagicPopover), {
|
|
11097
|
+
placement: "right",
|
|
11098
|
+
trigger: "hover",
|
|
11099
|
+
"popper-class": "data-source-list-panel-add-menu",
|
|
11100
|
+
"destroy-on-close": true
|
|
11101
|
+
}, {
|
|
11102
|
+
reference: withCtx(() => [
|
|
11103
|
+
createVNode(
|
|
11104
|
+
unref(TMagicButton),
|
|
11105
|
+
normalizeProps(guardReactiveProps(__props.addButtonConfig || {})),
|
|
11106
|
+
{
|
|
11107
|
+
default: withCtx(() => [
|
|
11108
|
+
createTextVNode(
|
|
11109
|
+
toDisplayString(__props.addButtonText || ""),
|
|
11110
|
+
1
|
|
11111
|
+
/* TEXT */
|
|
11112
|
+
)
|
|
11113
|
+
]),
|
|
11114
|
+
_: 1
|
|
11115
|
+
/* STABLE */
|
|
11116
|
+
},
|
|
11117
|
+
16
|
|
11118
|
+
/* FULL_PROPS */
|
|
11119
|
+
)
|
|
11120
|
+
]),
|
|
11121
|
+
default: withCtx(() => [
|
|
11122
|
+
(openBlock(true), createElementBlock(
|
|
11123
|
+
Fragment,
|
|
11124
|
+
null,
|
|
11125
|
+
renderList(__props.datasourceTypeList, (item, index) => {
|
|
11126
|
+
return openBlock(), createBlock(_sfc_main$A, {
|
|
11127
|
+
data: {
|
|
11128
|
+
type: "button",
|
|
11129
|
+
text: item.text,
|
|
11130
|
+
handler: () => {
|
|
11131
|
+
_ctx.$emit("add", item.type);
|
|
11132
|
+
}
|
|
11133
|
+
},
|
|
11134
|
+
key: index
|
|
11135
|
+
}, null, 8, ["data"]);
|
|
11136
|
+
}),
|
|
11137
|
+
128
|
|
11138
|
+
/* KEYED_FRAGMENT */
|
|
11139
|
+
))
|
|
11140
|
+
]),
|
|
11141
|
+
_: 1
|
|
11142
|
+
/* STABLE */
|
|
11143
|
+
});
|
|
11144
|
+
};
|
|
11145
|
+
}
|
|
11146
|
+
});
|
|
11147
|
+
|
|
11030
11148
|
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
11031
11149
|
...{
|
|
11032
11150
|
name: "MEditorDataSourceConfigPanel"
|
|
@@ -11083,7 +11201,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
11083
11201
|
}
|
|
11084
11202
|
});
|
|
11085
11203
|
return (_ctx, _cache) => {
|
|
11086
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11204
|
+
return openBlock(), createBlock(_sfc_main$1k, {
|
|
11087
11205
|
visible: boxVisible.value,
|
|
11088
11206
|
"onUpdate:visible": _cache[0] || (_cache[0] = ($event) => boxVisible.value = $event),
|
|
11089
11207
|
width: width.value,
|
|
@@ -11212,7 +11330,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11212
11330
|
filter: filterTextChangeHandler
|
|
11213
11331
|
});
|
|
11214
11332
|
return (_ctx, _cache) => {
|
|
11215
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11333
|
+
return openBlock(), createBlock(_sfc_main$m, {
|
|
11216
11334
|
data: list.value,
|
|
11217
11335
|
"node-status-map": unref(nodeStatusMap),
|
|
11218
11336
|
indent: __props.indent,
|
|
@@ -11243,7 +11361,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11243
11361
|
placement: "bottom"
|
|
11244
11362
|
}, {
|
|
11245
11363
|
default: withCtx(() => [
|
|
11246
|
-
createVNode(_sfc_main$
|
|
11364
|
+
createVNode(_sfc_main$1s, {
|
|
11247
11365
|
icon: editable.value ? unref(Edit) : unref(View),
|
|
11248
11366
|
class: "edit-icon",
|
|
11249
11367
|
onClick: withModifiers(($event) => editHandler(`${data.key}`), ["stop"])
|
|
@@ -11262,7 +11380,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
11262
11380
|
},
|
|
11263
11381
|
{
|
|
11264
11382
|
default: withCtx(() => [
|
|
11265
|
-
createVNode(_sfc_main$
|
|
11383
|
+
createVNode(_sfc_main$1s, {
|
|
11266
11384
|
icon: unref(Close),
|
|
11267
11385
|
class: "edit-icon",
|
|
11268
11386
|
onClick: withModifiers(($event) => removeHandler(`${data.key}`), ["stop"])
|
|
@@ -11429,53 +11547,14 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
11429
11547
|
createVNode(unref(TMagicScrollbar), { class: "data-source-list-panel m-editor-layer-panel" }, {
|
|
11430
11548
|
default: withCtx(() => [
|
|
11431
11549
|
createElementVNode("div", _hoisted_1$8, [
|
|
11432
|
-
createVNode(_sfc_main$
|
|
11433
|
-
unref(editable) ? (openBlock(), createBlock(
|
|
11550
|
+
createVNode(_sfc_main$o, { onSearch: filterTextChangeHandler }),
|
|
11551
|
+
unref(editable) ? (openBlock(), createBlock(_sfc_main$j, {
|
|
11434
11552
|
key: 0,
|
|
11435
|
-
|
|
11436
|
-
|
|
11437
|
-
"
|
|
11438
|
-
|
|
11439
|
-
},
|
|
11440
|
-
reference: withCtx(() => [
|
|
11441
|
-
createVNode(unref(TMagicButton), {
|
|
11442
|
-
type: "primary",
|
|
11443
|
-
size: "small"
|
|
11444
|
-
}, {
|
|
11445
|
-
default: withCtx(() => [..._cache[0] || (_cache[0] = [
|
|
11446
|
-
createTextVNode(
|
|
11447
|
-
"新增",
|
|
11448
|
-
-1
|
|
11449
|
-
/* CACHED */
|
|
11450
|
-
)
|
|
11451
|
-
])]),
|
|
11452
|
-
_: 1
|
|
11453
|
-
/* STABLE */
|
|
11454
|
-
})
|
|
11455
|
-
]),
|
|
11456
|
-
default: withCtx(() => [
|
|
11457
|
-
(openBlock(true), createElementBlock(
|
|
11458
|
-
Fragment,
|
|
11459
|
-
null,
|
|
11460
|
-
renderList(datasourceTypeList.value, (item, index) => {
|
|
11461
|
-
return openBlock(), createBlock(_sfc_main$z, {
|
|
11462
|
-
data: {
|
|
11463
|
-
type: "button",
|
|
11464
|
-
text: item.text,
|
|
11465
|
-
handler: () => {
|
|
11466
|
-
addHandler(item.type);
|
|
11467
|
-
}
|
|
11468
|
-
},
|
|
11469
|
-
key: index
|
|
11470
|
-
}, null, 8, ["data"]);
|
|
11471
|
-
}),
|
|
11472
|
-
128
|
|
11473
|
-
/* KEYED_FRAGMENT */
|
|
11474
|
-
))
|
|
11475
|
-
]),
|
|
11476
|
-
_: 1
|
|
11477
|
-
/* STABLE */
|
|
11478
|
-
})) : createCommentVNode("v-if", true),
|
|
11553
|
+
"add-button-text": "新增",
|
|
11554
|
+
"add-button-config": { type: "primary", size: "small" },
|
|
11555
|
+
"datasource-type-list": datasourceTypeList.value,
|
|
11556
|
+
onAdd: addHandler
|
|
11557
|
+
}, null, 8, ["datasource-type-list"])) : createCommentVNode("v-if", true),
|
|
11479
11558
|
renderSlot(_ctx.$slots, "data-source-panel-search")
|
|
11480
11559
|
]),
|
|
11481
11560
|
createCommentVNode(" 数据源列表 "),
|
|
@@ -11501,7 +11580,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
11501
11580
|
onClose: editDialogCloseHandler
|
|
11502
11581
|
}, null, 8, ["disabled", "values", "title", "onSubmit"]),
|
|
11503
11582
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
11504
|
-
menuData.value.length ? (openBlock(), createBlock(_sfc_main$
|
|
11583
|
+
menuData.value.length ? (openBlock(), createBlock(_sfc_main$p, {
|
|
11505
11584
|
key: 0,
|
|
11506
11585
|
"menu-data": menuData.value,
|
|
11507
11586
|
ref: "menu",
|
|
@@ -11724,7 +11803,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
11724
11803
|
show
|
|
11725
11804
|
});
|
|
11726
11805
|
return (_ctx, _cache) => {
|
|
11727
|
-
return openBlock(), createBlock(_sfc_main$
|
|
11806
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
11728
11807
|
"menu-data": menuData.value,
|
|
11729
11808
|
ref: "menu",
|
|
11730
11809
|
style: { "overflow": "initial" }
|
|
@@ -11748,26 +11827,14 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
11748
11827
|
});
|
|
11749
11828
|
};
|
|
11750
11829
|
return (_ctx, _cache) => {
|
|
11751
|
-
return __props.data.type !== "page" ? (openBlock(),
|
|
11752
|
-
|
|
11753
|
-
|
|
11754
|
-
|
|
11755
|
-
|
|
11756
|
-
|
|
11757
|
-
|
|
11758
|
-
|
|
11759
|
-
title: "点击显示"
|
|
11760
|
-
}, null, 8, ["icon"])) : (openBlock(), createBlock(_sfc_main$1r, {
|
|
11761
|
-
key: 1,
|
|
11762
|
-
icon: unref(View),
|
|
11763
|
-
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => setNodeVisible(false), ["stop"])),
|
|
11764
|
-
class: "node-lock",
|
|
11765
|
-
title: "点击隐藏"
|
|
11766
|
-
}, null, 8, ["icon"]))
|
|
11767
|
-
],
|
|
11768
|
-
64
|
|
11769
|
-
/* STABLE_FRAGMENT */
|
|
11770
|
-
)) : createCommentVNode("v-if", true);
|
|
11830
|
+
return __props.data.type !== "page" ? (openBlock(), createBlock(unref(TMagicButton), {
|
|
11831
|
+
key: 0,
|
|
11832
|
+
link: "",
|
|
11833
|
+
type: __props.data.visible === false ? "primary" : "default",
|
|
11834
|
+
icon: __props.data.visible === false ? unref(Hide) : unref(View),
|
|
11835
|
+
title: __props.data.visible === false ? "点击显示" : "点击隐藏",
|
|
11836
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => setNodeVisible(__props.data.visible === false), ["stop"]))
|
|
11837
|
+
}, null, 8, ["type", "icon", "title"])) : createCommentVNode("v-if", true);
|
|
11771
11838
|
};
|
|
11772
11839
|
}
|
|
11773
11840
|
});
|
|
@@ -12288,8 +12355,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
12288
12355
|
return openBlock(), createBlock(unref(TMagicScrollbar), { class: "m-editor-layer-panel" }, {
|
|
12289
12356
|
default: withCtx(() => [
|
|
12290
12357
|
renderSlot(_ctx.$slots, "layer-panel-header"),
|
|
12291
|
-
createVNode(_sfc_main$
|
|
12292
|
-
page.value && unref(nodeStatusMap) ? (openBlock(), createBlock(_sfc_main$
|
|
12358
|
+
createVNode(_sfc_main$o, { onSearch: unref(filterTextChangeHandler) }, null, 8, ["onSearch"]),
|
|
12359
|
+
page.value && unref(nodeStatusMap) ? (openBlock(), createBlock(_sfc_main$m, {
|
|
12293
12360
|
key: 0,
|
|
12294
12361
|
tabindex: "-1",
|
|
12295
12362
|
ref: "tree",
|
|
@@ -12418,7 +12485,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
12418
12485
|
return openBlock(), createBlock(unref(TMagicScrollbar), null, {
|
|
12419
12486
|
default: withCtx(() => [
|
|
12420
12487
|
renderSlot(_ctx.$slots, "component-list-panel-header"),
|
|
12421
|
-
createVNode(_sfc_main$
|
|
12488
|
+
createVNode(_sfc_main$o, { onSearch: filterTextChangeHandler }),
|
|
12422
12489
|
renderSlot(_ctx.$slots, "component-list", { componentGroupList: list.value }, () => [
|
|
12423
12490
|
createVNode(unref(TMagicCollapse), {
|
|
12424
12491
|
class: "ui-component-panel",
|
|
@@ -12439,7 +12506,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
12439
12506
|
name: `${index}`
|
|
12440
12507
|
}, {
|
|
12441
12508
|
title: withCtx(() => [
|
|
12442
|
-
createVNode(_sfc_main$
|
|
12509
|
+
createVNode(_sfc_main$1s, { icon: unref(Grid) }, null, 8, ["icon"]),
|
|
12443
12510
|
createTextVNode(
|
|
12444
12511
|
toDisplayString(group.title),
|
|
12445
12512
|
1
|
|
@@ -12467,7 +12534,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
12467
12534
|
content: item.desc
|
|
12468
12535
|
}, {
|
|
12469
12536
|
default: withCtx(() => [
|
|
12470
|
-
createVNode(_sfc_main$
|
|
12537
|
+
createVNode(_sfc_main$1s, {
|
|
12471
12538
|
icon: item.icon
|
|
12472
12539
|
}, null, 8, ["icon"])
|
|
12473
12540
|
]),
|
|
@@ -12592,7 +12659,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
12592
12659
|
type: "component",
|
|
12593
12660
|
icon: EditPen,
|
|
12594
12661
|
text: "代码编辑",
|
|
12595
|
-
component: _sfc_main$
|
|
12662
|
+
component: _sfc_main$k,
|
|
12596
12663
|
props: {
|
|
12597
12664
|
indent: props.indent,
|
|
12598
12665
|
nextLevelIndentIncrement: props.nextLevelIndentIncrement,
|
|
@@ -12693,7 +12760,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
12693
12760
|
(...args) => unref(dragstartHandler) && unref(dragstartHandler)(...args)),
|
|
12694
12761
|
onDragend: ($event) => unref(dragendHandler)(config.$key, $event)
|
|
12695
12762
|
}, [
|
|
12696
|
-
config.icon ? (openBlock(), createBlock(_sfc_main$
|
|
12763
|
+
config.icon ? (openBlock(), createBlock(_sfc_main$1s, {
|
|
12697
12764
|
key: 0,
|
|
12698
12765
|
icon: config.icon
|
|
12699
12766
|
}, null, 8, ["icon"])) : createCommentVNode("v-if", true),
|
|
@@ -12873,7 +12940,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
12873
12940
|
1
|
|
12874
12941
|
/* TEXT */
|
|
12875
12942
|
),
|
|
12876
|
-
createVNode(_sfc_main$
|
|
12943
|
+
createVNode(_sfc_main$1s, {
|
|
12877
12944
|
icon: unref(Close),
|
|
12878
12945
|
class: "close-icon",
|
|
12879
12946
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => tipsBarVisible.value = false, ["stop"]))
|
|
@@ -12889,7 +12956,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
12889
12956
|
Fragment,
|
|
12890
12957
|
null,
|
|
12891
12958
|
[
|
|
12892
|
-
unref(floatBoxStates)[config.$key]?.status ? (openBlock(), createBlock(_sfc_main$
|
|
12959
|
+
unref(floatBoxStates)[config.$key]?.status ? (openBlock(), createBlock(_sfc_main$1k, {
|
|
12893
12960
|
key: config.$key ?? index,
|
|
12894
12961
|
visible: unref(floatBoxStates)[config.$key].status,
|
|
12895
12962
|
"onUpdate:visible": ($event) => unref(floatBoxStates)[config.$key].status = $event,
|
|
@@ -13237,7 +13304,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
13237
13304
|
_: 1
|
|
13238
13305
|
/* STABLE */
|
|
13239
13306
|
})) : createCommentVNode("v-if", true),
|
|
13240
|
-
page.value && unref(nodeStatusMap) && buttonVisible.value ? (openBlock(), createBlock(_sfc_main$
|
|
13307
|
+
page.value && unref(nodeStatusMap) && buttonVisible.value ? (openBlock(), createBlock(_sfc_main$1k, {
|
|
13241
13308
|
key: 1,
|
|
13242
13309
|
ref: "box",
|
|
13243
13310
|
visible: visible.value,
|
|
@@ -13246,7 +13313,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
|
13246
13313
|
position: menuPosition.value
|
|
13247
13314
|
}, {
|
|
13248
13315
|
body: withCtx(() => [
|
|
13249
|
-
createVNode(_sfc_main$
|
|
13316
|
+
createVNode(_sfc_main$m, {
|
|
13250
13317
|
class: "m-editor-node-list-menu magic-editor-layer-tree",
|
|
13251
13318
|
data: nodeData.value,
|
|
13252
13319
|
"node-status-map": unref(nodeStatusMap),
|
|
@@ -13536,7 +13603,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
13536
13603
|
};
|
|
13537
13604
|
__expose({ show });
|
|
13538
13605
|
return (_ctx, _cache) => {
|
|
13539
|
-
return openBlock(), createBlock(_sfc_main$
|
|
13606
|
+
return openBlock(), createBlock(_sfc_main$p, {
|
|
13540
13607
|
"menu-data": menuData.value,
|
|
13541
13608
|
ref: "menu"
|
|
13542
13609
|
}, null, 8, ["menu-data"]);
|
|
@@ -16659,7 +16726,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16659
16726
|
};
|
|
16660
16727
|
__expose(services);
|
|
16661
16728
|
return (_ctx, _cache) => {
|
|
16662
|
-
return openBlock(), createBlock(_sfc_main$
|
|
16729
|
+
return openBlock(), createBlock(_sfc_main$t, {
|
|
16663
16730
|
"disabled-page-fragment": __props.disabledPageFragment,
|
|
16664
16731
|
"page-bar-sort-options": __props.pageBarSortOptions,
|
|
16665
16732
|
"page-filter-function": __props.pageFilterFunction
|
|
@@ -16669,7 +16736,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16669
16736
|
]),
|
|
16670
16737
|
nav: withCtx(() => [
|
|
16671
16738
|
renderSlot(_ctx.$slots, "nav", { editorService: unref(editorService) }, () => [
|
|
16672
|
-
createVNode(_sfc_main$
|
|
16739
|
+
createVNode(_sfc_main$s, { data: __props.menu }, null, 8, ["data"])
|
|
16673
16740
|
])
|
|
16674
16741
|
]),
|
|
16675
16742
|
"content-before": withCtx(() => [
|
|
@@ -16751,7 +16818,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16751
16818
|
]),
|
|
16752
16819
|
"props-panel": withCtx(() => [
|
|
16753
16820
|
renderSlot(_ctx.$slots, "props-panel", {}, () => [
|
|
16754
|
-
createVNode(_sfc_main$
|
|
16821
|
+
createVNode(_sfc_main$q, {
|
|
16755
16822
|
"extend-state": __props.extendFormState,
|
|
16756
16823
|
"disabled-show-src": __props.disabledShowSrc,
|
|
16757
16824
|
onMounted: propsPanelMountedHandler,
|
|
@@ -16813,26 +16880,26 @@ const index = {
|
|
|
16813
16880
|
app.config.globalProperties.$TMAGIC_EDITOR = option;
|
|
16814
16881
|
setEditorConfig(option);
|
|
16815
16882
|
app.component(`${_sfc_main.name || "MEditor"}`, _sfc_main);
|
|
16816
|
-
app.component("magic-code-editor", _sfc_main$
|
|
16817
|
-
app.component("m-fields-ui-select", _sfc_main$
|
|
16818
|
-
app.component("m-fields-code-link", _sfc_main$
|
|
16819
|
-
app.component("m-fields-vs-code", _sfc_main$
|
|
16820
|
-
app.component("m-fields-code-select", _sfc_main$
|
|
16821
|
-
app.component("m-fields-code-select-col", _sfc_main$
|
|
16822
|
-
app.component("m-fields-event-select", _sfc_main$
|
|
16823
|
-
app.component("m-fields-data-source-fields", _sfc_main$
|
|
16824
|
-
app.component("m-fields-data-source-mocks", _sfc_main$
|
|
16825
|
-
app.component("m-fields-key-value", _sfc_main$
|
|
16826
|
-
app.component("m-fields-data-source-input", _sfc_main$
|
|
16827
|
-
app.component("m-fields-data-source-select", _sfc_main$
|
|
16828
|
-
app.component("m-fields-data-source-methods", _sfc_main$
|
|
16829
|
-
app.component("m-fields-data-source-method-select", _sfc_main$
|
|
16830
|
-
app.component("m-fields-data-source-field-select", _sfc_main$
|
|
16831
|
-
app.component("m-fields-page-fragment-select", _sfc_main$
|
|
16832
|
-
app.component("m-fields-display-conds", _sfc_main$
|
|
16833
|
-
app.component("m-fields-cond-op-select", _sfc_main$
|
|
16834
|
-
app.component("m-form-style-setter", _sfc_main$
|
|
16883
|
+
app.component("magic-code-editor", _sfc_main$1r);
|
|
16884
|
+
app.component("m-fields-ui-select", _sfc_main$D);
|
|
16885
|
+
app.component("m-fields-code-link", _sfc_main$1p);
|
|
16886
|
+
app.component("m-fields-vs-code", _sfc_main$1q);
|
|
16887
|
+
app.component("m-fields-code-select", _sfc_main$1o);
|
|
16888
|
+
app.component("m-fields-code-select-col", _sfc_main$1m);
|
|
16889
|
+
app.component("m-fields-event-select", _sfc_main$19);
|
|
16890
|
+
app.component("m-fields-data-source-fields", _sfc_main$1j);
|
|
16891
|
+
app.component("m-fields-data-source-mocks", _sfc_main$1c);
|
|
16892
|
+
app.component("m-fields-key-value", _sfc_main$17);
|
|
16893
|
+
app.component("m-fields-data-source-input", _sfc_main$1g);
|
|
16894
|
+
app.component("m-fields-data-source-select", _sfc_main$1b);
|
|
16895
|
+
app.component("m-fields-data-source-methods", _sfc_main$1e);
|
|
16896
|
+
app.component("m-fields-data-source-method-select", _sfc_main$1d);
|
|
16897
|
+
app.component("m-fields-data-source-field-select", _sfc_main$1h);
|
|
16898
|
+
app.component("m-fields-page-fragment-select", _sfc_main$16);
|
|
16899
|
+
app.component("m-fields-display-conds", _sfc_main$1a);
|
|
16900
|
+
app.component("m-fields-cond-op-select", _sfc_main$1l);
|
|
16901
|
+
app.component("m-form-style-setter", _sfc_main$E);
|
|
16835
16902
|
}
|
|
16836
16903
|
};
|
|
16837
16904
|
|
|
16838
|
-
export { CODE_DRAFT_STORAGE_KEY, COPY_CODE_STORAGE_KEY, COPY_DS_STORAGE_KEY, COPY_STORAGE_KEY, _sfc_main$
|
|
16905
|
+
export { CODE_DRAFT_STORAGE_KEY, COPY_CODE_STORAGE_KEY, COPY_DS_STORAGE_KEY, COPY_STORAGE_KEY, _sfc_main$1f as CodeBlockEditor, _sfc_main$l as CodeBlockList, _sfc_main$k as CodeBlockListPanel, CodeDeleteErrorType, _sfc_main$1o as CodeSelect, _sfc_main$1m as CodeSelectCol, ColumnLayout, _sfc_main$b as ComponentListPanel, _sfc_main$1l as CondOpSelect, _sfc_main$p as ContentMenu, DEFAULT_LEFT_COLUMN_WIDTH, DEFAULT_RIGHT_COLUMN_WIDTH, _sfc_main$j as DataSourceAddButton, _sfc_main$i as DataSourceConfigPanel, _sfc_main$1h as DataSourceFieldSelect, _sfc_main$1j as DataSourceFields, _sfc_main$1g as DataSourceInput, _sfc_main$1d as DataSourceMethodSelect, _sfc_main$1e as DataSourceMethods, _sfc_main$1c as DataSourceMocks, _sfc_main$1b as DataSourceSelect, _sfc_main$1a as DisplayConds, DragType, _sfc_main$19 as EventSelect, Fixed2Other, _sfc_main$1k as FloatingBox, H_GUIDE_LINE_STORAGE_KEY, _sfc_main$1s as Icon, IdleTask, KeyBindingCommand, _sfc_main$17 as KeyValue, Keys, LEFT_COLUMN_WIDTH_STORAGE_KEY, LayerOffset, _sfc_main$c as LayerPanel, Layout, _sfc_main$B as LayoutContainer, MIN_CENTER_COLUMN_WIDTH, MIN_LEFT_COLUMN_WIDTH, MIN_RIGHT_COLUMN_WIDTH, PROPS_PANEL_WIDTH_STORAGE_KEY, _sfc_main$16 as PageFragmentSelect, _sfc_main$r as PropsFormPanel, _sfc_main$q as PropsPanel, RIGHT_COLUMN_WIDTH_STORAGE_KEY, _sfc_main$C as Resizer, ScrollViewer, SideItemKey, _sfc_main$B as SplitView, _sfc_main$E as StyleSetter, _sfc_main$1r as TMagicCodeEditor, _sfc_main as TMagicEditor, _sfc_main$A as ToolButton, _sfc_main$m as Tree, _sfc_main$n as TreeNode, UI_SELECT_MODE_EVENT_NAME, UndoRedo, V_GUIDE_LINE_STORAGE_KEY, advancedTabConfig, arrayOptions, beforePaste, change2Fixed, codeBlockService, dataSourceService, debug, index as default, depService, displayTabConfig, editorService, eqOptions, error, eventTabConfig, eventsService, fillConfig$1 as fillConfig, fixNodeLeft, fixNodePosition, generatePageName, generatePageNameByApp, getAddParent, getCascaderOptionsFromFields, getDefaultConfig, getDisplayField, getEditorConfig, getFormConfig, getFormValue, getGuideLineFromCache, getInitPositionStyle, getNodeIndex, getPageFragmentList, getPageList, getPageNameList, getPositionInContainer, getRelativeStyle, historyService, info, isIncludeDataSource, log, moveItemsInContainer, numberOptions, propsService, removeDataSourceFieldPrefix, serializeConfig, setChildrenLayout, setEditorConfig, setLayout, stageOverlayService, storageService, styleTabConfig, uiService, updateStatus, useCodeBlockEdit, useEditorContentHeight, useFilter, useFloatBox, useGetSo, useNextFloatBoxPosition, useNodeStatus$1 as useNodeStatus, useServices, useStage, useWindowRect, warn };
|