epic-designer-gold 0.0.35 → 0.0.36
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-BuU8Ajxc.js → attributeView-B7DV4lAt.js} +1 -1
- package/dist/{attributeView-n7qIXP7S.cjs → attributeView-DDGuze51.cjs} +1 -1
- package/dist/core/components/builder/hooks/useBuilder.d.ts +1 -1
- package/dist/core/components/builder/src/builder.vue.d.ts +1 -1
- package/dist/index-B-xlPeh9.js +1595 -0
- package/dist/{index-BqrNcAYd.cjs → index-B2gg10s4.cjs} +1 -1
- package/dist/{index-CF3fYMNt.js → index-B3lbdZq_.js} +1 -1
- package/dist/{index-CueBqJva.cjs → index-BjGIBeq9.cjs} +1 -1
- package/dist/{index-Dxs27XfA.cjs → index-COnqFAGF.cjs} +1 -1
- package/dist/{index-C4wq_cwc.cjs → index-CVoTuphS.cjs} +1 -1
- package/dist/index-D0lfnprb.cjs +10 -0
- package/dist/{index-DluF22Iv.js → index-D9Sl1Tt2.js} +1 -1
- package/dist/{index-B1hinJbh.cjs → index-Dp_NrzlD.cjs} +1 -1
- package/dist/{index-AT5ltRGN.js → index-Dqrp1qYR.js} +1 -1
- package/dist/{index-I369bEhX.js → index-DrpioRZq.js} +1 -1
- package/dist/{index-QWJHIAu8.js → index-K-_Di3v8.js} +1 -1
- package/dist/{index-B2BO1iqb.cjs → index-S20SQCap.cjs} +1 -1
- package/dist/{index--mXdf_N_.cjs → index-d5YJ-yXd.cjs} +1 -1
- package/dist/index-iKGyw7sC.js +4 -0
- package/dist/{index-XbBcyR0q.js → index-kXU7kXVV.js} +1 -1
- package/dist/{index-CfqYk0Cm.js → index-sc9fIKsf.js} +1 -1
- package/dist/{index-DMWZmwY3.cjs → index-tsOwObMJ.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/{styleView-CMN7E_-A.cjs → styleView-CJW7-Z1w.cjs} +1 -1
- package/dist/{styleView-3R3fJCVy.js → styleView-D0l-KW9f.js} +1 -1
- package/package.json +1 -1
- package/dist/index-B0dJIMij.cjs +0 -10
- package/dist/index-CbVJE-r7.js +0 -1575
- package/dist/index-D7xfe3p6.js +0 -4
|
@@ -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, o as g, s as h } from "./index-
|
|
2
|
+
import { _ as x, o as g, s as h } from "./index-B-xlPeh9.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"),l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("./index-D0lfnprb.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;
|
|
@@ -20,7 +20,7 @@ export declare function useBuilder(): {
|
|
|
20
20
|
};
|
|
21
21
|
forms: import('vue').Ref<any, any>;
|
|
22
22
|
getData: (formName?: string) => Promise<FormDataModel>;
|
|
23
|
-
setData: (data: FormDataModel, formName?: string) => void;
|
|
23
|
+
setData: (data: FormDataModel, formName?: string, pageSchema?: undefined) => void;
|
|
24
24
|
validate: (formName?: string) => Promise<FormDataModel>;
|
|
25
25
|
getForms: () => Promise<Record<string, FormDataModel>>;
|
|
26
26
|
setForms: (data: Record<string, FormDataModel>) => void;
|
|
@@ -25,7 +25,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
25
25
|
setDefaultComponentIds: (schemas: import('../../../types/epic-designer').ComponentSchema[]) => void;
|
|
26
26
|
};
|
|
27
27
|
getData: (formName?: string) => Promise<FormDataModel>;
|
|
28
|
-
setData: (data: FormDataModel, formName?: string) => void;
|
|
28
|
+
setData: (data: FormDataModel, formName?: string, pageSchema?: undefined) => void;
|
|
29
29
|
validate: (formName?: string) => Promise<FormDataModel>;
|
|
30
30
|
getForms: () => Promise<Record<string, FormDataModel>>;
|
|
31
31
|
setForms: (data: Record<string, FormDataModel>) => void;
|