@fangzhongya/page 0.0.29 → 0.0.31
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 +1 -39
- package/dist/components/control/design.d.ts +0 -3
- package/dist/components/control/design.js +2 -40
- 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 +157 -59
- package/dist/components/index2.cjs +66 -407
- package/dist/components/index2.js +55 -396
- package/dist/components/output/gener.cjs +0 -1
- package/dist/components/output/gener.js +0 -1
- package/dist/components/output/gener2.cjs +12 -8
- package/dist/components/output/gener2.js +11 -7
- 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/effect/design.cjs +1 -39
- package/dist/effect/design.d.ts +0 -3
- package/dist/effect/design.js +2 -40
- package/dist/effect/draggable.cjs +2 -2
- package/dist/effect/draggable.js +2 -2
- package/dist/expand/{chunk-ZJCFZ63F.cjs → chunk-DSW4WFHO.cjs} +1 -1
- package/dist/expand/{chunk-I2RMOBDW.js → chunk-JTAMOZ6S.js} +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/render/common.cjs +4 -4
- package/dist/render/common.d.ts +1 -1
- package/dist/render/common.js +4 -4
- package/dist/render/config.cjs +1 -2
- package/dist/render/config.js +1 -2
- package/dist/viewer/design.cjs +1 -1
- package/dist/viewer/design.js +2 -2
- package/package.json +2 -2
- package/dist/components/design/resizable.css +0 -80
- package/dist/components/output/gener.css +0 -18
|
@@ -138,13 +138,7 @@ function setDesign(obj, params = {}, temps) {
|
|
|
138
138
|
if (generals.includes(obj.name)) {
|
|
139
139
|
return getGeneralDiv(obj, params, temps);
|
|
140
140
|
}
|
|
141
|
-
return
|
|
142
|
-
obj,
|
|
143
|
-
params,
|
|
144
|
-
temps,
|
|
145
|
-
getSlotsDom(obj, params, temps),
|
|
146
|
-
setCompon()
|
|
147
|
-
);
|
|
141
|
+
return getGeneralDiv(obj, params, temps);
|
|
148
142
|
} else {
|
|
149
143
|
return "";
|
|
150
144
|
}
|
|
@@ -202,39 +196,7 @@ function getRender(params = {}, lists, temps) {
|
|
|
202
196
|
return vue.h("div", params.attrs, params.slots);
|
|
203
197
|
}
|
|
204
198
|
}
|
|
205
|
-
function getRenderAssembly(obj, params, temps) {
|
|
206
|
-
return common.assemblyGetRender(
|
|
207
|
-
obj,
|
|
208
|
-
params,
|
|
209
|
-
temps,
|
|
210
|
-
() => {
|
|
211
|
-
return config$1.getDesignSlots(obj, (slots) => {
|
|
212
|
-
return setDesignDag(
|
|
213
|
-
slots,
|
|
214
|
-
obj,
|
|
215
|
-
params,
|
|
216
|
-
temps
|
|
217
|
-
);
|
|
218
|
-
});
|
|
219
|
-
},
|
|
220
|
-
(obj2, config2, slots) => {
|
|
221
|
-
const slot = slots.default();
|
|
222
|
-
if (slot) {
|
|
223
|
-
return vue.h(
|
|
224
|
-
"div",
|
|
225
|
-
{
|
|
226
|
-
class: "assembly-div"
|
|
227
|
-
},
|
|
228
|
-
slot
|
|
229
|
-
);
|
|
230
|
-
} else {
|
|
231
|
-
return vue.h("div", params.attrs, params.slots);
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
);
|
|
235
|
-
}
|
|
236
199
|
exports.getGeneralDiv = getGeneralDiv;
|
|
237
200
|
exports.getRender = getRender;
|
|
238
|
-
exports.getRenderAssembly = getRenderAssembly;
|
|
239
201
|
exports.getResizable = getResizable;
|
|
240
202
|
exports.setDesign = setDesign;
|
|
@@ -9,6 +9,3 @@ export declare function getGeneralDiv(obj: ControlDesign, params: ObjAny, temps:
|
|
|
9
9
|
export declare function getRender(params: ObjAny | undefined, lists: Array<ControlDesign> | undefined, temps: Array<TempsObject>): VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
10
10
|
[key: string]: any;
|
|
11
11
|
}>;
|
|
12
|
-
export declare function getRenderAssembly(obj: ControlDesign, params: ObjAny, temps: Array<TempsObject>): string | VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
|
-
import { getTempsArr, useGetCompon,
|
|
2
|
+
import { getTempsArr, useGetCompon, getData } from "../../render/common.js";
|
|
3
3
|
import { getForObject } from "../../render/config.js";
|
|
4
4
|
import { getGridDiv, getDraggableDiv, getResizableDiv } from "./draggable.js";
|
|
5
5
|
import "../design/design-grids.js";
|
|
@@ -136,13 +136,7 @@ function setDesign(obj, params = {}, temps) {
|
|
|
136
136
|
if (generals.includes(obj.name)) {
|
|
137
137
|
return getGeneralDiv(obj, params, temps);
|
|
138
138
|
}
|
|
139
|
-
return
|
|
140
|
-
obj,
|
|
141
|
-
params,
|
|
142
|
-
temps,
|
|
143
|
-
getSlotsDom(obj, params, temps),
|
|
144
|
-
setCompon()
|
|
145
|
-
);
|
|
139
|
+
return getGeneralDiv(obj, params, temps);
|
|
146
140
|
} else {
|
|
147
141
|
return "";
|
|
148
142
|
}
|
|
@@ -200,41 +194,9 @@ function getRender(params = {}, lists, temps) {
|
|
|
200
194
|
return h("div", params.attrs, params.slots);
|
|
201
195
|
}
|
|
202
196
|
}
|
|
203
|
-
function getRenderAssembly(obj, params, temps) {
|
|
204
|
-
return assemblyGetRender(
|
|
205
|
-
obj,
|
|
206
|
-
params,
|
|
207
|
-
temps,
|
|
208
|
-
() => {
|
|
209
|
-
return getDesignSlots(obj, (slots) => {
|
|
210
|
-
return setDesignDag(
|
|
211
|
-
slots,
|
|
212
|
-
obj,
|
|
213
|
-
params,
|
|
214
|
-
temps
|
|
215
|
-
);
|
|
216
|
-
});
|
|
217
|
-
},
|
|
218
|
-
(obj2, config, slots) => {
|
|
219
|
-
const slot = slots.default();
|
|
220
|
-
if (slot) {
|
|
221
|
-
return h(
|
|
222
|
-
"div",
|
|
223
|
-
{
|
|
224
|
-
class: "assembly-div"
|
|
225
|
-
},
|
|
226
|
-
slot
|
|
227
|
-
);
|
|
228
|
-
} else {
|
|
229
|
-
return h("div", params.attrs, params.slots);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
);
|
|
233
|
-
}
|
|
234
197
|
export {
|
|
235
198
|
getGeneralDiv,
|
|
236
199
|
getRender,
|
|
237
|
-
getRenderAssembly,
|
|
238
200
|
getResizable,
|
|
239
201
|
setDesign
|
|
240
202
|
};
|
|
@@ -66,9 +66,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
66
66
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
67
67
|
class: vue.normalizeClass(vue.unref(cs)())
|
|
68
68
|
}, [
|
|
69
|
-
vue.createElementVNode("div", {
|
|
70
|
-
class: vue.normalizeClass(vue.unref(cs)("name"))
|
|
71
|
-
}, vue.toDisplayString(props.slotName), 3),
|
|
72
69
|
vue.createVNode(vue.unref(Draggable), {
|
|
73
70
|
class: vue.normalizeClass([vue.unref(cs)("draggable")]),
|
|
74
71
|
"item-key": "id",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, inject, computed, openBlock, createElementBlock, normalizeClass, unref,
|
|
1
|
+
import { defineComponent, inject, computed, openBlock, createElementBlock, normalizeClass, unref, createVNode, isRef, createSlots, withCtx, mergeProps, withModifiers, renderSlot, createCommentVNode, createElementVNode, toDisplayString } from "vue";
|
|
2
2
|
import Draggable from "vuedraggable";
|
|
3
3
|
import "./design-operate.js";
|
|
4
4
|
import { getClass } from "../../utils/index.js";
|
|
@@ -64,9 +64,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
64
64
|
return openBlock(), createElementBlock("div", {
|
|
65
65
|
class: normalizeClass(unref(cs)())
|
|
66
66
|
}, [
|
|
67
|
-
createElementVNode("div", {
|
|
68
|
-
class: normalizeClass(unref(cs)("name"))
|
|
69
|
-
}, toDisplayString(props.slotName), 3),
|
|
70
67
|
createVNode(unref(Draggable), {
|
|
71
68
|
class: normalizeClass([unref(cs)("draggable")]),
|
|
72
69
|
"item-key": "id",
|
|
@@ -2,10 +2,11 @@
|
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
4
|
const Draggable = require("vuedraggable");
|
|
5
|
-
|
|
5
|
+
require("./resizable.cjs");
|
|
6
6
|
require("./design-operate.cjs");
|
|
7
7
|
const util = require("../../config/util.cjs");
|
|
8
8
|
const index = require("../../utils/index.cjs");
|
|
9
|
+
const resizable_vue_vue_type_script_setup_true_lang = require("./resizable2.cjs");
|
|
9
10
|
const designOperate_vue_vue_type_script_setup_true_lang = require("./design-operate2.cjs");
|
|
10
11
|
const defaultSize = 10;
|
|
11
12
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -132,7 +133,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
132
133
|
}, [
|
|
133
134
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(value), (element, index2) => {
|
|
134
135
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
135
|
-
!element.design?.hide ? (vue.openBlock(), vue.createBlock(
|
|
136
|
+
!element.design?.hide ? (vue.openBlock(), vue.createBlock(resizable_vue_vue_type_script_setup_true_lang.default, {
|
|
136
137
|
key: 0,
|
|
137
138
|
class: vue.normalizeClass([
|
|
138
139
|
vue.unref(cs)("resizable-item"),
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, inject, onMounted, openBlock, createElementBlock, normalizeClass, unref, createVNode, isRef, withCtx, createElementVNode, Fragment, renderList, createBlock, withModifiers, createCommentVNode, renderSlot, createTextVNode, toDisplayString } from "vue";
|
|
2
2
|
import Draggable from "vuedraggable";
|
|
3
|
-
import
|
|
3
|
+
import "./resizable.js";
|
|
4
4
|
import "./design-operate.js";
|
|
5
5
|
import { getComponObj } from "../../config/util.js";
|
|
6
6
|
import { getClass } from "../../utils/index.js";
|
|
7
|
-
import _sfc_main$1 from "./
|
|
7
|
+
import _sfc_main$1 from "./resizable2.js";
|
|
8
|
+
import _sfc_main$2 from "./design-operate2.js";
|
|
8
9
|
const defaultSize = 10;
|
|
9
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
11
|
__name: "design-resizable",
|
|
@@ -130,7 +131,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
130
131
|
}, [
|
|
131
132
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(value), (element, index) => {
|
|
132
133
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
133
|
-
!element.design?.hide ? (openBlock(), createBlock(
|
|
134
|
+
!element.design?.hide ? (openBlock(), createBlock(_sfc_main$1, {
|
|
134
135
|
key: 0,
|
|
135
136
|
class: normalizeClass([
|
|
136
137
|
unref(cs)("resizable-item"),
|
|
@@ -161,7 +162,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
161
162
|
key: 0,
|
|
162
163
|
class: normalizeClass([unref(cs)("allow")])
|
|
163
164
|
}, null, 2)) : createCommentVNode("", true),
|
|
164
|
-
createVNode(_sfc_main$
|
|
165
|
+
createVNode(_sfc_main$2, {
|
|
165
166
|
"model-value": unref(value),
|
|
166
167
|
assembly: element,
|
|
167
168
|
index,
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const resizable_vue_vue_type_script_setup_true_lang = require("./resizable2.cjs");
|
|
4
|
-
|
|
5
|
-
const _pluginVue_exportHelper = require("../../_virtual/_plugin-vue_export-helper.cjs");
|
|
6
|
-
const VueDraggableResizable = /* @__PURE__ */ _pluginVue_exportHelper.default(resizable_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-2f18084c"]]);
|
|
7
|
-
exports.default = VueDraggableResizable;
|
|
4
|
+
exports.default = resizable_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import _sfc_main from "./resizable2.js";
|
|
2
|
-
/* empty css */
|
|
3
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const VueDraggableResizable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2f18084c"]]);
|
|
5
2
|
export {
|
|
6
|
-
|
|
3
|
+
_sfc_main as default
|
|
7
4
|
};
|
|
@@ -547,10 +547,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
547
547
|
class: vue.normalizeClass([__props.classNameHandle, `${__props.classNameHandle}-${handle}`]),
|
|
548
548
|
style: vue.normalizeStyle({ display: vue.unref(enabled) && __props.resizable ? "block" : "none" })
|
|
549
549
|
}, [
|
|
550
|
-
vue.renderSlot(_ctx.$slots, handle
|
|
550
|
+
vue.renderSlot(_ctx.$slots, handle)
|
|
551
551
|
], 6);
|
|
552
552
|
}), 128)),
|
|
553
|
-
vue.renderSlot(_ctx.$slots, "default"
|
|
553
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
554
554
|
], 6);
|
|
555
555
|
};
|
|
556
556
|
}
|
|
@@ -545,10 +545,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
545
545
|
class: normalizeClass([__props.classNameHandle, `${__props.classNameHandle}-${handle}`]),
|
|
546
546
|
style: normalizeStyle({ display: unref(enabled) && __props.resizable ? "block" : "none" })
|
|
547
547
|
}, [
|
|
548
|
-
renderSlot(_ctx.$slots, handle
|
|
548
|
+
renderSlot(_ctx.$slots, handle)
|
|
549
549
|
], 6);
|
|
550
550
|
}), 128)),
|
|
551
|
-
renderSlot(_ctx.$slots, "default"
|
|
551
|
+
renderSlot(_ctx.$slots, "default")
|
|
552
552
|
], 6);
|
|
553
553
|
};
|
|
554
554
|
}
|
|
@@ -6,6 +6,8 @@ const vue = require("vue");
|
|
|
6
6
|
const toJsons = require("@fangzhongya/utils/basic/string/toJsons");
|
|
7
7
|
const util = require("../../render/util.cjs");
|
|
8
8
|
const index = require("../../utils/index.cjs");
|
|
9
|
+
require("./look-over.cjs");
|
|
10
|
+
const lookOver_vue_vue_type_script_setup_true_lang = require("./look-over2.cjs");
|
|
9
11
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
10
12
|
__name: "view",
|
|
11
13
|
props: {
|
|
@@ -31,38 +33,49 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
31
33
|
const cs = index.getClass("editor-view");
|
|
32
34
|
const props = __props;
|
|
33
35
|
const emit = __emit;
|
|
34
|
-
const lookOver = vue.
|
|
36
|
+
const lookOver = vue.reactive({
|
|
37
|
+
// 弹框名称
|
|
38
|
+
title: "",
|
|
39
|
+
// 头展示
|
|
40
|
+
top: "",
|
|
41
|
+
// 是否展示弹框
|
|
42
|
+
box: false,
|
|
43
|
+
// 输入的值
|
|
44
|
+
value: ""
|
|
45
|
+
});
|
|
35
46
|
function onClick() {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
} else {
|
|
45
|
-
const value = toJsons.toJSONSStringify(props.modelValue, 4);
|
|
46
|
-
lookOver.value = value;
|
|
47
|
-
}
|
|
48
|
-
lookOver.box = true;
|
|
47
|
+
Object.keys(props).forEach((v) => {
|
|
48
|
+
lookOver[v] = props[v] || "";
|
|
49
|
+
});
|
|
50
|
+
if (props.type == "9") {
|
|
51
|
+
lookOver.value = util.getDesignMinStr(props.modelValue);
|
|
52
|
+
} else {
|
|
53
|
+
const value = toJsons.toJSONSStringify(props.modelValue, 4);
|
|
54
|
+
lookOver.value = value;
|
|
49
55
|
}
|
|
56
|
+
lookOver.box = true;
|
|
50
57
|
}
|
|
51
58
|
return (_ctx, _cache) => {
|
|
52
59
|
const _component_Button = index$1.Button;
|
|
53
|
-
return vue.openBlock(), vue.createElementBlock(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
vue.
|
|
59
|
-
|
|
60
|
-
vue.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
61
|
+
vue.createElementVNode("div", {
|
|
62
|
+
class: vue.normalizeClass(vue.unref(cs)()),
|
|
63
|
+
onClick: _cache[0] || (_cache[0] = ($event) => onClick())
|
|
64
|
+
}, [
|
|
65
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
66
|
+
vue.createVNode(_component_Button, { text: "" }, {
|
|
67
|
+
default: vue.withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
68
|
+
vue.createTextVNode("查看", -1)
|
|
69
|
+
])]),
|
|
70
|
+
_: 1
|
|
71
|
+
})
|
|
72
|
+
])
|
|
73
|
+
], 2),
|
|
74
|
+
vue.createVNode(lookOver_vue_vue_type_script_setup_true_lang.default, vue.mergeProps(vue.unref(lookOver), {
|
|
75
|
+
modelValue: vue.unref(lookOver).box,
|
|
76
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.unref(lookOver).box = $event)
|
|
77
|
+
}), null, 16, ["modelValue"])
|
|
78
|
+
], 64);
|
|
66
79
|
};
|
|
67
80
|
}
|
|
68
81
|
});
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { Button } from "@fangzhongya/fang-ui/components/button/index";
|
|
2
2
|
import "@fangzhongya/fang-ui/components/button/style/index2.scss";
|
|
3
|
-
import { defineComponent,
|
|
3
|
+
import { defineComponent, reactive, openBlock, createElementBlock, Fragment, createElementVNode, normalizeClass, unref, renderSlot, createVNode, withCtx, createTextVNode, mergeProps } from "vue";
|
|
4
4
|
import { toJSONSStringify } from "@fangzhongya/utils/basic/string/toJsons";
|
|
5
5
|
import { getDesignMinStr } from "../../render/util.js";
|
|
6
6
|
import { getClass } from "../../utils/index.js";
|
|
7
|
+
import "./look-over.js";
|
|
8
|
+
import _sfc_main$1 from "./look-over2.js";
|
|
7
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
10
|
__name: "view",
|
|
9
11
|
props: {
|
|
@@ -29,38 +31,49 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
31
|
const cs = getClass("editor-view");
|
|
30
32
|
const props = __props;
|
|
31
33
|
const emit = __emit;
|
|
32
|
-
const lookOver =
|
|
34
|
+
const lookOver = reactive({
|
|
35
|
+
// 弹框名称
|
|
36
|
+
title: "",
|
|
37
|
+
// 头展示
|
|
38
|
+
top: "",
|
|
39
|
+
// 是否展示弹框
|
|
40
|
+
box: false,
|
|
41
|
+
// 输入的值
|
|
42
|
+
value: ""
|
|
43
|
+
});
|
|
33
44
|
function onClick() {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
} else {
|
|
43
|
-
const value = toJSONSStringify(props.modelValue, 4);
|
|
44
|
-
lookOver.value = value;
|
|
45
|
-
}
|
|
46
|
-
lookOver.box = true;
|
|
45
|
+
Object.keys(props).forEach((v) => {
|
|
46
|
+
lookOver[v] = props[v] || "";
|
|
47
|
+
});
|
|
48
|
+
if (props.type == "9") {
|
|
49
|
+
lookOver.value = getDesignMinStr(props.modelValue);
|
|
50
|
+
} else {
|
|
51
|
+
const value = toJSONSStringify(props.modelValue, 4);
|
|
52
|
+
lookOver.value = value;
|
|
47
53
|
}
|
|
54
|
+
lookOver.box = true;
|
|
48
55
|
}
|
|
49
56
|
return (_ctx, _cache) => {
|
|
50
57
|
const _component_Button = Button;
|
|
51
|
-
return openBlock(), createElementBlock(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
59
|
+
createElementVNode("div", {
|
|
60
|
+
class: normalizeClass(unref(cs)()),
|
|
61
|
+
onClick: _cache[0] || (_cache[0] = ($event) => onClick())
|
|
62
|
+
}, [
|
|
63
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
64
|
+
createVNode(_component_Button, { text: "" }, {
|
|
65
|
+
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
66
|
+
createTextVNode("查看", -1)
|
|
67
|
+
])]),
|
|
68
|
+
_: 1
|
|
69
|
+
})
|
|
70
|
+
])
|
|
71
|
+
], 2),
|
|
72
|
+
createVNode(_sfc_main$1, mergeProps(unref(lookOver), {
|
|
73
|
+
modelValue: unref(lookOver).box,
|
|
74
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => unref(lookOver).box = $event)
|
|
75
|
+
}), null, 16, ["modelValue"])
|
|
76
|
+
], 64);
|
|
64
77
|
};
|
|
65
78
|
}
|
|
66
79
|
});
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const index$
|
|
3
|
+
const index$4 = require("@fangzhongya/fang-ui/components/window/index");
|
|
4
4
|
require("@fangzhongya/fang-ui/components/window/style/index2.scss");
|
|
5
|
-
const index$
|
|
5
|
+
const index$3 = require("@fangzhongya/fang-ui/components/button/index");
|
|
6
6
|
require("@fangzhongya/fang-ui/components/button/style/index2.scss");
|
|
7
7
|
const es = require("element-plus/es");
|
|
8
8
|
require("element-plus/es/components/base/style/css");
|
|
9
9
|
require("element-plus/es/components/form/style/css");
|
|
10
|
+
const index$2 = require("@fangzhongya/fang-ui/components/switchs/index");
|
|
11
|
+
require("@fangzhongya/fang-ui/components/switchs/style/index2.scss");
|
|
10
12
|
require("element-plus/es/components/form-item/style/css");
|
|
11
13
|
const index$1 = require("@fangzhongya/fang-ui/components/inputs/index");
|
|
12
14
|
require("@fangzhongya/fang-ui/components/inputs/style/index2.scss");
|
|
@@ -96,6 +98,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
96
98
|
};
|
|
97
99
|
const onSubmit = () => {
|
|
98
100
|
const name2 = status.value.name;
|
|
101
|
+
if (!name2) {
|
|
102
|
+
es.ElMessage.error("请填写组件名称");
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
99
105
|
if (arr.includes(name2)) {
|
|
100
106
|
es.ElMessage.error("当前组件名称不能使用");
|
|
101
107
|
return false;
|
|
@@ -119,16 +125,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
119
125
|
return (_ctx, _cache) => {
|
|
120
126
|
const _component_Inputs = index$1.Inputs;
|
|
121
127
|
const _component_el_form_item = es.ElFormItem;
|
|
128
|
+
const _component_Switchs = index$2.Switchs;
|
|
122
129
|
const _component_el_form = es.ElForm;
|
|
123
|
-
const _component_Button = index$
|
|
124
|
-
const _component_Window = index$
|
|
130
|
+
const _component_Button = index$3.Button;
|
|
131
|
+
const _component_Window = index$4.Window;
|
|
125
132
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
126
133
|
class: vue.normalizeClass(vue.unref(cs)())
|
|
127
134
|
}, [
|
|
128
135
|
vue.createVNode(_component_Window, {
|
|
129
|
-
title: "
|
|
136
|
+
title: "生成模板的配置",
|
|
130
137
|
modelValue: vue.unref(value),
|
|
131
|
-
"onUpdate:modelValue": _cache[
|
|
138
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => vue.isRef(value) ? value.value = $event : null)
|
|
132
139
|
}, {
|
|
133
140
|
default: vue.withCtx(() => [
|
|
134
141
|
vue.createElementVNode("div", {
|
|
@@ -156,10 +163,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
156
163
|
]),
|
|
157
164
|
_: 1
|
|
158
165
|
}),
|
|
159
|
-
vue.createVNode(_component_el_form_item, {
|
|
160
|
-
required: "",
|
|
161
|
-
label: "组件展示名称"
|
|
162
|
-
}, {
|
|
166
|
+
vue.createVNode(_component_el_form_item, { label: "组件展示名称" }, {
|
|
163
167
|
default: vue.withCtx(() => [
|
|
164
168
|
vue.createVNode(_component_Inputs, {
|
|
165
169
|
class: "input-li",
|
|
@@ -168,6 +172,16 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
168
172
|
}, null, 8, ["modelValue"])
|
|
169
173
|
]),
|
|
170
174
|
_: 1
|
|
175
|
+
}),
|
|
176
|
+
vue.createVNode(_component_el_form_item, { label: "否内组件" }, {
|
|
177
|
+
default: vue.withCtx(() => [
|
|
178
|
+
vue.createVNode(_component_Switchs, {
|
|
179
|
+
default: false,
|
|
180
|
+
modelValue: vue.unref(status).inline,
|
|
181
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => vue.unref(status).inline = $event)
|
|
182
|
+
}, null, 8, ["modelValue"])
|
|
183
|
+
]),
|
|
184
|
+
_: 1
|
|
171
185
|
})
|
|
172
186
|
]),
|
|
173
187
|
_: 1
|
|
@@ -177,9 +191,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
177
191
|
class: vue.normalizeClass(vue.unref(cs)("box-footer"))
|
|
178
192
|
}, [
|
|
179
193
|
vue.createVNode(_component_Button, {
|
|
180
|
-
onClick: _cache[
|
|
194
|
+
onClick: _cache[3] || (_cache[3] = ($event) => value.value = false)
|
|
181
195
|
}, {
|
|
182
|
-
default: vue.withCtx(() => [..._cache[
|
|
196
|
+
default: vue.withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
183
197
|
vue.createTextVNode("取消", -1)
|
|
184
198
|
])]),
|
|
185
199
|
_: 1
|
|
@@ -188,7 +202,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
188
202
|
type: "primary",
|
|
189
203
|
onClick: onSubmit
|
|
190
204
|
}, {
|
|
191
|
-
default: vue.withCtx(() => [..._cache[
|
|
205
|
+
default: vue.withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
192
206
|
vue.createTextVNode("确定", -1)
|
|
193
207
|
])]),
|
|
194
208
|
_: 1
|
|
@@ -5,6 +5,8 @@ import "@fangzhongya/fang-ui/components/button/style/index2.scss";
|
|
|
5
5
|
import { ElMessage, ElMessageBox, ElFormItem, ElForm } from "element-plus/es";
|
|
6
6
|
import "element-plus/es/components/base/style/css";
|
|
7
7
|
import "element-plus/es/components/form/style/css";
|
|
8
|
+
import { Switchs } from "@fangzhongya/fang-ui/components/switchs/index";
|
|
9
|
+
import "@fangzhongya/fang-ui/components/switchs/style/index2.scss";
|
|
8
10
|
import "element-plus/es/components/form-item/style/css";
|
|
9
11
|
import { Inputs } from "@fangzhongya/fang-ui/components/inputs/index";
|
|
10
12
|
import "@fangzhongya/fang-ui/components/inputs/style/index2.scss";
|
|
@@ -94,6 +96,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
94
96
|
};
|
|
95
97
|
const onSubmit = () => {
|
|
96
98
|
const name = status.value.name;
|
|
99
|
+
if (!name) {
|
|
100
|
+
ElMessage.error("请填写组件名称");
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
97
103
|
if (arr.includes(name)) {
|
|
98
104
|
ElMessage.error("当前组件名称不能使用");
|
|
99
105
|
return false;
|
|
@@ -117,6 +123,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
117
123
|
return (_ctx, _cache) => {
|
|
118
124
|
const _component_Inputs = Inputs;
|
|
119
125
|
const _component_el_form_item = ElFormItem;
|
|
126
|
+
const _component_Switchs = Switchs;
|
|
120
127
|
const _component_el_form = ElForm;
|
|
121
128
|
const _component_Button = Button;
|
|
122
129
|
const _component_Window = Window;
|
|
@@ -124,9 +131,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
124
131
|
class: normalizeClass(unref(cs)())
|
|
125
132
|
}, [
|
|
126
133
|
createVNode(_component_Window, {
|
|
127
|
-
title: "
|
|
134
|
+
title: "生成模板的配置",
|
|
128
135
|
modelValue: unref(value),
|
|
129
|
-
"onUpdate:modelValue": _cache[
|
|
136
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(value) ? value.value = $event : null)
|
|
130
137
|
}, {
|
|
131
138
|
default: withCtx(() => [
|
|
132
139
|
createElementVNode("div", {
|
|
@@ -154,10 +161,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
154
161
|
]),
|
|
155
162
|
_: 1
|
|
156
163
|
}),
|
|
157
|
-
createVNode(_component_el_form_item, {
|
|
158
|
-
required: "",
|
|
159
|
-
label: "组件展示名称"
|
|
160
|
-
}, {
|
|
164
|
+
createVNode(_component_el_form_item, { label: "组件展示名称" }, {
|
|
161
165
|
default: withCtx(() => [
|
|
162
166
|
createVNode(_component_Inputs, {
|
|
163
167
|
class: "input-li",
|
|
@@ -166,6 +170,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
166
170
|
}, null, 8, ["modelValue"])
|
|
167
171
|
]),
|
|
168
172
|
_: 1
|
|
173
|
+
}),
|
|
174
|
+
createVNode(_component_el_form_item, { label: "否内组件" }, {
|
|
175
|
+
default: withCtx(() => [
|
|
176
|
+
createVNode(_component_Switchs, {
|
|
177
|
+
default: false,
|
|
178
|
+
modelValue: unref(status).inline,
|
|
179
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => unref(status).inline = $event)
|
|
180
|
+
}, null, 8, ["modelValue"])
|
|
181
|
+
]),
|
|
182
|
+
_: 1
|
|
169
183
|
})
|
|
170
184
|
]),
|
|
171
185
|
_: 1
|
|
@@ -175,9 +189,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
175
189
|
class: normalizeClass(unref(cs)("box-footer"))
|
|
176
190
|
}, [
|
|
177
191
|
createVNode(_component_Button, {
|
|
178
|
-
onClick: _cache[
|
|
192
|
+
onClick: _cache[3] || (_cache[3] = ($event) => value.value = false)
|
|
179
193
|
}, {
|
|
180
|
-
default: withCtx(() => [..._cache[
|
|
194
|
+
default: withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
181
195
|
createTextVNode("取消", -1)
|
|
182
196
|
])]),
|
|
183
197
|
_: 1
|
|
@@ -186,7 +200,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
186
200
|
type: "primary",
|
|
187
201
|
onClick: onSubmit
|
|
188
202
|
}, {
|
|
189
|
-
default: withCtx(() => [..._cache[
|
|
203
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
190
204
|
createTextVNode("确定", -1)
|
|
191
205
|
])]),
|
|
192
206
|
_: 1
|