epic-designer-gold 1.0.5 → 1.0.7
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/ETable-adkZzXhI.cjs +1 -0
- package/dist/ETable-ogvH56w7.js +50 -0
- package/dist/ETd-BCM7zA8V.cjs +1 -0
- package/dist/{row-DAy14ve9.js → ETd-CRUvOVnZ.js} +13 -13
- package/dist/ETr-BqGghav2.cjs +1 -0
- package/dist/ETr-nIjGkdzO.js +43 -0
- package/dist/attributeView-BCjRZKcy.cjs +1 -0
- package/dist/{attributeView-Cu_tjo9A.js → attributeView-CcnkUeu9.js} +7 -7
- package/dist/axios-CXDYiOMX.js +1704 -0
- package/dist/axios-tuVKNgv9.cjs +6 -0
- package/dist/card-C9ua0f7r.cjs +1 -0
- package/dist/card-CI6L3YKU.js +33 -0
- package/dist/cell-AML-qIH9.cjs +1 -0
- package/dist/cell-B_q5hgzb.js +35 -0
- package/dist/col-C4lVVBzC.cjs +1 -0
- package/dist/col-DcVPBKEc.js +31 -0
- package/dist/core/components/builder/src/builder.vue.d.ts +2 -2
- package/dist/core/components/designer/src/modules/attributeView/eventView.vue.d.ts +2 -0
- package/dist/core/components/node/src/node.vue.d.ts +3 -2
- package/dist/core/extensions/EColumnEditor/columnItem.vue.d.ts +10 -0
- package/dist/core/extensions/EColumnEditor/index.vue.d.ts +18 -0
- package/dist/core/extensions/PaddingMarginControl/index.vue.d.ts +10 -0
- package/dist/eventView-5fa6mfSD.cjs +1 -0
- package/dist/eventView-C2wKhfU_.js +63 -0
- package/dist/{form-CthzLIgs.cjs → form-Bofkrmkd.cjs} +1 -1
- package/dist/{form-6cUK-Ari.js → form-VbfBmb63.js} +5 -5
- package/dist/iframe-CRF3GSRv.cjs +1 -0
- package/dist/iframe-Fgbk3vqJ.js +48 -0
- package/dist/index-0WmqAKuy.js +4 -0
- package/dist/index-5yjG3fiB.cjs +1 -0
- package/dist/{index-DxNdcsD-.js → index-B0OgKtuT.js} +105 -100
- package/dist/{index-Dg7MK40D.js → index-B1s67XDZ.js} +17 -17
- package/dist/index-BEUYVwRA.cjs +1 -0
- package/dist/{index-DeFAvWuV.cjs → index-BHEw6RsQ.cjs} +1 -1
- package/dist/index-BHZbtFEF.cjs +1 -0
- package/dist/index-BU05X44j.cjs +1 -0
- package/dist/index-BY37Ndo7.cjs +10 -0
- package/dist/index-BoL2PSBk.cjs +1 -0
- package/dist/index-BvfkMKTv.cjs +1 -0
- package/dist/{index-BLJT8e0Q.js → index-BvvGezNc.js} +4 -4
- package/dist/{index-CHCOxt3B.js → index-BydHABbW.js} +3 -3
- package/dist/index-C2s4IuAR.cjs +1 -0
- package/dist/index-CCCx1tbF.cjs +1 -0
- package/dist/index-CD00bJyK.js +839 -0
- package/dist/{index-Bybwt7-u.js → index-CG0UEELU.js} +1 -1
- package/dist/index-CdnV7DS4.js +265 -0
- package/dist/{index-D0kQz_zt.js → index-Cln9MN7u.js} +1 -1
- package/dist/index-CpBfljmg.cjs +1 -0
- package/dist/{index-CMbBKMQU.js → index-CpTA2IRB.js} +2 -2
- package/dist/index-CpevxZqj.cjs +1 -0
- package/dist/index-CraRg8wh.js +107 -0
- package/dist/{index-CEDIwmNK.js → index-Cx7gKpkD.js} +2 -2
- package/dist/index-DYQi05p8.cjs +1 -0
- package/dist/{index-CjIIhZdV.js → index-E8jDNKrc.js} +3 -3
- package/dist/index-FgdbKgb5.cjs +1 -0
- package/dist/index-GIYb626z.js +1422 -0
- package/dist/{index-CgwN4ucQ.js → index-IGxCNti8.js} +48 -28
- package/dist/{index-CqeRfqUw.cjs → index-IPz4bbk7.cjs} +1 -1
- package/dist/index-R2r9Rw5O.cjs +1 -0
- package/dist/index-WkZdU_zw.js +47 -0
- package/dist/index-v2u1WTMm.cjs +1 -0
- package/dist/index-vCJWgHu-.js +142 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/locale/lang/en-US.d.ts +2 -0
- package/dist/locale/lang/zh-cn.d.ts +2 -0
- package/dist/modal-DCBqsiP2.cjs +1 -0
- package/dist/modal-DZRBS-Mt.js +58 -0
- package/dist/outline-BE98qFHQ.cjs +1 -0
- package/dist/{outline-DxCKINRN.js → outline-Ch5PHy3c.js} +2 -2
- package/dist/pluginManager-BCnrHPYv.js +660 -0
- package/dist/pluginManager-DWHAX8kP.cjs +1 -0
- package/dist/sign-BS-9u6is.cjs +1 -0
- package/dist/{sign-B-FCN_7O.js → sign-l63EYvVo.js} +61 -56
- package/dist/style.css +1 -1
- package/dist/styleView-Dhj1GDqf.js +140 -0
- package/dist/styleView-DocskQJQ.cjs +1 -0
- package/dist/tabPanel-CXZYMEwi.cjs +1 -0
- package/dist/{col-D4hvKfJ6.js → tabPanel-DAw7ENrC.js} +7 -7
- package/dist/table-75K2lqjD.js +65 -0
- package/dist/table-CN2LNWqY.cjs +1 -0
- package/dist/tabs-CYH9lAUk.cjs +1 -0
- package/dist/tabs-DCyifACM.js +41 -0
- package/dist/text-B92ioaoV.cjs +1 -0
- package/dist/text-C-b94tBH.js +47 -0
- package/dist/tree.vue_vue_type_script_setup_true_lang-BsVyMb-n.js +243 -0
- package/dist/tree.vue_vue_type_script_setup_true_lang-VGvT-OYl.cjs +1 -0
- package/dist/ui/elementPlus/ETable/ETable.d.ts +20 -0
- package/dist/ui/elementPlus/ETd/ETd.d.ts +20 -0
- package/dist/ui/elementPlus/ETr/ETr.d.ts +20 -0
- package/dist/ui/elementPlus/ETr/index.d.ts +3 -0
- package/dist/ui/elementPlus/iframe/iframe.d.ts +29 -0
- package/dist/ui/elementPlus/iframe/index.d.ts +3 -0
- package/dist/ui/elementPlus/index.cjs +1 -1
- package/dist/ui/elementPlus/index.js +904 -403
- package/dist/ui/elementPlus/rate/index.d.ts +3 -0
- package/dist/ui/elementPlus/tab-panel/index.d.ts +3 -0
- package/dist/ui/elementPlus/table/table.d.ts +9 -0
- package/dist/ui/elementPlus/table-cell/index.d.ts +3 -0
- package/dist/ui/elementPlus/tabs/index.d.ts +2 -0
- package/dist/ui/elementPlus/tabs/tabs.d.ts +29 -0
- package/dist/ui/elementPlus/text/text.d.ts +9 -0
- package/dist/ui/naiveUi/index.cjs +1 -1
- package/dist/ui/naiveUi/index.js +1 -1
- package/dist/uploadFile-pgvj4Lm9.cjs +1 -0
- package/dist/uploadFile-qCbXuHfd.js +81 -0
- package/dist/uploadImage-B3sOX-5F.cjs +1 -0
- package/dist/{uploadImage-CF7fobUP.cjs → uploadImage-CNMsK4Lh.cjs} +1 -1
- package/dist/uploadImage-DQmVV0jl.js +121 -0
- package/dist/{uploadImage-COCC3pxH.js → uploadImage-VFICaVgX.js} +1 -1
- package/package.json +1 -1
- package/dist/attributeView-B2dWB_U2.cjs +0 -1
- package/dist/axios-B8aFvCWj.cjs +0 -6
- package/dist/axios-Bb3STC1u.js +0 -2362
- package/dist/card-BowzD9vN.cjs +0 -1
- package/dist/card-CNGNDzPp.js +0 -31
- package/dist/col-B1GUMkMK.cjs +0 -1
- package/dist/col-BNNn9Yx8.cjs +0 -1
- package/dist/col-u5YiB-UK.js +0 -41
- package/dist/index-21c4Pe3i.cjs +0 -1
- package/dist/index-B553TaXm.js +0 -44
- package/dist/index-BULuVnVl.js +0 -1359
- package/dist/index-BV9SE7wG.cjs +0 -1
- package/dist/index-BhcwWM1G.cjs +0 -1
- package/dist/index-Bn8pwpgq.cjs +0 -1
- package/dist/index-Bxi3JLms.cjs +0 -1
- package/dist/index-CEvDmc0a.js +0 -104
- package/dist/index-CI3dhGXT.cjs +0 -1
- package/dist/index-CYAKMqdR.cjs +0 -1
- package/dist/index-Cq6eLpKZ.cjs +0 -1
- package/dist/index-CrV5FaWU.cjs +0 -10
- package/dist/index-DR80h8IU.js +0 -4
- package/dist/index-DUMEtCCN.cjs +0 -1
- package/dist/index-DddTXMY9.cjs +0 -1
- package/dist/index-DeZ09CHf.cjs +0 -1
- package/dist/index-DzxQG0o7.cjs +0 -1
- package/dist/index-VblxMq6V.js +0 -742
- package/dist/modal-BLOgN3us.cjs +0 -1
- package/dist/modal-UFu4bD6x.js +0 -57
- package/dist/outline-CK-jNomF.cjs +0 -1
- package/dist/row-BWnbt6dh.cjs +0 -1
- package/dist/sign-Dho4kHTC.cjs +0 -1
- package/dist/styleView-CRUqDcCl.cjs +0 -1
- package/dist/styleView-ClMjCfMk.js +0 -106
- package/dist/table-CnBJm7Bx.js +0 -43
- package/dist/table-DM2-xHlv.cjs +0 -1
- package/dist/text-C-52xLjs.js +0 -33
- package/dist/text-X9fl5oe8.cjs +0 -1
- package/dist/tree.vue_vue_type_script_setup_true_lang-B9rWLveX.js +0 -242
- package/dist/tree.vue_vue_type_script_setup_true_lang-DDDqMedP.cjs +0 -1
- package/dist/uploadFile-Bc5Rxk0b.js +0 -77
- package/dist/uploadFile-oB2-NP-v.cjs +0 -1
- package/dist/uploadImage-4tgp3t7X.cjs +0 -1
- package/dist/uploadImage-CGXm3zNQ.js +0 -96
- /package/dist/ui/elementPlus/{table-col → ETable}/index.d.ts +0 -0
- /package/dist/ui/elementPlus/{table-row → ETd}/index.d.ts +0 -0
- /package/dist/ui/elementPlus/{table-col/col.d.ts → tab-panel/tabPanel.d.ts} +0 -0
- /package/dist/ui/elementPlus/{table-row/row.d.ts → table-cell/cell.d.ts} +0 -0
package/dist/modal-BLOgN3us.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("element-plus"),h=e.defineComponent({props:{componentSchema:{type:Object,default:()=>({})}},emits:["ok","close","update:modelValue"],setup(a,{attrs:p,slots:o,emit:n}){return()=>{var i;const l={...a.componentSchema,...p,title:((i=a.componentSchema)==null?void 0:i.label)??"",class:"epic-modal-el epic-modal-main","destroy-on-close":!0,"onUpdate:modelValue":u},r=l.children??[];delete l.children;let d=null;r.length?d=()=>r.map(m=>e.renderSlot(o,"node",{componentSchema:m})):d=()=>[e.renderSlot(o,"default")];function s(){n("ok")}function u(m){n("update:modelValue",!1),n("close")}return e.h(c.ElDialog,l,{default:()=>[e.renderSlot(o,"edit-node",{},d),e.h("div",{class:"epic-modal-footer"},[e.h(c.ElButton,{onClick:u},{default:()=>"关闭"}),e.h(c.ElButton,{type:"primary",onClick:s},{default:()=>l.okText??t("confirm")})])]})}}});exports.default=h;
|
package/dist/modal-UFu4bD6x.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { defineComponent as h, h as o, renderSlot as d } from "vue";
|
|
2
|
-
import { ElDialog as k, ElButton as u } from "element-plus";
|
|
3
|
-
const y = h({
|
|
4
|
-
props: {
|
|
5
|
-
componentSchema: {
|
|
6
|
-
type: Object,
|
|
7
|
-
default: () => ({})
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
emits: ["ok", "close", "update:modelValue"],
|
|
11
|
-
setup(c, { attrs: f, slots: l, emit: n }) {
|
|
12
|
-
return () => {
|
|
13
|
-
var r;
|
|
14
|
-
const e = {
|
|
15
|
-
...c.componentSchema,
|
|
16
|
-
...f,
|
|
17
|
-
title: ((r = c.componentSchema) == null ? void 0 : r.label) ?? "",
|
|
18
|
-
class: "epic-modal-el epic-modal-main",
|
|
19
|
-
"destroy-on-close": !0,
|
|
20
|
-
"onUpdate:modelValue": i
|
|
21
|
-
}, m = e.children ?? [];
|
|
22
|
-
delete e.children;
|
|
23
|
-
let a = null;
|
|
24
|
-
m.length ? a = () => m.map((p) => d(l, "node", { componentSchema: p })) : a = () => [d(l, "default")];
|
|
25
|
-
function s() {
|
|
26
|
-
n("ok");
|
|
27
|
-
}
|
|
28
|
-
function i(p) {
|
|
29
|
-
n("update:modelValue", !1), n("close");
|
|
30
|
-
}
|
|
31
|
-
return o(k, e, {
|
|
32
|
-
default: () => [
|
|
33
|
-
d(l, "edit-node", {}, a),
|
|
34
|
-
o("div", { class: "epic-modal-footer" }, [
|
|
35
|
-
o(
|
|
36
|
-
u,
|
|
37
|
-
{ onClick: i },
|
|
38
|
-
{
|
|
39
|
-
default: () => "关闭"
|
|
40
|
-
}
|
|
41
|
-
),
|
|
42
|
-
o(
|
|
43
|
-
u,
|
|
44
|
-
{ type: "primary", onClick: s },
|
|
45
|
-
{
|
|
46
|
-
default: () => e.okText ?? t("confirm")
|
|
47
|
-
}
|
|
48
|
-
)
|
|
49
|
-
])
|
|
50
|
-
]
|
|
51
|
-
});
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
export {
|
|
56
|
-
y as default
|
|
57
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),_=require("./tree.vue_vue_type_script_setup_true_lang-DDDqMedP.cjs"),f=require("./axios-B8aFvCWj.cjs"),m=require("./icon.vue_vue_type_script_setup_true_lang-DJbUD5AQ.cjs"),v={class:"epic-outline"},y=["onMouseenter"],g={class:"max-w-full truncate"},h={class:"epic-node-type-text flex-1 w-0 truncate"},k=e.defineComponent({__name:"outline",setup(N){const n=e.inject("designer"),a=e.inject("pageSchema"),l=e.computed(()=>{var s;const o=(s=n.state.checkedNode)==null?void 0:s.id;return o?[o]:[]});function u(o){n.setCheckedNode(o.componentSchema)}return(o,s)=>{var i;return e.openBlock(),e.createElementBlock("div",v,[e.createVNode(e.unref(_._sfc_main),{options:e.unref(a).schemas,draggable:"","selected-keys":l.value,"hover-key":(i=e.unref(n).state.hoverNode)==null?void 0:i.id,onNodeClick:u},{"tree-node":e.withCtx(({schema:t})=>{var r,c,d;return[e.createElementVNode("div",{class:e.normalizeClass(["epic-text-padding flex",{hidden:(r=t.componentProps)==null?void 0:r.hidden}]),onMouseenter:e.withModifiers(p=>e.unref(n).setHoverNode(t),["stop"]),onMouseleave:s[0]||(s[0]=e.withModifiers(p=>e.unref(n).setHoverNode(null),["stop"]))},[e.createElementVNode("span",g,[(c=t.componentProps)!=null&&c.hidden?(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{key:0,name:"icon--epic--visibility-off-outline-rounded",class:"translate-y-2px"})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(t.label??((d=e.unref(f.pluginManager).getComponentConfingByType(t.type))==null?void 0:d.defaultSchema.label)),1)]),e.createElementVNode("span",h,e.toDisplayString(t.id),1)],42,y)]}),_:1},8,["options","selected-keys","hover-key"])])}}});exports.default=k;
|
package/dist/row-BWnbt6dh.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=require("element-plus"),a=e.defineComponent({props:{componentSchema:{type:Object,required:!0,default:()=>({})}},setup(n,{attrs:u,slots:o}){return()=>{var r;const t={...n.componentSchema,title:(r=n.componentSchema)==null?void 0:r.label},c=t.children??[];return delete t.children,e.h(l.ElRow,{...t,style:{border:"1px dashed #ccc",padding:"8px"}},{default:()=>[e.renderSlot(o,"edit-node",{},()=>c.map(d=>e.renderSlot(o,"node",{componentSchema:d})))]})}}});exports.default=a;
|
package/dist/sign-Dho4kHTC.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("./axios-B8aFvCWj.cjs"),p=require("element-plus"),k=require("./index-Cq6eLpKZ.cjs"),I=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),z={class:"sign-main"},F=["src"],H={class:"sign",style:{height:"100%",width:"100%"}},O=["id"],L={class:"btn"},$={class:"btns"},G={__name:"sign",props:{componentSchema:{type:Object,require:!0,default:()=>({})},modelValue:{type:String,default:""}},emits:["update:modelValue"],setup(T,{expose:B,emit:C}){const{t:l}=k.useLocale(),S=w.pluginManager.getComponent("button"),E=w.pluginManager.getComponent("Dialog"),D=C,o=T,d=e.inject("disabled",{value:!1});e.watch(()=>o.componentSchema,()=>{e.nextTick(()=>{h.value=o.modelValue})},{deep:!0,immediate:!0});const s=e.ref(null),i=e.ref(null),a=e.ref(),M=e.ref("");function N(){var n,t,u,g;if(i.value&&((n=i.value)!=null&&n.clientHeight)&&((t=i.value)!=null&&t.clientWidth)){if(s.value=document.getElementById(`canvas${o.componentSchema.field}`),s.value.height=((u=i.value)==null?void 0:u.clientHeight)||600,s.value.width=(g=i.value)==null?void 0:g.clientWidth,a.value=s.value.getContext("2d"),o.modelValue){let m=new Image;m.src=o.modelValue,m.setAttribute("crossOrigin","anonymous"),m.onload=()=>{a.value.fillStyle=a.value.createPattern(m,"repeat"),a.value.fillRect(0,0,1e3,550)}}a.value.lineWidth=o.componentSchema.componentProps.lineWidth||4,o.componentSchema&&o.componentSchema.componentProps&&o.componentSchema.componentProps.style&&o.componentSchema.componentProps.style.color&&(a.value.strokeStyle=o.componentSchema.componentProps.style.color),M.value=s.value.getBoundingClientRect()}}const v=e.ref(""),f=e.ref(""),A=e.ref(""),W=e.ref(""),c=e.ref([]),x=e.ref(!1);function j(n){if(d.value||o.componentSchema.componentProps.readonly||o.componentSchema.componentProps.disabled)return;n=n||event,n.preventDefault();let t={x:n.offsetX,y:n.offsetY};v.value=t.x,f.value=t.y,a.value.beginPath(),a.value.moveTo(t.x,t.y),a.value.lineTo(t.x,t.y),a.value.stroke(),a.value.closePath(),c.value.push(t),x.value=!0}function q(n){if(!(d.value||o.componentSchema.componentProps.readonly||o.componentSchema.componentProps.disabled)&&(n=n||event,n.preventDefault(),x.value)){let t={x:n.offsetX,y:n.offsetY};A.value=t.x,W.value=t.y,a.value.beginPath(),a.value.moveTo(v.value,f.value),a.value.lineTo(t.x,t.y),a.value.stroke(),a.value.closePath(),v.value=t.x,f.value=t.y,c.value.push(t)}}function R(n){if(d.value||o.componentSchema.componentProps.readonly||o.componentSchema.componentProps.disabled)return;n=n||event,n.preventDefault();let t={x:n.offsetX,y:n.offsetY};a.value.beginPath(),a.value.moveTo(v.value,f.value),a.value.lineTo(t.x,t.y),a.value.stroke(),a.value.closePath(),c.value.push(t),c.value.push({x:-1,y:-1}),x.value=!1}function P(){p.ElMessageBox.confirm(l("rewriteWillClearCanvas"),l("warning"),{confirmButtonText:l("confirm"),cancelButtonText:l("cancel"),type:"warning"}).then(()=>{a.value.clearRect(0,0,s.value.width,s.value.height),c.value=[],p.ElMessage({type:"info",message:l("clearSuccess")})}).catch(()=>{})}const h=e.ref("");async function b(){let n=await U(s.value.toDataURL("image/png"));h.value=n,D("update:modelValue",n)}async function U(n){try{let t=atob(n.split(",")[1]),u=new ArrayBuffer(t.length),g=new Uint8Array(u);for(let y=0;y<t.length;y++)g[y]=t.charCodeAt(y);let m=new Blob([u],{type:"image/png"}),V=new FormData;V.append("file",m,Date.now()+"png");let Y=await w.axios({method:"post",url:"https://ess-ds.com/prod-api/center-file/file/upload",data:V,headers:{"Content-Type":"multipart/form-data",Authorization:"Bearer "+k.api.get("Admin-Token")}});return p.ElMessage({type:"success",message:l("uploadSuccess")}),Y.data.data.url}catch{p.ElMessage({type:"warning",message:l("uploadFailed")}),r.value=!1}finally{r.value=!1}}const r=e.ref(!1);function X(){p.ElMessageBox.confirm(l("confirmAbandonSignature"),l("warning"),{confirmButtonText:l("confirm"),cancelButtonText:l("cancel"),type:"warning"}).then(()=>{a.value.clearRect(0,0,s.value.width,s.value.height),c.value=[],r.value=!1}).catch(()=>!1)}function _(){d.value||o.componentSchema.componentProps.readonly||o.componentSchema.componentProps.disabled||(r.value=!0,a.value&&(a.value.clearRect(0,0,s.value.width,s.value.height),c.value=[]),e.nextTick(()=>{N()}))}return e.onMounted(()=>{}),e.onUnmounted(()=>{}),B({surewrite:b}),(n,t)=>(e.openBlock(),e.createElementBlock("div",z,[h.value?(e.openBlock(),e.createElementBlock("img",{key:1,class:"sign-board",src:h.value,alt:"",onClick:_},null,8,F)):(e.openBlock(),e.createElementBlock("div",{key:0,class:"sign-board",onClick:_},e.toDisplayString(e.unref(l)("signaturePad")),1)),e.createVNode(e.unref(E),{modelValue:r.value,"onUpdate:modelValue":t[0]||(t[0]=u=>r.value=u),title:e.unref(l)("signaturePad"),class:"w-860px",width:"860px",style:{height:"600px"},"before-close":X,draggable:!1,modal:""},{default:e.withCtx(()=>[e.createElementVNode("div",H,[e.createElementVNode("div",{class:"canvas",ref_key:"canvasWrap",ref:i},[e.createElementVNode("canvas",{id:`canvas${o.componentSchema.field}`,onMousedown:j,onMousemove:q,onMouseup:R},null,40,O)],512),e.createElementVNode("div",L,[t[1]||(t[1]=e.createElementVNode("div",{class:"remark"},null,-1)),e.createElementVNode("div",$,[e.createVNode(e.unref(S),{type:"info",size:"mini",onClick:P,onTouch:P},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("rewrite")),1)]),_:1}),e.createVNode(e.unref(S),{type:"primary",size:"mini",onClick:b,onTouch:b},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("confirm")),1)]),_:1})])])])]),_:1},8,["modelValue","title"])]))}},J=I._export_sfc(G,[["__scopeId","data-v-b0e855ca"]]);exports.default=J;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("./index-CrV5FaWU.cjs"),a=require("./axios-B8aFvCWj.cjs"),k=require("./index-Cq6eLpKZ.cjs"),g=["title"],v={class:"epic-attr-input"},P=e.defineComponent({__name:"styleView",setup(b){const{t:n}=k.useLocale(),d=e.inject("designer"),i=e.inject("pageSchema"),u=e.inject("revoke"),s=[{label:n("width"),type:"EInputSize",field:"componentProps.style.width"},{label:n("height"),type:"EInputSize",field:"componentProps.style.height"},{label:n("padding"),type:"EInputSize",field:"componentProps.style.padding"},{label:n("margin"),type:"EInputSize",field:"componentProps.style.margin"},{label:n("backgroundColor"),type:"color-picker",field:"componentProps.style.backgroundColor",componentProps:{type:"color",style:{}}},{label:n("fontColor"),type:"color-picker",field:"componentProps.style.color",componentProps:{type:"color",style:{}}}],r=e.computed(()=>d.state.checkedNode);function y(t){var l;return typeof t.show=="boolean"?t.show:((l=t.show)==null?void 0:l.call(t,{values:r.value}))??!0}function h(t,l,c,o=r.value){typeof c.onChange=="function"&&c.onChange({value:t,values:o,componentStyles:s}),c.changeSync?a.setValueByPath(o,l,t):e.nextTick(()=>{a.setValueByPath(o,l,t)}),u.push(i.schemas,n("editComponentProperties"))}return(t,l)=>{var c;return e.openBlock(),e.createElementBlock("div",{class:"epic-style-view",key:(c=r.value)==null?void 0:c.id},[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(s,o=>{var p;return e.createElementVNode("div",{key:o.field},[y(o)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["epic-attr-item",o.layout])},[o.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:"epic-attr-label",title:o.label},e.toDisplayString(o.label),9,g)):e.createCommentVNode("",!0),e.createElementVNode("div",v,[e.createVNode(e.unref(m._sfc_main),{componentSchema:{...o,componentProps:{...o.componentProps,...o.field==="componentProps.defaultValue"?(p=r.value)==null?void 0:p.componentProps:{},input:!1,field:void 0,hidden:!1},show:!0,noFormItem:!0},"model-value":e.unref(a.getValueByPath)(o.editData??r.value,o.field),"onUpdate:modelValue":f=>h(f,o.field,o,o.editData)},null,8,["componentSchema","model-value","onUpdate:modelValue"])])],2)):e.createCommentVNode("",!0)])}),64))])}}});exports.default=P;
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { defineComponent as _, inject as c, computed as b, openBlock as s, createElementBlock as r, Fragment as S, renderList as V, createElementVNode as i, normalizeClass as w, toDisplayString as C, createCommentVNode as u, createVNode as E, unref as f, nextTick as z } from "vue";
|
|
2
|
-
import { _ as I } from "./index-BULuVnVl.js";
|
|
3
|
-
import { j as N, s as y } from "./axios-Bb3STC1u.js";
|
|
4
|
-
import { u as B } from "./index-Dg7MK40D.js";
|
|
5
|
-
const x = ["title"], j = { class: "epic-attr-input" }, $ = /* @__PURE__ */ _({
|
|
6
|
-
__name: "styleView",
|
|
7
|
-
setup(F) {
|
|
8
|
-
const { t } = B(), h = c("designer"), m = c("pageSchema"), g = c("revoke"), p = [
|
|
9
|
-
{
|
|
10
|
-
label: t("width"),
|
|
11
|
-
type: "EInputSize",
|
|
12
|
-
field: "componentProps.style.width"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
label: t("height"),
|
|
16
|
-
type: "EInputSize",
|
|
17
|
-
field: "componentProps.style.height"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
label: t("padding"),
|
|
21
|
-
type: "EInputSize",
|
|
22
|
-
field: "componentProps.style.padding"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
label: t("margin"),
|
|
26
|
-
type: "EInputSize",
|
|
27
|
-
field: "componentProps.style.margin"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
label: t("backgroundColor"),
|
|
31
|
-
type: "color-picker",
|
|
32
|
-
field: "componentProps.style.backgroundColor",
|
|
33
|
-
componentProps: {
|
|
34
|
-
type: "color",
|
|
35
|
-
style: {
|
|
36
|
-
// width: '60px'
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
label: t("fontColor"),
|
|
42
|
-
type: "color-picker",
|
|
43
|
-
field: "componentProps.style.color",
|
|
44
|
-
componentProps: {
|
|
45
|
-
type: "color",
|
|
46
|
-
style: {}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
], a = b(() => h.state.checkedNode);
|
|
50
|
-
function v(o) {
|
|
51
|
-
var n;
|
|
52
|
-
return typeof o.show == "boolean" ? o.show : ((n = o.show) == null ? void 0 : n.call(o, { values: a.value })) ?? !0;
|
|
53
|
-
}
|
|
54
|
-
function k(o, n, l, e = a.value) {
|
|
55
|
-
typeof l.onChange == "function" && l.onChange({ value: o, values: e, componentStyles: p }), l.changeSync ? y(e, n, o) : z(() => {
|
|
56
|
-
y(e, n, o);
|
|
57
|
-
}), g.push(m.schemas, t("editComponentProperties"));
|
|
58
|
-
}
|
|
59
|
-
return (o, n) => {
|
|
60
|
-
var l;
|
|
61
|
-
return s(), r("div", {
|
|
62
|
-
class: "epic-style-view",
|
|
63
|
-
key: (l = a.value) == null ? void 0 : l.id
|
|
64
|
-
}, [
|
|
65
|
-
(s(), r(S, null, V(p, (e) => {
|
|
66
|
-
var d;
|
|
67
|
-
return i("div", {
|
|
68
|
-
key: e.field
|
|
69
|
-
}, [
|
|
70
|
-
v(e) ? (s(), r("div", {
|
|
71
|
-
key: 0,
|
|
72
|
-
class: w(["epic-attr-item", e.layout])
|
|
73
|
-
}, [
|
|
74
|
-
e.label ? (s(), r("div", {
|
|
75
|
-
key: 0,
|
|
76
|
-
class: "epic-attr-label",
|
|
77
|
-
title: e.label
|
|
78
|
-
}, C(e.label), 9, x)) : u("", !0),
|
|
79
|
-
i("div", j, [
|
|
80
|
-
E(f(I), {
|
|
81
|
-
componentSchema: {
|
|
82
|
-
...e,
|
|
83
|
-
componentProps: {
|
|
84
|
-
...e.componentProps,
|
|
85
|
-
...e.field === "componentProps.defaultValue" ? (d = a.value) == null ? void 0 : d.componentProps : {},
|
|
86
|
-
input: !1,
|
|
87
|
-
field: void 0,
|
|
88
|
-
hidden: !1
|
|
89
|
-
},
|
|
90
|
-
show: !0,
|
|
91
|
-
noFormItem: !0
|
|
92
|
-
},
|
|
93
|
-
"model-value": f(N)(e.editData ?? a.value, e.field),
|
|
94
|
-
"onUpdate:modelValue": (P) => k(P, e.field, e, e.editData)
|
|
95
|
-
}, null, 8, ["componentSchema", "model-value", "onUpdate:modelValue"])
|
|
96
|
-
])
|
|
97
|
-
], 2)) : u("", !0)
|
|
98
|
-
]);
|
|
99
|
-
}), 64))
|
|
100
|
-
]);
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
export {
|
|
105
|
-
$ as default
|
|
106
|
-
};
|
package/dist/table-CnBJm7Bx.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { defineComponent as a, h as m, renderSlot as c } from "vue";
|
|
2
|
-
const l = a({
|
|
3
|
-
props: {
|
|
4
|
-
componentSchema: {
|
|
5
|
-
type: Object,
|
|
6
|
-
require: !0,
|
|
7
|
-
default: () => ({})
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
setup(e, { slots: t }) {
|
|
11
|
-
return () => {
|
|
12
|
-
var o;
|
|
13
|
-
const n = {
|
|
14
|
-
...e.componentSchema,
|
|
15
|
-
title: ((o = e.componentSchema) == null ? void 0 : o.label) ?? ""
|
|
16
|
-
}, d = n.children;
|
|
17
|
-
return delete n.children, m(
|
|
18
|
-
"section",
|
|
19
|
-
{
|
|
20
|
-
style: {
|
|
21
|
-
border: "1px dashed #333",
|
|
22
|
-
padding: "8px"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
default: () => [
|
|
27
|
-
c(
|
|
28
|
-
t,
|
|
29
|
-
"edit-node",
|
|
30
|
-
{},
|
|
31
|
-
() => d.map(
|
|
32
|
-
(r) => c(t, "node", { componentSchema: r })
|
|
33
|
-
)
|
|
34
|
-
)
|
|
35
|
-
]
|
|
36
|
-
}
|
|
37
|
-
);
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
export {
|
|
42
|
-
l as default
|
|
43
|
-
};
|
package/dist/table-DM2-xHlv.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),l=e.defineComponent({props:{componentSchema:{type:Object,require:!0,default:()=>({})}},setup(t,{slots:n}){return()=>{var r;const o={...t.componentSchema,title:((r=t.componentSchema)==null?void 0:r.label)??""},c=o.children;return delete o.children,e.h("section",{style:{border:"1px dashed #333",padding:"8px"}},{default:()=>[e.renderSlot(n,"edit-node",{},()=>c.map(d=>e.renderSlot(n,"node",{componentSchema:d})))]})}}});exports.default=l;
|
package/dist/text-C-52xLjs.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { defineComponent as o, h as r } from "vue";
|
|
2
|
-
const m = o({
|
|
3
|
-
props: {
|
|
4
|
-
componentSchema: {
|
|
5
|
-
type: Object,
|
|
6
|
-
required: !0,
|
|
7
|
-
default: () => ({})
|
|
8
|
-
}
|
|
9
|
-
},
|
|
10
|
-
setup(t, { attrs: c, slots: a }) {
|
|
11
|
-
return () => {
|
|
12
|
-
var n;
|
|
13
|
-
const e = {
|
|
14
|
-
...t.componentSchema,
|
|
15
|
-
header: ((n = t.componentSchema) == null ? void 0 : n.label) ?? ""
|
|
16
|
-
};
|
|
17
|
-
return delete e.children, r(
|
|
18
|
-
"div",
|
|
19
|
-
{
|
|
20
|
-
...e,
|
|
21
|
-
style: {
|
|
22
|
-
textAlign: e.position,
|
|
23
|
-
fontSize: e.fontSize + "px"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
e.label
|
|
27
|
-
);
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
export {
|
|
32
|
-
m as default
|
|
33
|
-
};
|
package/dist/text-X9fl5oe8.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("vue"),r=o.defineComponent({props:{componentSchema:{type:Object,required:!0,default:()=>({})}},setup(t,{attrs:c,slots:l}){return()=>{var n;const e={...t.componentSchema,header:((n=t.componentSchema)==null?void 0:n.label)??""};return delete e.children,o.h("div",{...e,style:{textAlign:e.position,fontSize:e.fontSize+"px"}},e.label)}}});exports.default=r;
|
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
import { defineComponent as w, inject as p, computed as B, h as T, openBlock as u, createElementBlock as K, normalizeClass as N, unref as i, createElementVNode as S, createVNode as k, createCommentVNode as I, createBlock as V, mergeProps as j, withCtx as D, Fragment as z, renderList as H, useSlots as M, provide as b, ref as P, withDirectives as q, vShow as F } from "vue";
|
|
2
|
-
import { _ as $ } from "./icon.vue_vue_type_script_setup_true_lang-D3QdcReY.js";
|
|
3
|
-
import { p as E } from "./axios-Bb3STC1u.js";
|
|
4
|
-
import { d as G } from "./vuedraggable.umd-D2S7Eo7p.js";
|
|
5
|
-
const U = /* @__PURE__ */ w({
|
|
6
|
-
name: "ETreeNodeItem",
|
|
7
|
-
__name: "treeNodeItem",
|
|
8
|
-
props: {
|
|
9
|
-
schema: {}
|
|
10
|
-
},
|
|
11
|
-
setup(_) {
|
|
12
|
-
const s = _, m = p("slots", {}), g = p("pageSchema", {}), l = p("expandedKeys"), x = p("treeProps"), f = p("selectedKeys"), d = p("handleSelect"), v = B(() => l.value.includes(s.schema.id ?? "")), y = w({
|
|
13
|
-
setup() {
|
|
14
|
-
return () => {
|
|
15
|
-
var t;
|
|
16
|
-
return T(
|
|
17
|
-
"span",
|
|
18
|
-
{
|
|
19
|
-
class: {
|
|
20
|
-
text: !0,
|
|
21
|
-
hover: x.hoverKey === s.schema.id,
|
|
22
|
-
checked: f.value.includes(s.schema.id)
|
|
23
|
-
},
|
|
24
|
-
onClick: () => d(s.schema.id, s.schema)
|
|
25
|
-
},
|
|
26
|
-
((t = m["tree-node"]) == null ? void 0 : t.call(m, s)) ?? T(
|
|
27
|
-
"span",
|
|
28
|
-
{ class: "epic-text-padding flex" },
|
|
29
|
-
{
|
|
30
|
-
default: () => {
|
|
31
|
-
var e;
|
|
32
|
-
return [
|
|
33
|
-
T(
|
|
34
|
-
"span",
|
|
35
|
-
{ class: "max-w-full truncate" },
|
|
36
|
-
s.schema.label ?? ((e = E.getComponentConfingByType(s.schema.type)) == null ? void 0 : e.defaultSchema.label)
|
|
37
|
-
),
|
|
38
|
-
T(
|
|
39
|
-
"span",
|
|
40
|
-
{ class: "epic-node-type-text flex-1 w-0 truncate" },
|
|
41
|
-
s.schema.id
|
|
42
|
-
)
|
|
43
|
-
];
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
)
|
|
47
|
-
);
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
function c() {
|
|
52
|
-
const t = s.schema.id;
|
|
53
|
-
if (!t)
|
|
54
|
-
return !1;
|
|
55
|
-
l.value.includes(t) ? l.value = l.value.filter((e) => e !== t) : l.value.push(t);
|
|
56
|
-
}
|
|
57
|
-
function o() {
|
|
58
|
-
var e;
|
|
59
|
-
const t = s.schema.id;
|
|
60
|
-
if (!t || !((e = s.schema.children) != null && e.length))
|
|
61
|
-
return !1;
|
|
62
|
-
l.value.push(t);
|
|
63
|
-
}
|
|
64
|
-
return o(), (t, e) => {
|
|
65
|
-
var n, r, h, a, C;
|
|
66
|
-
return u(), K("li", {
|
|
67
|
-
class: N(["epic-tree-node", {
|
|
68
|
-
expanded: (n = s.schema.children) == null ? void 0 : n.length,
|
|
69
|
-
"level-1": s.schema.id === ((r = i(g).schemas[0]) == null ? void 0 : r.id)
|
|
70
|
-
}])
|
|
71
|
-
}, [
|
|
72
|
-
S("a", null, [
|
|
73
|
-
(h = s.schema.children) != null && h.length && s.schema.id !== ((a = i(g).schemas[0]) == null ? void 0 : a.id) ? (u(), K("span", {
|
|
74
|
-
key: 0,
|
|
75
|
-
class: N(["icon-expanded", { expanded: v.value }]),
|
|
76
|
-
onClick: c
|
|
77
|
-
}, [
|
|
78
|
-
k(i($), { name: "icon--epic--caret-right-outlined" })
|
|
79
|
-
], 2)) : I("", !0),
|
|
80
|
-
k(i(y))
|
|
81
|
-
]),
|
|
82
|
-
(C = s.schema.children) != null && C.length ? (u(), V(A, {
|
|
83
|
-
key: 0,
|
|
84
|
-
class: N(["epic-tree-sublist", { expanded: v.value }]),
|
|
85
|
-
schemas: s.schema.children,
|
|
86
|
-
"onUpdate:schemas": e[0] || (e[0] = (L) => s.schema.children = L),
|
|
87
|
-
parentSchema: s.schema
|
|
88
|
-
}, null, 8, ["class", "schemas", "parentSchema"])) : I("", !0)
|
|
89
|
-
], 2);
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
}), J = { key: 1 }, A = /* @__PURE__ */ w({
|
|
93
|
-
name: "ETreeNodes",
|
|
94
|
-
__name: "treeNodes",
|
|
95
|
-
props: {
|
|
96
|
-
schemas: {},
|
|
97
|
-
parentSchema: {}
|
|
98
|
-
},
|
|
99
|
-
emits: ["update:schemas"],
|
|
100
|
-
setup(_, { emit: s }) {
|
|
101
|
-
const m = p("designer"), g = p("pageSchema"), l = p("treeProps"), x = _, f = s, d = B({
|
|
102
|
-
get() {
|
|
103
|
-
return x.schemas;
|
|
104
|
-
},
|
|
105
|
-
set(c) {
|
|
106
|
-
f("update:schemas", c);
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
function v(c) {
|
|
110
|
-
m.setDisableHover(!0), m.setCheckedNode(d.value[c]);
|
|
111
|
-
}
|
|
112
|
-
function y(c) {
|
|
113
|
-
var o, t, e;
|
|
114
|
-
return c.id === ((o = g.schemas[0]) == null ? void 0 : o.id) || (e = (t = E.getComponentConfingByType(c.type)) == null ? void 0 : t.editConstraints) != null && e.immovable ? "unmover-item" : "draggable-item";
|
|
115
|
-
}
|
|
116
|
-
return (c, o) => {
|
|
117
|
-
var t, e, n, r, h;
|
|
118
|
-
return (n = (e = i(E).getComponentConfingByType(((t = x.parentSchema) == null ? void 0 : t.type) || "")) == null ? void 0 : e.editConstraints) != null && n.childImmovable ? (u(), K("ul", J, [
|
|
119
|
-
(u(!0), K(z, null, H(d.value, (a) => (u(), V(U, {
|
|
120
|
-
key: a.id,
|
|
121
|
-
schema: a
|
|
122
|
-
}, null, 8, ["schema"]))), 128))
|
|
123
|
-
])) : (u(), V(i(G), j({
|
|
124
|
-
key: 0,
|
|
125
|
-
modelValue: d.value,
|
|
126
|
-
"onUpdate:modelValue": o[0] || (o[0] = (a) => d.value = a),
|
|
127
|
-
"item-key": "id",
|
|
128
|
-
"component-data": {},
|
|
129
|
-
class: "epic-draggable-range"
|
|
130
|
-
}, {
|
|
131
|
-
animation: 200,
|
|
132
|
-
tag: "ul",
|
|
133
|
-
group: "tree-draggable",
|
|
134
|
-
ghostClass: "moveing",
|
|
135
|
-
draggable: ".draggable-item",
|
|
136
|
-
disabled: !i(l).draggable || ((r = d.value[0]) == null ? void 0 : r.id) === ((h = i(g).schemas[0]) == null ? void 0 : h.id)
|
|
137
|
-
}, {
|
|
138
|
-
onStart: o[1] || (o[1] = (a) => v(a.oldIndex))
|
|
139
|
-
}), {
|
|
140
|
-
item: D(({ element: a, index: C }) => [
|
|
141
|
-
(u(), V(U, {
|
|
142
|
-
class: N(y(a)),
|
|
143
|
-
key: a.id,
|
|
144
|
-
schema: a
|
|
145
|
-
}, null, 8, ["class", "schema"]))
|
|
146
|
-
]),
|
|
147
|
-
_: 1
|
|
148
|
-
}, 16, ["modelValue"]));
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
}), O = { class: "epic-tree h-full flex flex-col" }, Q = { class: "epic-search-box px-10px py-6px" }, R = { class: "epic-tree-main flex-1 overflow-auto h-0" }, W = { class: "text-center pt-42px text-gray-400" }, te = /* @__PURE__ */ w({
|
|
152
|
-
name: "ETree",
|
|
153
|
-
__name: "tree",
|
|
154
|
-
props: {
|
|
155
|
-
options: {
|
|
156
|
-
type: Array,
|
|
157
|
-
default: () => []
|
|
158
|
-
},
|
|
159
|
-
hoverKey: {
|
|
160
|
-
type: String,
|
|
161
|
-
default: ""
|
|
162
|
-
},
|
|
163
|
-
selectedKeys: {
|
|
164
|
-
type: Array,
|
|
165
|
-
default: () => []
|
|
166
|
-
},
|
|
167
|
-
draggable: {
|
|
168
|
-
type: Boolean,
|
|
169
|
-
default: !1
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
emits: ["update:selectedKeys", "nodeClick"],
|
|
173
|
-
setup(_, { emit: s }) {
|
|
174
|
-
const m = M();
|
|
175
|
-
b("slots", m);
|
|
176
|
-
const g = E.getComponent("input"), l = P(""), x = P([]), f = _, d = s, v = B({
|
|
177
|
-
get() {
|
|
178
|
-
return f.selectedKeys;
|
|
179
|
-
},
|
|
180
|
-
set(t) {
|
|
181
|
-
d("update:selectedKeys", t);
|
|
182
|
-
}
|
|
183
|
-
}), y = B({
|
|
184
|
-
get() {
|
|
185
|
-
return c(f.options, l.value);
|
|
186
|
-
},
|
|
187
|
-
set(t) {
|
|
188
|
-
console.log(t);
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
function c(t, e) {
|
|
192
|
-
const n = [];
|
|
193
|
-
return t.forEach((r) => {
|
|
194
|
-
var h;
|
|
195
|
-
if ((h = r.label) != null && h.includes(e))
|
|
196
|
-
n.push(r);
|
|
197
|
-
else if (r.children) {
|
|
198
|
-
const a = c(r.children, e);
|
|
199
|
-
if (a.length > 0) {
|
|
200
|
-
const C = { ...r };
|
|
201
|
-
C.children = a, n.push(C);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}), n;
|
|
205
|
-
}
|
|
206
|
-
function o(t, e) {
|
|
207
|
-
v.value = [t], d("nodeClick", { id: t, componentSchema: e });
|
|
208
|
-
}
|
|
209
|
-
return b("expandedKeys", x), b("selectedKeys", v), b("treeProps", f), b("handleSelect", o), (t, e) => (u(), K("div", O, [
|
|
210
|
-
S("div", Q, [
|
|
211
|
-
k(i(g), {
|
|
212
|
-
placeholder: "搜索节点",
|
|
213
|
-
clearable: "",
|
|
214
|
-
allowClear: "",
|
|
215
|
-
modelValue: l.value,
|
|
216
|
-
"onUpdate:modelValue": e[0] || (e[0] = (n) => l.value = n),
|
|
217
|
-
value: l.value,
|
|
218
|
-
"onUpdate:value": e[1] || (e[1] = (n) => l.value = n)
|
|
219
|
-
}, {
|
|
220
|
-
prefix: D(() => [
|
|
221
|
-
k(i($), { name: "icon--epic--search-rounded" })
|
|
222
|
-
]),
|
|
223
|
-
_: 1
|
|
224
|
-
}, 8, ["modelValue", "value"])
|
|
225
|
-
]),
|
|
226
|
-
S("div", R, [
|
|
227
|
-
S("ul", null, [
|
|
228
|
-
k(A, {
|
|
229
|
-
schemas: y.value,
|
|
230
|
-
"onUpdate:schemas": e[2] || (e[2] = (n) => y.value = n)
|
|
231
|
-
}, null, 8, ["schemas"])
|
|
232
|
-
]),
|
|
233
|
-
q(S("div", W, "没有查询到的数据", 512), [
|
|
234
|
-
[F, !y.value.length]
|
|
235
|
-
])
|
|
236
|
-
])
|
|
237
|
-
]));
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
|
-
export {
|
|
241
|
-
te as _
|
|
242
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),C=require("./icon.vue_vue_type_script_setup_true_lang-DJbUD5AQ.cjs"),k=require("./axios-B8aFvCWj.cjs"),S=require("./vuedraggable.umd-BqhSJIAi.cjs"),_=e.defineComponent({name:"ETreeNodeItem",__name:"treeNodeItem",props:{schema:{}},setup(x){const a=x,u=e.inject("slots",{}),m=e.inject("pageSchema",{}),c=e.inject("expandedKeys"),v=e.inject("treeProps"),h=e.inject("selectedKeys"),i=e.inject("handleSelect"),g=e.computed(()=>c.value.includes(a.schema.id??"")),f=e.defineComponent({setup(){return()=>{var n;return e.h("span",{class:{text:!0,hover:v.hoverKey===a.schema.id,checked:h.value.includes(a.schema.id)},onClick:()=>i(a.schema.id,a.schema)},((n=u["tree-node"])==null?void 0:n.call(u,a))??e.h("span",{class:"epic-text-padding flex"},{default:()=>{var t;return[e.h("span",{class:"max-w-full truncate"},a.schema.label??((t=k.pluginManager.getComponentConfingByType(a.schema.type))==null?void 0:t.defaultSchema.label)),e.h("span",{class:"epic-node-type-text flex-1 w-0 truncate"},a.schema.id)]}}))}}});function o(){const n=a.schema.id;if(!n)return!1;c.value.includes(n)?c.value=c.value.filter(t=>t!==n):c.value.push(n)}function r(){var t;const n=a.schema.id;if(!n||!((t=a.schema.children)!=null&&t.length))return!1;c.value.push(n)}return r(),(n,t)=>{var l,d,p,s,y;return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["epic-tree-node",{expanded:(l=a.schema.children)==null?void 0:l.length,"level-1":a.schema.id===((d=e.unref(m).schemas[0])==null?void 0:d.id)}])},[e.createElementVNode("a",null,[(p=a.schema.children)!=null&&p.length&&a.schema.id!==((s=e.unref(m).schemas[0])==null?void 0:s.id)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["icon-expanded",{expanded:g.value}]),onClick:o},[e.createVNode(e.unref(C._sfc_main),{name:"icon--epic--caret-right-outlined"})],2)):e.createCommentVNode("",!0),e.createVNode(e.unref(f))]),(y=a.schema.children)!=null&&y.length?(e.openBlock(),e.createBlock(B,{key:0,class:e.normalizeClass(["epic-tree-sublist",{expanded:g.value}]),schemas:a.schema.children,"onUpdate:schemas":t[0]||(t[0]=b=>a.schema.children=b),parentSchema:a.schema},null,8,["class","schemas","parentSchema"])):e.createCommentVNode("",!0)],2)}}}),N={key:1},B=e.defineComponent({name:"ETreeNodes",__name:"treeNodes",props:{schemas:{},parentSchema:{}},emits:["update:schemas"],setup(x,{emit:a}){const u=e.inject("designer"),m=e.inject("pageSchema"),c=e.inject("treeProps"),v=x,h=a,i=e.computed({get(){return v.schemas},set(o){h("update:schemas",o)}});function g(o){u.setDisableHover(!0),u.setCheckedNode(i.value[o])}function f(o){var r,n,t;return o.id===((r=m.schemas[0])==null?void 0:r.id)||(t=(n=k.pluginManager.getComponentConfingByType(o.type))==null?void 0:n.editConstraints)!=null&&t.immovable?"unmover-item":"draggable-item"}return(o,r)=>{var n,t,l,d,p;return(l=(t=e.unref(k.pluginManager).getComponentConfingByType(((n=v.parentSchema)==null?void 0:n.type)||""))==null?void 0:t.editConstraints)!=null&&l.childImmovable?(e.openBlock(),e.createElementBlock("ul",N,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,s=>(e.openBlock(),e.createBlock(_,{key:s.id,schema:s},null,8,["schema"]))),128))])):(e.openBlock(),e.createBlock(e.unref(S.draggable),e.mergeProps({key:0,modelValue:i.value,"onUpdate:modelValue":r[0]||(r[0]=s=>i.value=s),"item-key":"id","component-data":{},class:"epic-draggable-range"},{animation:200,tag:"ul",group:"tree-draggable",ghostClass:"moveing",draggable:".draggable-item",disabled:!e.unref(c).draggable||((d=i.value[0])==null?void 0:d.id)===((p=e.unref(m).schemas[0])==null?void 0:p.id)},{onStart:r[1]||(r[1]=s=>g(s.oldIndex))}),{item:e.withCtx(({element:s,index:y})=>[(e.openBlock(),e.createBlock(_,{class:e.normalizeClass(f(s)),key:s.id,schema:s},null,8,["class","schema"]))]),_:1},16,["modelValue"]))}}}),V={class:"epic-tree h-full flex flex-col"},E={class:"epic-search-box px-10px py-6px"},K={class:"epic-tree-main flex-1 overflow-auto h-0"},T={class:"text-center pt-42px text-gray-400"},j=e.defineComponent({name:"ETree",__name:"tree",props:{options:{type:Array,default:()=>[]},hoverKey:{type:String,default:""},selectedKeys:{type:Array,default:()=>[]},draggable:{type:Boolean,default:!1}},emits:["update:selectedKeys","nodeClick"],setup(x,{emit:a}){const u=e.useSlots();e.provide("slots",u);const m=k.pluginManager.getComponent("input"),c=e.ref(""),v=e.ref([]),h=x,i=a,g=e.computed({get(){return h.selectedKeys},set(n){i("update:selectedKeys",n)}}),f=e.computed({get(){return o(h.options,c.value)},set(n){console.log(n)}});function o(n,t){const l=[];return n.forEach(d=>{var p;if((p=d.label)!=null&&p.includes(t))l.push(d);else if(d.children){const s=o(d.children,t);if(s.length>0){const y={...d};y.children=s,l.push(y)}}}),l}function r(n,t){g.value=[n],i("nodeClick",{id:n,componentSchema:t})}return e.provide("expandedKeys",v),e.provide("selectedKeys",g),e.provide("treeProps",h),e.provide("handleSelect",r),(n,t)=>(e.openBlock(),e.createElementBlock("div",V,[e.createElementVNode("div",E,[e.createVNode(e.unref(m),{placeholder:"搜索节点",clearable:"",allowClear:"",modelValue:c.value,"onUpdate:modelValue":t[0]||(t[0]=l=>c.value=l),value:c.value,"onUpdate:value":t[1]||(t[1]=l=>c.value=l)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(C._sfc_main),{name:"icon--epic--search-rounded"})]),_:1},8,["modelValue","value"])]),e.createElementVNode("div",K,[e.createElementVNode("ul",null,[e.createVNode(B,{schemas:f.value,"onUpdate:schemas":t[2]||(t[2]=l=>f.value=l)},null,8,["schemas"])]),e.withDirectives(e.createElementVNode("div",T,"没有查询到的数据",512),[[e.vShow,!f.value.length]])])]))}});exports._sfc_main=j;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { defineComponent as w, ref as E, watch as u, inject as U, computed as b, h as t, nextTick as x } from "vue";
|
|
2
|
-
import { ElUpload as V, ElButton as y, ElMessage as C } from "element-plus";
|
|
3
|
-
import { u as P } from "./index-Dg7MK40D.js";
|
|
4
|
-
const { t: r } = P(), j = w({
|
|
5
|
-
props: {
|
|
6
|
-
modelValue: {
|
|
7
|
-
type: Array,
|
|
8
|
-
default: () => []
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
emits: ["update:modelValue"],
|
|
12
|
-
setup(s, { emit: d, attrs: i }) {
|
|
13
|
-
const l = E([]);
|
|
14
|
-
u(l, (e) => {
|
|
15
|
-
d("update:modelValue", e);
|
|
16
|
-
});
|
|
17
|
-
const p = U("disabled", { value: !1 });
|
|
18
|
-
u(
|
|
19
|
-
() => s.modelValue,
|
|
20
|
-
(e) => {
|
|
21
|
-
if (e != null && e.length > 0 && l.value != null) {
|
|
22
|
-
if (l.value === e) return;
|
|
23
|
-
l.value.length = 0, l.value.push(...e);
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
{ deep: !0, immediate: !0 }
|
|
27
|
-
);
|
|
28
|
-
const c = (e, o) => {
|
|
29
|
-
x(() => {
|
|
30
|
-
l.value = o;
|
|
31
|
-
});
|
|
32
|
-
}, f = (e) => {
|
|
33
|
-
var a, n;
|
|
34
|
-
let o = e.url || ((n = (a = e == null ? void 0 : e.response) == null ? void 0 : a.data) == null ? void 0 : n.url);
|
|
35
|
-
window.open(o);
|
|
36
|
-
}, m = (e) => {
|
|
37
|
-
}, h = (e, o, a) => {
|
|
38
|
-
console.log(a);
|
|
39
|
-
}, v = (e, o, a) => {
|
|
40
|
-
C.error(r("uploadFailed")), console.error(e);
|
|
41
|
-
}, g = b(() => ({
|
|
42
|
-
...i,
|
|
43
|
-
"file-list": l.value,
|
|
44
|
-
onBeforeUpload: m,
|
|
45
|
-
onChange: c,
|
|
46
|
-
onSuccess: h,
|
|
47
|
-
onError: v,
|
|
48
|
-
onPreview: f
|
|
49
|
-
}));
|
|
50
|
-
return () => t("div", null, {
|
|
51
|
-
default: () => [
|
|
52
|
-
t(V, g.value, {
|
|
53
|
-
default: () => [
|
|
54
|
-
t(
|
|
55
|
-
y,
|
|
56
|
-
{
|
|
57
|
-
disabled: p.value
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
default: () => [
|
|
61
|
-
t("span", {
|
|
62
|
-
class: "icon--epic icon--epic--cloud-upload-outlined text-lg",
|
|
63
|
-
style: { "margin-right": "2px" }
|
|
64
|
-
}),
|
|
65
|
-
t("span", null, { default: () => r("fileUpload") })
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
]
|
|
70
|
-
})
|
|
71
|
-
]
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
export {
|
|
76
|
-
j as default
|
|
77
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),a=require("element-plus"),b=require("./index-Cq6eLpKZ.cjs"),{t:r}=b.useLocale(),w=l.defineComponent({props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(s,{emit:d,attrs:i}){const o=l.ref([]);l.watch(o,e=>{d("update:modelValue",e)});const c=l.inject("disabled",{value:!1});l.watch(()=>s.modelValue,e=>{if(e!=null&&e.length>0&&o.value!=null){if(o.value===e)return;o.value.length=0,o.value.push(...e)}},{deep:!0,immediate:!0});const p=(e,t)=>{l.nextTick(()=>{o.value=t})},f=e=>{var n,u;let t=e.url||((u=(n=e==null?void 0:e.response)==null?void 0:n.data)==null?void 0:u.url);window.open(t)},h=e=>{},v=(e,t,n)=>{console.log(n)},g=(e,t,n)=>{a.ElMessage.error(r("uploadFailed")),console.error(e)},m=l.computed(()=>({...i,"file-list":o.value,onBeforeUpload:h,onChange:p,onSuccess:v,onError:g,onPreview:f}));return()=>l.h("div",null,{default:()=>[l.h(a.ElUpload,m.value,{default:()=>[l.h(a.ElButton,{disabled:c.value},{default:()=>[l.h("span",{class:"icon--epic icon--epic--cloud-upload-outlined text-lg",style:{"margin-right":"2px"}}),l.h("span",null,{default:()=>r("fileUpload")})]})]})]})}});exports.default=w;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),t=require("element-plus"),U=require("./index-Cq6eLpKZ.cjs"),{t:s}=U.useLocale(),V=l.defineComponent({props:{modelValue:{type:Array,default:()=>[]}},emits:["update:modelValue"],setup(f,{emit:g,attrs:v}){const o=l.ref([]);l.inject("disabled",{value:!1});const n=l.ref(""),i=l.ref(!1),d=e=>{i.value=e};l.watch(o,e=>{g("update:modelValue",e)}),l.watch(()=>f.modelValue,e=>{if(e!=null&&e.length>0&&o.value!=null){if(o.value===e)return;o.value.length=0,o.value.push(...e)}},{deep:!0,immediate:!0});const h=(e,r)=>{l.nextTick(()=>{u?(o.value=r.filter(a=>{var c,p;return((c=a==null?void 0:a.response)==null?void 0:c.code)===200||((p=a==null?void 0:a.response)==null?void 0:p.code)===201}),u=!1):o.value=r})};let u=!1;const m=(e,r,a)=>{e.code!==200&&(t.ElMessage.error(s("uploadFailed")),u=!0),console.log(a)},E=(e,r,a)=>{t.ElMessage.error(s("uploadFailed")),console.error(e)},b=e=>{},x=l.computed(()=>({...v,"file-list":o.value,"list-type":"picture-card",accept:"image/gif,image/jpeg,image/jpg,image/png,image/svg",onBeforeUpload:b,onChange:h,onSuccess:m,onError:E,onPreview:y})),y=e=>{e.url&&(n.value=e.url,d(!0))};return()=>l.h("div",{class:"epic-upload-image"},{default:()=>[l.h(t.ElUpload,x.value,{default:()=>[l.h("div",{style:{"text-align":"center"}},{default:()=>[l.h("span",{class:"icon--epic icon--epic--cloud-upload-outlined mr-2px text-lg"}),l.h("div",{class:"ant-upload-text"},{default:()=>s("clickToUpload")})]})]}),(()=>{if(i.value)return l.h(t.ElImageViewer,{urlList:[n.value],onClose:()=>{d(!1)}})})()]})}});exports.default=V;
|