epic-designer-gold 0.0.15 → 0.0.16

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 (33) hide show
  1. package/dist/{attributeView-BoLhVQzb.cjs → attributeView-DZseOPbA.cjs} +1 -1
  2. package/dist/{attributeView-CsETdPfQ.js → attributeView-DaKcfxYS.js} +1 -1
  3. package/dist/core/components/designer/src/designer.vue.d.ts +1 -0
  4. package/dist/core/components/designer/src/types.d.ts +1 -0
  5. package/dist/{eventView-y92-iX1R.js → eventView-BFaz-0Gd.js} +1 -1
  6. package/dist/{eventView-CeoqK6Se.cjs → eventView-DMdS5tNd.cjs} +1 -1
  7. package/dist/{index-CzIPdR2H.js → index-B0Zx7BFr.js} +557 -520
  8. package/dist/index-B14JQGo7.js +4 -0
  9. package/dist/{index-BuNxO1Pv.cjs → index-Bg5w6ttO.cjs} +1 -1
  10. package/dist/{index-DLeXF615.js → index-Bo7Wv18B.js} +1 -1
  11. package/dist/{index-BUw5OdPn.cjs → index-BzE8aBGI.cjs} +1 -1
  12. package/dist/{index-Dzatsws1.js → index-C23zgjw8.js} +1 -1
  13. package/dist/{index-FW4I6HiK.cjs → index-C3SntaaD.cjs} +1 -1
  14. package/dist/index-C4_h1__K.cjs +10 -0
  15. package/dist/{index-9NfXcZ4Y.cjs → index-CIHXNeLh.cjs} +1 -1
  16. package/dist/{index-BwZBxXdy.cjs → index-CYvxg3TX.cjs} +1 -1
  17. package/dist/{index-CM2yS7Lz.js → index-CecS9Ywo.js} +1 -1
  18. package/dist/{index-DqoXRcy4.js → index-CwopQ1ii.js} +1 -1
  19. package/dist/{index-BimQe5uF.js → index-D2KcZm16.js} +1 -1
  20. package/dist/{index-PwPgOIVo.cjs → index-DAucrTY2.cjs} +1 -1
  21. package/dist/{index-uPLxG_y4.cjs → index-DaGkNfvy.cjs} +1 -1
  22. package/dist/{index-QVJsPbkw.js → index-DsZL9gYb.js} +1 -1
  23. package/dist/{index-Uwfc3-yh.cjs → index-LuEk_rsN.cjs} +1 -1
  24. package/dist/{index-CgW7uOAC.js → index-UhAkLhp5.js} +1 -1
  25. package/dist/{index-D4hsNiQf.js → index-ji8WAXwM.js} +1 -1
  26. package/dist/{index-FRRNZqrr.cjs → index-wccisfiH.cjs} +1 -1
  27. package/dist/index.cjs +1 -1
  28. package/dist/index.js +1 -1
  29. package/dist/{styleView-kap7mePV.js → styleView-DIACFMk_.js} +1 -1
  30. package/dist/{styleView-BfH5Ujdi.cjs → styleView-Dti52JEQ.cjs} +1 -1
  31. package/package.json +1 -1
  32. package/dist/index-BXqSZLpt.js +0 -4
  33. package/dist/index-C3ug5HS-.cjs +0 -10
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-C3ug5HS-.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-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,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-CzIPdR2H.js";
2
+ import { _ as x, p as g, s as h } from "./index-B0Zx7BFr.js";
3
3
  import { p as z } from "./axios-ITY6Uw7A.js";
4
4
  const F = ["title"], M = /* @__PURE__ */ S({
5
5
  __name: "attributeView",
@@ -88,6 +88,7 @@ declare const __VLS_component: import('vue').DefineComponent<DesignerProps, {
88
88
  hiddenHeader: boolean;
89
89
  lockDefaultSchemaEdit: boolean;
90
90
  formMode: boolean;
91
+ updateSourceId: string;
91
92
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
92
93
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
93
94
  export default _default;
@@ -8,6 +8,7 @@ export interface DesignerProps {
8
8
  defaultSchema?: PageSchema;
9
9
  sourceCodeReadOnly?: boolean;
10
10
  source?: any;
11
+ updateSourceId?: string;
11
12
  }
12
13
  /**
13
14
  * 配置项
@@ -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-CzIPdR2H.js";
3
+ import { p as _, s as B } from "./index-B0Zx7BFr.js";
4
4
  const C = { class: "epic-event-view" }, U = { key: 0 }, S = /* @__PURE__ */ y({
5
5
  __name: "eventView",
6
6
  setup(E) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./axios-CYGTE3lR.cjs"),i=require("./index-C3ug5HS-.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-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;