epic-designer-gold 0.0.16 → 0.0.17

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.
Files changed (31) hide show
  1. package/dist/{attributeView-DZseOPbA.cjs → attributeView-BrU7NVHB.cjs} +1 -1
  2. package/dist/{attributeView-DaKcfxYS.js → attributeView-C2nl9iK-.js} +1 -1
  3. package/dist/{eventView-DMdS5tNd.cjs → eventView-D-tRUHfx.cjs} +1 -1
  4. package/dist/{eventView-BFaz-0Gd.js → eventView-pHQ5eBv7.js} +1 -1
  5. package/dist/{index-C23zgjw8.js → index-3ZgPYrE2.js} +1 -1
  6. package/dist/{index-B0Zx7BFr.js → index-71KHFYJU.js} +456 -449
  7. package/dist/{index-CwopQ1ii.js → index-BfSXPeVc.js} +1 -1
  8. package/dist/{index-wccisfiH.cjs → index-BiivAgJZ.cjs} +1 -1
  9. package/dist/{index-D2KcZm16.js → index-BkjzhhSi.js} +1 -1
  10. package/dist/{index-CYvxg3TX.cjs → index-Blo7yEnf.cjs} +1 -1
  11. package/dist/{index-CIHXNeLh.cjs → index-C2CpiJ_f.cjs} +1 -1
  12. package/dist/{index-UhAkLhp5.js → index-CJGTWlxP.js} +1 -1
  13. package/dist/{index-Bg5w6ttO.cjs → index-CSoobSpH.cjs} +1 -1
  14. package/dist/{index-C3SntaaD.cjs → index-D75wUoUt.cjs} +1 -1
  15. package/dist/index-DKdtKvGH.cjs +10 -0
  16. package/dist/{index-DaGkNfvy.cjs → index-DQcq_Ryv.cjs} +1 -1
  17. package/dist/{index-LuEk_rsN.cjs → index-Dzbf-pz4.cjs} +1 -1
  18. package/dist/{index-Bo7Wv18B.js → index-U9gSTNR0.js} +1 -1
  19. package/dist/{index-ji8WAXwM.js → index-WWXiJl3c.js} +1 -1
  20. package/dist/{index-DAucrTY2.cjs → index-hqgOCVG7.cjs} +1 -1
  21. package/dist/{index-CecS9Ywo.js → index-i0m3r1ds.js} +1 -1
  22. package/dist/{index-DsZL9gYb.js → index-if6rPeHv.js} +1 -1
  23. package/dist/index-me8_Rc_U.js +4 -0
  24. package/dist/{index-BzE8aBGI.cjs → index-vMiAEdD_.cjs} +1 -1
  25. package/dist/index.cjs +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/{styleView-Dti52JEQ.cjs → styleView-BKTC8Zam.cjs} +1 -1
  28. package/dist/{styleView-DIACFMk_.js → styleView-yb0Xq3SX.js} +1 -1
  29. package/package.json +1 -1
  30. package/dist/index-B14JQGo7.js +0 -4
  31. package/dist/index-C4_h1__K.cjs +0 -10
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-C4_h1__K.cjs"),v=require("./axios-CYGTE3lR.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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-DKdtKvGH.cjs"),v=require("./axios-CYGTE3lR.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,5 +1,5 @@
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, p as g, s as h } from "./index-B0Zx7BFr.js";
2
+ import { _ as x, p as g, s as h } from "./index-71KHFYJU.js";
3
3
  import { p as z } from "./axios-ITY6Uw7A.js";
4
4
  const F = ["title"], M = /* @__PURE__ */ S({
5
5
  __name: "attributeView",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./axios-CYGTE3lR.cjs"),i=require("./index-C4_h1__K.cjs"),f={class:"epic-event-view"},g={key:0},y=e.defineComponent({__name:"eventView",setup(k){const u=e.inject("pageSchema"),r=e.inject("designer"),a=e.inject("revoke"),l=s.pluginManager.getComponent("EActionEditor"),p=s.pluginManager.getComponentConfings(),o=e.computed(()=>r.state.checkedNode),v=e.computed(()=>{var c,d;const n=[{title:"生命周期",events:[{type:"vnodeBeforeMount",describe:"beforeMount"},{type:"vnodeMounted",describe:"mounted"},{type:"vnodeBeforeUpdate",describe:"beforeUpdate"},{type:"vnodeUpdated",describe:"updated"},{type:"vnodeBeforeUnmount",describe:"beforeUnmount"},{type:"vnodeUnmounted",describe:"unmounted"},{type:"vnodeErrorCaptured",describe:"errorCaptured"}]}],t=((d=p[((c=r.state.checkedNode)==null?void 0:c.type)??""])==null?void 0:d.config.event)??[];return n.unshift({title:"组件事件",events:t}),n});function m(n,t){i.setValueByPath(o.value,t,n),a.push(u.schemas,"编辑组件属性")}return(n,t)=>(e.openBlock(),e.createElementBlock("div",f,[o.value?(e.openBlock(),e.createElementBlock("div",g,[(e.openBlock(),e.createBlock(e.unref(l),{key:o.value.id,"event-list":v.value,"model-value":e.unref(i.getValueByPath)(o.value,"on"),"onUpdate:modelValue":t[0]||(t[0]=c=>m(c,"on"))},null,8,["event-list","model-value"]))])):e.createCommentVNode("",!0)]))}});exports.default=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./axios-CYGTE3lR.cjs"),i=require("./index-DKdtKvGH.cjs"),f={class:"epic-event-view"},g={key:0},y=e.defineComponent({__name:"eventView",setup(k){const u=e.inject("pageSchema"),r=e.inject("designer"),a=e.inject("revoke"),l=s.pluginManager.getComponent("EActionEditor"),p=s.pluginManager.getComponentConfings(),o=e.computed(()=>r.state.checkedNode),v=e.computed(()=>{var c,d;const n=[{title:"生命周期",events:[{type:"vnodeBeforeMount",describe:"beforeMount"},{type:"vnodeMounted",describe:"mounted"},{type:"vnodeBeforeUpdate",describe:"beforeUpdate"},{type:"vnodeUpdated",describe:"updated"},{type:"vnodeBeforeUnmount",describe:"beforeUnmount"},{type:"vnodeUnmounted",describe:"unmounted"},{type:"vnodeErrorCaptured",describe:"errorCaptured"}]}],t=((d=p[((c=r.state.checkedNode)==null?void 0:c.type)??""])==null?void 0:d.config.event)??[];return n.unshift({title:"组件事件",events:t}),n});function m(n,t){i.setValueByPath(o.value,t,n),a.push(u.schemas,"编辑组件属性")}return(n,t)=>(e.openBlock(),e.createElementBlock("div",f,[o.value?(e.openBlock(),e.createElementBlock("div",g,[(e.openBlock(),e.createBlock(e.unref(l),{key:o.value.id,"event-list":v.value,"model-value":e.unref(i.getValueByPath)(o.value,"on"),"onUpdate:modelValue":t[0]||(t[0]=c=>m(c,"on"))},null,8,["event-list","model-value"]))])):e.createCommentVNode("",!0)]))}});exports.default=y;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, inject as d, computed as a, openBlock as r, createElementBlock as i, createBlock as b, unref as u, createCommentVNode as k } from "vue";
2
2
  import { p } from "./axios-ITY6Uw7A.js";
3
- import { p as _, s as B } from "./index-B0Zx7BFr.js";
3
+ import { p as _, s as B } from "./index-71KHFYJU.js";
4
4
  const C = { class: "epic-event-view" }, U = { key: 0 }, S = /* @__PURE__ */ y({
5
5
  __name: "eventView",
6
6
  setup(E) {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as u, ref as p, inject as d, watch as f, toRaw as m, openBlock as g, createElementBlock as _, createVNode as h, unref as r } from "vue";
2
2
  import { p as N } from "./axios-ITY6Uw7A.js";
3
- import { o as y, d as k } from "./index-B0Zx7BFr.js";
3
+ import { o as y, d as k } from "./index-71KHFYJU.js";
4
4
  const E = { class: "epic-sound-code" }, R = /* @__PURE__ */ u({
5
5
  __name: "index",
6
6
  setup(O) {