epic-designer-gold 0.0.14 → 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 (45) hide show
  1. package/dist/{attributeView-lpFl3t4a.cjs → attributeView-DZseOPbA.cjs} +1 -1
  2. package/dist/{attributeView-BN2nA4jI.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/core/components/node/src/node.vue.d.ts +2 -2
  6. package/dist/core/extensions/EOptionsEditor/index.vue.d.ts +2 -2
  7. package/dist/{eventView-BKpQ9YIh.js → eventView-BFaz-0Gd.js} +1 -1
  8. package/dist/{eventView-DgqXxWY1.cjs → eventView-DMdS5tNd.cjs} +1 -1
  9. package/dist/index-B0Zx7BFr.js +1587 -0
  10. package/dist/index-B14JQGo7.js +4 -0
  11. package/dist/{index-D8YBJFH6.cjs → index-Bg5w6ttO.cjs} +1 -1
  12. package/dist/{index-BzsFImwK.js → index-Bo7Wv18B.js} +1 -1
  13. package/dist/{index-YHlIFgpT.cjs → index-BzE8aBGI.cjs} +1 -1
  14. package/dist/{index-Yx99TN9O.js → index-C23zgjw8.js} +1 -1
  15. package/dist/{index-CGHtM1lr.cjs → index-C3SntaaD.cjs} +1 -1
  16. package/dist/index-C4_h1__K.cjs +10 -0
  17. package/dist/{index-BXNPTGKl.cjs → index-CIHXNeLh.cjs} +1 -1
  18. package/dist/{index-CdgT4gQu.cjs → index-CYvxg3TX.cjs} +1 -1
  19. package/dist/index-CecS9Ywo.js +216 -0
  20. package/dist/{index-DZYSBPVO.js → index-CwopQ1ii.js} +1 -1
  21. package/dist/{index-Mf82MCCF.js → index-D2KcZm16.js} +1 -1
  22. package/dist/index-DAucrTY2.cjs +1 -0
  23. package/dist/{index-lH0_mCG-.cjs → index-DaGkNfvy.cjs} +1 -1
  24. package/dist/{index-BlJ0TQyn.js → index-DsZL9gYb.js} +1 -1
  25. package/dist/{index-By5rfqCj.cjs → index-LuEk_rsN.cjs} +1 -1
  26. package/dist/{index-DPfAejnH.js → index-UhAkLhp5.js} +1 -1
  27. package/dist/{index-kWCcT4er.js → index-ji8WAXwM.js} +1 -1
  28. package/dist/{index-CNzcV-bQ.cjs → index-wccisfiH.cjs} +1 -1
  29. package/dist/index.cjs +1 -1
  30. package/dist/index.js +1 -1
  31. package/dist/select-B8HCbraJ.js +29 -0
  32. package/dist/select-D6bRz5G2.cjs +1 -0
  33. package/dist/style.css +1 -1
  34. package/dist/{styleView-CXp05_Ar.js → styleView-DIACFMk_.js} +1 -1
  35. package/dist/{styleView-auUK19Dr.cjs → styleView-Dti52JEQ.cjs} +1 -1
  36. package/dist/ui/elementPlus/index.cjs +1 -1
  37. package/dist/ui/elementPlus/index.js +1 -1
  38. package/package.json +1 -1
  39. package/dist/index-BHmIF8aI.cjs +0 -10
  40. package/dist/index-CL_7RzF7.js +0 -214
  41. package/dist/index-CkRhCvJK.cjs +0 -1
  42. package/dist/index-Ol-YPkY9.js +0 -1550
  43. package/dist/index-qJNRPNIj.js +0 -4
  44. package/dist/select-B479QwwL.cjs +0 -1
  45. package/dist/select-CtUVWh2M.js +0 -29
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-BHmIF8aI.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-Ol-YPkY9.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
  * 配置项
@@ -22,7 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
22
22
  ruleField?: string[];
23
23
  resetFormData?: boolean;
24
24
  name?: string;
25
- dynamicId?: string;
25
+ dynamicId?: string | number;
26
26
  sourceDateUrl?: string;
27
27
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
28
  change: (...args: any[]) => void;
@@ -34,7 +34,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
34
34
  ruleField?: string[];
35
35
  resetFormData?: boolean;
36
36
  name?: string;
37
- dynamicId?: string;
37
+ dynamicId?: string | number;
38
38
  sourceDateUrl?: string;
39
39
  }> & Readonly<{
40
40
  onChange?: ((...args: any[]) => any) | undefined;
@@ -6,7 +6,7 @@ interface Option {
6
6
  declare const _default: import('vue').DefineComponent<{
7
7
  tree?: boolean;
8
8
  modelValue: Option[];
9
- dynamicId?: String;
9
+ dynamicId?: String | number;
10
10
  type?: string;
11
11
  }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
12
  "update:modelValue": (...args: any[]) => void;
@@ -14,7 +14,7 @@ declare const _default: import('vue').DefineComponent<{
14
14
  }, string, import('vue').PublicProps, Readonly<{
15
15
  tree?: boolean;
16
16
  modelValue: Option[];
17
- dynamicId?: String;
17
+ dynamicId?: String | number;
18
18
  type?: string;
19
19
  }> & Readonly<{
20
20
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
@@ -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-Ol-YPkY9.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-BHmIF8aI.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;