epic-designer-gold 1.0.6 → 1.0.8
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-C_rnFDGo.js → attributeView-4j---k7X.js} +7 -7
- package/dist/attributeView-DOL6IUO8.cjs +1 -0
- 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-CeVV_SOj.js → index--PWf2Ut2.js} +3 -3
- package/dist/{index-CoCyrWM2.js → index-B0OgKtuT.js} +72 -71
- package/dist/{index-DWxy0GSJ.js → index-B1s67XDZ.js} +11 -15
- package/dist/index-B4sqskGf.cjs +1 -0
- package/dist/{index-DaJuXp0q.cjs → index-BBVUGri_.cjs} +1 -1
- package/dist/index-BEUYVwRA.cjs +1 -0
- package/dist/index-BHZbtFEF.cjs +1 -0
- package/dist/index-BJHU3Dzu.js +839 -0
- package/dist/{index-BpROfyMH.cjs → index-BoL2PSBk.cjs} +1 -1
- package/dist/index-CCCx1tbF.cjs +1 -0
- package/dist/index-CPkRsFQ7.cjs +1 -0
- package/dist/index-CXI_7l7O.js +1422 -0
- package/dist/{index-DK4PrvRF.cjs → index-CYxg6AdN.cjs} +1 -1
- package/dist/{index-P13z5c0g.js → index-Cctdx_Vq.js} +3 -3
- package/dist/index-CdnV7DS4.js +265 -0
- package/dist/{index-BfdYrl-Q.js → index-Cln9MN7u.js} +1 -1
- package/dist/{index-BEMPXyNN.js → index-CpTA2IRB.js} +2 -2
- package/dist/index-CpevxZqj.cjs +1 -0
- package/dist/{index-AH-Lj15r.js → index-CraRg8wh.js} +6 -6
- package/dist/{index-cElDeAm2.js → index-Cx7gKpkD.js} +2 -2
- package/dist/index-DOZPyH6X.cjs +10 -0
- package/dist/index-DYQi05p8.cjs +1 -0
- package/dist/index-Dftp7CV4.cjs +1 -0
- package/dist/index-DiQ4ZTF7.js +142 -0
- package/dist/index-DqLjoo13.cjs +1 -0
- package/dist/index-Dz59dUur.cjs +1 -0
- package/dist/{index-Ce470l1n.js → index-DzC3poxn.js} +3 -3
- package/dist/index-FgdbKgb5.cjs +1 -0
- package/dist/{index-CFZioB1O.js → index-IGxCNti8.js} +48 -28
- package/dist/index-JlyEcj-r.js +4 -0
- package/dist/index-R2r9Rw5O.cjs +1 -0
- package/dist/{index-DENcRmIy.js → index-WkZdU_zw.js} +2 -2
- package/dist/index-v2u1WTMm.cjs +1 -0
- package/dist/{index-DpF9E6J8.js → index-zxyA8Keq.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- 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-DQ8wgGyH.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-Dfqcv4Fg.js → sign-l63EYvVo.js} +21 -20
- package/dist/style.css +1 -1
- package/dist/styleView-CNmD046X.cjs +1 -0
- package/dist/styleView-DLmxP2vS.js +140 -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-B-8wkdQS.js → tree.vue_vue_type_script_setup_true_lang-BsVyMb-n.js} +2 -2
- 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-B3tV49Mm.cjs → uploadImage-CNMsK4Lh.cjs} +1 -1
- package/dist/uploadImage-DQmVV0jl.js +121 -0
- package/dist/{uploadImage-Z6Y6KN1R.js → uploadImage-VFICaVgX.js} +1 -1
- package/package.json +1 -1
- package/vite.config.ts.timestamp-1748427578982-d7ce374e905ab.mjs +78 -0
- package/dist/attributeView-CEFjPemt.cjs +0 -1
- package/dist/axios-B5oA4AjJ.cjs +0 -6
- package/dist/axios-awtfJhsA.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-B0rUZfG_.js +0 -742
- package/dist/index-BOUKAGKU.cjs +0 -1
- package/dist/index-B_BKVTct.cjs +0 -1
- package/dist/index-Ba8KVYrQ.cjs +0 -1
- package/dist/index-BnLI5N3M.cjs +0 -1
- package/dist/index-BxCrqMkz.cjs +0 -1
- package/dist/index-CBBK4Aze.cjs +0 -1
- package/dist/index-CDTcUcwY.cjs +0 -1
- package/dist/index-Cq5wbnmA.cjs +0 -1
- package/dist/index-D8olMR4m.cjs +0 -10
- package/dist/index-DfRZtELz.js +0 -4
- package/dist/index-J9twEwWw.cjs +0 -1
- package/dist/index-oMkqg9Zb.js +0 -1367
- package/dist/index-tR-Y01R8.cjs +0 -1
- package/dist/index-vzxiD3pz.cjs +0 -1
- package/dist/modal-BLOgN3us.cjs +0 -1
- package/dist/modal-UFu4bD6x.js +0 -57
- package/dist/outline-JJ0IbSzs.cjs +0 -1
- package/dist/row-BWnbt6dh.cjs +0 -1
- package/dist/sign-BBoshwS_.cjs +0 -1
- package/dist/styleView-CZEOSq2l.cjs +0 -1
- package/dist/styleView-CajgzMOm.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-BS6Anq-8.cjs +0 -1
- package/dist/uploadFile-BHn9oVA8.cjs +0 -1
- package/dist/uploadFile-D_0_6ghp.js +0 -77
- package/dist/uploadImage-4U4YGGfK.js +0 -96
- package/dist/uploadImage-C-OyUMFn.cjs +0 -1
- /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/index-tR-Y01R8.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./axios-B5oA4AjJ.cjs"),b=require("./index-BpROfyMH.cjs"),V=e.defineComponent({__name:"index",props:{modelValue:{}},emits:["update:modelValue"],setup(v,{emit:i}){const{t:p}=b.useLocale(),s=r.pluginManager.getComponent("input"),d=r.pluginManager.getComponent("select"),m=v,c=i,l=e.ref(null),t=e.ref("px"),f=[{label:"px",value:"px"},{label:"%",value:"%"},{label:"vw",value:"vw"},{label:"vh",value:"vh"},{label:"rem",value:"rem"},{label:"em",value:"em"},{label:"pt",value:"pt"}];e.watch(()=>m.modelValue,n=>{if(!n)return;if(typeof n=="number"){l.value=String(n),t.value="px";return}const u=parseFloat(n);if(isNaN(u))return l.value=null,!1;const a=/^(\d+(\.\d+)?)(px|%|vw|vh|rem|em|pt){1}$/,o=n.trim().match(a);l.value=(o==null?void 0:o[1])??null,t.value=(o==null?void 0:o[3])??""},{immediate:!0}),e.watch(()=>t.value+l.value,()=>{x()});function x(){e.nextTick(()=>c("update:modelValue",l.value?l.value+t.value:void 0))}return(n,u)=>(e.openBlock(),e.createBlock(e.unref(s),{class:"epic-input-size",modelValue:l.value,"onUpdate:modelValue":u[2]||(u[2]=a=>l.value=a),value:l.value,"onUpdate:value":u[3]||(u[3]=a=>l.value=a),type:"number",min:"0",placeholder:e.unref(p)("pleaseEnter")},{suffix:e.withCtx(()=>[e.createVNode(e.unref(d),{value:t.value,"onUpdate:value":u[0]||(u[0]=a=>t.value=a),modelValue:t.value,"onUpdate:modelValue":u[1]||(u[1]=a=>t.value=a),style:{width:"68px"},options:f},null,8,["value","modelValue"])]),_:1},8,["modelValue","value","placeholder"]))}});exports.default=V;
|
package/dist/index-vzxiD3pz.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),p=require("./axios-B5oA4AjJ.cjs"),m=require("./icon.vue_vue_type_script_setup_true_lang-DJbUD5AQ.cjs"),f={class:"epic-breadcrumb pl-4 py-2 truncate h-40px flex items-center"},h={key:0,class:"flex items-center"},v={key:0},k=["onClick","onMouseenter"],g=e.defineComponent({__name:"breadcrumb",setup(_){const t=e.inject("designer");function i(r){t.setCheckedNode(r)}return(r,n)=>(e.openBlock(),e.createElementBlock("div",f,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t).state.matched,(l,c)=>{var a;return e.openBlock(),e.createElementBlock("span",{key:c},[c>e.unref(t).state.matched.length-4?(e.openBlock(),e.createElementBlock("span",h,[e.unref(t).state.matched.length>3&&c===e.unref(t).state.matched.length-3?(e.openBlock(),e.createElementBlock("span",v,"...")):e.createCommentVNode("",!0),c!==0?(e.openBlock(),e.createBlock(e.unref(m._sfc_main),{key:1,class:"m-1",name:"icon--epic--arrow-forward-ios-rounded"})):e.createCommentVNode("",!0),e.createElementVNode("span",{class:"node-item cursor-pointer",onClick:o=>i(l),onMouseenter:e.withModifiers(o=>e.unref(t).setHoverNode(l),["stop"]),onMouseleave:n[0]||(n[0]=e.withModifiers(o=>e.unref(t).setHoverNode(null),["stop"]))},e.toDisplayString(l.label??((a=e.unref(p.pluginManager).getComponentConfingByType(l.type))==null?void 0:a.defaultSchema.label)),41,k)])):e.createCommentVNode("",!0)])}),128))]))}}),B={key:0,class:"epic-right-sidebar-container relative"},C={class:"w-308px"},b={class:"epic-actions-container"},y=["title","onClick"],N={class:"epic-sidebar-content"},E=e.defineComponent({__name:"index",setup(_){var a;const t=e.ref(!1),i=e.computed(()=>p.pluginManager.viewsContainers.rightSidebars.value.filter(o=>o.visible)),r=e.ref(0),n=e.shallowRef(null);n.value=(a=i.value[0])==null?void 0:a.component;function l(){t.value=!t.value}function c(o,s){if(r.value===s)return!1;n.value=o.component,r.value=s}return(o,s)=>n.value?(e.openBlock(),e.createElementBlock("div",B,[e.createElementVNode("div",{class:"epic-right-sidebar-hide-btn absolute left--18px top-80px cursor-pointer rounded-full flex justify-center items-center w-28px h-28px z-9",onClick:l},[e.createVNode(e.unref(m._sfc_main),{class:e.normalizeClass(["transition-all",{"rotate-180":t.value}]),name:"icon--epic--arrow-forward-ios-rounded"},null,8,["class"])]),s[0]||(s[0]=e.createElementVNode("div",{class:"w-10px"},null,-1)),e.createElementVNode("div",{class:e.normalizeClass(["epic-right-sidebar w-308px",{hide:t.value}])},[e.createElementVNode("div",C,[e.createVNode(g),e.createElementVNode("ul",b,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(u,d)=>(e.openBlock(),e.createElementBlock("li",{key:d,class:e.normalizeClass(["epic-action-item",{checked:r.value===d}]),title:u.title,onClick:V=>c(u,d)},e.toDisplayString(u.title),11,y))),128))]),e.createElementVNode("div",N,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.value)))])])],2)])):e.createCommentVNode("",!0)}});exports.default=E;
|
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-BS6Anq-8.cjs"),f=require("./axios-B5oA4AjJ.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-BBoshwS_.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),w=require("./axios-B5oA4AjJ.cjs"),p=require("element-plus"),S=require("./index-BpROfyMH.cjs"),X=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),Y={class:"sign-main"},F=["src"],O={class:"sign",style:{height:"100%",width:"100%"}},H=["id"],L={class:"btn"},$={class:"btns"},Z={__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}=S.useLocale(),P=w.pluginManager.getComponent("button"),D=w.pluginManager.getComponent("Dialog"),E=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.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 z(s.value.toDataURL("image/png"));h.value=n,E("update:modelValue",n)}async function z(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"}),k=new FormData;k.append("file",m,Date.now()+"png");let U=await w.axios({method:"post",url:"https://ess-ds.com/prod-api/center-file/file/upload",data:k,headers:{"Content-Type":"multipart/form-data",Authorization:"Bearer "+S.api.get("Admin-Token"),lang:S.api.get("saas-locale")||"zh-CN",zone:Intl.DateTimeFormat().resolvedOptions().timeZone}});return p.ElMessage({type:"success",message:l("uploadSuccess")}),U.data.data.url}catch{p.ElMessage({type:"warning",message:l("uploadFailed")}),r.value=!1}finally{r.value=!1}}const r=e.ref(!1);function I(){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 V(){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",Y,[h.value?(e.openBlock(),e.createElementBlock("img",{key:1,class:"sign-board",src:h.value,alt:"",onClick:V},null,8,F)):(e.openBlock(),e.createElementBlock("div",{key:0,class:"sign-board",onClick:V},e.toDisplayString(e.unref(l)("signaturePad")),1)),e.createVNode(e.unref(D),{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":I,draggable:!1,modal:""},{default:e.withCtx(()=>[e.createElementVNode("div",O,[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,H)],512),e.createElementVNode("div",L,[t[1]||(t[1]=e.createElementVNode("div",{class:"remark"},null,-1)),e.createElementVNode("div",$,[e.createVNode(e.unref(P),{type:"info",size:"mini",onClick:_,onTouch:_},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("rewrite")),1)]),_:1}),e.createVNode(e.unref(P),{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"])]))}},G=X._export_sfc(Z,[["__scopeId","data-v-4e3b1b32"]]);exports.default=G;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),m=require("./index-D8olMR4m.cjs"),a=require("./axios-B5oA4AjJ.cjs"),k=require("./index-BpROfyMH.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-oMkqg9Zb.js";
|
|
3
|
-
import { j as N, s as y } from "./axios-awtfJhsA.js";
|
|
4
|
-
import { u as B } from "./index-DWxy0GSJ.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 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),B=require("./icon.vue_vue_type_script_setup_true_lang-DJbUD5AQ.cjs"),C=require("./axios-B5oA4AjJ.cjs"),S=require("./vuedraggable.umd-BqhSJIAi.cjs"),N=require("./index-BpROfyMH.cjs"),_=e.defineComponent({name:"ETreeNodeItem",__name:"treeNodeItem",props:{schema:{}},setup(y){const n=y,m=e.inject("slots",{}),h=e.inject("pageSchema",{}),u=e.inject("expandedKeys"),p=e.inject("treeProps"),x=e.inject("selectedKeys"),d=e.inject("handleSelect"),g=e.computed(()=>u.value.includes(n.schema.id??"")),f=e.defineComponent({setup(){return()=>{var a;return e.h("span",{class:{text:!0,hover:p.hoverKey===n.schema.id,checked:x.value.includes(n.schema.id)},onClick:()=>d(n.schema.id,n.schema)},((a=m["tree-node"])==null?void 0:a.call(m,n))??e.h("span",{class:"epic-text-padding flex"},{default:()=>{var t;return[e.h("span",{class:"max-w-full truncate"},n.schema.label??((t=C.pluginManager.getComponentConfingByType(n.schema.type))==null?void 0:t.defaultSchema.label)),e.h("span",{class:"epic-node-type-text flex-1 w-0 truncate"},n.schema.id)]}}))}}});function o(){const a=n.schema.id;if(!a)return!1;u.value.includes(a)?u.value=u.value.filter(t=>t!==a):u.value.push(a)}function r(){var t;const a=n.schema.id;if(!a||!((t=n.schema.children)!=null&&t.length))return!1;u.value.push(a)}return r(),(a,t)=>{var s,c,i,l,v;return e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["epic-tree-node",{expanded:(s=n.schema.children)==null?void 0:s.length,"level-1":n.schema.id===((c=e.unref(h).schemas[0])==null?void 0:c.id)}])},[e.createElementVNode("a",null,[(i=n.schema.children)!=null&&i.length&&n.schema.id!==((l=e.unref(h).schemas[0])==null?void 0:l.id)?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["icon-expanded",{expanded:g.value}]),onClick:o},[e.createVNode(e.unref(B._sfc_main),{name:"icon--epic--caret-right-outlined"})],2)):e.createCommentVNode("",!0),e.createVNode(e.unref(f))]),(v=n.schema.children)!=null&&v.length?(e.openBlock(),e.createBlock(b,{key:0,class:e.normalizeClass(["epic-tree-sublist",{expanded:g.value}]),schemas:n.schema.children,"onUpdate:schemas":t[0]||(t[0]=k=>n.schema.children=k),parentSchema:n.schema},null,8,["class","schemas","parentSchema"])):e.createCommentVNode("",!0)],2)}}}),V={key:1},b=e.defineComponent({name:"ETreeNodes",__name:"treeNodes",props:{schemas:{},parentSchema:{}},emits:["update:schemas"],setup(y,{emit:n}){const m=e.inject("designer"),h=e.inject("pageSchema"),u=e.inject("treeProps"),p=y,x=n,d=e.computed({get(){return p.schemas},set(o){x("update:schemas",o)}});function g(o){m.setDisableHover(!0),m.setCheckedNode(d.value[o])}function f(o){var r,a,t;return o.id===((r=h.schemas[0])==null?void 0:r.id)||(t=(a=C.pluginManager.getComponentConfingByType(o.type))==null?void 0:a.editConstraints)!=null&&t.immovable?"unmover-item":"draggable-item"}return(o,r)=>{var a,t,s,c,i;return(s=(t=e.unref(C.pluginManager).getComponentConfingByType(((a=p.parentSchema)==null?void 0:a.type)||""))==null?void 0:t.editConstraints)!=null&&s.childImmovable?(e.openBlock(),e.createElementBlock("ul",V,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,l=>(e.openBlock(),e.createBlock(_,{key:l.id,schema:l},null,8,["schema"]))),128))])):(e.openBlock(),e.createBlock(e.unref(S.draggable),e.mergeProps({key:0,modelValue:d.value,"onUpdate:modelValue":r[0]||(r[0]=l=>d.value=l),"item-key":"id","component-data":{},class:"epic-draggable-range"},{animation:200,tag:"ul",group:"tree-draggable",ghostClass:"moveing",draggable:".draggable-item",disabled:!e.unref(u).draggable||((c=d.value[0])==null?void 0:c.id)===((i=e.unref(h).schemas[0])==null?void 0:i.id)},{onStart:r[1]||(r[1]=l=>g(l.oldIndex))}),{item:e.withCtx(({element:l,index:v})=>[(e.openBlock(),e.createBlock(_,{class:e.normalizeClass(f(l)),key:l.id,schema:l},null,8,["class","schema"]))]),_:1},16,["modelValue"]))}}}),E={class:"epic-tree h-full flex flex-col"},K={class:"epic-search-box px-10px py-6px"},T={class:"epic-tree-main flex-1 overflow-auto h-0"},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(y,{emit:n}){const{t:m}=N.useLocale(),h=e.useSlots();e.provide("slots",h);const u=C.pluginManager.getComponent("input"),p=e.ref(""),x=e.ref([]),d=y,g=n,f=e.computed({get(){return d.selectedKeys},set(t){g("update:selectedKeys",t)}}),o=e.computed({get(){return r(d.options,p.value)},set(t){console.log(t)}});function r(t,s){const c=[];return t.forEach(i=>{var l;if((l=i.label)!=null&&l.includes(s))c.push(i);else if(i.children){const v=r(i.children,s);if(v.length>0){const k={...i};k.children=v,c.push(k)}}}),c}function a(t,s){f.value=[t],g("nodeClick",{id:t,componentSchema:s})}return e.provide("expandedKeys",x),e.provide("selectedKeys",f),e.provide("treeProps",d),e.provide("handleSelect",a),(t,s)=>(e.openBlock(),e.createElementBlock("div",E,[e.createElementVNode("div",K,[e.createVNode(e.unref(u),{placeholder:e.unref(m)("searchNode"),clearable:"",allowClear:"",modelValue:p.value,"onUpdate:modelValue":s[0]||(s[0]=c=>p.value=c),value:p.value,"onUpdate:value":s[1]||(s[1]=c=>p.value=c)},{prefix:e.withCtx(()=>[e.createVNode(e.unref(B._sfc_main),{name:"icon--epic--search-rounded"})]),_:1},8,["placeholder","modelValue","value"])]),e.createElementVNode("div",T,[e.createElementVNode("ul",null,[e.createVNode(b,{schemas:o.value,"onUpdate:schemas":s[2]||(s[2]=c=>o.value=c)},null,8,["schemas"])]),e.withDirectives(e.createElementVNode("div",{class:"text-center pt-42px text-gray-400"},e.toDisplayString(e.unref(m)("noDataFound")),513),[[e.vShow,!o.value.length]])])]))}});exports._sfc_main=j;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),a=require("element-plus"),b=require("./index-BpROfyMH.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,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-DWxy0GSJ.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,96 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, ref as u, inject as C, watch as f, computed as F, h as o, nextTick as j } from "vue";
|
|
2
|
-
import { ElUpload as L, ElImageViewer as P, ElMessage as g } from "element-plus";
|
|
3
|
-
import { u as k } from "./index-DWxy0GSJ.js";
|
|
4
|
-
const { t: s } = k(), A = y({
|
|
5
|
-
props: {
|
|
6
|
-
modelValue: {
|
|
7
|
-
type: Array,
|
|
8
|
-
default: () => []
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
emits: ["update:modelValue"],
|
|
12
|
-
setup(v, { emit: m, attrs: h }) {
|
|
13
|
-
const a = u([]);
|
|
14
|
-
C("disabled", { value: !1 });
|
|
15
|
-
const n = u(""), d = u(!1), i = (e) => {
|
|
16
|
-
d.value = e;
|
|
17
|
-
};
|
|
18
|
-
f(a, (e) => {
|
|
19
|
-
m("update:modelValue", e);
|
|
20
|
-
}), f(
|
|
21
|
-
() => v.modelValue,
|
|
22
|
-
(e) => {
|
|
23
|
-
if (e != null && e.length > 0 && a.value != null) {
|
|
24
|
-
if (a.value === e) return;
|
|
25
|
-
a.value.length = 0, a.value.push(...e);
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
{ deep: !0, immediate: !0 }
|
|
29
|
-
);
|
|
30
|
-
const x = (e, r) => {
|
|
31
|
-
j(() => {
|
|
32
|
-
t ? (a.value = r.filter((l) => {
|
|
33
|
-
var c, p;
|
|
34
|
-
return ((c = l == null ? void 0 : l.response) == null ? void 0 : c.code) === 200 || ((p = l == null ? void 0 : l.response) == null ? void 0 : p.code) === 201;
|
|
35
|
-
}), t = !1) : a.value = r;
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
let t = !1;
|
|
39
|
-
const E = (e, r, l) => {
|
|
40
|
-
e.code !== 200 && (g.error(s("uploadFailed")), t = !0), console.log(l);
|
|
41
|
-
}, U = (e, r, l) => {
|
|
42
|
-
g.error(s("uploadFailed")), console.error(e);
|
|
43
|
-
}, V = (e) => {
|
|
44
|
-
}, b = F(() => ({
|
|
45
|
-
...h,
|
|
46
|
-
"file-list": a.value,
|
|
47
|
-
"list-type": "picture-card",
|
|
48
|
-
accept: "image/gif,image/jpeg,image/jpg,image/png,image/svg",
|
|
49
|
-
onBeforeUpload: V,
|
|
50
|
-
onChange: x,
|
|
51
|
-
onSuccess: E,
|
|
52
|
-
onError: U,
|
|
53
|
-
onPreview: w
|
|
54
|
-
})), w = (e) => {
|
|
55
|
-
e.url && (n.value = e.url, i(!0));
|
|
56
|
-
};
|
|
57
|
-
return () => o(
|
|
58
|
-
"div",
|
|
59
|
-
{
|
|
60
|
-
class: "epic-upload-image"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
default: () => [
|
|
64
|
-
o(L, b.value, {
|
|
65
|
-
default: () => [
|
|
66
|
-
o(
|
|
67
|
-
"div",
|
|
68
|
-
{ style: { "text-align": "center" } },
|
|
69
|
-
{
|
|
70
|
-
default: () => [
|
|
71
|
-
o("span", {
|
|
72
|
-
class: "icon--epic icon--epic--cloud-upload-outlined mr-2px text-lg"
|
|
73
|
-
}),
|
|
74
|
-
o("div", { class: "ant-upload-text" }, { default: () => s("clickToUpload") })
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
]
|
|
79
|
-
}),
|
|
80
|
-
(() => {
|
|
81
|
-
if (d.value)
|
|
82
|
-
return o(P, {
|
|
83
|
-
urlList: [n.value],
|
|
84
|
-
onClose: () => {
|
|
85
|
-
i(!1);
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
})()
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
);
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
export {
|
|
95
|
-
A as default
|
|
96
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),t=require("element-plus"),U=require("./index-BpROfyMH.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;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|