@fangzhongya/page 0.0.27 → 0.0.28
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 +243 -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-MYRRDRIS.cjs → chunk-IRHQSEMT.cjs} +1 -1
- package/dist/expand/{chunk-KQKVKAJF.js → chunk-ZPHCUID5.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/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
|
@@ -33,7 +33,7 @@ const generals = [
|
|
|
33
33
|
"PageVifEif",
|
|
34
34
|
"PageHtml"
|
|
35
35
|
];
|
|
36
|
-
function
|
|
36
|
+
function getSlotsDom(obj, params = {}, temps) {
|
|
37
37
|
return (config2) => {
|
|
38
38
|
if (obj.name == "PagePosition") {
|
|
39
39
|
config2.position = void 0;
|
|
@@ -142,7 +142,7 @@ function setDesign(obj, params = {}, temps) {
|
|
|
142
142
|
obj,
|
|
143
143
|
params,
|
|
144
144
|
temps,
|
|
145
|
-
|
|
145
|
+
getSlotsDom(obj, params, temps),
|
|
146
146
|
setCompon()
|
|
147
147
|
);
|
|
148
148
|
} else {
|
|
@@ -177,7 +177,7 @@ function getGeneralDiv(obj, params, temps) {
|
|
|
177
177
|
assembly: obj
|
|
178
178
|
};
|
|
179
179
|
common.getData(obj, params, temps, config2);
|
|
180
|
-
const sls =
|
|
180
|
+
const sls = getSlotsDom(obj, params, temps);
|
|
181
181
|
const set = setCompon();
|
|
182
182
|
const slots = sls(config2);
|
|
183
183
|
return set(obj, config2, slots);
|
|
@@ -31,7 +31,7 @@ const generals = [
|
|
|
31
31
|
"PageVifEif",
|
|
32
32
|
"PageHtml"
|
|
33
33
|
];
|
|
34
|
-
function
|
|
34
|
+
function getSlotsDom(obj, params = {}, temps) {
|
|
35
35
|
return (config) => {
|
|
36
36
|
if (obj.name == "PagePosition") {
|
|
37
37
|
config.position = void 0;
|
|
@@ -140,7 +140,7 @@ function setDesign(obj, params = {}, temps) {
|
|
|
140
140
|
obj,
|
|
141
141
|
params,
|
|
142
142
|
temps,
|
|
143
|
-
|
|
143
|
+
getSlotsDom(obj, params, temps),
|
|
144
144
|
setCompon()
|
|
145
145
|
);
|
|
146
146
|
} else {
|
|
@@ -175,7 +175,7 @@ function getGeneralDiv(obj, params, temps) {
|
|
|
175
175
|
assembly: obj
|
|
176
176
|
};
|
|
177
177
|
getData(obj, params, temps, config);
|
|
178
|
-
const sls =
|
|
178
|
+
const sls = getSlotsDom(obj, params, temps);
|
|
179
179
|
const set = setCompon();
|
|
180
180
|
const slots = sls(config);
|
|
181
181
|
return set(obj, config, slots);
|
|
@@ -5,6 +5,7 @@ const Draggable = require("vuedraggable");
|
|
|
5
5
|
require("./design-operate.cjs");
|
|
6
6
|
const index = require("../../utils/index.cjs");
|
|
7
7
|
const util = require("../../config/util.cjs");
|
|
8
|
+
const render = require("../../utils/render.cjs");
|
|
8
9
|
const humpToLine = require("@fangzhongya/utils/name/humpToLine");
|
|
9
10
|
const designOperate_vue_vue_type_script_setup_true_lang = require("./design-operate2.cjs");
|
|
10
11
|
const _hoisted_1 = ["onClick"];
|
|
@@ -31,6 +32,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
31
32
|
const cs = index.getClass("design-drag");
|
|
32
33
|
const props = __props;
|
|
33
34
|
const emit = __emit;
|
|
35
|
+
const layout = vue.inject("layout");
|
|
36
|
+
const binds = vue.computed(() => {
|
|
37
|
+
const obj = {};
|
|
38
|
+
obj[render.getClassId(layout.value.name)] = "";
|
|
39
|
+
return obj;
|
|
40
|
+
});
|
|
34
41
|
const group = vue.computed(() => {
|
|
35
42
|
if (props.assembly.name === "PageVif") {
|
|
36
43
|
return {
|
|
@@ -70,22 +77,23 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
70
77
|
chosenClass: "design-sortable-chosen",
|
|
71
78
|
dragClass: "design-sortable-drag",
|
|
72
79
|
group: vue.unref(group),
|
|
73
|
-
filter: ".undraggable",
|
|
80
|
+
filter: ".page-undraggable",
|
|
74
81
|
modelValue: vue.unref(value),
|
|
75
82
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(value) ? value.value = $event : null)
|
|
76
83
|
}, vue.createSlots({
|
|
77
84
|
item: vue.withCtx(({ element, index: index2 }) => [
|
|
78
|
-
!element.design?.hide ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
85
|
+
!element.design?.hide ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
79
86
|
key: 0,
|
|
80
|
-
class:
|
|
87
|
+
class: [
|
|
81
88
|
vue.unref(cs)("draggable-item"),
|
|
82
89
|
"page-" + vue.unref(humpToLine.humpToLine)(element.name),
|
|
83
90
|
vue.unref(util.getComponObj)(element).status?.inline ? "is-inline" : "",
|
|
84
91
|
element === vue.unref(right) ? "on" : "",
|
|
85
|
-
element.design?.islock ? "undraggable" : ""
|
|
86
|
-
]
|
|
92
|
+
element.design?.islock ? "page-undraggable" : ""
|
|
93
|
+
]
|
|
94
|
+
}, vue.unref(binds), {
|
|
87
95
|
onClick: vue.withModifiers(($event) => onClick(element), ["stop"])
|
|
88
|
-
}, [
|
|
96
|
+
}), [
|
|
89
97
|
vue.createVNode(designOperate_vue_vue_type_script_setup_true_lang.default, {
|
|
90
98
|
"model-value": vue.unref(value),
|
|
91
99
|
assembly: element,
|
|
@@ -99,7 +107,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
99
107
|
]),
|
|
100
108
|
_: 2
|
|
101
109
|
}, 1032, ["model-value", "assembly", "index"])
|
|
102
|
-
],
|
|
110
|
+
], 16, _hoisted_1)) : vue.createCommentVNode("", true)
|
|
103
111
|
]),
|
|
104
112
|
_: 2
|
|
105
113
|
}, [
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, inject, computed, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, toDisplayString, createVNode, isRef, createSlots, withCtx, mergeProps, withModifiers, renderSlot, createCommentVNode } from "vue";
|
|
2
2
|
import Draggable from "vuedraggable";
|
|
3
3
|
import "./design-operate.js";
|
|
4
4
|
import { getClass } from "../../utils/index.js";
|
|
5
5
|
import { getComponObj } from "../../config/util.js";
|
|
6
|
+
import { getClassId } from "../../utils/render.js";
|
|
6
7
|
import { humpToLine } from "@fangzhongya/utils/name/humpToLine";
|
|
7
8
|
import _sfc_main$1 from "./design-operate2.js";
|
|
8
9
|
const _hoisted_1 = ["onClick"];
|
|
@@ -29,6 +30,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
30
|
const cs = getClass("design-drag");
|
|
30
31
|
const props = __props;
|
|
31
32
|
const emit = __emit;
|
|
33
|
+
const layout = inject("layout");
|
|
34
|
+
const binds = computed(() => {
|
|
35
|
+
const obj = {};
|
|
36
|
+
obj[getClassId(layout.value.name)] = "";
|
|
37
|
+
return obj;
|
|
38
|
+
});
|
|
32
39
|
const group = computed(() => {
|
|
33
40
|
if (props.assembly.name === "PageVif") {
|
|
34
41
|
return {
|
|
@@ -68,22 +75,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
75
|
chosenClass: "design-sortable-chosen",
|
|
69
76
|
dragClass: "design-sortable-drag",
|
|
70
77
|
group: unref(group),
|
|
71
|
-
filter: ".undraggable",
|
|
78
|
+
filter: ".page-undraggable",
|
|
72
79
|
modelValue: unref(value),
|
|
73
80
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(value) ? value.value = $event : null)
|
|
74
81
|
}, createSlots({
|
|
75
82
|
item: withCtx(({ element, index }) => [
|
|
76
|
-
!element.design?.hide ? (openBlock(), createElementBlock("div", {
|
|
83
|
+
!element.design?.hide ? (openBlock(), createElementBlock("div", mergeProps({
|
|
77
84
|
key: 0,
|
|
78
|
-
class:
|
|
85
|
+
class: [
|
|
79
86
|
unref(cs)("draggable-item"),
|
|
80
87
|
"page-" + unref(humpToLine)(element.name),
|
|
81
88
|
unref(getComponObj)(element).status?.inline ? "is-inline" : "",
|
|
82
89
|
element === unref(right) ? "on" : "",
|
|
83
|
-
element.design?.islock ? "undraggable" : ""
|
|
84
|
-
]
|
|
90
|
+
element.design?.islock ? "page-undraggable" : ""
|
|
91
|
+
]
|
|
92
|
+
}, unref(binds), {
|
|
85
93
|
onClick: withModifiers(($event) => onClick(element), ["stop"])
|
|
86
|
-
}, [
|
|
94
|
+
}), [
|
|
87
95
|
createVNode(_sfc_main$1, {
|
|
88
96
|
"model-value": unref(value),
|
|
89
97
|
assembly: element,
|
|
@@ -97,7 +105,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
97
105
|
]),
|
|
98
106
|
_: 2
|
|
99
107
|
}, 1032, ["model-value", "assembly", "index"])
|
|
100
|
-
],
|
|
108
|
+
], 16, _hoisted_1)) : createCommentVNode("", true)
|
|
101
109
|
]),
|
|
102
110
|
_: 2
|
|
103
111
|
}, [
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const designElInput_vue_vue_type_script_setup_true_lang = require("./design-el-input2.cjs");
|
|
4
|
+
exports.default = designElInput_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
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/input/style/css");
|
|
6
|
+
const vue = require("vue");
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
8
|
+
...{
|
|
9
|
+
inheritAttrs: false
|
|
10
|
+
},
|
|
11
|
+
__name: "design-el-input",
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const attrs = vue.useAttrs();
|
|
14
|
+
const slots = vue.useSlots();
|
|
15
|
+
return (_ctx, _cache) => {
|
|
16
|
+
const _component_ElInput = es.ElInput;
|
|
17
|
+
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps(vue.unref(attrs), { style: { "width": "100%" } }), [
|
|
18
|
+
vue.createVNode(_component_ElInput, vue.normalizeProps(vue.guardReactiveProps({ ...vue.unref(attrs), class: "" })), vue.createSlots({ _: 2 }, [
|
|
19
|
+
vue.renderList(Object.keys(vue.unref(slots)), (k) => {
|
|
20
|
+
return {
|
|
21
|
+
name: k,
|
|
22
|
+
fn: vue.withCtx((scope) => [
|
|
23
|
+
vue.renderSlot(_ctx.$slots, k, vue.normalizeProps(vue.guardReactiveProps(scope || {})))
|
|
24
|
+
])
|
|
25
|
+
};
|
|
26
|
+
})
|
|
27
|
+
]), 1040)
|
|
28
|
+
], 16);
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ElInput } from "element-plus/es";
|
|
2
|
+
import "element-plus/es/components/base/style/css";
|
|
3
|
+
import "element-plus/es/components/input/style/css";
|
|
4
|
+
import { defineComponent, useAttrs, useSlots, openBlock, createElementBlock, mergeProps, unref, createVNode, normalizeProps, guardReactiveProps, createSlots, renderList, withCtx, renderSlot } from "vue";
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
...{
|
|
7
|
+
inheritAttrs: false
|
|
8
|
+
},
|
|
9
|
+
__name: "design-el-input",
|
|
10
|
+
setup(__props) {
|
|
11
|
+
const attrs = useAttrs();
|
|
12
|
+
const slots = useSlots();
|
|
13
|
+
return (_ctx, _cache) => {
|
|
14
|
+
const _component_ElInput = ElInput;
|
|
15
|
+
return openBlock(), createElementBlock("div", mergeProps(unref(attrs), { style: { "width": "100%" } }), [
|
|
16
|
+
createVNode(_component_ElInput, normalizeProps(guardReactiveProps({ ...unref(attrs), class: "" })), createSlots({ _: 2 }, [
|
|
17
|
+
renderList(Object.keys(unref(slots)), (k) => {
|
|
18
|
+
return {
|
|
19
|
+
name: k,
|
|
20
|
+
fn: withCtx((scope) => [
|
|
21
|
+
renderSlot(_ctx.$slots, k, normalizeProps(guardReactiveProps(scope || {})))
|
|
22
|
+
])
|
|
23
|
+
};
|
|
24
|
+
})
|
|
25
|
+
]), 1040)
|
|
26
|
+
], 16);
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
_sfc_main as default
|
|
32
|
+
};
|
|
@@ -86,33 +86,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
86
86
|
const key = props.margin.join("") + props.rowHeight;
|
|
87
87
|
return key;
|
|
88
88
|
});
|
|
89
|
-
const getMaxH = () => {
|
|
90
|
-
let h = 0;
|
|
91
|
-
value.value.forEach((v) => {
|
|
92
|
-
const z = v.y + v.h;
|
|
93
|
-
if (z > h) {
|
|
94
|
-
h = z;
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
return h;
|
|
98
|
-
};
|
|
99
|
-
const onOperate = (type, index2, assembly) => {
|
|
100
|
-
if (type == 3) {
|
|
101
|
-
value.value.splice(index2, 1);
|
|
102
|
-
} else if (type == 2) {
|
|
103
|
-
const ps = assembly.attrs;
|
|
104
|
-
ps.y = getMaxH() + 1;
|
|
105
|
-
ps.i = ps.i + 1;
|
|
106
|
-
value.value.push(ps);
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
89
|
__expose({});
|
|
110
90
|
return (_ctx, _cache) => {
|
|
111
91
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
112
92
|
class: vue.normalizeClass([vue.unref(co)(), vue.unref(cs)()])
|
|
113
93
|
}, [
|
|
114
94
|
(vue.openBlock(), vue.createBlock(vue.unref(vue3DrrGridLayout.GridLayout), {
|
|
115
|
-
class: vue.normalizeClass(["undraggable", vue.unref(cs)("layout")]),
|
|
95
|
+
class: vue.normalizeClass(["page-undraggable", vue.unref(cs)("layout")]),
|
|
116
96
|
useCssTransforms: false,
|
|
117
97
|
key: setKey.value,
|
|
118
98
|
layout: value.value,
|
|
@@ -150,8 +130,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
150
130
|
modelValue: items.value,
|
|
151
131
|
assembly: items.value[key],
|
|
152
132
|
index: key,
|
|
153
|
-
height: "100%"
|
|
154
|
-
onOperate
|
|
133
|
+
height: "100%"
|
|
155
134
|
}, {
|
|
156
135
|
default: vue.withCtx(() => [
|
|
157
136
|
vue.renderSlot(_ctx.$slots, "default", {
|
|
@@ -84,33 +84,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
84
84
|
const key = props.margin.join("") + props.rowHeight;
|
|
85
85
|
return key;
|
|
86
86
|
});
|
|
87
|
-
const getMaxH = () => {
|
|
88
|
-
let h = 0;
|
|
89
|
-
value.value.forEach((v) => {
|
|
90
|
-
const z = v.y + v.h;
|
|
91
|
-
if (z > h) {
|
|
92
|
-
h = z;
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
return h;
|
|
96
|
-
};
|
|
97
|
-
const onOperate = (type, index, assembly) => {
|
|
98
|
-
if (type == 3) {
|
|
99
|
-
value.value.splice(index, 1);
|
|
100
|
-
} else if (type == 2) {
|
|
101
|
-
const ps = assembly.attrs;
|
|
102
|
-
ps.y = getMaxH() + 1;
|
|
103
|
-
ps.i = ps.i + 1;
|
|
104
|
-
value.value.push(ps);
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
87
|
__expose({});
|
|
108
88
|
return (_ctx, _cache) => {
|
|
109
89
|
return openBlock(), createElementBlock("div", {
|
|
110
90
|
class: normalizeClass([unref(co)(), unref(cs)()])
|
|
111
91
|
}, [
|
|
112
92
|
(openBlock(), createBlock(unref(ml), {
|
|
113
|
-
class: normalizeClass(["undraggable", unref(cs)("layout")]),
|
|
93
|
+
class: normalizeClass(["page-undraggable", unref(cs)("layout")]),
|
|
114
94
|
useCssTransforms: false,
|
|
115
95
|
key: setKey.value,
|
|
116
96
|
layout: value.value,
|
|
@@ -148,8 +128,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
148
128
|
modelValue: items.value,
|
|
149
129
|
assembly: items.value[key],
|
|
150
130
|
index: key,
|
|
151
|
-
height: "100%"
|
|
152
|
-
onOperate
|
|
131
|
+
height: "100%"
|
|
153
132
|
}, {
|
|
154
133
|
default: withCtx(() => [
|
|
155
134
|
renderSlot(_ctx.$slots, "default", {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const designIcon_vue_vue_type_script_setup_true_lang = require("./design-icon2.cjs");
|
|
4
|
+
exports.default = designIcon_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const index = require("../../utils/index.cjs");
|
|
5
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
6
|
+
__name: "design-icon",
|
|
7
|
+
setup(__props) {
|
|
8
|
+
const co = index.getClass("design-icon");
|
|
9
|
+
return (_ctx, _cache) => {
|
|
10
|
+
return vue.openBlock(), vue.createElementBlock("span", {
|
|
11
|
+
class: vue.normalizeClass(vue.unref(co)())
|
|
12
|
+
}, [
|
|
13
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
14
|
+
], 2);
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
exports.default = _sfc_main;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, normalizeClass, unref, renderSlot } from "vue";
|
|
2
|
+
import { getClass } from "../../utils/index.js";
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "design-icon",
|
|
5
|
+
setup(__props) {
|
|
6
|
+
const co = getClass("design-icon");
|
|
7
|
+
return (_ctx, _cache) => {
|
|
8
|
+
return openBlock(), createElementBlock("span", {
|
|
9
|
+
class: normalizeClass(unref(co)())
|
|
10
|
+
}, [
|
|
11
|
+
renderSlot(_ctx.$slots, "default")
|
|
12
|
+
], 2);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
_sfc_main as default
|
|
18
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
const vue = require("vue");
|
|
4
|
-
const util = require("../../config/util.cjs");
|
|
4
|
+
const util$1 = require("../../config/util.cjs");
|
|
5
5
|
require("../operate/right.cjs");
|
|
6
|
+
const util = require("../operate/util.cjs");
|
|
6
7
|
const index = require("../../utils/index.cjs");
|
|
7
8
|
const getCss = require("@fangzhongya/utils/css/getCss");
|
|
8
9
|
const right_vue_vue_type_script_setup_true_lang = require("../operate/right2.cjs");
|
|
@@ -33,33 +34,23 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
33
34
|
const cs = index.getClass("design-operate");
|
|
34
35
|
const props = __props;
|
|
35
36
|
const emit = __emit;
|
|
36
|
-
const right = vue.inject("right");
|
|
37
37
|
const refDom = vue.ref();
|
|
38
38
|
const height = vue.ref("100%");
|
|
39
|
+
const right = vue.inject("right");
|
|
40
|
+
const rkey = vue.inject("rkey");
|
|
41
|
+
const replication = vue.inject("replication");
|
|
39
42
|
const onClickBut = (type) => {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
props.
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
} else if (type == 2) {
|
|
50
|
-
const obj = util.getDesigns(props.assembly);
|
|
51
|
-
props.modelValue.push(obj);
|
|
52
|
-
ro = obj;
|
|
53
|
-
} else if (type == 3) {
|
|
54
|
-
if (props.assembly === right.value) {
|
|
55
|
-
right.value = void 0;
|
|
43
|
+
util.operateClickKey(
|
|
44
|
+
type + "",
|
|
45
|
+
props.assembly,
|
|
46
|
+
props.modelValue,
|
|
47
|
+
props.index,
|
|
48
|
+
{
|
|
49
|
+
rkey,
|
|
50
|
+
replication,
|
|
51
|
+
right
|
|
56
52
|
}
|
|
57
|
-
|
|
58
|
-
} else if (type == 4) {
|
|
59
|
-
props.assembly.design = props.assembly.design || {};
|
|
60
|
-
props.assembly.design.position = !props.assembly.design?.position;
|
|
61
|
-
}
|
|
62
|
-
emit("operate", type, props.index, ro);
|
|
53
|
+
);
|
|
63
54
|
};
|
|
64
55
|
const onClickFull = () => {
|
|
65
56
|
right.value = props.assembly;
|
|
@@ -106,7 +97,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
106
97
|
vue.createElementVNode("div", {
|
|
107
98
|
class: vue.normalizeClass(vue.unref(cs)("operate-hide"))
|
|
108
99
|
}, [
|
|
109
|
-
vue.unref(util.getComponObj)(props.assembly).status?.add ? (vue.openBlock(), vue.createBlock(_component_FangIcon, {
|
|
100
|
+
vue.unref(util$1.getComponObj)(props.assembly).status?.add ? (vue.openBlock(), vue.createBlock(_component_FangIcon, {
|
|
110
101
|
key: 0,
|
|
111
102
|
onClick: _cache[0] || (_cache[0] = vue.withModifiers(($event) => onClickBut(1), ["stop"])),
|
|
112
103
|
color: "var(--el-color-primary)",
|
|
@@ -114,12 +105,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
114
105
|
})) : vue.createCommentVNode("", true),
|
|
115
106
|
vue.createVNode(_component_FangIcon, {
|
|
116
107
|
color: "var(--el-color-primary)",
|
|
117
|
-
onClick: _cache[1] || (_cache[1] = vue.withModifiers(($event) => onClickBut(
|
|
108
|
+
onClick: _cache[1] || (_cache[1] = vue.withModifiers(($event) => onClickBut(7), ["stop"])),
|
|
118
109
|
name: "star"
|
|
119
110
|
}),
|
|
120
111
|
vue.createVNode(_component_FangIcon, {
|
|
121
112
|
color: "red",
|
|
122
|
-
onClick: _cache[2] || (_cache[2] = vue.withModifiers(($event) => onClickBut(
|
|
113
|
+
onClick: _cache[2] || (_cache[2] = vue.withModifiers(($event) => onClickBut(4), ["stop"])),
|
|
123
114
|
name: "delete"
|
|
124
115
|
})
|
|
125
116
|
], 2),
|
|
@@ -128,7 +119,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
128
119
|
}, [
|
|
129
120
|
__props.assembly.design?.islock ? (vue.openBlock(), vue.createBlock(_component_FangIcon, {
|
|
130
121
|
key: 0,
|
|
131
|
-
onClick: _cache[3] || (_cache[3] = vue.withModifiers(($event) => onClickBut(
|
|
122
|
+
onClick: _cache[3] || (_cache[3] = vue.withModifiers(($event) => onClickBut(18), ["stop"])),
|
|
132
123
|
name: "lock"
|
|
133
124
|
})) : vue.createCommentVNode("", true)
|
|
134
125
|
], 2)
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { defineComponent,
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent, ref, inject, resolveComponent, openBlock, createBlock, mergeProps, unref, withCtx, createElementVNode, normalizeClass, toDisplayString, withModifiers, createCommentVNode, createVNode, renderSlot } from "vue";
|
|
2
|
+
import { getComponObj } from "../../config/util.js";
|
|
3
3
|
import "../operate/right.js";
|
|
4
|
+
import { operateClickKey } from "../operate/util.js";
|
|
4
5
|
import { getClass } from "../../utils/index.js";
|
|
5
6
|
import { getCss } from "@fangzhongya/utils/css/getCss";
|
|
6
7
|
import _sfc_main$1 from "../operate/right2.js";
|
|
@@ -31,33 +32,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
31
32
|
const cs = getClass("design-operate");
|
|
32
33
|
const props = __props;
|
|
33
34
|
const emit = __emit;
|
|
34
|
-
const right = inject("right");
|
|
35
35
|
const refDom = ref();
|
|
36
36
|
const height = ref("100%");
|
|
37
|
+
const right = inject("right");
|
|
38
|
+
const rkey = inject("rkey");
|
|
39
|
+
const replication = inject("replication");
|
|
37
40
|
const onClickBut = (type) => {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
props.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} else if (type == 2) {
|
|
48
|
-
const obj = getDesigns(props.assembly);
|
|
49
|
-
props.modelValue.push(obj);
|
|
50
|
-
ro = obj;
|
|
51
|
-
} else if (type == 3) {
|
|
52
|
-
if (props.assembly === right.value) {
|
|
53
|
-
right.value = void 0;
|
|
41
|
+
operateClickKey(
|
|
42
|
+
type + "",
|
|
43
|
+
props.assembly,
|
|
44
|
+
props.modelValue,
|
|
45
|
+
props.index,
|
|
46
|
+
{
|
|
47
|
+
rkey,
|
|
48
|
+
replication,
|
|
49
|
+
right
|
|
54
50
|
}
|
|
55
|
-
|
|
56
|
-
} else if (type == 4) {
|
|
57
|
-
props.assembly.design = props.assembly.design || {};
|
|
58
|
-
props.assembly.design.position = !props.assembly.design?.position;
|
|
59
|
-
}
|
|
60
|
-
emit("operate", type, props.index, ro);
|
|
51
|
+
);
|
|
61
52
|
};
|
|
62
53
|
const onClickFull = () => {
|
|
63
54
|
right.value = props.assembly;
|
|
@@ -112,12 +103,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
112
103
|
})) : createCommentVNode("", true),
|
|
113
104
|
createVNode(_component_FangIcon, {
|
|
114
105
|
color: "var(--el-color-primary)",
|
|
115
|
-
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => onClickBut(
|
|
106
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => onClickBut(7), ["stop"])),
|
|
116
107
|
name: "star"
|
|
117
108
|
}),
|
|
118
109
|
createVNode(_component_FangIcon, {
|
|
119
110
|
color: "red",
|
|
120
|
-
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => onClickBut(
|
|
111
|
+
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => onClickBut(4), ["stop"])),
|
|
121
112
|
name: "delete"
|
|
122
113
|
})
|
|
123
114
|
], 2),
|
|
@@ -126,7 +117,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
126
117
|
}, [
|
|
127
118
|
__props.assembly.design?.islock ? (openBlock(), createBlock(_component_FangIcon, {
|
|
128
119
|
key: 0,
|
|
129
|
-
onClick: _cache[3] || (_cache[3] = withModifiers(($event) => onClickBut(
|
|
120
|
+
onClick: _cache[3] || (_cache[3] = withModifiers(($event) => onClickBut(18), ["stop"])),
|
|
130
121
|
name: "lock"
|
|
131
122
|
})) : createCommentVNode("", true)
|
|
132
123
|
], 2)
|
|
@@ -102,7 +102,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
102
102
|
"item-key": "id",
|
|
103
103
|
tag: "div",
|
|
104
104
|
group: { name: "compon" },
|
|
105
|
-
filter: ".undraggable",
|
|
105
|
+
filter: ".page-undraggable",
|
|
106
106
|
modelValue: vue.unref(value),
|
|
107
107
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => vue.isRef(value) ? value.value = $event : null),
|
|
108
108
|
onChange,
|
|
@@ -116,7 +116,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
116
116
|
class: vue.normalizeClass([vue.unref(cs)("draggable-draggable")]),
|
|
117
117
|
"item-key": "id",
|
|
118
118
|
tag: "div",
|
|
119
|
-
filter: ".undraggable",
|
|
119
|
+
filter: ".page-undraggable",
|
|
120
120
|
group: { name: "resizable" },
|
|
121
121
|
modelValue: vue.unref(zls),
|
|
122
122
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => vue.isRef(zls) ? zls.value = $event : null)
|
|
@@ -128,7 +128,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
128
128
|
vue.createElementVNode("div", {
|
|
129
129
|
ref_key: "refResizable",
|
|
130
130
|
ref: refResizable,
|
|
131
|
-
class: vue.normalizeClass([[vue.unref(cs)("resizable")], "undraggable"])
|
|
131
|
+
class: vue.normalizeClass([[vue.unref(cs)("resizable")], "page-undraggable"])
|
|
132
132
|
}, [
|
|
133
133
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(value), (element, index2) => {
|
|
134
134
|
return vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
|
|
@@ -100,7 +100,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
100
100
|
"item-key": "id",
|
|
101
101
|
tag: "div",
|
|
102
102
|
group: { name: "compon" },
|
|
103
|
-
filter: ".undraggable",
|
|
103
|
+
filter: ".page-undraggable",
|
|
104
104
|
modelValue: unref(value),
|
|
105
105
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(value) ? value.value = $event : null),
|
|
106
106
|
onChange,
|
|
@@ -114,7 +114,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
114
114
|
class: normalizeClass([unref(cs)("draggable-draggable")]),
|
|
115
115
|
"item-key": "id",
|
|
116
116
|
tag: "div",
|
|
117
|
-
filter: ".undraggable",
|
|
117
|
+
filter: ".page-undraggable",
|
|
118
118
|
group: { name: "resizable" },
|
|
119
119
|
modelValue: unref(zls),
|
|
120
120
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(zls) ? zls.value = $event : null)
|
|
@@ -126,7 +126,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
126
126
|
createElementVNode("div", {
|
|
127
127
|
ref_key: "refResizable",
|
|
128
128
|
ref: refResizable,
|
|
129
|
-
class: normalizeClass([[unref(cs)("resizable")], "undraggable"])
|
|
129
|
+
class: normalizeClass([[unref(cs)("resizable")], "page-undraggable"])
|
|
130
130
|
}, [
|
|
131
131
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(value), (element, index) => {
|
|
132
132
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
@@ -3,5 +3,5 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const resizable_vue_vue_type_script_setup_true_lang = require("./resizable2.cjs");
|
|
4
4
|
;/* empty css */
|
|
5
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-
|
|
6
|
+
const VueDraggableResizable = /* @__PURE__ */ _pluginVue_exportHelper.default(resizable_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-2f18084c"]]);
|
|
7
7
|
exports.default = VueDraggableResizable;
|