@fangzhongya/page 0.0.28 → 0.0.30
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/draggable.d.ts +2 -2
- package/dist/components/design/design-drag2.cjs +0 -3
- package/dist/components/design/design-drag2.js +1 -4
- package/dist/components/design/design-resizable2.cjs +3 -2
- package/dist/components/design/design-resizable2.js +5 -4
- package/dist/components/design/resizable.cjs +1 -4
- package/dist/components/design/resizable.js +1 -4
- package/dist/components/design/resizable2.cjs +2 -2
- package/dist/components/design/resizable2.js +2 -2
- package/dist/components/editor/view2.cjs +40 -27
- package/dist/components/editor/view2.js +41 -28
- package/dist/components/generated/index2.cjs +27 -13
- package/dist/components/generated/index2.js +23 -9
- package/dist/components/index.css +140 -57
- package/dist/components/index2.cjs +66 -407
- package/dist/components/index2.js +55 -396
- package/dist/components/right/custom/index2.cjs +4 -2
- package/dist/components/right/custom/index2.js +5 -3
- package/dist/components/set/border.cjs +4 -0
- package/dist/components/set/border.js +4 -0
- package/dist/components/set/border2.cjs +76 -0
- package/dist/components/set/border2.js +76 -0
- package/dist/components/set/index.cjs +4 -0
- package/dist/components/set/index.js +4 -0
- package/dist/components/set/index2.cjs +199 -0
- package/dist/components/set/index2.js +199 -0
- package/dist/components/set/util.cjs +45 -0
- package/dist/components/set/util.d.ts +16 -0
- package/dist/components/set/util.js +45 -0
- package/dist/components/top/index.cjs +4 -0
- package/dist/components/top/index.js +4 -0
- package/dist/components/top/index2.cjs +414 -0
- package/dist/components/top/index2.js +414 -0
- package/dist/config/util.d.ts +10 -20
- package/dist/design/design.d.ts +1 -1
- package/dist/effect/draggable.cjs +2 -2
- package/dist/effect/draggable.d.ts +1 -1
- package/dist/effect/draggable.js +2 -2
- package/dist/effect/effect.d.ts +1 -1
- package/dist/expand/components.cjs +1 -1
- package/dist/expand/components.js +1 -1
- package/dist/render/render.d.ts +1 -1
- package/dist/viewer/draggable.d.ts +1 -1
- package/dist/viewer/viewer.d.ts +1 -1
- package/package.json +2 -2
- package/dist/components/design/resizable.css +0 -80
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const __unplugin_directives_0 = require("@fangzhongya/fang-ui/directives/adjustment/index");
|
|
4
|
-
const index$
|
|
5
|
-
require("@fangzhongya/fang-ui/components/window/style/index2.scss");
|
|
6
|
-
const index$6 = require("@fangzhongya/fang-ui/components/retract/index");
|
|
4
|
+
const index$2 = require("@fangzhongya/fang-ui/components/retract/index");
|
|
7
5
|
require("@fangzhongya/fang-ui/components/retract/style/index2.scss");
|
|
8
|
-
const index$5 = require("@fangzhongya/fang-ui/components/history/index");
|
|
9
|
-
require("@fangzhongya/fang-ui/components/history/style/index2.scss");
|
|
10
|
-
const index$4 = require("@fangzhongya/fang-ui/components/button/index");
|
|
11
|
-
require("@fangzhongya/fang-ui/components/button/style/index2.scss");
|
|
12
6
|
const vue = require("vue");
|
|
7
|
+
require("./top/index.cjs");
|
|
8
|
+
require("./set/index.cjs");
|
|
13
9
|
require("../design/index.cjs");
|
|
14
10
|
require("../design/render.cjs");
|
|
15
11
|
require("../effect/index.cjs");
|
|
@@ -17,33 +13,20 @@ require("../viewer/index.cjs");
|
|
|
17
13
|
require("./operate/right-key.cjs");
|
|
18
14
|
require("./left/index.cjs");
|
|
19
15
|
require("./right/index.cjs");
|
|
20
|
-
require("./editor/view.cjs");
|
|
21
|
-
require("./editor/look-over.cjs");
|
|
22
16
|
require("./tree/index.cjs");
|
|
23
|
-
const index$1 = require("@fangzhongya/fang-ui/hooks/full-screen/index");
|
|
24
|
-
require("./output/gener.cjs");
|
|
25
|
-
require("./generated/index.cjs");
|
|
26
|
-
const index$3 = require("@fangzhongya/fang-ui/components/box-fun/index");
|
|
27
|
-
require("@fangzhongya/fang-ui/components/box-fun/style/index2.scss");
|
|
28
|
-
const toJsons = require("@fangzhongya/utils/basic/string/toJsons");
|
|
29
|
-
const copy = require("../utils/copy.cjs");
|
|
30
17
|
const index = require("../utils/index.cjs");
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
require("
|
|
34
|
-
require("
|
|
35
|
-
require("
|
|
36
|
-
const
|
|
37
|
-
const index_vue_vue_type_script_setup_true_lang = require("
|
|
38
|
-
const index_vue_vue_type_script_setup_true_lang$
|
|
39
|
-
const index_vue_vue_type_script_setup_true_lang$2 = require("../viewer/index2.cjs");
|
|
40
|
-
const index_vue_vue_type_script_setup_true_lang$3 = require("../effect/index2.cjs");
|
|
18
|
+
const copy = require("../utils/copy.cjs");
|
|
19
|
+
const index$1 = require("@fangzhongya/fang-ui/hooks/model/index");
|
|
20
|
+
const util = require("./set/util.cjs");
|
|
21
|
+
const index_vue_vue_type_script_setup_true_lang = require("./top/index2.cjs");
|
|
22
|
+
const index_vue_vue_type_script_setup_true_lang$1 = require("./left/index2.cjs");
|
|
23
|
+
const index_vue_vue_type_script_setup_true_lang$2 = require("./tree/index2.cjs");
|
|
24
|
+
const index_vue_vue_type_script_setup_true_lang$3 = require("../viewer/index2.cjs");
|
|
25
|
+
const index_vue_vue_type_script_setup_true_lang$4 = require("../effect/index2.cjs");
|
|
41
26
|
const render_vue_vue_type_script_setup_true_lang = require("../design/render2.cjs");
|
|
42
|
-
const index_vue_vue_type_script_setup_true_lang$
|
|
43
|
-
const index_vue_vue_type_script_setup_true_lang$
|
|
44
|
-
const
|
|
45
|
-
const gener_vue_vue_type_script_setup_true_lang = require("./output/gener2.cjs");
|
|
46
|
-
const index_vue_vue_type_script_setup_true_lang$6 = require("./generated/index2.cjs");
|
|
27
|
+
const index_vue_vue_type_script_setup_true_lang$5 = require("../design/index2.cjs");
|
|
28
|
+
const index_vue_vue_type_script_setup_true_lang$6 = require("./right/index2.cjs");
|
|
29
|
+
const index_vue_vue_type_script_setup_true_lang$7 = require("./set/index2.cjs");
|
|
47
30
|
const rightKey_vue_vue_type_script_setup_true_lang = require("./operate/right-key2.cjs");
|
|
48
31
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
49
32
|
__name: "index",
|
|
@@ -87,47 +70,27 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
87
70
|
const props = __props;
|
|
88
71
|
const emit = __emit;
|
|
89
72
|
const cs = index.getClass("page");
|
|
90
|
-
const
|
|
91
|
-
|
|
73
|
+
const setObj = vue.ref(util.getSetObjValue());
|
|
74
|
+
const setSetObj = vue.computed(() => {
|
|
75
|
+
return util.getStyleSetObj(setObj.value);
|
|
92
76
|
});
|
|
93
|
-
const { isFullscreen, toggle } = index$1.useFullscreen();
|
|
94
|
-
const isTree = vue.ref(false);
|
|
95
|
-
const isLeft = vue.ref(config.value.left || false);
|
|
96
|
-
const isRight = vue.ref(config.value.right || false);
|
|
97
|
-
const isGenerated = vue.ref(false);
|
|
98
|
-
const refDom = vue.ref();
|
|
99
|
-
const refDomRender = vue.ref();
|
|
100
77
|
const rkey = vue.ref(0);
|
|
101
78
|
vue.provide("rkey", rkey);
|
|
102
|
-
const layout = index$
|
|
103
|
-
|
|
104
|
-
onRefresh();
|
|
105
|
-
setHistory();
|
|
106
|
-
});
|
|
107
|
-
vue.watch(
|
|
108
|
-
[() => layout.value],
|
|
109
|
-
() => {
|
|
110
|
-
setHistory();
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
deep: true
|
|
114
|
-
}
|
|
115
|
-
);
|
|
116
|
-
const ispreview = vue.ref(false);
|
|
117
|
-
const isSwitch = vue.ref(false);
|
|
118
|
-
const isoutput = vue.ref(false);
|
|
119
|
-
const record = vue.ref(0);
|
|
120
|
-
const right = index$2.useModel(
|
|
79
|
+
const layout = index$1.useModel(props, emit, () => getLayout());
|
|
80
|
+
const right = index$1.useModel(
|
|
121
81
|
props,
|
|
122
82
|
emit,
|
|
123
83
|
void 0,
|
|
124
84
|
"right"
|
|
125
85
|
);
|
|
126
|
-
vue.
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
86
|
+
const config = vue.computed(() => {
|
|
87
|
+
return props.config || {};
|
|
88
|
+
});
|
|
89
|
+
const states = vue.reactive({
|
|
90
|
+
set: false,
|
|
91
|
+
tree: config.value.tree || false,
|
|
92
|
+
left: config.value.left || false,
|
|
93
|
+
right: config.value.right || false
|
|
131
94
|
});
|
|
132
95
|
vue.provide("config", config);
|
|
133
96
|
vue.provide("right", right);
|
|
@@ -147,319 +110,69 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
147
110
|
box: false
|
|
148
111
|
});
|
|
149
112
|
vue.provide("operateRightKey", operateRightKey);
|
|
150
|
-
const lookOver = vue.ref({
|
|
151
|
-
// 弹框名称
|
|
152
|
-
title: "",
|
|
153
|
-
// 头展示
|
|
154
|
-
top: "",
|
|
155
|
-
// 是否展示弹框
|
|
156
|
-
box: false,
|
|
157
|
-
// 输入的值
|
|
158
|
-
value: ""
|
|
159
|
-
});
|
|
160
|
-
vue.provide("lookOver", lookOver.value);
|
|
161
|
-
const isHistory = vue.ref(true);
|
|
162
|
-
let timer;
|
|
163
|
-
function setHistory() {
|
|
164
|
-
if (isHistory.value) {
|
|
165
|
-
clearTimeout(timer);
|
|
166
|
-
timer = setTimeout(() => {
|
|
167
|
-
record.value++;
|
|
168
|
-
}, 400);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
function onHistory() {
|
|
172
|
-
onRefresh();
|
|
173
|
-
isHistory.value = false;
|
|
174
|
-
setTimeout(() => {
|
|
175
|
-
isHistory.value = true;
|
|
176
|
-
}, 200);
|
|
177
|
-
}
|
|
178
|
-
function onTree() {
|
|
179
|
-
isTree.value = !isTree.value;
|
|
180
|
-
}
|
|
181
|
-
function onLeft() {
|
|
182
|
-
isLeft.value = !isLeft.value;
|
|
183
|
-
}
|
|
184
|
-
function onRight() {
|
|
185
|
-
isRight.value = !isRight.value;
|
|
186
|
-
}
|
|
187
|
-
function onInput() {
|
|
188
|
-
const value = vue.ref("");
|
|
189
|
-
index$3.BoxFun(
|
|
190
|
-
() => vue.h("div", {}, [
|
|
191
|
-
vue.h("div", {}, [
|
|
192
|
-
vue.h(es.ElInput, {
|
|
193
|
-
type: "textarea",
|
|
194
|
-
placeholder: "请输入内容",
|
|
195
|
-
modelValue: value.value,
|
|
196
|
-
["onUpdate:modelValue"]: (v) => {
|
|
197
|
-
value.value = v;
|
|
198
|
-
}
|
|
199
|
-
})
|
|
200
|
-
])
|
|
201
|
-
]),
|
|
202
|
-
{
|
|
203
|
-
title: "输入内容"
|
|
204
|
-
},
|
|
205
|
-
() => {
|
|
206
|
-
if (value.value) {
|
|
207
|
-
const obj = toJsons.toJSONSParse(value.value);
|
|
208
|
-
if (obj && typeof obj === "object") {
|
|
209
|
-
return true;
|
|
210
|
-
} else {
|
|
211
|
-
es.ElMessage.error("输入的不是对象");
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
return false;
|
|
215
|
-
}
|
|
216
|
-
).then(() => {
|
|
217
|
-
const obj = toJsons.toJSONSParse(value.value);
|
|
218
|
-
if (obj && typeof obj === "object") {
|
|
219
|
-
layout.value = toJsons.toJSONSParse(value.value) || {};
|
|
220
|
-
rkey.value++;
|
|
221
|
-
}
|
|
222
|
-
}).catch(() => {
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
function onGenerated() {
|
|
226
|
-
isGenerated.value = !isGenerated.value;
|
|
227
|
-
}
|
|
228
113
|
function onGeneratedSubmit(obj) {
|
|
229
114
|
emit("component", obj);
|
|
230
115
|
}
|
|
231
116
|
function onSave() {
|
|
232
117
|
emit("save", layout.value);
|
|
233
118
|
}
|
|
234
|
-
function
|
|
235
|
-
|
|
236
|
-
}
|
|
237
|
-
function onOutput() {
|
|
238
|
-
isoutput.value = true;
|
|
239
|
-
}
|
|
240
|
-
function onEmpty() {
|
|
241
|
-
layout.value = getLayout();
|
|
119
|
+
function onMould(item) {
|
|
120
|
+
layout.value = item;
|
|
242
121
|
right.value = void 0;
|
|
243
122
|
onRefresh();
|
|
244
123
|
}
|
|
245
|
-
function
|
|
246
|
-
layout.value =
|
|
124
|
+
function onEmpty() {
|
|
125
|
+
layout.value = getLayout();
|
|
247
126
|
right.value = void 0;
|
|
248
127
|
onRefresh();
|
|
249
128
|
}
|
|
250
129
|
function getData() {
|
|
251
130
|
return layout.value;
|
|
252
131
|
}
|
|
253
|
-
function onSwitch() {
|
|
254
|
-
isSwitch.value = !isSwitch.value;
|
|
255
|
-
}
|
|
256
|
-
function onFullscreen() {
|
|
257
|
-
if (isSwitch.value) {
|
|
258
|
-
toggle(refDomRender.value);
|
|
259
|
-
} else {
|
|
260
|
-
toggle(refDom.value);
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
132
|
function onRefresh() {
|
|
264
133
|
rkey.value++;
|
|
265
134
|
}
|
|
266
|
-
vue.
|
|
267
|
-
|
|
135
|
+
vue.watch([() => right.value], () => {
|
|
136
|
+
if (right.value && states.right) {
|
|
137
|
+
states.right = false;
|
|
138
|
+
}
|
|
139
|
+
emit("change", right.value);
|
|
268
140
|
});
|
|
269
141
|
__expose({
|
|
270
142
|
getData,
|
|
271
143
|
onRefresh
|
|
272
144
|
});
|
|
273
145
|
return (_ctx, _cache) => {
|
|
274
|
-
const
|
|
275
|
-
const _component_History = index$5.History;
|
|
276
|
-
const _component_Retract = index$6.Retract;
|
|
277
|
-
const _component_window = index$7.Window;
|
|
146
|
+
const _component_Retract = index$2.Retract;
|
|
278
147
|
const _directive_adjustment = __unplugin_directives_0;
|
|
279
148
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
280
149
|
class: vue.normalizeClass(vue.unref(cs)()),
|
|
281
|
-
|
|
282
|
-
ref: refDom
|
|
150
|
+
style: vue.normalizeStyle(vue.unref(setSetObj))
|
|
283
151
|
}, [
|
|
284
|
-
vue.
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
onClick: onLeft
|
|
293
|
-
}, {
|
|
294
|
-
default: vue.withCtx(() => [..._cache[9] || (_cache[9] = [
|
|
295
|
-
vue.createTextVNode(" 组件 ", -1)
|
|
296
|
-
])]),
|
|
297
|
-
_: 1
|
|
298
|
-
}),
|
|
299
|
-
vue.createVNode(_component_Button, {
|
|
300
|
-
text: "",
|
|
301
|
-
onClick: onTree
|
|
302
|
-
}, {
|
|
303
|
-
default: vue.withCtx(() => [..._cache[10] || (_cache[10] = [
|
|
304
|
-
vue.createTextVNode(" 目录 ", -1)
|
|
305
|
-
])]),
|
|
306
|
-
_: 1
|
|
307
|
-
}),
|
|
308
|
-
vue.createVNode(_component_Button, {
|
|
309
|
-
text: "",
|
|
310
|
-
onClick: onRight
|
|
311
|
-
}, {
|
|
312
|
-
default: vue.withCtx(() => [..._cache[11] || (_cache[11] = [
|
|
313
|
-
vue.createTextVNode(" 配置 ", -1)
|
|
314
|
-
])]),
|
|
315
|
-
_: 1
|
|
316
|
-
}),
|
|
317
|
-
!vue.unref(config).input ? (vue.openBlock(), vue.createBlock(_component_Button, {
|
|
318
|
-
key: 0,
|
|
319
|
-
text: "",
|
|
320
|
-
onClick: onInput
|
|
321
|
-
}, {
|
|
322
|
-
default: vue.withCtx(() => [..._cache[12] || (_cache[12] = [
|
|
323
|
-
vue.createTextVNode(" 输入 ", -1)
|
|
324
|
-
])]),
|
|
325
|
-
_: 1
|
|
326
|
-
})) : vue.createCommentVNode("", true),
|
|
327
|
-
!vue.unref(config).save ? (vue.openBlock(), vue.createBlock(_component_Button, {
|
|
328
|
-
key: 1,
|
|
329
|
-
text: "",
|
|
330
|
-
onClick: onSave
|
|
331
|
-
}, {
|
|
332
|
-
default: vue.withCtx(() => [..._cache[13] || (_cache[13] = [
|
|
333
|
-
vue.createTextVNode(" 保存 ", -1)
|
|
334
|
-
])]),
|
|
335
|
-
_: 1
|
|
336
|
-
})) : vue.createCommentVNode("", true),
|
|
337
|
-
vue.createVNode(_component_History, {
|
|
338
|
-
onChange: onHistory,
|
|
339
|
-
isCur: false,
|
|
340
|
-
isModel: "",
|
|
341
|
-
record: record.value,
|
|
342
|
-
copyFilter: (key) => !key.startsWith("__"),
|
|
343
|
-
modelValue: vue.unref(layout),
|
|
344
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(layout) ? layout.value = $event : null)
|
|
345
|
-
}, null, 8, ["record", "copyFilter", "modelValue"])
|
|
346
|
-
], 2),
|
|
347
|
-
vue.createElementVNode("div", {
|
|
348
|
-
class: vue.normalizeClass(vue.unref(cs)("top-right"))
|
|
349
|
-
}, [
|
|
350
|
-
vue.createVNode(_component_Button, {
|
|
351
|
-
text: "",
|
|
352
|
-
onClick: onSwitch
|
|
353
|
-
}, {
|
|
354
|
-
default: vue.withCtx(() => [
|
|
355
|
-
vue.createTextVNode(vue.toDisplayString(isSwitch.value ? "设计" : "效果"), 1)
|
|
356
|
-
]),
|
|
357
|
-
_: 1
|
|
358
|
-
}),
|
|
359
|
-
vue.createVNode(_component_Button, {
|
|
360
|
-
text: "",
|
|
361
|
-
onClick: onRefresh
|
|
362
|
-
}, {
|
|
363
|
-
default: vue.withCtx(() => [..._cache[14] || (_cache[14] = [
|
|
364
|
-
vue.createTextVNode(" 刷新 ", -1)
|
|
365
|
-
])]),
|
|
366
|
-
_: 1
|
|
367
|
-
}),
|
|
368
|
-
vue.createVNode(_component_Button, {
|
|
369
|
-
class: "close",
|
|
370
|
-
text: "",
|
|
371
|
-
onClick: onEmpty
|
|
372
|
-
}, {
|
|
373
|
-
default: vue.withCtx(() => [..._cache[15] || (_cache[15] = [
|
|
374
|
-
vue.createTextVNode(" 清空 ", -1)
|
|
375
|
-
])]),
|
|
376
|
-
_: 1
|
|
377
|
-
}),
|
|
378
|
-
vue.createVNode(_component_Button, {
|
|
379
|
-
text: "",
|
|
380
|
-
onClick: onPreview
|
|
381
|
-
}, {
|
|
382
|
-
default: vue.withCtx(() => [..._cache[16] || (_cache[16] = [
|
|
383
|
-
vue.createTextVNode(" 预览 ", -1)
|
|
384
|
-
])]),
|
|
385
|
-
_: 1
|
|
386
|
-
}),
|
|
387
|
-
vue.createVNode(_component_Button, {
|
|
388
|
-
text: "",
|
|
389
|
-
onClick: onOutput
|
|
390
|
-
}, {
|
|
391
|
-
default: vue.withCtx(() => [..._cache[17] || (_cache[17] = [
|
|
392
|
-
vue.createTextVNode(" 生成 ", -1)
|
|
393
|
-
])]),
|
|
394
|
-
_: 1
|
|
395
|
-
}),
|
|
396
|
-
vue.createVNode(_component_Button, {
|
|
397
|
-
text: "",
|
|
398
|
-
onClick: onGenerated
|
|
399
|
-
}, {
|
|
400
|
-
default: vue.withCtx(() => [..._cache[18] || (_cache[18] = [
|
|
401
|
-
vue.createTextVNode(" 组件 ", -1)
|
|
402
|
-
])]),
|
|
403
|
-
_: 1
|
|
404
|
-
}),
|
|
405
|
-
vue.createVNode(_component_Button, {
|
|
406
|
-
text: "",
|
|
407
|
-
onClick: onFullscreen
|
|
408
|
-
}, {
|
|
409
|
-
default: vue.withCtx(() => [
|
|
410
|
-
vue.createTextVNode(vue.toDisplayString(vue.unref(isFullscreen) ? "取消全屏" : "全屏"), 1)
|
|
411
|
-
]),
|
|
412
|
-
_: 1
|
|
413
|
-
}),
|
|
414
|
-
vue.createVNode(view_vue_vue_type_script_setup_true_lang.default, {
|
|
415
|
-
top: "设置数据",
|
|
416
|
-
modelValue: vue.unref(layout),
|
|
417
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(layout) ? layout.value = $event : null)
|
|
418
|
-
}, {
|
|
419
|
-
default: vue.withCtx(() => [
|
|
420
|
-
vue.createVNode(_component_Button, { text: "" }, {
|
|
421
|
-
default: vue.withCtx(() => [..._cache[19] || (_cache[19] = [
|
|
422
|
-
vue.createTextVNode(" 查看 ", -1)
|
|
423
|
-
])]),
|
|
424
|
-
_: 1
|
|
425
|
-
})
|
|
426
|
-
]),
|
|
427
|
-
_: 1
|
|
428
|
-
}, 8, ["modelValue"]),
|
|
429
|
-
vue.createVNode(view_vue_vue_type_script_setup_true_lang.default, {
|
|
430
|
-
type: "9",
|
|
431
|
-
top: "最小数据",
|
|
432
|
-
modelValue: vue.unref(layout),
|
|
433
|
-
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.isRef(layout) ? layout.value = $event : null)
|
|
434
|
-
}, {
|
|
435
|
-
default: vue.withCtx(() => [
|
|
436
|
-
vue.createVNode(_component_Button, { text: "" }, {
|
|
437
|
-
default: vue.withCtx(() => [..._cache[20] || (_cache[20] = [
|
|
438
|
-
vue.createTextVNode(" 最小 ", -1)
|
|
439
|
-
])]),
|
|
440
|
-
_: 1
|
|
441
|
-
})
|
|
442
|
-
]),
|
|
443
|
-
_: 1
|
|
444
|
-
}, 8, ["modelValue"])
|
|
445
|
-
], 2)
|
|
446
|
-
], 2),
|
|
152
|
+
vue.createVNode(index_vue_vue_type_script_setup_true_lang.default, {
|
|
153
|
+
onRefresh,
|
|
154
|
+
onSave,
|
|
155
|
+
onComponent: onGeneratedSubmit,
|
|
156
|
+
onEmpty,
|
|
157
|
+
states: vue.unref(states),
|
|
158
|
+
value: setObj.value
|
|
159
|
+
}, null, 8, ["states", "value"]),
|
|
447
160
|
vue.createElementVNode("div", {
|
|
448
161
|
class: vue.normalizeClass(vue.unref(cs)("grid"))
|
|
449
162
|
}, [
|
|
450
163
|
vue.createVNode(_component_Retract, {
|
|
451
|
-
modelValue:
|
|
452
|
-
"onUpdate:modelValue": _cache[
|
|
164
|
+
modelValue: vue.unref(states).left,
|
|
165
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.unref(states).left = $event),
|
|
453
166
|
isAdjust: "",
|
|
454
167
|
direction: "right"
|
|
455
168
|
}, {
|
|
456
169
|
default: vue.withCtx(() => [
|
|
457
|
-
vue.createVNode(index_vue_vue_type_script_setup_true_lang.default, { onMould })
|
|
170
|
+
vue.createVNode(index_vue_vue_type_script_setup_true_lang$1.default, { onMould })
|
|
458
171
|
]),
|
|
459
172
|
_: 1
|
|
460
173
|
}, 8, ["modelValue"]),
|
|
461
|
-
vue.withDirectives(vue.createVNode(index_vue_vue_type_script_setup_true_lang$
|
|
462
|
-
[vue.vShow,
|
|
174
|
+
vue.withDirectives(vue.createVNode(index_vue_vue_type_script_setup_true_lang$2.default, null, null, 512), [
|
|
175
|
+
[vue.vShow, vue.unref(states).tree],
|
|
463
176
|
[_directive_adjustment, {
|
|
464
177
|
right: {
|
|
465
178
|
interval: 8
|
|
@@ -469,94 +182,40 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
469
182
|
vue.createElementVNode("div", {
|
|
470
183
|
class: vue.normalizeClass(vue.unref(cs)("grid-design"))
|
|
471
184
|
}, [
|
|
472
|
-
vue.
|
|
473
|
-
class: vue.normalizeClass(vue.unref(cs)("grid-design-tis"))
|
|
474
|
-
}, " 请从左边拖动控件放置滑块中 ", 2), [
|
|
475
|
-
[vue.vShow, !isSwitch.value]
|
|
476
|
-
]),
|
|
477
|
-
vue.unref(config).type == "3" ? vue.withDirectives((vue.openBlock(), vue.createBlock(index_vue_vue_type_script_setup_true_lang$2.default, {
|
|
185
|
+
setObj.value.type == "3" ? (vue.openBlock(), vue.createBlock(index_vue_vue_type_script_setup_true_lang$3.default, {
|
|
478
186
|
key: rkey.value,
|
|
479
187
|
value: vue.unref(layout)
|
|
480
|
-
}, null, 8, ["value"])),
|
|
481
|
-
[vue.vShow, !isSwitch.value]
|
|
482
|
-
]) : vue.unref(config).type == "2" ? vue.withDirectives((vue.openBlock(), vue.createBlock(index_vue_vue_type_script_setup_true_lang$3.default, {
|
|
188
|
+
}, null, 8, ["value"])) : setObj.value.type == "2" ? (vue.openBlock(), vue.createBlock(index_vue_vue_type_script_setup_true_lang$4.default, {
|
|
483
189
|
key: rkey.value,
|
|
484
190
|
value: vue.unref(layout)
|
|
485
|
-
}, null, 8, ["value"])),
|
|
486
|
-
[vue.vShow, !isSwitch.value]
|
|
487
|
-
]) : vue.unref(config).type == "4" ? vue.withDirectives((vue.openBlock(), vue.createBlock(render_vue_vue_type_script_setup_true_lang.default, {
|
|
191
|
+
}, null, 8, ["value"])) : setObj.value.type == "4" ? (vue.openBlock(), vue.createBlock(render_vue_vue_type_script_setup_true_lang.default, {
|
|
488
192
|
key: rkey.value,
|
|
489
193
|
value: vue.unref(layout)
|
|
490
|
-
}, null, 8, ["value"])),
|
|
491
|
-
[vue.vShow, !isSwitch.value]
|
|
492
|
-
]) : vue.withDirectives((vue.openBlock(), vue.createBlock(index_vue_vue_type_script_setup_true_lang$4.default, {
|
|
194
|
+
}, null, 8, ["value"])) : (vue.openBlock(), vue.createBlock(index_vue_vue_type_script_setup_true_lang$5.default, {
|
|
493
195
|
key: rkey.value,
|
|
494
196
|
value: vue.unref(layout)
|
|
495
|
-
}, null, 8, ["value"]))
|
|
496
|
-
[vue.vShow, !isSwitch.value]
|
|
497
|
-
]),
|
|
498
|
-
vue.createElementVNode("div", {
|
|
499
|
-
ref_key: "refDomRender",
|
|
500
|
-
ref: refDomRender,
|
|
501
|
-
class: vue.normalizeClass(vue.unref(cs)("grid-design-render"))
|
|
502
|
-
}, [
|
|
503
|
-
isSwitch.value ? (vue.openBlock(), vue.createBlock(render_vue_vue_type_script_setup_true_lang.default, {
|
|
504
|
-
key: rkey.value,
|
|
505
|
-
value: vue.unref(layout)
|
|
506
|
-
}, null, 8, ["value"])) : vue.createCommentVNode("", true)
|
|
507
|
-
], 2)
|
|
197
|
+
}, null, 8, ["value"]))
|
|
508
198
|
], 2),
|
|
509
199
|
vue.createVNode(_component_Retract, {
|
|
510
|
-
modelValue:
|
|
511
|
-
"onUpdate:modelValue": _cache[
|
|
200
|
+
modelValue: vue.unref(states).right,
|
|
201
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.unref(states).right = $event),
|
|
512
202
|
isAdjust: "",
|
|
513
203
|
direction: "left"
|
|
514
204
|
}, {
|
|
515
205
|
default: vue.withCtx(() => [
|
|
516
|
-
vue.createVNode(index_vue_vue_type_script_setup_true_lang$
|
|
206
|
+
vue.createVNode(index_vue_vue_type_script_setup_true_lang$6.default)
|
|
517
207
|
]),
|
|
518
208
|
_: 1
|
|
519
209
|
}, 8, ["modelValue"])
|
|
520
210
|
], 2),
|
|
521
|
-
vue.createVNode(
|
|
522
|
-
|
|
523
|
-
"onUpdate:
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
max: "",
|
|
528
|
-
title: "预览",
|
|
529
|
-
modelValue: ispreview.value,
|
|
530
|
-
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => ispreview.value = $event)
|
|
531
|
-
}, {
|
|
532
|
-
default: vue.withCtx(() => [
|
|
533
|
-
vue.createVNode(render_vue_vue_type_script_setup_true_lang.default, { value: vue.unref(layout) }, null, 8, ["value"])
|
|
534
|
-
]),
|
|
535
|
-
_: 1
|
|
536
|
-
}, 8, ["modelValue"]),
|
|
537
|
-
vue.createVNode(_component_window, {
|
|
538
|
-
isMin: "",
|
|
539
|
-
max: "",
|
|
540
|
-
title: "生成组件代码",
|
|
541
|
-
modelValue: isoutput.value,
|
|
542
|
-
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => isoutput.value = $event)
|
|
543
|
-
}, {
|
|
544
|
-
default: vue.withCtx(() => [
|
|
545
|
-
(vue.openBlock(), vue.createBlock(gener_vue_vue_type_script_setup_true_lang.default, {
|
|
546
|
-
key: isoutput.value + "",
|
|
547
|
-
value: vue.unref(layout)
|
|
548
|
-
}, null, 8, ["value"]))
|
|
549
|
-
]),
|
|
550
|
-
_: 1
|
|
551
|
-
}, 8, ["modelValue"]),
|
|
552
|
-
vue.createVNode(index_vue_vue_type_script_setup_true_lang$6.default, {
|
|
553
|
-
modelValue: isGenerated.value,
|
|
554
|
-
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => isGenerated.value = $event),
|
|
555
|
-
onSubmit: onGeneratedSubmit,
|
|
556
|
-
value: vue.unref(layout)
|
|
557
|
-
}, null, 8, ["modelValue", "value"]),
|
|
211
|
+
vue.createVNode(index_vue_vue_type_script_setup_true_lang$7.default, {
|
|
212
|
+
value: setObj.value,
|
|
213
|
+
"onUpdate:value": _cache[2] || (_cache[2] = ($event) => setObj.value = $event),
|
|
214
|
+
modelValue: vue.unref(states).set,
|
|
215
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => vue.unref(states).set = $event)
|
|
216
|
+
}, null, 8, ["value", "modelValue"]),
|
|
558
217
|
vue.createVNode(rightKey_vue_vue_type_script_setup_true_lang.default)
|
|
559
|
-
],
|
|
218
|
+
], 6);
|
|
560
219
|
};
|
|
561
220
|
}
|
|
562
221
|
});
|