epic-designer-gold 0.0.41 → 0.0.42
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/attributeView-B6yshoNY.cjs +1 -0
- package/dist/{attributeView-DPFdUi2O.js → attributeView-CAOGzcXM.js} +2 -2
- package/dist/form-6cUK-Ari.js +72 -0
- package/dist/form-CthzLIgs.cjs +1 -0
- package/dist/{index-C4sdhgF2.js → index-0GtpyUBx.js} +1 -1
- package/dist/{index-CCTMCqiz.js → index-0zDuNn0Q.js} +140 -137
- package/dist/{index-DeY6yw0s.cjs → index-1BndYxTQ.cjs} +1 -1
- package/dist/{index-98NOkcrB.cjs → index-B7QH_s16.cjs} +1 -1
- package/dist/{index-BnYEEWhA.js → index-BIPDvTGu.js} +263 -259
- package/dist/{index-C-XUgjda.js → index-BKDRMrcc.js} +1 -1
- package/dist/{index-Cd9n7QSg.js → index-BOfEIfM3.js} +3 -3
- package/dist/index-BSLudrcT.cjs +1 -0
- package/dist/{index-CbiXuuBq.js → index-BVceGSkj.js} +1 -1
- package/dist/index-BcocZhQo.js +4 -0
- package/dist/index-BenbgJD8.cjs +1 -0
- package/dist/index-Bf2Sxe2E.cjs +1 -0
- package/dist/index-BwdkCtpc.cjs +10 -0
- package/dist/{index-D9mE7-Ar.js → index-C4TbiUcL.js} +2 -2
- package/dist/index-CMCtBfv5.cjs +1 -0
- package/dist/index-CMwJOFFP.cjs +1 -0
- package/dist/index-CYfnscUn.cjs +1 -0
- package/dist/index-CcZa7MK_.cjs +1 -0
- package/dist/index-CucdgcqX.cjs +1 -0
- package/dist/{index-Bm_2TXSs.js → index-DDo1LIxZ.js} +64 -59
- package/dist/{index-ooVzYa5L.js → index-DNeYX6HK.js} +1 -1
- package/dist/{index-BdghL1e1.js → index-DR3BiPsn.js} +2 -2
- package/dist/index-DlubD1cY.cjs +1 -0
- package/dist/{index-fHt4-rMq.js → index-DmyFFubg.js} +2 -2
- package/dist/index-HNPgHrkl.cjs +1 -0
- package/dist/{index-B0pq3LvX.js → index-L6-BEKnU.js} +2 -2
- package/dist/{index-ASoFJnMl.js → index-XUQ1VGQg.js} +1 -1
- package/dist/index-sKJ91s0r.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/js.cookie-BH1G_HRi.cjs +6 -0
- package/dist/{axios-ITY6Uw7A.js → js.cookie-oHpRFPCO.js} +604 -532
- package/dist/outline-6Qt3qlWm.cjs +1 -0
- package/dist/{outline-yy4pIEi3.js → outline-CNayBNNC.js} +2 -2
- package/dist/sign-Bfrdd-6m.cjs +1 -0
- package/dist/{sign-DZvUIxel.js → sign-CJJd-ctq.js} +33 -32
- package/dist/style.css +1 -1
- package/dist/{styleView-BC3ElYAX.js → styleView-5U84Umnq.js} +2 -2
- package/dist/styleView-Ds-PuzkJ.cjs +1 -0
- package/dist/tree.vue_vue_type_script_setup_true_lang-BjjL_VlR.cjs +1 -0
- package/dist/{tree.vue_vue_type_script_setup_true_lang-uR4G8wa_.js → tree.vue_vue_type_script_setup_true_lang-BntCm43E.js} +1 -1
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +2 -2
- package/package.json +1 -1
- package/dist/attributeView-BqbSwDZ-.cjs +0 -1
- package/dist/axios-CYGTE3lR.cjs +0 -6
- package/dist/form-2lbtG-zj.js +0 -74
- package/dist/form-BM53wx9g.cjs +0 -1
- package/dist/index-1afOcXnV.cjs +0 -1
- package/dist/index-B03W7FZR.cjs +0 -1
- package/dist/index-BJlPL6eL.cjs +0 -1
- package/dist/index-BMLwTmDA.cjs +0 -1
- package/dist/index-Bjg8-hj_.cjs +0 -1
- package/dist/index-C6ceZM1C.cjs +0 -1
- package/dist/index-CDp439PR.cjs +0 -10
- package/dist/index-CRSk-fAu.cjs +0 -1
- package/dist/index-DUwQsRO_.cjs +0 -1
- package/dist/index-DpzLP1Zp.cjs +0 -1
- package/dist/index-DqXlNyYv.js +0 -4
- package/dist/index-FyzG-Fup.cjs +0 -1
- package/dist/index-RaG5yFdp.cjs +0 -1
- package/dist/outline-CJSEUbgc.cjs +0 -1
- package/dist/sign-BS8owiJT.cjs +0 -1
- package/dist/styleView-DT4vsrXY.cjs +0 -1
- package/dist/tree.vue_vue_type_script_setup_true_lang-RWTXU6lO.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-BwdkCtpc.cjs"),v=require("./js.cookie-BH1G_HRi.cjs"),k=["title"],g=e.defineComponent({__name:"attributeView",setup(b){const s=e.inject("designer"),d=e.inject("pageSchema"),p=e.inject("revoke"),f=v.pluginManager.getComponentConfings(),c=e.computed(()=>s.state.checkedNode);function h(n){var a;return typeof n.show=="boolean"?n.show:typeof n.show=="function"?(a=n.show)==null?void 0:a.call(n,{values:c.value}):!0}const u=e.ref([]);e.watchEffect(()=>{var o,t,r;const n=(o=s.state.checkedNode)==null?void 0:o.type;if(!s.state.checkedNode||!n)return[];const a=((t=f[n])==null?void 0:t.config.attribute)??[];u.value=[{label:"组件ID",type:"input",field:"id",componentProps:{disabled:!0}},...a],s.state.checkedNode.id===((r=d.schemas[0])==null?void 0:r.id)&&u.value.push({label:"画布宽度",type:"EInputSize",field:"canvas.width",editData:d},{label:"画布高度",type:"EInputSize",field:"canvas.height",editData:d})});function y(n,a,o,t=c.value){typeof o.onChange=="function"&&o.onChange({value:n,values:t,componentAttributes:u}),o.changeSync?l.setValueByPath(t,a,n):e.nextTick(()=>{l.setValueByPath(t,a,n)}),p.push(d.schemas,"编辑组件属性")}function m(n,a,o=c.value){e.nextTick(()=>{l.setValueByPath(o,"componentProps.dynamicId",n)})}return(n,a)=>{var o;return e.openBlock(),e.createElementBlock("div",{class:"epic-attribute-view",key:(o=c.value)==null?void 0:o.id},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,t=>{var r;return e.openBlock(),e.createElementBlock("div",{key:t.field},[h(t)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["epic-attr-item",t.layout])},[t.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:"epic-attr-label",title:t.label},e.toDisplayString(t.label),9,k)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["epic-attr-input",{"block!":t.layout==="vertical"}])},[e.createVNode(e.unref(l._sfc_main),{componentSchema:{...t,componentProps:{...t.componentProps,...t.field==="componentProps.defaultValue"?(r=c.value)==null?void 0:r.componentProps:{},input:!1,field:void 0,hidden:!1},show:!0,noFormItem:!0},dynamicId:e.unref(l.getValueByPath)(t.editData??c.value,"componentProps.dynamicId"),"model-value":e.unref(l.getValueByPath)(t.editData??c.value,t.field),"onUpdate:modelValue":i=>y(i,t.field,t,t.editData),"onUpdate:dynamicId":i=>m(i)},null,8,["componentSchema","dynamicId","model-value","onUpdate:modelValue","onUpdate:dynamicId"])],2)],2)):e.createCommentVNode("",!0)])}),128))])}}});exports.default=g;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as S, inject as i, computed as V, ref as P, watchEffect as C, openBlock as l, createElementBlock as s, Fragment as N, renderList as D, normalizeClass as m, toDisplayString as E, createCommentVNode as y, createElementVNode as U, createVNode as B, unref as f, nextTick as v } from "vue";
|
|
2
|
-
import { _ as x, o as g, s as h } from "./index-
|
|
3
|
-
import { p as z } from "./
|
|
2
|
+
import { _ as x, o as g, s as h } from "./index-BIPDvTGu.js";
|
|
3
|
+
import { p as z } from "./js.cookie-oHpRFPCO.js";
|
|
4
4
|
const F = ["title"], M = /* @__PURE__ */ S({
|
|
5
5
|
__name: "attributeView",
|
|
6
6
|
setup(T) {
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { defineComponent as w, inject as i, ref as d, reactive as k, provide as j, onMounted as F, computed as f, openBlock as h, createElementBlock as v, createVNode as M, unref as W, mergeProps as $, withCtx as B, renderSlot as _, Fragment as E, renderList as L, createCommentVNode as N } from "vue";
|
|
2
|
+
import { ElForm as O } from "element-plus";
|
|
3
|
+
import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const q = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "form-main",
|
|
7
|
+
style: { height: "100%" }
|
|
8
|
+
}, I = /* @__PURE__ */ w({
|
|
9
|
+
__name: "form",
|
|
10
|
+
props: {
|
|
11
|
+
componentSchema: {
|
|
12
|
+
type: Object,
|
|
13
|
+
require: !0,
|
|
14
|
+
default: () => ({})
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
setup(b, { expose: g }) {
|
|
18
|
+
var s, p;
|
|
19
|
+
const n = b, y = i("pageManager", {}), t = d(null), l = i("forms", {}), S = d(!0), r = k({});
|
|
20
|
+
y.addFormData(r, (p = (s = n.componentSchema) == null ? void 0 : s.componentProps) == null ? void 0 : p.name), j("formData", r);
|
|
21
|
+
function c() {
|
|
22
|
+
return r;
|
|
23
|
+
}
|
|
24
|
+
function m(e) {
|
|
25
|
+
Object.assign(r, e);
|
|
26
|
+
}
|
|
27
|
+
function C() {
|
|
28
|
+
var e;
|
|
29
|
+
return (e = t.value) == null ? void 0 : e.validate();
|
|
30
|
+
}
|
|
31
|
+
F(async () => {
|
|
32
|
+
var e, a, o, u;
|
|
33
|
+
if (((e = n.componentSchema) == null ? void 0 : e.type) === "form" && l.value && t.value) {
|
|
34
|
+
const P = ((o = (a = n.componentSchema) == null ? void 0 : a.componentProps) == null ? void 0 : o.name) ?? ((u = n.componentSchema) == null ? void 0 : u.name) ?? "default";
|
|
35
|
+
return l.value[P] = t.value, t.value.getData = c, t.value.setData = m, !1;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
const D = f(() => {
|
|
39
|
+
const e = n.componentSchema.componentProps;
|
|
40
|
+
let a = e.labelCol, o = e.wrapperCol;
|
|
41
|
+
return e.labelLayout === "fixed" && (a = {
|
|
42
|
+
style: `width:${typeof e.labelWidth == "number" ? e.labelWidth + "px" : e.labelWidth}`
|
|
43
|
+
}, o = { style: "width:auto;flex:1" }), {
|
|
44
|
+
...e,
|
|
45
|
+
labelCol: a,
|
|
46
|
+
wrapperCol: o
|
|
47
|
+
};
|
|
48
|
+
}), x = f(() => n.componentSchema.children ?? []);
|
|
49
|
+
return g({
|
|
50
|
+
form: t,
|
|
51
|
+
getData: c,
|
|
52
|
+
setData: m,
|
|
53
|
+
validate: C
|
|
54
|
+
}), (e, a) => S.value ? (h(), v("div", q, [
|
|
55
|
+
M(W(O), $({
|
|
56
|
+
ref_key: "form",
|
|
57
|
+
ref: t,
|
|
58
|
+
model: r
|
|
59
|
+
}, D.value, { style: { height: "100%" } }), {
|
|
60
|
+
default: B(() => [
|
|
61
|
+
_(e.$slots, "edit-node", {}, () => [
|
|
62
|
+
(h(!0), v(E, null, L(x.value, (o) => _(e.$slots, "node", { componentSchema: o }, void 0, !0)), 256))
|
|
63
|
+
], !0)
|
|
64
|
+
]),
|
|
65
|
+
_: 3
|
|
66
|
+
}, 16, ["model"])
|
|
67
|
+
])) : N("", !0);
|
|
68
|
+
}
|
|
69
|
+
}), H = /* @__PURE__ */ V(I, [["__scopeId", "data-v-64ba7c56"]]);
|
|
70
|
+
export {
|
|
71
|
+
H as default
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),S=require("element-plus"),P=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),C={key:0,class:"form-main",style:{height:"100%"}},D=e.defineComponent({__name:"form",props:{componentSchema:{type:Object,require:!0,default:()=>({})}},setup(d,{expose:f}){var u,p;const r=d,h=e.inject("pageManager",{}),o=e.ref(null),c=e.inject("forms",{}),v=e.ref(!0),l=e.reactive({});h.addFormData(l,(p=(u=r.componentSchema)==null?void 0:u.componentProps)==null?void 0:p.name),e.provide("formData",l);function m(){return l}function s(t){Object.assign(l,t)}function g(){var t;return(t=o.value)==null?void 0:t.validate()}e.onMounted(async()=>{var t,a,n,i;if(((t=r.componentSchema)==null?void 0:t.type)==="form"&&c.value&&o.value){const y=((n=(a=r.componentSchema)==null?void 0:a.componentProps)==null?void 0:n.name)??((i=r.componentSchema)==null?void 0:i.name)??"default";return c.value[y]=o.value,o.value.getData=m,o.value.setData=s,!1}});const _=e.computed(()=>{const t=r.componentSchema.componentProps;let a=t.labelCol,n=t.wrapperCol;return t.labelLayout==="fixed"&&(a={style:`width:${typeof t.labelWidth=="number"?t.labelWidth+"px":t.labelWidth}`},n={style:"width:auto;flex:1"}),{...t,labelCol:a,wrapperCol:n}}),b=e.computed(()=>r.componentSchema.children??[]);return f({form:o,getData:m,setData:s,validate:g}),(t,a)=>v.value?(e.openBlock(),e.createElementBlock("div",C,[e.createVNode(e.unref(S.ElForm),e.mergeProps({ref_key:"form",ref:o,model:l},_.value,{style:{height:"100%"}}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"edit-node",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,n=>e.renderSlot(t.$slots,"node",{componentSchema:n},void 0,!0)),256))],!0)]),_:3},16,["model"])])):e.createCommentVNode("",!0)}}),k=P._export_sfc(D,[["__scopeId","data-v-64ba7c56"]]);exports.default=k;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as c, ref as o, watch as p, nextTick as g, openBlock as w, createBlock as U, unref as v, withCtx as y, createVNode as C } from "vue";
|
|
2
|
-
import { p as r } from "./
|
|
2
|
+
import { p as r } from "./js.cookie-oHpRFPCO.js";
|
|
3
3
|
const z = /* @__PURE__ */ c({
|
|
4
4
|
__name: "index",
|
|
5
5
|
props: {
|