@fangzhongya/page 0.0.27 → 0.0.29
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/components/control/design.cjs +3 -3
- package/dist/components/control/design.js +3 -3
- package/dist/components/design/design-drag2.cjs +15 -7
- package/dist/components/design/design-drag2.js +16 -8
- package/dist/components/design/design-el-input.cjs +4 -0
- package/dist/components/design/design-el-input.js +4 -0
- package/dist/components/design/design-el-input2.cjs +32 -0
- package/dist/components/design/design-el-input2.js +32 -0
- package/dist/components/design/design-grids2.cjs +2 -23
- package/dist/components/design/design-grids2.js +2 -23
- package/dist/components/design/design-icon.cjs +4 -0
- package/dist/components/design/design-icon.js +4 -0
- package/dist/components/design/design-icon2.cjs +18 -0
- package/dist/components/design/design-icon2.js +18 -0
- package/dist/components/design/design-operate2.cjs +19 -28
- package/dist/components/design/design-operate2.js +19 -28
- package/dist/components/design/design-resizable2.cjs +3 -3
- package/dist/components/design/design-resizable2.js +3 -3
- package/dist/components/design/resizable.cjs +1 -1
- package/dist/components/design/resizable.css +15 -15
- package/dist/components/design/resizable.js +1 -1
- package/dist/components/design/resizable2.cjs +1 -1
- package/dist/components/design/resizable2.js +1 -1
- package/dist/components/index.css +246 -36
- package/dist/components/index2.cjs +99 -88
- package/dist/components/index2.js +107 -96
- package/dist/components/left/custom2.cjs +7 -16
- package/dist/components/left/custom2.js +8 -17
- package/dist/components/left/icons2.cjs +20 -38
- package/dist/components/left/icons2.js +20 -38
- package/dist/components/left/mould2.cjs +20 -27
- package/dist/components/left/mould2.js +23 -30
- package/dist/components/left/search2.cjs +7 -18
- package/dist/components/left/search2.js +7 -18
- package/dist/components/operate/index2.cjs +6 -10
- package/dist/components/operate/index2.js +6 -10
- package/dist/components/operate/right-key.cjs +4 -0
- package/dist/components/operate/right-key.js +4 -0
- package/dist/components/operate/right-key2.cjs +111 -0
- package/dist/components/operate/right-key2.js +111 -0
- package/dist/components/operate/right2.cjs +16 -194
- package/dist/components/operate/right2.js +17 -195
- package/dist/components/operate/util.cjs +202 -0
- package/dist/components/operate/util.d.ts +6 -0
- package/dist/components/operate/util.js +202 -0
- package/dist/components/output/vue/index.cjs +10 -7
- package/dist/components/output/vue/index.d.ts +5 -1
- package/dist/components/output/vue/index.js +10 -7
- package/dist/components/props.d.ts +20 -0
- package/dist/components/right/currency/index.cjs +1 -1
- package/dist/components/right/currency/index.js +1 -1
- package/dist/components/right/currency/style2.cjs +23 -45
- package/dist/components/right/currency/style2.js +23 -45
- package/dist/components/tree/tree-drag2.cjs +2 -2
- package/dist/components/tree/tree-drag2.js +2 -2
- package/dist/config/util.cjs +2 -0
- package/dist/config/util.js +3 -1
- package/dist/design/design.cjs +0 -10
- package/dist/design/design.js +0 -10
- package/dist/design/render2.cjs +1 -2
- package/dist/design/render2.js +1 -2
- package/dist/design/util.cjs +45 -0
- package/dist/design/util.d.ts +4 -0
- package/dist/design/util.js +46 -1
- package/dist/effect/design.cjs +336 -0
- package/dist/effect/design.d.ts +11 -0
- package/dist/effect/design.js +336 -0
- package/dist/effect/draggable.cjs +191 -0
- package/dist/effect/draggable.d.ts +6 -0
- package/dist/effect/draggable.js +191 -0
- package/dist/effect/effect.cjs +54 -0
- package/dist/effect/effect.d.ts +7 -0
- package/dist/effect/effect.js +54 -0
- package/dist/effect/index.cjs +4 -0
- package/dist/effect/index.js +4 -0
- package/dist/effect/index2.cjs +40 -0
- package/dist/effect/index2.js +40 -0
- package/dist/expand/{chunk-KQKVKAJF.js → chunk-I2RMOBDW.js} +1 -1
- package/dist/expand/{chunk-MYRRDRIS.cjs → chunk-ZJCFZ63F.cjs} +1 -1
- package/dist/expand/components.cjs +4 -4
- package/dist/expand/components.js +2 -2
- package/dist/expand/config.cjs +2 -2
- package/dist/expand/config.js +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -0
- package/dist/render/common.cjs +4 -2
- package/dist/render/common.d.ts +9 -0
- package/dist/render/common.js +4 -2
- package/dist/render/render.cjs +5 -1
- package/dist/render/render.js +6 -2
- package/dist/utils/index.cjs +0 -5
- package/dist/utils/index.d.ts +0 -1
- package/dist/utils/index.js +0 -5
- package/dist/viewer/design.cjs +76 -0
- package/dist/viewer/design.d.ts +5 -0
- package/dist/viewer/design.js +76 -0
- package/dist/viewer/draggable.cjs +87 -0
- package/dist/viewer/draggable.d.ts +3 -0
- package/dist/viewer/draggable.js +87 -0
- package/dist/viewer/index.cjs +4 -0
- package/dist/viewer/index.js +4 -0
- package/dist/viewer/index2.cjs +40 -0
- package/dist/viewer/index2.js +40 -0
- package/dist/viewer/viewer.cjs +54 -0
- package/dist/viewer/viewer.d.ts +7 -0
- package/dist/viewer/viewer.js +54 -0
- package/package.json +8 -7
- package/dist/components/editor/button-editor.cjs +0 -4
- package/dist/components/editor/button-editor.js +0 -4
- package/dist/components/editor/button-editor2.cjs +0 -131
- package/dist/components/editor/button-editor2.js +0 -131
- package/dist/components/editor/editor.cjs +0 -4
- package/dist/components/editor/editor.js +0 -4
- package/dist/components/editor/editor2.cjs +0 -233
- package/dist/components/editor/editor2.js +0 -233
- package/dist/components/right/currency/editor.cjs +0 -4
- package/dist/components/right/currency/editor.js +0 -4
- package/dist/components/right/currency/editor2.cjs +0 -64
- package/dist/components/right/currency/editor2.js +0 -64
- package/dist/components/right/currency/emits.cjs +0 -4
- package/dist/components/right/currency/emits.js +0 -4
- package/dist/components/right/currency/emits2.cjs +0 -83
- package/dist/components/right/currency/emits2.js +0 -83
|
@@ -7,15 +7,17 @@ import { History } from "@fangzhongya/fang-ui/components/history/index";
|
|
|
7
7
|
import "@fangzhongya/fang-ui/components/history/style/index2.scss";
|
|
8
8
|
import { Button } from "@fangzhongya/fang-ui/components/button/index";
|
|
9
9
|
import "@fangzhongya/fang-ui/components/button/style/index2.scss";
|
|
10
|
-
import { defineComponent, computed, ref, provide,
|
|
10
|
+
import { defineComponent, computed, ref, provide, watch, reactive, h, onMounted, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, createVNode, withCtx, createTextVNode, createBlock, createCommentVNode, isRef, toDisplayString, withDirectives, vShow, mergeProps } from "vue";
|
|
11
11
|
import "../design/index.js";
|
|
12
12
|
import "../design/render.js";
|
|
13
|
+
import "../effect/index.js";
|
|
14
|
+
import "../viewer/index.js";
|
|
15
|
+
import "./operate/right-key.js";
|
|
13
16
|
import "./left/index.js";
|
|
14
17
|
import "./right/index.js";
|
|
15
18
|
import "./editor/view.js";
|
|
16
19
|
import "./editor/look-over.js";
|
|
17
20
|
import "./tree/index.js";
|
|
18
|
-
import "./editor/editor.js";
|
|
19
21
|
import { useFullscreen } from "@fangzhongya/fang-ui/hooks/full-screen/index";
|
|
20
22
|
import "./output/gener.js";
|
|
21
23
|
import "./generated/index.js";
|
|
@@ -32,13 +34,15 @@ import "element-plus/es/components/message/style/css";
|
|
|
32
34
|
import _sfc_main$1 from "./editor/view2.js";
|
|
33
35
|
import _sfc_main$2 from "./left/index2.js";
|
|
34
36
|
import _sfc_main$3 from "./tree/index2.js";
|
|
35
|
-
import _sfc_main$4 from "../
|
|
36
|
-
import _sfc_main$5 from "../
|
|
37
|
-
import _sfc_main$6 from "
|
|
38
|
-
import _sfc_main$7 from "
|
|
39
|
-
import _sfc_main$8 from "./
|
|
40
|
-
import _sfc_main$9 from "./
|
|
41
|
-
import _sfc_main$a from "./
|
|
37
|
+
import _sfc_main$4 from "../viewer/index2.js";
|
|
38
|
+
import _sfc_main$5 from "../effect/index2.js";
|
|
39
|
+
import _sfc_main$6 from "../design/render2.js";
|
|
40
|
+
import _sfc_main$7 from "../design/index2.js";
|
|
41
|
+
import _sfc_main$8 from "./right/index2.js";
|
|
42
|
+
import _sfc_main$9 from "./editor/look-over2.js";
|
|
43
|
+
import _sfc_main$a from "./output/gener2.js";
|
|
44
|
+
import _sfc_main$b from "./generated/index2.js";
|
|
45
|
+
import _sfc_main$c from "./operate/right-key2.js";
|
|
42
46
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
43
47
|
__name: "index",
|
|
44
48
|
props: {
|
|
@@ -50,28 +54,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
54
|
default() {
|
|
51
55
|
return {};
|
|
52
56
|
}
|
|
57
|
+
},
|
|
58
|
+
right: {
|
|
59
|
+
type: Object
|
|
53
60
|
}
|
|
54
61
|
},
|
|
55
62
|
emits: [
|
|
56
63
|
"save",
|
|
57
64
|
"component",
|
|
58
65
|
"update:modelValue",
|
|
66
|
+
"update:right",
|
|
59
67
|
"change"
|
|
60
68
|
],
|
|
61
69
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
62
|
-
const props = __props;
|
|
63
|
-
const emit = __emit;
|
|
64
|
-
const cs = getClass("page");
|
|
65
|
-
const config = computed(() => {
|
|
66
|
-
return props.config || {};
|
|
67
|
-
});
|
|
68
|
-
const { isFullscreen, toggle } = useFullscreen();
|
|
69
|
-
const isTree = ref(false);
|
|
70
|
-
const isLeft = ref(config.value.left || false);
|
|
71
|
-
const isRight = ref(config.value.right || false);
|
|
72
|
-
const isGenerated = ref(false);
|
|
73
|
-
const refDom = ref();
|
|
74
|
-
const refDomRender = ref();
|
|
75
70
|
const layoutObj = {
|
|
76
71
|
name: "Create",
|
|
77
72
|
title: "",
|
|
@@ -87,30 +82,51 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
82
|
const getLayout = () => {
|
|
88
83
|
return deepCopy(layoutObj);
|
|
89
84
|
};
|
|
85
|
+
const props = __props;
|
|
86
|
+
const emit = __emit;
|
|
87
|
+
const cs = getClass("page");
|
|
88
|
+
const config = computed(() => {
|
|
89
|
+
return props.config || {};
|
|
90
|
+
});
|
|
91
|
+
const { isFullscreen, toggle } = useFullscreen();
|
|
92
|
+
const isTree = ref(false);
|
|
93
|
+
const isLeft = ref(config.value.left || false);
|
|
94
|
+
const isRight = ref(config.value.right || false);
|
|
95
|
+
const isGenerated = ref(false);
|
|
96
|
+
const refDom = ref();
|
|
97
|
+
const refDomRender = ref();
|
|
90
98
|
const rkey = ref(0);
|
|
91
99
|
provide("rkey", rkey);
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
onRefresh();
|
|
105
|
-
});
|
|
100
|
+
const layout = useModel(props, emit, () => getLayout());
|
|
101
|
+
watch([() => layout.value], () => {
|
|
102
|
+
onRefresh();
|
|
103
|
+
setHistory();
|
|
104
|
+
});
|
|
105
|
+
watch(
|
|
106
|
+
[() => layout.value],
|
|
107
|
+
() => {
|
|
108
|
+
setHistory();
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
deep: true
|
|
106
112
|
}
|
|
107
|
-
|
|
108
|
-
setLayout();
|
|
113
|
+
);
|
|
109
114
|
const ispreview = ref(false);
|
|
110
115
|
const isSwitch = ref(false);
|
|
111
116
|
const isoutput = ref(false);
|
|
112
117
|
const record = ref(0);
|
|
113
|
-
const right =
|
|
118
|
+
const right = useModel(
|
|
119
|
+
props,
|
|
120
|
+
emit,
|
|
121
|
+
void 0,
|
|
122
|
+
"right"
|
|
123
|
+
);
|
|
124
|
+
watch([() => right.value], () => {
|
|
125
|
+
if (right.value && isRight.value) {
|
|
126
|
+
isRight.value = false;
|
|
127
|
+
}
|
|
128
|
+
emit("change", right.value);
|
|
129
|
+
});
|
|
114
130
|
provide("config", config);
|
|
115
131
|
provide("right", right);
|
|
116
132
|
provide("layout", layout);
|
|
@@ -118,17 +134,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
118
134
|
provide("params", params);
|
|
119
135
|
const replication = ref();
|
|
120
136
|
provide("replication", replication);
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
137
|
+
const operateRightKey = reactive({
|
|
138
|
+
options: [],
|
|
139
|
+
position: {
|
|
140
|
+
x: 0,
|
|
141
|
+
y: 0
|
|
142
|
+
},
|
|
143
|
+
onClickRight(v) {
|
|
144
|
+
},
|
|
145
|
+
box: false
|
|
131
146
|
});
|
|
147
|
+
provide("operateRightKey", operateRightKey);
|
|
132
148
|
const lookOver = ref({
|
|
133
149
|
// 弹框名称
|
|
134
150
|
title: "",
|
|
@@ -139,7 +155,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
139
155
|
// 输入的值
|
|
140
156
|
value: ""
|
|
141
157
|
});
|
|
142
|
-
provide("editor", editorObj.value);
|
|
143
158
|
provide("lookOver", lookOver.value);
|
|
144
159
|
const isHistory = ref(true);
|
|
145
160
|
let timer;
|
|
@@ -246,27 +261,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
246
261
|
function onRefresh() {
|
|
247
262
|
rkey.value++;
|
|
248
263
|
}
|
|
249
|
-
watch([() => right.value], () => {
|
|
250
|
-
if (right.value && isRight.value) {
|
|
251
|
-
isRight.value = false;
|
|
252
|
-
}
|
|
253
|
-
emit("change", right.value);
|
|
254
|
-
});
|
|
255
|
-
watch(
|
|
256
|
-
[() => layout.value],
|
|
257
|
-
() => {
|
|
258
|
-
setLayout();
|
|
259
|
-
setHistory();
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
deep: true
|
|
263
|
-
}
|
|
264
|
-
);
|
|
265
264
|
onMounted(() => {
|
|
266
265
|
setHistory();
|
|
267
266
|
});
|
|
268
267
|
__expose({
|
|
269
|
-
getData
|
|
268
|
+
getData,
|
|
269
|
+
onRefresh
|
|
270
270
|
});
|
|
271
271
|
return (_ctx, _cache) => {
|
|
272
272
|
const _component_Button = Button;
|
|
@@ -289,7 +289,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
289
289
|
text: "",
|
|
290
290
|
onClick: onLeft
|
|
291
291
|
}, {
|
|
292
|
-
default: withCtx(() => [..._cache[
|
|
292
|
+
default: withCtx(() => [..._cache[9] || (_cache[9] = [
|
|
293
293
|
createTextVNode(" 组件 ", -1)
|
|
294
294
|
])]),
|
|
295
295
|
_: 1
|
|
@@ -298,7 +298,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
298
298
|
text: "",
|
|
299
299
|
onClick: onTree
|
|
300
300
|
}, {
|
|
301
|
-
default: withCtx(() => [..._cache[
|
|
301
|
+
default: withCtx(() => [..._cache[10] || (_cache[10] = [
|
|
302
302
|
createTextVNode(" 目录 ", -1)
|
|
303
303
|
])]),
|
|
304
304
|
_: 1
|
|
@@ -307,7 +307,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
307
307
|
text: "",
|
|
308
308
|
onClick: onRight
|
|
309
309
|
}, {
|
|
310
|
-
default: withCtx(() => [..._cache[
|
|
310
|
+
default: withCtx(() => [..._cache[11] || (_cache[11] = [
|
|
311
311
|
createTextVNode(" 配置 ", -1)
|
|
312
312
|
])]),
|
|
313
313
|
_: 1
|
|
@@ -317,7 +317,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
317
317
|
text: "",
|
|
318
318
|
onClick: onInput
|
|
319
319
|
}, {
|
|
320
|
-
default: withCtx(() => [..._cache[
|
|
320
|
+
default: withCtx(() => [..._cache[12] || (_cache[12] = [
|
|
321
321
|
createTextVNode(" 输入 ", -1)
|
|
322
322
|
])]),
|
|
323
323
|
_: 1
|
|
@@ -327,7 +327,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
327
327
|
text: "",
|
|
328
328
|
onClick: onSave
|
|
329
329
|
}, {
|
|
330
|
-
default: withCtx(() => [..._cache[
|
|
330
|
+
default: withCtx(() => [..._cache[13] || (_cache[13] = [
|
|
331
331
|
createTextVNode(" 保存 ", -1)
|
|
332
332
|
])]),
|
|
333
333
|
_: 1
|
|
@@ -358,7 +358,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
358
358
|
text: "",
|
|
359
359
|
onClick: onRefresh
|
|
360
360
|
}, {
|
|
361
|
-
default: withCtx(() => [..._cache[
|
|
361
|
+
default: withCtx(() => [..._cache[14] || (_cache[14] = [
|
|
362
362
|
createTextVNode(" 刷新 ", -1)
|
|
363
363
|
])]),
|
|
364
364
|
_: 1
|
|
@@ -368,7 +368,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
368
368
|
text: "",
|
|
369
369
|
onClick: onEmpty
|
|
370
370
|
}, {
|
|
371
|
-
default: withCtx(() => [..._cache[
|
|
371
|
+
default: withCtx(() => [..._cache[15] || (_cache[15] = [
|
|
372
372
|
createTextVNode(" 清空 ", -1)
|
|
373
373
|
])]),
|
|
374
374
|
_: 1
|
|
@@ -377,7 +377,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
377
377
|
text: "",
|
|
378
378
|
onClick: onPreview
|
|
379
379
|
}, {
|
|
380
|
-
default: withCtx(() => [..._cache[
|
|
380
|
+
default: withCtx(() => [..._cache[16] || (_cache[16] = [
|
|
381
381
|
createTextVNode(" 预览 ", -1)
|
|
382
382
|
])]),
|
|
383
383
|
_: 1
|
|
@@ -386,7 +386,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
386
386
|
text: "",
|
|
387
387
|
onClick: onOutput
|
|
388
388
|
}, {
|
|
389
|
-
default: withCtx(() => [..._cache[
|
|
389
|
+
default: withCtx(() => [..._cache[17] || (_cache[17] = [
|
|
390
390
|
createTextVNode(" 生成 ", -1)
|
|
391
391
|
])]),
|
|
392
392
|
_: 1
|
|
@@ -395,7 +395,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
395
395
|
text: "",
|
|
396
396
|
onClick: onGenerated
|
|
397
397
|
}, {
|
|
398
|
-
default: withCtx(() => [..._cache[
|
|
398
|
+
default: withCtx(() => [..._cache[18] || (_cache[18] = [
|
|
399
399
|
createTextVNode(" 组件 ", -1)
|
|
400
400
|
])]),
|
|
401
401
|
_: 1
|
|
@@ -416,7 +416,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
416
416
|
}, {
|
|
417
417
|
default: withCtx(() => [
|
|
418
418
|
createVNode(_component_Button, { text: "" }, {
|
|
419
|
-
default: withCtx(() => [..._cache[
|
|
419
|
+
default: withCtx(() => [..._cache[19] || (_cache[19] = [
|
|
420
420
|
createTextVNode(" 查看 ", -1)
|
|
421
421
|
])]),
|
|
422
422
|
_: 1
|
|
@@ -432,7 +432,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
432
432
|
}, {
|
|
433
433
|
default: withCtx(() => [
|
|
434
434
|
createVNode(_component_Button, { text: "" }, {
|
|
435
|
-
default: withCtx(() => [..._cache[
|
|
435
|
+
default: withCtx(() => [..._cache[20] || (_cache[20] = [
|
|
436
436
|
createTextVNode(" 最小 ", -1)
|
|
437
437
|
])]),
|
|
438
438
|
_: 1
|
|
@@ -472,7 +472,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
472
472
|
}, " 请从左边拖动控件放置滑块中 ", 2), [
|
|
473
473
|
[vShow, !isSwitch.value]
|
|
474
474
|
]),
|
|
475
|
-
withDirectives((openBlock(), createBlock(_sfc_main$4, {
|
|
475
|
+
unref(config).type == "3" ? withDirectives((openBlock(), createBlock(_sfc_main$4, {
|
|
476
|
+
key: rkey.value,
|
|
477
|
+
value: unref(layout)
|
|
478
|
+
}, null, 8, ["value"])), [
|
|
479
|
+
[vShow, !isSwitch.value]
|
|
480
|
+
]) : unref(config).type == "2" ? withDirectives((openBlock(), createBlock(_sfc_main$5, {
|
|
481
|
+
key: rkey.value,
|
|
482
|
+
value: unref(layout)
|
|
483
|
+
}, null, 8, ["value"])), [
|
|
484
|
+
[vShow, !isSwitch.value]
|
|
485
|
+
]) : unref(config).type == "4" ? withDirectives((openBlock(), createBlock(_sfc_main$6, {
|
|
486
|
+
key: rkey.value,
|
|
487
|
+
value: unref(layout)
|
|
488
|
+
}, null, 8, ["value"])), [
|
|
489
|
+
[vShow, !isSwitch.value]
|
|
490
|
+
]) : withDirectives((openBlock(), createBlock(_sfc_main$7, {
|
|
476
491
|
key: rkey.value,
|
|
477
492
|
value: unref(layout)
|
|
478
493
|
}, null, 8, ["value"])), [
|
|
@@ -483,7 +498,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
483
498
|
ref: refDomRender,
|
|
484
499
|
class: normalizeClass(unref(cs)("grid-design-render"))
|
|
485
500
|
}, [
|
|
486
|
-
isSwitch.value ? (openBlock(), createBlock(_sfc_main$
|
|
501
|
+
isSwitch.value ? (openBlock(), createBlock(_sfc_main$6, {
|
|
487
502
|
key: rkey.value,
|
|
488
503
|
value: unref(layout)
|
|
489
504
|
}, null, 8, ["value"])) : createCommentVNode("", true)
|
|
@@ -496,29 +511,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
496
511
|
direction: "left"
|
|
497
512
|
}, {
|
|
498
513
|
default: withCtx(() => [
|
|
499
|
-
createVNode(_sfc_main$
|
|
514
|
+
createVNode(_sfc_main$8)
|
|
500
515
|
]),
|
|
501
516
|
_: 1
|
|
502
517
|
}, 8, ["modelValue"])
|
|
503
518
|
], 2),
|
|
504
|
-
createVNode(_sfc_main$
|
|
505
|
-
onSubmit: editorObj.value.submit,
|
|
506
|
-
modelValue: editorObj.value.box,
|
|
507
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => editorObj.value.box = $event)
|
|
508
|
-
}), null, 16, ["onSubmit", "modelValue"]),
|
|
509
|
-
createVNode(_sfc_main$8, mergeProps(lookOver.value, {
|
|
519
|
+
createVNode(_sfc_main$9, mergeProps(lookOver.value, {
|
|
510
520
|
modelValue: lookOver.value.box,
|
|
511
|
-
"onUpdate:modelValue": _cache[
|
|
521
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => lookOver.value.box = $event)
|
|
512
522
|
}), null, 16, ["modelValue"]),
|
|
513
523
|
createVNode(_component_window, {
|
|
514
524
|
isMin: "",
|
|
515
525
|
max: "",
|
|
516
526
|
title: "预览",
|
|
517
527
|
modelValue: ispreview.value,
|
|
518
|
-
"onUpdate:modelValue": _cache[
|
|
528
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => ispreview.value = $event)
|
|
519
529
|
}, {
|
|
520
530
|
default: withCtx(() => [
|
|
521
|
-
createVNode(_sfc_main$
|
|
531
|
+
createVNode(_sfc_main$6, { value: unref(layout) }, null, 8, ["value"])
|
|
522
532
|
]),
|
|
523
533
|
_: 1
|
|
524
534
|
}, 8, ["modelValue"]),
|
|
@@ -527,22 +537,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
527
537
|
max: "",
|
|
528
538
|
title: "生成组件代码",
|
|
529
539
|
modelValue: isoutput.value,
|
|
530
|
-
"onUpdate:modelValue": _cache[
|
|
540
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => isoutput.value = $event)
|
|
531
541
|
}, {
|
|
532
542
|
default: withCtx(() => [
|
|
533
|
-
(openBlock(), createBlock(_sfc_main$
|
|
543
|
+
(openBlock(), createBlock(_sfc_main$a, {
|
|
534
544
|
key: isoutput.value + "",
|
|
535
545
|
value: unref(layout)
|
|
536
546
|
}, null, 8, ["value"]))
|
|
537
547
|
]),
|
|
538
548
|
_: 1
|
|
539
549
|
}, 8, ["modelValue"]),
|
|
540
|
-
createVNode(_sfc_main$
|
|
550
|
+
createVNode(_sfc_main$b, {
|
|
541
551
|
modelValue: isGenerated.value,
|
|
542
|
-
"onUpdate:modelValue": _cache[
|
|
552
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => isGenerated.value = $event),
|
|
543
553
|
onSubmit: onGeneratedSubmit,
|
|
544
554
|
value: unref(layout)
|
|
545
|
-
}, null, 8, ["modelValue", "value"])
|
|
555
|
+
}, null, 8, ["modelValue", "value"]),
|
|
556
|
+
createVNode(_sfc_main$c)
|
|
546
557
|
], 2);
|
|
547
558
|
};
|
|
548
559
|
}
|
|
@@ -4,11 +4,11 @@ const es = require("element-plus/es");
|
|
|
4
4
|
require("element-plus/es/components/base/style/css");
|
|
5
5
|
require("element-plus/es/components/collapse/style/css");
|
|
6
6
|
require("element-plus/es/components/collapse-item/style/css");
|
|
7
|
-
require("element-plus/es/components/tooltip/style/css");
|
|
8
7
|
const vue = require("vue");
|
|
9
8
|
const Draggable = require("vuedraggable");
|
|
10
9
|
const util = require("../../config/util.cjs");
|
|
11
10
|
const index = require("../../utils/index.cjs");
|
|
11
|
+
const _hoisted_1 = ["title"];
|
|
12
12
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
13
13
|
__name: "custom",
|
|
14
14
|
setup(__props) {
|
|
@@ -20,7 +20,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
20
20
|
return util.getDesigns(obj);
|
|
21
21
|
}
|
|
22
22
|
return (_ctx, _cache) => {
|
|
23
|
-
const _component_el_tooltip = es.ElTooltip;
|
|
24
23
|
const _component_ElCollapseItem = es.ElCollapseItem;
|
|
25
24
|
const _component_ElCollapse = es.ElCollapse;
|
|
26
25
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -53,20 +52,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
53
52
|
}, {
|
|
54
53
|
item: vue.withCtx(({ element }) => [
|
|
55
54
|
vue.createElementVNode("div", null, [
|
|
56
|
-
vue.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
vue.createElementVNode("div", {
|
|
63
|
-
class: vue.normalizeClass(vue.unref(cs)("item"))
|
|
64
|
-
}, [
|
|
65
|
-
vue.createElementVNode("span", null, vue.toDisplayString(element.title || element.name), 1)
|
|
66
|
-
], 2)
|
|
67
|
-
]),
|
|
68
|
-
_: 2
|
|
69
|
-
}, 1032, ["content"])
|
|
55
|
+
vue.createElementVNode("div", {
|
|
56
|
+
title: element.name,
|
|
57
|
+
class: vue.normalizeClass(vue.unref(cs)("item"))
|
|
58
|
+
}, [
|
|
59
|
+
vue.createElementVNode("span", null, vue.toDisplayString(element.title || element.name), 1)
|
|
60
|
+
], 10, _hoisted_1)
|
|
70
61
|
])
|
|
71
62
|
]),
|
|
72
63
|
_: 1
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElCollapseItem, ElCollapse } from "element-plus/es";
|
|
2
2
|
import "element-plus/es/components/base/style/css";
|
|
3
3
|
import "element-plus/es/components/collapse/style/css";
|
|
4
4
|
import "element-plus/es/components/collapse-item/style/css";
|
|
5
|
-
import "element-plus/es/components/tooltip/style/css";
|
|
6
5
|
import { defineComponent, ref, inject, openBlock, createElementBlock, normalizeClass, unref, createVNode, withCtx, Fragment, renderList, createBlock, createElementVNode, toDisplayString, createTextVNode } from "vue";
|
|
7
6
|
import Draggable from "vuedraggable";
|
|
8
7
|
import { getLeftList, getDesigns } from "../../config/util.js";
|
|
9
8
|
import { getClass } from "../../utils/index.js";
|
|
9
|
+
const _hoisted_1 = ["title"];
|
|
10
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
11
|
__name: "custom",
|
|
12
12
|
setup(__props) {
|
|
@@ -18,7 +18,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
return getDesigns(obj);
|
|
19
19
|
}
|
|
20
20
|
return (_ctx, _cache) => {
|
|
21
|
-
const _component_el_tooltip = ElTooltip;
|
|
22
21
|
const _component_ElCollapseItem = ElCollapseItem;
|
|
23
22
|
const _component_ElCollapse = ElCollapse;
|
|
24
23
|
return openBlock(), createElementBlock("div", {
|
|
@@ -51,20 +50,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
50
|
}, {
|
|
52
51
|
item: withCtx(({ element }) => [
|
|
53
52
|
createElementVNode("div", null, [
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
createElementVNode("div", {
|
|
61
|
-
class: normalizeClass(unref(cs)("item"))
|
|
62
|
-
}, [
|
|
63
|
-
createElementVNode("span", null, toDisplayString(element.title || element.name), 1)
|
|
64
|
-
], 2)
|
|
65
|
-
]),
|
|
66
|
-
_: 2
|
|
67
|
-
}, 1032, ["content"])
|
|
53
|
+
createElementVNode("div", {
|
|
54
|
+
title: element.name,
|
|
55
|
+
class: normalizeClass(unref(cs)("item"))
|
|
56
|
+
}, [
|
|
57
|
+
createElementVNode("span", null, toDisplayString(element.title || element.name), 1)
|
|
58
|
+
], 10, _hoisted_1)
|
|
68
59
|
])
|
|
69
60
|
]),
|
|
70
61
|
_: 1
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const es = require("element-plus/es");
|
|
4
|
-
require("element-plus/es/components/base/style/css");
|
|
5
|
-
require("element-plus/es/components/tooltip/style/css");
|
|
6
3
|
const vue = require("vue");
|
|
7
4
|
const Draggable = require("vuedraggable");
|
|
8
5
|
const name = require("@fangzhongya/icons/name");
|
|
9
6
|
const index = require("../../utils/index.cjs");
|
|
10
7
|
const util = require("../../config/util.cjs");
|
|
11
8
|
const basics = require("../../config/basics.cjs");
|
|
9
|
+
const _hoisted_1 = ["title"];
|
|
10
|
+
const _hoisted_2 = ["title"];
|
|
12
11
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
13
12
|
__name: "icons",
|
|
14
13
|
setup(__props) {
|
|
@@ -20,20 +19,19 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
20
19
|
return [...iconnames, ...cs2];
|
|
21
20
|
});
|
|
22
21
|
function cloneDog(obj) {
|
|
23
|
-
|
|
24
|
-
return config2;
|
|
22
|
+
return util.getDesigns(obj);
|
|
25
23
|
}
|
|
26
24
|
function cloneIconDog(name2) {
|
|
27
25
|
return util.getDesigns({
|
|
28
26
|
name: name2,
|
|
29
27
|
status: {
|
|
30
|
-
inline: true
|
|
28
|
+
// inline: true,
|
|
29
|
+
icon: true
|
|
31
30
|
}
|
|
32
31
|
});
|
|
33
32
|
}
|
|
34
33
|
const list = [...Object.values(basics.icons)];
|
|
35
34
|
return (_ctx, _cache) => {
|
|
36
|
-
const _component_el_tooltip = es.ElTooltip;
|
|
37
35
|
const _component_FangIcon = vue.resolveComponent("FangIcon");
|
|
38
36
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
39
37
|
class: vue.normalizeClass(vue.unref(cs)())
|
|
@@ -54,20 +52,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
54
52
|
}, {
|
|
55
53
|
item: vue.withCtx(({ element }) => [
|
|
56
54
|
vue.createElementVNode("div", null, [
|
|
57
|
-
vue.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
vue.createElementVNode("div", {
|
|
64
|
-
class: vue.normalizeClass(vue.unref(cs)("top-item"))
|
|
65
|
-
}, [
|
|
66
|
-
vue.createElementVNode("span", null, vue.toDisplayString(element.title || element.name), 1)
|
|
67
|
-
], 2)
|
|
68
|
-
]),
|
|
69
|
-
_: 2
|
|
70
|
-
}, 1032, ["content"])
|
|
55
|
+
vue.createElementVNode("div", {
|
|
56
|
+
title: element.name,
|
|
57
|
+
class: vue.normalizeClass(vue.unref(cs)("top-item"))
|
|
58
|
+
}, [
|
|
59
|
+
vue.createElementVNode("span", null, vue.toDisplayString(element.title || element.name), 1)
|
|
60
|
+
], 10, _hoisted_1)
|
|
71
61
|
])
|
|
72
62
|
]),
|
|
73
63
|
_: 1
|
|
@@ -89,23 +79,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
89
79
|
}, {
|
|
90
80
|
item: vue.withCtx(({ element }) => [
|
|
91
81
|
vue.createElementVNode("div", null, [
|
|
92
|
-
vue.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
vue.createVNode(_component_FangIcon, {
|
|
102
|
-
size: "100%",
|
|
103
|
-
name: element
|
|
104
|
-
}, null, 8, ["name"])
|
|
105
|
-
], 2)
|
|
106
|
-
]),
|
|
107
|
-
_: 2
|
|
108
|
-
}, 1032, ["content"])
|
|
82
|
+
vue.createElementVNode("div", {
|
|
83
|
+
title: element,
|
|
84
|
+
class: vue.normalizeClass(vue.unref(cs)("list-item"))
|
|
85
|
+
}, [
|
|
86
|
+
vue.createVNode(_component_FangIcon, {
|
|
87
|
+
size: "100%",
|
|
88
|
+
name: element
|
|
89
|
+
}, null, 8, ["name"])
|
|
90
|
+
], 10, _hoisted_2)
|
|
109
91
|
])
|
|
110
92
|
]),
|
|
111
93
|
_: 1
|