form-imagining 0.0.81-3 → 0.0.81-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/{App-92689644.js → App-51e568df.js} +1 -1
  2. package/dist/Code-79dea382.js +5 -0
  3. package/dist/Col-bb0eb4a9.js +5 -0
  4. package/dist/Collapse-f349af3b.js +5 -0
  5. package/dist/{Demo-72763d11.js → Demo-5c494f58.js} +1 -1
  6. package/dist/FX-da665b77.js +5 -0
  7. package/dist/{FormGridCopy-65aa0ed8.js → FormGridCopy-b7518ad3.js} +1 -1
  8. package/dist/GenerateForm-0254e0f6.js +5 -0
  9. package/dist/{GenerateReport-f91898b7.js → GenerateReport-66b49e5d.js} +1 -1
  10. package/dist/{HelloWorld-2bb9ab53.js → HelloWorld-97895fb2.js} +1 -1
  11. package/dist/Input-/345/210/240/351/231/{244-62e1753e.js → 244-758e7742.js} +1 -1
  12. package/dist/Label-/345/210/240/351/231/{244-4a971748.js → 244-26d5abf7.js} +1 -1
  13. package/dist/{Login-b657b118.js → Login-c950e1ae.js} +1 -1
  14. package/dist/ReportModule-61873397.js +5 -0
  15. package/dist/SqlModule-09cfc23f.js +5 -0
  16. package/dist/Table-c8ba47eb.js +5 -0
  17. package/dist/TableBtnModal-2f6cb186.js +5 -0
  18. package/dist/cTable-076918c3.js +5 -0
  19. package/dist/childForm-abde1568.js +5 -0
  20. package/dist/{cssMode-31cf2456.js → cssMode-67d4e2b5.js} +1 -1
  21. package/dist/form-imagining.js +1 -1
  22. package/dist/form-imagining.umd.cjs +1 -1
  23. package/dist/{formTest-c3564bd9.js → formTest-9b9523ff.js} +1 -1
  24. package/dist/{freemarker2-6f4c2882.js → freemarker2-3b6cd70c.js} +1 -1
  25. package/dist/{handlebars-706f1ccd.js → handlebars-60cfd616.js} +1 -1
  26. package/dist/{html-008b9d6c.js → html-bceff391.js} +1 -1
  27. package/dist/{htmlMode-9666f14f.js → htmlMode-5b84d7f2.js} +1 -1
  28. package/dist/{index-8b7161bd.js → index-301d2435.js} +1 -1
  29. package/dist/{index-5ba5ee24.js → index-71cad06d.js} +27 -27
  30. package/dist/{javascript-383f85f8.js → javascript-6bdfb757.js} +2 -2
  31. package/dist/{jsonMode-122c75cc.js → jsonMode-c297a13a.js} +1 -1
  32. package/dist/{liquid-3542c152.js → liquid-7b233fd4.js} +1 -1
  33. package/dist/{mdx-3d48c099.js → mdx-ad947eb8.js} +1 -1
  34. package/dist/{python-f3a9115c.js → python-41cdfcf5.js} +1 -1
  35. package/dist/{razor-2d35d551.js → razor-8360ae25.js} +1 -1
  36. package/dist/style.css +1 -1
  37. package/dist/{tableSelectDemo-ba504989.js → tableSelectDemo-a664ad25.js} +1 -1
  38. package/dist/{tableSelectDemo2-f6301bf8.js → tableSelectDemo2-1601a1bf.js} +1 -1
  39. package/dist/{tsMode-c9005501.js → tsMode-988e6f41.js} +1 -1
  40. package/dist/{typescript-934a9200.js → typescript-942a5ac7.js} +1 -1
  41. package/dist/{xml-202090b1.js → xml-eda92b92.js} +1 -1
  42. package/dist/{yaml-b5270145.js → yaml-439ba30f.js} +1 -1
  43. package/package.json +1 -1
  44. package/dist/Code-76aa693f.js +0 -5
  45. package/dist/Col-f3dea530.js +0 -5
  46. package/dist/Collapse-8fd3163f.js +0 -5
  47. package/dist/FX-f72b101d.js +0 -5
  48. package/dist/GenerateForm-0b198e2c.js +0 -5
  49. package/dist/ReportModule-26ae1d21.js +0 -5
  50. package/dist/SqlModule-ed2378cd.js +0 -5
  51. package/dist/Table-1241cdf6.js +0 -5
  52. package/dist/TableBtnModal-ed13e89f.js +0 -5
  53. package/dist/cTable-8c799295.js +0 -5
  54. package/dist/childForm-8367c7e7.js +0 -5
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, onMounted as r, resolveComponent as t, openBlock as n, createBlock as a, unref as c, withCtx as p, createVNode as _ } from "vue";
2
- import { z as f, R as i } from "./index-5ba5ee24.js";
2
+ import { z as f, R as i } from "./index-71cad06d.js";
3
3
  const h = /* @__PURE__ */ o({
4
4
  __name: "App",
5
5
  setup(m) {
@@ -0,0 +1,5 @@
1
+ import { s as m } from "./index-71cad06d.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import { j as m } from "./index-71cad06d.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import { k as m } from "./index-71cad06d.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, onBeforeUpdate, openBlock, createBlock, unref } from "vue";
2
- import { u as useFormStore, g as generateReportHtml, p as paginations, d as dataSource, i as initTable, b as defHttp } from "./index-5ba5ee24.js";
2
+ import { u as useFormStore, g as generateReportHtml, p as paginations, d as dataSource, i as initTable, b as defHttp } from "./index-71cad06d.js";
3
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
4
  __name: "Demo",
5
5
  props: {
@@ -0,0 +1,5 @@
1
+ import { l as m } from "./index-71cad06d.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as z, ref as J, watch as L, resolveComponent as h, openBlock as o, createElementBlock as u, createElementVNode as W, createVNode as r, unref as f, createCommentVNode as x, normalizeStyle as C, withCtx as g, Fragment as I, renderList as k, createBlock as w, normalizeClass as b } from "vue";
2
- import { u as j, D as q, V as A, F as K, C as P, o as D, q as S, M as R, _ } from "./index-5ba5ee24.js";
2
+ import { u as j, D as q, V as A, F as K, C as P, o as D, q as S, M as R, _ } from "./index-71cad06d.js";
3
3
  const H = { class: "move" }, Q = {
4
4
  key: 0,
5
5
  class: "widget-view-drag"
@@ -0,0 +1,5 @@
1
+ import { e as m } from "./index-71cad06d.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -1,4 +1,4 @@
1
- import { f } from "./index-5ba5ee24.js";
1
+ import { f } from "./index-71cad06d.js";
2
2
  import "vue";
3
3
  export {
4
4
  f as default
@@ -1,4 +1,4 @@
1
- import { _ as r } from "./index-5ba5ee24.js";
1
+ import { _ as r } from "./index-71cad06d.js";
2
2
  import "vue";
3
3
  const e = {};
4
4
  function o(t, c) {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, resolveComponent as f, openBlock as m, createBlock as v, withCtx as u, createVNode as t } from "vue";
2
- import { u as c } from "./index-5ba5ee24.js";
2
+ import { u as c } from "./index-71cad06d.js";
3
3
  const x = /* @__PURE__ */ i({
4
4
  __name: "Input-删除",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as _, resolveComponent as o, openBlock as n, createBlock as l, withCtx as i, createElementBlock as u, Fragment as d, renderList as r, createVNode as k, createTextVNode as x, toDisplayString as D, createCommentVNode as w } from "vue";
2
- import { u as U } from "./index-5ba5ee24.js";
2
+ import { u as U } from "./index-71cad06d.js";
3
3
  const L = /* @__PURE__ */ _({
4
4
  __name: "Label-删除",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { _ as r } from "./index-5ba5ee24.js";
1
+ import { _ as r } from "./index-71cad06d.js";
2
2
  import "vue";
3
3
  const t = {};
4
4
  function c(e, n) {
@@ -0,0 +1,5 @@
1
+ import { v as m } from "./index-71cad06d.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import { r as a } from "./index-71cad06d.js";
2
+ import "vue";
3
+ export {
4
+ a as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import { m as a } from "./index-71cad06d.js";
2
+ import "vue";
3
+ export {
4
+ a as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import { n as m } from "./index-71cad06d.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import { h as m } from "./index-71cad06d.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -0,0 +1,5 @@
1
+ import { a as m } from "./index-71cad06d.js";
2
+ import "vue";
3
+ export {
4
+ m as default
5
+ };
@@ -1,7 +1,7 @@
1
1
  var Le = Object.defineProperty;
2
2
  var je = (e, n, i) => n in e ? Le(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => (je(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { y as Ne } from "./index-5ba5ee24.js";
4
+ import { y as Ne } from "./index-71cad06d.js";
5
5
  import "vue";
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- import { G as a, B as o, E as m, g } from "./index-5ba5ee24.js";
1
+ import { G as a, B as o, E as m, g } from "./index-71cad06d.js";
2
2
  import "vue";
3
3
  export {
4
4
  a as default,
@@ -665,7 +665,7 @@ if (isSaved) {
665
665
  let paginations = reactive(${te});`;Q.value.variableScript+=ne}const ie=JSON.stringify(H.value.columns);return ie!="{}"&&(Q.value.variableScript+=`
666
666
  const columns=${ie};`),K+=`
667
667
  </a-form></div>`,H.value.html=K,H.value.pagScript=H.value.paginations,H.value}function getSettings(W){let C=[];if(W)for(let Q=0;Q<W.length;Q++)W[Q].actionList.forEach(H=>{const U=H.actionField,K=H.actionType;let G=`hideFields(${Q})`;switch(K){case"隐藏":G=`!hideFields(${Q})`;break}for(const X of U)C.push({name:X,actionType:K,method:G})});return C}function getSelectJsonSettingScript(W){return W&&Object.keys(W).length!=0?`let selectJsonSetting = ref<any>(${JSON.stringify(W)})
668
- getSelectJsonSetting(selectJsonSetting)`:""}const _hoisted_1$r={style:{"text-align":"left"}},_hoisted_2$k={class:"move"},_hoisted_3$g={key:0,class:"widget-view-drag"},_hoisted_4$d={key:0,class:"item-action"},_sfc_main$O=vue.defineComponent({__name:"FormVue",props:{list:{type:Array,default:[]},data:{type:Object,default:null},index:{type:String},activeIndex:{type:String}},setup(W){useFormStore();const C=W;let Q=vue.computed(()=>U(C.data)),Z=getViewData(),H=vue.ref(Z);function U(X){return vue.defineComponent({template:K(X),setup(){return{viewData:H}}})}function K(X){if(X){let ee="",te=`width:${X.width}`;return ee+=`<c-child-form style='${te}' filePath="${X.filePath}" disabled></c-child-form>`,ee}else return""}function G(X){if(C.list&&C.list.length>0){let ee=C.list.findIndex(te=>te.id==X.id);ee>-1&&C.list.splice(ee,1)}}return(X,ee)=>{const te=vue.resolveComponent("a-form-item");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$r,[vue.createElementVNode("div",_hoisted_2$k,[W.activeIndex==W.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$g,[vue.createVNode(vue.unref(DragOutlined$1),{style:{padding:"6px"}})])):vue.createCommentVNode("",!0),W.data.type=="childform"?(vue.openBlock(),vue.createBlock(te,{key:1,disabled:""},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(Q))]),_:1})):vue.createCommentVNode("",!0)]),W.activeIndex==W.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$d,[vue.createVNode(vue.unref(DeleteOutlined$1),{onClick:ee[0]||(ee[0]=ie=>G(W.data))})])):vue.createCommentVNode("",!0)])}}}),FormVue_vue_vue_type_style_index_0_scoped_c6248365_lang="",FormVue=_export_sfc(_sfc_main$O,[["__scopeId","data-v-c6248365"]]),FormVue$1=Object.freeze(Object.defineProperty({__proto__:null,default:FormVue},Symbol.toStringTag,{value:"Module"})),_withScopeId$7=W=>(vue.pushScopeId("data-v-022abcd6"),W=W(),vue.popScopeId(),W),_hoisted_1$q={class:"move"},_hoisted_2$j={key:0,class:"widget-view-drag"},_hoisted_3$f={key:0,class:"collapse-btn"},_hoisted_4$c={class:"collapse-form-list"},_hoisted_5$b=["onMousedown"],_hoisted_6$a=_withScopeId$7(()=>vue.createElementVNode("div",{class:"collapse-default-height"},null,-1)),_hoisted_7$8={key:1,class:"item-action"},_sfc_main$N=vue.defineComponent({__name:"FormCollapse",props:{list:{type:Array,default:[]},data:{type:Object,default:null},index:{type:String},activeIndex:{type:String}},emits:["childConfig","index","controlConfig"],setup(W,{emit:C}){const Q=useFormStore(),Z=W,H=vue.ref("-1"),U=C;vue.watch(()=>Z.activeIndex,(re,se)=>{H.value=re});function K(){console.log("// 开始拖拽")}function G(re){re.to.className=="collapse-drag-list"?H.value=Z.index+"-"+re.newIndex:H.value=re.newIndex,U("index",H.value)}function X(re,se,ae){H.value=se,U("childConfig",re),U("index",H.value),ae.stopPropagation(),ae.preventDefault()}function ee(re){const se=JSON.parse(JSON.stringify(re));if(Z.list&&Z.list.length>0){let ae=Z.list.findIndex(le=>le.id==re.id);ae>-1&&(se.id=guid(),se.key=guid(),Z.list.splice(ae+1,0,se))}}function te(re){if(Z.list&&Z.list.length>0){let se=Z.list.findIndex(ae=>ae.id==re.id);se>-1&&Z.list.splice(se,1)}}function ie(re){U("childConfig",re)}function ne(re){H.value=re}function oe(re){return re.draggedContext.element.type=="grid"&&console.log(re.draggedContext.element.type+"和"+re.to.className),!(re.draggedContext.element.type=="grid"&&re.to.className.includes("col-drag-list")||re.to.className.includes("row-drag-list"))}return(re,se)=>{const ae=vue.resolveComponent("svg-icon"),le=vue.resolveComponent("a-form"),ce=vue.resolveComponent("a-form-item");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createElementVNode("div",_hoisted_1$q,[W.activeIndex==W.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$j,[vue.createVNode(vue.unref(DragOutlined$1),{style:{padding:"6px"}})])):vue.createCommentVNode("",!0)]),W.data.type=="collapse"?(vue.openBlock(),vue.createBlock(ce,{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"collapsePanel",style:vue.normalizeStyle({width:W.data.width})},[vue.createElementVNode("div",{class:vue.normalizeClass([W.data.classname,"title-between"])},[vue.createElementVNode("span",null,vue.toDisplayString(W.data.header),1),W.data.showArrow?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$f,[vue.createVNode(ae,{name:"arrow",width:"24",height:"24"})])):vue.createCommentVNode("",!0)],2),vue.createElementVNode("div",_hoisted_4$c,[vue.createVNode(vue.unref(VueDraggableNext),{class:"collapse-drag-list",list:W.data.content,animation:"1000",handle:".move",group:"itxst","ghost-class":"ghost","force-fallback":!0,onStart:K,onEnd:se[0]||(se[0]=de=>G(de)),move:oe},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(W.data.content,(de,ue)=>(vue.openBlock(),vue.createBlock(le,{class:"form-container","label-col":{style:{width:vue.unref(Q).formData.config.labelWidth+"px"}}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["widget-view",{active:H.value==W.index+"-"+ue}]),onMousedown:he=>X(de,W.index+"-"+ue,he)},[de.type=="childform"?(vue.openBlock(),vue.createBlock(FormVue,{key:0,data:de,list:W.data.content,activeIndex:H.value.toString(),index:W.index+"-"+ue},null,8,["data","list","activeIndex","index"])):de.type=="table"?(vue.openBlock(),vue.createBlock(FormTable,{key:1,data:de,list:W.data.content,activeIndex:H.value.toString(),index:W.index+"-"+ue},null,8,["data","list","activeIndex","index"])):de.type=="grid"?(vue.openBlock(),vue.createBlock(FormGrid,{key:2,data:de,activeIndex:H.value.toString(),list:W.data.content,index:W.index+"-"+ue,onChildConfig:ie,onIndex:ne},null,8,["data","activeIndex","list","index"])):de.type=="tabs"?(vue.openBlock(),vue.createBlock(FormTabs,{key:3,data:de,activeIndex:H.value.toString(),list:W.data.content,index:W.index+"-"+ue,onChildConfig:ie,onIndex:ne},null,8,["data","activeIndex","list","index"])):(vue.openBlock(),vue.createBlock(FormInput,{key:4,data:de,list:W.data.content,activeIndex:H.value.toString(),index:W.index+"-"+ue},null,8,["data","list","activeIndex","index"]))],42,_hoisted_5$b)]),_:2},1032,["label-col"]))),256))]),_:1},8,["list"]),_hoisted_6$a])],4)]),_:1})):vue.createCommentVNode("",!0),W.activeIndex==W.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$8,[vue.createVNode(vue.unref(CopyOutlined$1),{style:{padding:"3px 5px"},onClick:se[1]||(se[1]=de=>ee(W.data))}),vue.createVNode(vue.unref(DeleteOutlined$1),{onClick:se[2]||(se[2]=de=>te(W.data))})])):vue.createCommentVNode("",!0)])}}}),FormCollapse_vue_vue_type_style_index_0_scoped_022abcd6_lang="",FormCollapse=_export_sfc(_sfc_main$N,[["__scopeId","data-v-022abcd6"]]),FormCollapse$1=Object.freeze(Object.defineProperty({__proto__:null,default:FormCollapse},Symbol.toStringTag,{value:"Module"})),_withScopeId$6=W=>(vue.pushScopeId("data-v-1bb7b8b6"),W=W(),vue.popScopeId(),W),_hoisted_1$p={class:"move"},_hoisted_2$i={key:0,class:"widget-view-drag"},_hoisted_3$e={class:"tab-slot"},_hoisted_4$b={class:"tab-info"},_hoisted_5$a={class:"tab-close"},_hoisted_6$9={class:"tab-form-list"},_hoisted_7$7=["onMousedown"],_hoisted_8$6=_withScopeId$6(()=>vue.createElementVNode("div",{class:"tab-default-height"},null,-1)),_hoisted_9$6={key:0,class:"item-action"},_sfc_main$M=vue.defineComponent({__name:"FormTabs",props:{list:{type:Array,default:[]},data:{type:Object,default:null},index:{type:String},activeIndex:{type:String}},emits:["childConfig","index","controlConfig"],setup(W,{emit:C}){const Q=useFormStore(),Z=W,H=vue.ref("-1"),U=C;vue.watch(()=>Z.activeIndex,(se,ae)=>{H.value=se});const K=()=>{let se=guid();Z.data.activeTabKey=se,Z.data.panes.push({title:"New Tab",content:[],key:se})},G=se=>{let ae=0;Z.data.panes.forEach((ce,de)=>{ce.key===se&&(ae=de-1)}),Z.data.panes=Z.data.panes.filter(ce=>ce.key!==se);let le;Z.data.panes.length&&Z.data.activeTabKey===se&&(ae>=0?le=Z.data.panes[ae].key:le=Z.data.panes[0].key),Z.data.activeTabKey=le};function X(){console.log("// 开始拖拽")}function ee(se,ae){se.to.className=="tab-drag-list"?H.value=Z.index+"-"+ae+"-"+se.newIndex:H.value=se.newIndex,U("index",H.value)}function te(se,ae,le){H.value=ae,U("childConfig",se),U("index",H.value),le.stopPropagation(),le.preventDefault()}function ie(se){const ae=JSON.parse(JSON.stringify(se));if(Z.list&&Z.list.length>0){let le=Z.list.findIndex(ce=>ce.id==se.id);le>-1&&(ae.id=guid(),ae.key=guid(),Z.list.splice(le+1,0,ae))}}function ne(se){if(Z.list&&Z.list.length>0){let ae=Z.list.findIndex(le=>le.id==se.id);ae>-1&&Z.list.splice(ae,1)}}function oe(se){U("childConfig",se)}function re(se){H.value=se}return(se,ae)=>{const le=vue.resolveComponent("a-button"),ce=vue.resolveComponent("a-popconfirm"),de=vue.resolveComponent("a-form"),ue=vue.resolveComponent("a-tab-pane"),he=vue.resolveComponent("a-tabs"),fe=vue.resolveComponent("a-form-item");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createElementVNode("div",_hoisted_1$p,[W.activeIndex==W.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$i,[vue.createVNode(vue.unref(DragOutlined$1),{style:{padding:"6px"}})])):vue.createCommentVNode("",!0),W.data.type=="tabs"?(vue.openBlock(),vue.createBlock(fe,{key:1},{default:vue.withCtx(()=>[vue.createVNode(he,{activeKey:W.data.activeTabKey,"onUpdate:activeKey":ae[0]||(ae[0]=ge=>W.data.activeTabKey=ge),hideAdd:"",type:W.data.tabType,style:vue.normalizeStyle({width:W.data.width})},{rightExtra:vue.withCtx(()=>[vue.createVNode(le,{class:"tabs-add-btn",onClick:K},{icon:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1))]),_:1})]),default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(W.data.panes,(ge,me)=>(vue.openBlock(),vue.createBlock(ue,{key:ge.key,closable:!1,"force-render":"",class:vue.normalizeClass({active:H.value=="pane"+me})},{tab:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$e,[vue.createElementVNode("span",_hoisted_4$b,vue.toDisplayString(ge.title),1),vue.createVNode(ce,{title:"内部组件也会一并删除,且不能撤销,确定要删除吗",onConfirm:vue.withModifiers(Ce=>G(ge.key),["stop"])},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5$a,[vue.createVNode(vue.unref(CloseOutlined$1))])]),_:2},1032,["onConfirm"])])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_6$9,[vue.createVNode(vue.unref(VueDraggableNext),{class:"tab-drag-list",list:ge.content,animation:"300",handle:".move",group:"itxst","ghost-class":"ghost","force-fallback":!0,onStart:X,onEnd:Ce=>ee(Ce,me)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ge.content,(Ce,pe)=>(vue.openBlock(),vue.createBlock(de,{class:"form-container","label-col":{style:{width:vue.unref(Q).formData.config.labelWidth+"px"}}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["widget-view",{active:H.value==W.index+"-"+me+"-"+pe}]),onMousedown:ke=>te(Ce,W.index+"-"+me+"-"+pe,ke)},[Ce.type=="childform"?(vue.openBlock(),vue.createBlock(FormVue,{key:0,data:Ce,list:ge.content,activeIndex:H.value,index:W.index+"-"+me+"-"+pe},null,8,["data","list","activeIndex","index"])):Ce.type=="table"?(vue.openBlock(),vue.createBlock(FormTable,{key:1,data:Ce,activeIndex:H.value,list:ge.content,index:W.index+"-"+me+"-"+pe},null,8,["data","activeIndex","list","index"])):Ce.type=="grid"?(vue.openBlock(),vue.createBlock(FormGrid,{key:2,data:Ce,activeIndex:H.value,list:ge.content,index:W.index+"-"+me+"-"+pe,onChildConfig:oe,onIndex:re},null,8,["data","activeIndex","list","index"])):Ce.type=="collapse"?(vue.openBlock(),vue.createBlock(FormCollapse,{key:3,data:Ce,activeIndex:H.value,list:ge.content,index:W.index+"-"+me+"-"+pe,onChildConfig:oe,onIndex:re},null,8,["data","activeIndex","list","index"])):(vue.openBlock(),vue.createBlock(FormInput,{key:4,data:Ce,list:ge.content,activeIndex:H.value,index:W.index+"-"+me+"-"+pe},null,8,["data","list","activeIndex","index"]))],42,_hoisted_7$7)]),_:2},1032,["label-col"]))),256))]),_:2},1032,["list","onEnd"]),_hoisted_8$6])]),_:2},1032,["class"]))),128))]),_:1},8,["activeKey","type","style"])]),_:1})):vue.createCommentVNode("",!0)]),W.activeIndex==W.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$6,[vue.createVNode(vue.unref(CopyOutlined$1),{style:{padding:"3px 5px"},onClick:ae[1]||(ae[1]=ge=>ie(W.data))}),vue.createVNode(vue.unref(DeleteOutlined$1),{onClick:ae[2]||(ae[2]=ge=>ne(W.data))})])):vue.createCommentVNode("",!0)])}}}),FormTabs_vue_vue_type_style_index_0_scoped_1bb7b8b6_lang="",FormTabs=_export_sfc(_sfc_main$M,[["__scopeId","data-v-1bb7b8b6"]]),FormTabs$1=Object.freeze(Object.defineProperty({__proto__:null,default:FormTabs},Symbol.toStringTag,{value:"Module"})),_hoisted_1$o={class:""},_hoisted_2$h=["onMousedown"],_sfc_main$L=vue.defineComponent({__name:"index",emits:["controlConfig"],setup(W,{emit:C}){const Q=useFormStore();let{formData:Z}=storeToRefs(Q);const H=vue.ref("-1"),U=C;function K(ne,oe,re){U("controlConfig",ne),H.value=oe,re.stopPropagation(),re.preventDefault()}function G(ne){U("controlConfig",ne)}function X(ne){H.value=ne}function ee(){H.value="-1"}function te(ne){ne.to.className=="widget-col-list"?H.value="base"+ne.newIndex:ne.to.className=="tab-drag-list"||(ne.to.className.includes("col-drag-list")||ne.to.className=="collapse-drag-list"?H.value="-1":H.value=ne.newIndex)}function ie(ne){return!(ne.draggedContext.element.type=="grid"&&ne.to.className.includes("col-drag-list")||ne.to.className.includes("row-drag-list"))}return(ne,oe)=>{const re=vue.resolveComponent("a-form");return vue.openBlock(),vue.createBlock(re,{class:"form-container","label-col":{style:{width:vue.unref(Q).formData.config.labelWidth+"px"}},labelWrap:!0},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(VueDraggableNext),{class:vue.normalizeClass(vue.unref(Z).list.length>0?"widget-form-list":"widgt-empty"),list:vue.unref(Z).list,"ghost-class":"ghost",handle:".move","force-fallback":!0,"chosen-class":"chosenClass1","drag-class":"dragClass1",animation:"1000",onStart:ee,onEnd:te,group:"itxst","fallback-class":!0,"fallback-on-body":!0,"touch-start-threshold":10,"fallback-tolerance":10,move:ie,itemKey:""},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(Z).list,(se,ae)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$o,[vue.createElementVNode("div",{class:vue.normalizeClass(["widget-col widget-view",{active:H.value==ae.toString()}]),onMousedown:le=>K(se,ae.toString(),le)},[se.type=="grid"?(vue.openBlock(),vue.createBlock(FormGrid,{key:0,data:se,list:vue.unref(Z).list,activeIndex:H.value.toString(),onChildConfig:G,onIndex:X,index:ae.toString()},null,8,["data","list","activeIndex","index"])):se.type=="table"?(vue.openBlock(),vue.createBlock(FormTable,{key:1,data:se,activeIndex:H.value.toString(),list:vue.unref(Z).list,index:ae},null,8,["data","activeIndex","list","index"])):se.type=="report"?(vue.openBlock(),vue.createBlock(FormReport,{key:2,data:se,activeIndex:H.value.toString(),index:ae},null,8,["data","activeIndex","index"])):se.type=="childform"?(vue.openBlock(),vue.createBlock(FormVue,{key:3,data:se,list:vue.unref(Z).list,activeIndex:H.value.toString(),index:ae.toString()},null,8,["data","list","activeIndex","index"])):se.type=="tabs"?(vue.openBlock(),vue.createBlock(FormTabs,{key:4,data:se,list:vue.unref(Z).list,activeIndex:H.value.toString(),onChildConfig:G,onIndex:X,index:ae.toString()},null,8,["data","list","activeIndex","index"])):se.type=="collapse"?(vue.openBlock(),vue.createBlock(FormCollapse,{key:5,data:se,list:vue.unref(Z).list,activeIndex:H.value.toString(),onChildConfig:G,onIndex:X,index:ae.toString()},null,8,["data","list","activeIndex","index"])):(vue.openBlock(),vue.createBlock(FormInput,{key:6,data:se,list:vue.unref(Z).list,activeIndex:H.value.toString(),index:ae.toString()},null,8,["data","list","activeIndex","index"]))],42,_hoisted_2$h)]))),256))]),_:1},8,["class","list"])]),_:1},8,["label-col"])}}}),index_vue_vue_type_style_index_0_scoped_95a7066b_lang="",FormDesign=_export_sfc(_sfc_main$L,[["__scopeId","data-v-95a7066b"]]),index$9=Object.freeze(Object.defineProperty({__proto__:null,default:FormDesign},Symbol.toStringTag,{value:"Module"})),_hoisted_1$n={style:{padding:"2px"}},_hoisted_2$g={style:{display:"flex","align-items":"center","margin-bottom":"5px"}},_sfc_main$K=vue.defineComponent({__name:"Grid",props:{configData:{type:Object,default:{}}},setup(W){const C=W,Q=[{label:"上",value:"top"},{label:"右",value:"right"},{label:"下",value:"bottom"},{label:"左",value:"left"}],Z=[{label:"左对齐",value:"left"},{label:"右对齐",value:"right"},{label:"顶部对齐",value:"top"}];function H(X){C.configData[X]==null?C.configData[X]=0:C.configData[X]--,C.configData[X]<0&&(C.configData[X]=0)}function U(X){C.configData[X]==null?C.configData[X]=0:C.configData[X]++}function K(){C.configData.columns.push({type:"col",key:guid(),id:guid(),options:{span:0,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[]})}function G(X){const{value:ee}=X.target;C.configData.labelPosition=ee,ee=="top"?C.configData.layout="vertical":C.configData.layout="horizontal"}return(X,ee)=>{const te=vue.resolveComponent("a-input"),ie=vue.resolveComponent("a-form-item"),ne=vue.resolveComponent("a-input-number"),oe=vue.resolveComponent("a-button"),re=vue.resolveComponent("a-divider"),se=vue.resolveComponent("a-radio-group"),ae=vue.resolveComponent("a-textarea"),le=vue.resolveComponent("a-form");return vue.openBlock(),vue.createBlock(le,{layout:"vertical",model:W.configData,autocomplete:"off"},{default:vue.withCtx(()=>[vue.createVNode(ie,{label:"字段标识",rules:[{required:!0}]},{default:vue.withCtx(()=>[vue.createVNode(te,{value:W.configData.model,"onUpdate:value":ee[0]||(ee[0]=ce=>W.configData.model=ce)},null,8,["value"])]),_:1}),vue.createVNode(ie,{label:"栅格间距"},{default:vue.withCtx(()=>[vue.createVNode(ne,{value:W.configData.options.gutter,"onUpdate:value":ee[1]||(ee[1]=ce=>W.configData.options.gutter=ce),min:0,max:30,style:{width:"50%"}},null,8,["value"]),vue.createTextVNode(" px ")]),_:1}),vue.createVNode(ie,{label:"列配置项"},{default:vue.withCtx(()=>[vue.createElementVNode("ul",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(W.configData.columns,(ce,de)=>(vue.openBlock(),vue.createElementBlock("li",{key:de},[vue.createVNode(vue.unref(MenuOutlined$1),{style:{"font-size":"14px",margin:"0px 5px",cursor:"move"}}),vue.createElementVNode("div",_hoisted_1$n,[vue.createVNode(ne,{value:ce.options.span,"onUpdate:value":ue=>ce.options.span=ue,min:0,max:24,style:{width:"150px"}},null,8,["value","onUpdate:value"])]),vue.createVNode(oe,{danger:"",shape:"circle",size:"small",style:{margin:"auto 5px"}},{icon:vue.withCtx(()=>[vue.createVNode(vue.unref(MinusOutlined$1))]),_:1})]))),128))]),vue.createVNode(oe,{type:"link",onClick:K},{default:vue.withCtx(()=>[vue.createTextVNode("添加列")]),_:1}),vue.createVNode(re,{type:"vertical"}),vue.createElementVNode("span",null,"合计:"+vue.toDisplayString(W.configData.columns.reduce((ce,de)=>ce+de.options.span,0)),1)]),_:1}),vue.createVNode(ie,{label:"栅格内边距"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(Q,(ce,de)=>vue.createElementVNode("div",_hoisted_2$g,[vue.createTextVNode(vue.toDisplayString(ce.label)+": ",1),vue.createVNode(ne,{value:W.configData[ce.value],"onUpdate:value":ue=>W.configData[ce.value]=ue,min:0},{addonBefore:vue.withCtx(()=>[vue.createVNode(vue.unref(MinusOutlined$1),{onClick:ue=>H(ce.value)},null,8,["onClick"])]),addonAfter:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1),{onClick:ue=>U(ce.value)},null,8,["onClick"])]),_:2},1032,["value","onUpdate:value"])])),64))]),_:1}),vue.createVNode(ie,{label:"标签对齐方式"},{default:vue.withCtx(()=>[vue.createVNode(se,{value:W.configData.labelPosition,"onUpdate:value":ee[2]||(ee[2]=ce=>W.configData.labelPosition=ce),"button-style":"solid","option-type":"button",options:Z,onChange:G},null,8,["value"])]),_:1}),vue.createVNode(ie,{label:"其他扩展"},{default:vue.withCtx(()=>[vue.createVNode(ae,{value:W.configData.extended,"onUpdate:value":ee[3]||(ee[3]=ce=>W.configData.extended=ce),rows:3},null,8,["value"])]),_:1})]),_:1},8,["model"])}}}),Grid_vue_vue_type_style_index_0_scoped_f249ca0f_lang="",CGrid=_export_sfc(_sfc_main$K,[["__scopeId","data-v-f249ca0f"]]),Grid=Object.freeze(Object.defineProperty({__proto__:null,default:CGrid},Symbol.toStringTag,{value:"Module"})),_sfc_main$J=vue.defineComponent({__name:"Col",props:{configData:{type:Object,default:{}}},setup(W){return(C,Q)=>{const Z=vue.resolveComponent("a-input-number"),H=vue.resolveComponent("a-form-item"),U=vue.resolveComponent("a-textarea"),K=vue.resolveComponent("a-form");return vue.openBlock(),vue.createBlock(K,{layout:"vertical",model:W.configData,autocomplete:"off"},{default:vue.withCtx(()=>[vue.createVNode(H,{label:"栅格占据的列数"},{default:vue.withCtx(()=>[vue.createVNode(Z,{value:W.configData.options.span,"onUpdate:value":Q[0]||(Q[0]=G=>W.configData.options.span=G),min:1,max:24,style:{width:"100%"}},null,8,["value"])]),_:1}),vue.createVNode(H,{label:"栅格左侧的间隔格数"},{default:vue.withCtx(()=>[vue.createVNode(Z,{value:W.configData.options.offset,"onUpdate:value":Q[1]||(Q[1]=G=>W.configData.options.offset=G),min:0,max:10,style:{width:"100%"}},null,8,["value"])]),_:1}),vue.createVNode(H,{label:"其他扩展"},{default:vue.withCtx(()=>[vue.createVNode(U,{value:W.configData.options.extended,"onUpdate:value":Q[2]||(Q[2]=G=>W.configData.options.extended=G),rows:3},null,8,["value"])]),_:1})]),_:1},8,["model"])}}}),Col=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$J},Symbol.toStringTag,{value:"Module"})),_withScopeId$5=W=>(vue.pushScopeId("data-v-04c2bf91"),W=W(),vue.popScopeId(),W),_hoisted_1$m={class:"table-column-setting"},_hoisted_2$f={class:"left"},_hoisted_3$d={class:"left-content"},_hoisted_4$a=_withScopeId$5(()=>vue.createElementVNode("br",null,null,-1)),_hoisted_5$9=_withScopeId$5(()=>vue.createElementVNode("br",null,null,-1)),_hoisted_6$8=_withScopeId$5(()=>vue.createElementVNode("br",null,null,-1)),_hoisted_7$6={class:"treeItem"},_hoisted_8$5={class:"title"},_hoisted_9$5={class:"right"},_hoisted_10$4={class:"right-content"},_hoisted_11$4={key:0},_sfc_main$I=vue.defineComponent({__name:"TableColumn",props:{configData:{type:Object,default:{}},tableColumns:{type:Object,default:[]}},emits:["update:tableColumns","ok"],setup(W,{expose:C,emit:Q}){const Z=useUserStore(),H=Empty$1.PRESENTED_IMAGE_SIMPLE,U=W,K=[{value:"input",label:"文本框"},{value:"select",label:"下拉框"}];let G=vue.ref(!1),X=vue.ref([]),ee=vue.ref([]);const te={children:"children",title:"title",key:"id",componentType:"",dic:""};let ie=vue.ref(),ne=vue.ref([]),oe=vue.ref([]),re=vue.ref([]),se={title:[{required:!0,message:"请填写标题",trigger:"change"}],width:[{pattern:/(^\d+((px)|%)?$)|(^auto$)/,message:"请填写正确的格式",trigger:"change"}]},ae=vue.ref();const le=Q;vue.watch(()=>U.tableColumns,ye=>{X.value=ce(JSON.parse(JSON.stringify(ye))),X.value.length>0&&(ae.value=X.value[0],ne.value=[ae.value.id],oe.value=ne.value)},{deep:!0,immediate:!0}),vue.watch(()=>X.value,(ye,xe)=>{ee.value=de(JSON.parse(JSON.stringify(ye)))},{deep:!0,immediate:!0}),vue.watch(()=>G.value,ye=>{ye?Ie():De()}),C({show:ue});function ce(ye){return ye.map(Je=>(Je.id||(Je.id="column-"+guid()),Je.options?Je.options.hidden==null&&(Je.options.hidden=!1):Je.options={hidden:!1},Je.children&&(Je.children=ce(Je.children)),Je))}function de(ye,xe){return ye.map(Se=>{xe?Se.fPid=xe:Se.fPid&&delete Se.fPid;let Ee=xe||Se.id;return Se.children&&(Se.children=de(Se.children,Ee)),Se})}function ue(){G.value=!0}function he(ye,xe){ae.value?ie.value.validate().then(()=>{ae.value=xe.selected?xe.node.dataRef:void 0,oe.value=ye}).catch(Je=>{ne.value=oe.value}):(ae.value=xe.selected?xe.node.dataRef:void 0,oe.value=ye)}function fe(ye){if(ye.node.dataRef){let xe=JSON.parse(JSON.stringify(re.value));xe.push(ye.node.dataRef.id),re.value=Array.from(new Set(xe))}}function ge(ye){const xe=ye.node.id,Je=ye.dragNode.id,Se=ye.node.pos.split("-"),Ee=ye.dropPosition-Number(Se[Se.length-1]),Me=(Re,$e,Ve)=>{Re.forEach((Te,je)=>{if(Te.id===$e)return Ve(Te,je,Re);if(Te.children)return Me(Te.children,$e,Ve)})},Pe=[...X.value];let Fe;if(Me(Pe,Je,(Re,$e,Ve)=>{Ve.splice($e,1),Fe=Re}),!ye.dropToGap)Me(Pe,xe,Re=>{Re.children=Re.children||[],Re.children.unshift(Fe)});else if((ye.node.children||[]).length>0&&ye.node.expanded&&Ee===1)Me(Pe,xe,Re=>{Re.children=Re.children||[],Re.children.unshift(Fe)});else{let Re=[],$e=0;Me(Pe,xe,(Ve,Te,je)=>{Re=je,$e=Te}),Ee===-1?Re.splice($e,0,Fe):Re.splice($e+1,0,Fe)}X.value=Pe}function me(ye,xe){for(let Je=0;Je<ye.length;Je++){let Se=ye[Je];if(Se.id===xe)return Se;if(Se.children&&Se.children.length>0){let Ee=me(Se.children,xe);if(Ee)return Ee}}return null}function Ce(ye,xe){for(let Je=0;Je<ye.length;Je++){if(ye[Je].id==xe){ye[Je+1]?ae.value=ye[Je+1]:ye[Je-1]?ae.value=ye[Je-1]:ae.value=void 0,ne.value=ae.value?[ae.value.id]:[],oe.value=ne.value,ye.splice(Je,1);return}ye[Je].children&&ye[Je].children.length>0&&Ce(ye[Je].children,xe)}}function pe(){let ye="newColumn";if(ae.value){ye=ae.value.dataIndex;let Je=me(ee.value,ae.value.id);if(Je.fPid){let Se=me(ee.value,Je.fPid);Se&&(ye=Se.dataIndex)}}let xe={id:"column-"+guid(),title:"新增列名",dataIndex:ye,width:"auto",options:{hidden:!1}};if(ae.value){let Je=me(X.value,ae.value.id);Je.children?Je.children.push(xe):Je.children=[xe];let Se=JSON.parse(JSON.stringify(re.value));Se.push(ae.value.id),re.value=Array.from(new Set(Se))}else X.value.push(xe)}function ke(ye){Ce(X.value,ye.id)}function be(){ie.value==null?ve():ie.value.validate().then(()=>{ve()}).catch(ye=>{console.log("error",ye)})}function ve(){le("update:tableColumns",Ne(X.value)),le("ok"),G.value=!1}function Ne(ye,xe){return ye.map(Se=>(typeof Se.width=="string"&&(Se.width=Number(Se.width)?Number(Se.width):Se.width),Se.children&&(Se.children=Ne(Se.children)),Se))}function Ie(){document.onkeydown=ye=>{if(ae.value){let xe=ye||event||window.event||arguments.callee.caller.arguments[0],Je=0;xe&&xe.keyCode==40?Je=Je+1:xe&&xe.keyCode==38&&(Je=Je-1),(Je==1||Je==-1)&&we(X.value,Je)}}}function we(ye,xe){for(let Je=0;Je<ye.length;Je++){if(ye[Je].id==ae.value.id){ye[Je+xe]&&(ae.value=ye[Je+xe],ne.value=[ae.value.id],oe.value=ne.value);return}ye[Je].children&&ye[Je].children.length>0&&we(ye[Je].children,xe)}}function De(){document.onkeydown=null}function Qe(ye){ye.target.value&&(ae.value.className="table-hidden")}return(ye,xe)=>{const Je=vue.resolveComponent("a-switch"),Se=vue.resolveComponent("a-input"),Ee=vue.resolveComponent("a-form-item"),Me=vue.resolveComponent("a-button"),Pe=vue.resolveComponent("a-popconfirm"),Fe=vue.resolveComponent("a-tree"),Re=vue.resolveComponent("a-select"),$e=vue.resolveComponent("a-select-option"),Ve=vue.resolveComponent("a-radio"),Te=vue.resolveComponent("a-radio-group"),je=vue.resolveComponent("a-form"),He=vue.resolveComponent("a-empty"),Ue=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(Ue,{open:vue.unref(G),"onUpdate:open":xe[12]||(xe[12]=Ge=>vue.isRef(G)?G.value=Ge:G=Ge),title:"列配置",width:"850px",onOk:be},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$m,[vue.createElementVNode("div",_hoisted_2$f,[vue.createElementVNode("div",_hoisted_3$d,[vue.createTextVNode(" 行内编辑: "),vue.createVNode(Je,{checked:W.configData.isedit,"onUpdate:checked":xe[0]||(xe[0]=Ge=>W.configData.isedit=Ge),"checked-children":"是","un-checked-children":"否"},null,8,["checked"]),_hoisted_4$a,vue.createTextVNode(),_hoisted_5$9,W.configData.isedit?(vue.openBlock(),vue.createBlock(Ee,{key:0,label:"更新标识",name:"title"},{default:vue.withCtx(()=>[vue.createVNode(Se,{value:W.configData.keyCol,"onUpdate:value":xe[1]||(xe[1]=Ge=>W.configData.keyCol=Ge),style:{width:"120px"}},null,8,["value"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(Me,{style:{"margin-bottom":"10px"},type:"primary",size:"small",onClick:pe},{icon:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1))]),default:vue.withCtx(()=>[vue.createTextVNode("添加")]),_:1}),_hoisted_6$8,vue.createVNode(Fe,{"expanded-keys":vue.unref(re),"onUpdate:expandedKeys":xe[3]||(xe[3]=Ge=>vue.isRef(re)?re.value=Ge:re=Ge),"selected-keys":vue.unref(ne),"onUpdate:selectedKeys":xe[4]||(xe[4]=Ge=>vue.isRef(ne)?ne.value=Ge:ne=Ge),fieldNames:te,"tree-data":vue.unref(X),blockNode:"",draggable:"",onDragenter:fe,onDrop:ge,onSelect:he},{title:vue.withCtx(Ge=>[vue.createElementVNode("div",_hoisted_7$6,[vue.createElementVNode("div",_hoisted_8$5,vue.toDisplayString(Ge.title),1),vue.createVNode(Pe,{"cancel-text":"否","ok-text":"是",title:Ge.children&&Ge.children.length>0?"确定要删除吗?,这将会删除其下所有子节点":"确定要删除吗?",onConfirm:it=>ke(Ge)},{default:vue.withCtx(()=>[vue.unref(ae)&&Ge.id==vue.unref(ae).id?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"operate",onClick:xe[2]||(xe[2]=vue.withModifiers(()=>{},["stop"]))},[vue.createVNode(vue.unref(CloseCircleOutlined$1),{style:{color:"#ff3030"}})])):vue.createCommentVNode("",!0)]),_:2},1032,["title","onConfirm"])])]),_:1},8,["expanded-keys","selected-keys","tree-data"])])]),vue.createElementVNode("div",_hoisted_9$5,[vue.createElementVNode("div",_hoisted_10$4,[vue.unref(ae)!==void 0?(vue.openBlock(),vue.createBlock(je,{key:0,ref_key:"formRef",ref:ie,"label-col":{span:4},model:vue.unref(ae),rules:vue.unref(se),"wrapper-col":{span:19}},{default:vue.withCtx(()=>[vue.createVNode(Ee,{label:"标题",name:"title"},{default:vue.withCtx(()=>[vue.createVNode(Se,{value:vue.unref(ae).title,"onUpdate:value":xe[5]||(xe[5]=Ge=>vue.unref(ae).title=Ge)},null,8,["value"])]),_:1}),!vue.unref(ae).children||!vue.unref(ae).children.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_11$4,[vue.createVNode(Ee,{label:"绑定字段",name:"dataIndex"},{default:vue.withCtx(()=>[vue.createVNode(Se,{value:vue.unref(ae).dataIndex,"onUpdate:value":xe[6]||(xe[6]=Ge=>vue.unref(ae).dataIndex=Ge)},null,8,["value"])]),_:1}),W.configData.isedit?(vue.openBlock(),vue.createBlock(Ee,{key:0,label:"编辑控件",name:"width"},{default:vue.withCtx(()=>[vue.createVNode(Re,{value:vue.unref(ae).componentType,"onUpdate:value":xe[7]||(xe[7]=Ge=>vue.unref(ae).componentType=Ge),"show-search":"",style:{width:"40%"},options:K},null,8,["value"]),vue.unref(ae).componentType=="select"?(vue.openBlock(),vue.createBlock(Re,{key:0,value:vue.unref(ae).dic,"onUpdate:value":xe[8]||(xe[8]=Ge=>vue.unref(ae).dic=Ge),"allow-clear":"",style:{width:"40%","margin-left":"20px"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(Z).getAllDicts,(Ge,it)=>(vue.openBlock(),vue.createBlock($e,{value:Ge.value},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ge.label+"("+Ge.value+")"),1)]),_:2},1032,["value"]))),256))]),_:1},8,["value"])):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),vue.createVNode(Ee,{label:"字段宽度",name:"width"},{default:vue.withCtx(()=>[vue.createVNode(Se,{value:vue.unref(ae).width,"onUpdate:value":xe[9]||(xe[9]=Ge=>vue.unref(ae).width=Ge)},null,8,["value"])]),_:1}),vue.createVNode(Ee,{label:"自动省略",name:"ellipsis"},{default:vue.withCtx(()=>[vue.createVNode(Je,{checked:vue.unref(ae).ellipsis,"onUpdate:checked":xe[10]||(xe[10]=Ge=>vue.unref(ae).ellipsis=Ge)},null,8,["checked"])]),_:1}),vue.createVNode(Ee,{label:"隐藏"},{default:vue.withCtx(()=>[vue.createVNode(Te,{value:vue.unref(ae).options.hidden,"onUpdate:value":xe[11]||(xe[11]=Ge=>vue.unref(ae).options.hidden=Ge),onChange:Qe},{default:vue.withCtx(()=>[vue.createVNode(Ve,{value:!0},{default:vue.withCtx(()=>[vue.createTextVNode("是")]),_:1}),vue.createVNode(Ve,{value:!1},{default:vue.withCtx(()=>[vue.createTextVNode("否")]),_:1})]),_:1},8,["value"])]),_:1})]),_:1},8,["model","rules"])):(vue.openBlock(),vue.createBlock(He,{key:1,image:vue.unref(H)},null,8,["image"]))])])])]),_:1},8,["open"])}}}),TableColumn_vue_vue_type_style_index_0_scoped_04c2bf91_lang="",TableColumn=_export_sfc(_sfc_main$I,[["__scopeId","data-v-04c2bf91"]]),TableColumn$1=Object.freeze(Object.defineProperty({__proto__:null,default:TableColumn},Symbol.toStringTag,{value:"Module"})),_sfc_main$H=vue.defineComponent({__name:"TableBtnModal",props:{open:{type:Boolean,default:!1},data:{type:Array,default:[]}},emits:["onClose"],setup(W,{emit:C}){const Q=W;let Z=vue.ref(Q.data);debugger;const H=vue.defineComponent({props:{vnodes:{type:Object,required:!0}},render(){return this.vnodes}}),U=vue.ref();let K=vue.ref({operList:["行新增","导出"],typeList:[{label:"主按钮",value:"primary"},{label:"次按钮",value:"default"},{label:"虚按钮",value:"dashed"},{label:"文本按钮",value:"text"},{label:"链接按钮",value:"link"}],sizeList:[{label:"大",value:"large"},{label:"中",value:"default"},{label:"小",value:"small"}]}),G=vue.ref(Q.open),X=0;const ee=ae=>{ae.preventDefault(),K.value.operList.push(U.value||` ${X+=1}`),U.value=""};function te(ae,le){Z.value.splice(le,1)}function ie(){Z.value.push({title:"",oper:"",type:"primary",icon:"",size:""})}const ne=[{title:"行新增",oper:"onCAdd",type:"primary",icon:"",size:"small"},{title:"导出",oper:"onCExport",type:"primary",icon:"",size:"small"}];function oe(ae,le){const ce=ne.find(de=>de.title===ae);ce!=null&&(Z.value[le]={...ce})}const re=C;function se(){re("onClose",{update:!1})}return(ae,le)=>{const ce=vue.resolveComponent("a-divider"),de=vue.resolveComponent("a-input"),ue=vue.resolveComponent("a-button"),he=vue.resolveComponent("a-space"),fe=vue.resolveComponent("a-select"),ge=vue.resolveComponent("a-col"),me=vue.resolveComponent("a-row"),Ce=vue.resolveComponent("a-form-item"),pe=vue.resolveComponent("a-drawer");return vue.openBlock(),vue.createBlock(pe,{title:"按钮配置",width:720,open:vue.unref(G),"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:se},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(Z),(ke,be)=>(vue.openBlock(),vue.createBlock(me,{style:{"padding-bottom":"5px"},gutter:[16,24]},{default:vue.withCtx(()=>[vue.createVNode(ge,{span:5},{default:vue.withCtx(()=>[vue.createVNode(fe,{value:ke.title,"onUpdate:value":ve=>ke.title=ve,"show-search":"",placeholder:"按钮名称",options:vue.unref(K).operList.map(ve=>({value:ve})),style:{width:"100%"},onChange:ve=>oe(ke.title,be)},{dropdownRender:vue.withCtx(({menuNode:ve})=>[vue.createVNode(vue.unref(H),{vnodes:ve},null,8,["vnodes"]),vue.createVNode(ce,{style:{margin:"4px 0"}}),vue.createVNode(he,{style:{padding:"4px 8px"}},{default:vue.withCtx(()=>[vue.createVNode(de,{ref_for:!0,ref:"inputRef",value:U.value,"onUpdate:value":le[0]||(le[0]=Ne=>U.value=Ne),placeholder:"输入"},null,8,["value"]),vue.createVNode(ue,{type:"text",onClick:ee},{icon:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1))]),_:1})]),_:1})]),_:2},1032,["value","onUpdate:value","options","onChange"])]),_:2},1024),vue.createVNode(ge,{span:5},{default:vue.withCtx(()=>[vue.createVNode(de,{value:ke.oper,"onUpdate:value":ve=>ke.oper=ve,placeholder:"按钮事件"},null,8,["value","onUpdate:value"])]),_:2},1024),vue.createVNode(ge,{span:5},{default:vue.withCtx(()=>[vue.createVNode(fe,{value:ke.type,"onUpdate:value":ve=>ke.type=ve,placeholder:"按钮类型",options:vue.unref(K).typeList,style:{width:"100%"}},null,8,["value","onUpdate:value","options"])]),_:2},1024),vue.createVNode(ge,{span:4},{default:vue.withCtx(()=>[vue.createVNode(de,{value:ke.icon,"onUpdate:value":ve=>ke.icon=ve,placeholder:"按钮图标"},null,8,["value","onUpdate:value"])]),_:2},1024),vue.createVNode(ge,{span:3},{default:vue.withCtx(()=>[vue.createVNode(fe,{value:ke.size,"onUpdate:value":ve=>ke.size=ve,placeholder:"大小",options:vue.unref(K).sizeList,style:{width:"100%"}},null,8,["value","onUpdate:value","options"])]),_:2},1024),vue.createVNode(ge,{span:2,style:{"line-height":"30px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(MinusCircleFilled$1),{onClick:ve=>te(ke,be),style:{cursor:"pointer !important","font-size":"16px",color:"#f56c6c","border-color":"#fbc4c4"}},null,8,["onClick"])]),_:2},1024)]),_:2},1024))),256)),vue.createVNode(Ce,null,{default:vue.withCtx(()=>[vue.createVNode(ue,{type:"dashed",style:{width:"100%"},onClick:ie},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1)),vue.createTextVNode(" 添加自定义操作按钮 ")]),_:1})]),_:1})]),_:1},8,["open"])}}}),TableBtnModal=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$H},Symbol.toStringTag,{value:"Module"})),_hoisted_1$l=vue.createElementVNode("a",{style:{color:"red","font-size":"10px"}},"仅支持报表设计",-1),_hoisted_2$e={key:0},_hoisted_3$c={key:1},_sfc_main$G=vue.defineComponent({__name:"Table",props:{configData:{type:Object,default:{}}},setup(W){const C=vue.ref(!1),Q=useFormStore(),Z=useDataStore();let H=vue.ref(),U=vue.computed(()=>Z.getSelectTables.filter(le=>le.isList==1));const K=W;let G=vue.ref([]),X=vue.ref(K.configData.action);vue.watch(()=>K.configData.action,le=>{X.value=le},{deep:!0});const ee=()=>{X.value.push({title:"",oper:""})};function te(le){let ce=X.value.indexOf(le);ce!==-1&&X.value.splice(ce,1)}function ie(le){let ce=Z.getSelectData.filter(he=>he.isList==1),de=ce.filter(he=>he.value.split(".")[0]==le).map(he=>he.value.split(".")[1]);de.length==0&&(de=ce.map(he=>he.value));debugger;let ue=de.map(he=>({key:"column-"+guid(),title:he,dataIndex:he,width:"auto",options:{hidden:!1}}));K.configData.tableColumns=ue}function ne(){G.value=JSON.parse(JSON.stringify(K.configData.tableColumns,null," ")),H.value.show()}function oe(){K.configData.tableColumns=G.value}function re(){K.configData.options.headerBtns=K.configData.options.headerBtns||[],C.value=!0}function se(le){C.value=!1}function ae(le){let ce=K.configData.extended,de='class="select-table" :row-selection="rowSelection" :rowKey="keyName" :customRow="customRow"',ue=Q.formData.config.eventScript[0].func,he=`
668
+ getSelectJsonSetting(selectJsonSetting)`:""}const _hoisted_1$r={style:{"text-align":"left"}},_hoisted_2$k={class:"move"},_hoisted_3$g={key:0,class:"widget-view-drag"},_hoisted_4$d={key:0,class:"item-action"},_sfc_main$O=vue.defineComponent({__name:"FormVue",props:{list:{type:Array,default:[]},data:{type:Object,default:null},index:{type:String},activeIndex:{type:String}},setup(W){useFormStore();const C=W;let Q=vue.computed(()=>U(C.data)),Z=getViewData(),H=vue.ref(Z);function U(X){return vue.defineComponent({template:K(X),setup(){return{viewData:H}}})}function K(X){if(X){let ee="",te=`width:${X.width}`;return ee+=`<c-child-form style='${te}' filePath="${X.filePath}" disabled></c-child-form>`,ee}else return""}function G(X){if(C.list&&C.list.length>0){let ee=C.list.findIndex(te=>te.id==X.id);ee>-1&&C.list.splice(ee,1)}}return(X,ee)=>{const te=vue.resolveComponent("a-form-item");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$r,[vue.createElementVNode("div",_hoisted_2$k,[W.activeIndex==W.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$g,[vue.createVNode(vue.unref(DragOutlined$1),{style:{padding:"6px"}})])):vue.createCommentVNode("",!0),W.data.type=="childform"?(vue.openBlock(),vue.createBlock(te,{key:1,disabled:""},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(Q))]),_:1})):vue.createCommentVNode("",!0)]),W.activeIndex==W.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_4$d,[vue.createVNode(vue.unref(DeleteOutlined$1),{onClick:ee[0]||(ee[0]=ie=>G(W.data))})])):vue.createCommentVNode("",!0)])}}}),FormVue_vue_vue_type_style_index_0_scoped_c6248365_lang="",FormVue=_export_sfc(_sfc_main$O,[["__scopeId","data-v-c6248365"]]),FormVue$1=Object.freeze(Object.defineProperty({__proto__:null,default:FormVue},Symbol.toStringTag,{value:"Module"})),_withScopeId$7=W=>(vue.pushScopeId("data-v-022abcd6"),W=W(),vue.popScopeId(),W),_hoisted_1$q={class:"move"},_hoisted_2$j={key:0,class:"widget-view-drag"},_hoisted_3$f={key:0,class:"collapse-btn"},_hoisted_4$c={class:"collapse-form-list"},_hoisted_5$b=["onMousedown"],_hoisted_6$a=_withScopeId$7(()=>vue.createElementVNode("div",{class:"collapse-default-height"},null,-1)),_hoisted_7$8={key:1,class:"item-action"},_sfc_main$N=vue.defineComponent({__name:"FormCollapse",props:{list:{type:Array,default:[]},data:{type:Object,default:null},index:{type:String},activeIndex:{type:String}},emits:["childConfig","index","controlConfig"],setup(W,{emit:C}){const Q=useFormStore(),Z=W,H=vue.ref("-1"),U=C;vue.watch(()=>Z.activeIndex,(re,se)=>{H.value=re});function K(){console.log("// 开始拖拽")}function G(re){re.to.className=="collapse-drag-list"?H.value=Z.index+"-"+re.newIndex:H.value=re.newIndex,U("index",H.value)}function X(re,se,ae){H.value=se,U("childConfig",re),U("index",H.value),ae.stopPropagation(),ae.preventDefault()}function ee(re){const se=JSON.parse(JSON.stringify(re));if(Z.list&&Z.list.length>0){let ae=Z.list.findIndex(le=>le.id==re.id);ae>-1&&(se.id=guid(),se.key=guid(),Z.list.splice(ae+1,0,se))}}function te(re){if(Z.list&&Z.list.length>0){let se=Z.list.findIndex(ae=>ae.id==re.id);se>-1&&Z.list.splice(se,1)}}function ie(re){U("childConfig",re)}function ne(re){H.value=re}function oe(re){return re.draggedContext.element.type=="grid"&&console.log(re.draggedContext.element.type+"和"+re.to.className),!(re.draggedContext.element.type=="grid"&&re.to.className.includes("col-drag-list")||re.to.className.includes("row-drag-list"))}return(re,se)=>{const ae=vue.resolveComponent("svg-icon"),le=vue.resolveComponent("a-form"),ce=vue.resolveComponent("a-form-item");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createElementVNode("div",_hoisted_1$q,[W.activeIndex==W.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$j,[vue.createVNode(vue.unref(DragOutlined$1),{style:{padding:"6px"}})])):vue.createCommentVNode("",!0)]),W.data.type=="collapse"?(vue.openBlock(),vue.createBlock(ce,{key:0},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"collapsePanel",style:vue.normalizeStyle({width:W.data.width})},[vue.createElementVNode("div",{class:vue.normalizeClass([W.data.classname,"title-between"])},[vue.createElementVNode("span",null,vue.toDisplayString(W.data.header),1),W.data.showArrow?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$f,[vue.createVNode(ae,{name:"arrow",width:"24",height:"24"})])):vue.createCommentVNode("",!0)],2),vue.createElementVNode("div",_hoisted_4$c,[vue.createVNode(vue.unref(VueDraggableNext),{class:"collapse-drag-list",list:W.data.content,animation:"1000",handle:".move",group:"itxst","ghost-class":"ghost","force-fallback":!0,onStart:K,onEnd:se[0]||(se[0]=de=>G(de)),move:oe},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(W.data.content,(de,ue)=>(vue.openBlock(),vue.createBlock(le,{class:"form-container","label-col":{style:{width:vue.unref(Q).formData.config.labelWidth+"px"}}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["widget-view",{active:H.value==W.index+"-"+ue}]),onMousedown:he=>X(de,W.index+"-"+ue,he)},[de.type=="childform"?(vue.openBlock(),vue.createBlock(FormVue,{key:0,data:de,list:W.data.content,activeIndex:H.value.toString(),index:W.index+"-"+ue},null,8,["data","list","activeIndex","index"])):de.type=="table"?(vue.openBlock(),vue.createBlock(FormTable,{key:1,data:de,list:W.data.content,activeIndex:H.value.toString(),index:W.index+"-"+ue},null,8,["data","list","activeIndex","index"])):de.type=="grid"?(vue.openBlock(),vue.createBlock(FormGrid,{key:2,data:de,activeIndex:H.value.toString(),list:W.data.content,index:W.index+"-"+ue,onChildConfig:ie,onIndex:ne},null,8,["data","activeIndex","list","index"])):de.type=="tabs"?(vue.openBlock(),vue.createBlock(FormTabs,{key:3,data:de,activeIndex:H.value.toString(),list:W.data.content,index:W.index+"-"+ue,onChildConfig:ie,onIndex:ne},null,8,["data","activeIndex","list","index"])):(vue.openBlock(),vue.createBlock(FormInput,{key:4,data:de,list:W.data.content,activeIndex:H.value.toString(),index:W.index+"-"+ue},null,8,["data","list","activeIndex","index"]))],42,_hoisted_5$b)]),_:2},1032,["label-col"]))),256))]),_:1},8,["list"]),_hoisted_6$a])],4)]),_:1})):vue.createCommentVNode("",!0),W.activeIndex==W.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$8,[vue.createVNode(vue.unref(CopyOutlined$1),{style:{padding:"3px 5px"},onClick:se[1]||(se[1]=de=>ee(W.data))}),vue.createVNode(vue.unref(DeleteOutlined$1),{onClick:se[2]||(se[2]=de=>te(W.data))})])):vue.createCommentVNode("",!0)])}}}),FormCollapse_vue_vue_type_style_index_0_scoped_022abcd6_lang="",FormCollapse=_export_sfc(_sfc_main$N,[["__scopeId","data-v-022abcd6"]]),FormCollapse$1=Object.freeze(Object.defineProperty({__proto__:null,default:FormCollapse},Symbol.toStringTag,{value:"Module"})),_withScopeId$6=W=>(vue.pushScopeId("data-v-1bb7b8b6"),W=W(),vue.popScopeId(),W),_hoisted_1$p={class:"move"},_hoisted_2$i={key:0,class:"widget-view-drag"},_hoisted_3$e={class:"tab-slot"},_hoisted_4$b={class:"tab-info"},_hoisted_5$a={class:"tab-close"},_hoisted_6$9={class:"tab-form-list"},_hoisted_7$7=["onMousedown"],_hoisted_8$6=_withScopeId$6(()=>vue.createElementVNode("div",{class:"tab-default-height"},null,-1)),_hoisted_9$6={key:0,class:"item-action"},_sfc_main$M=vue.defineComponent({__name:"FormTabs",props:{list:{type:Array,default:[]},data:{type:Object,default:null},index:{type:String},activeIndex:{type:String}},emits:["childConfig","index","controlConfig"],setup(W,{emit:C}){const Q=useFormStore(),Z=W,H=vue.ref("-1"),U=C;vue.watch(()=>Z.activeIndex,(se,ae)=>{H.value=se});const K=()=>{let se=guid();Z.data.activeTabKey=se,Z.data.panes.push({title:"New Tab",content:[],key:se})},G=se=>{let ae=0;Z.data.panes.forEach((ce,de)=>{ce.key===se&&(ae=de-1)}),Z.data.panes=Z.data.panes.filter(ce=>ce.key!==se);let le;Z.data.panes.length&&Z.data.activeTabKey===se&&(ae>=0?le=Z.data.panes[ae].key:le=Z.data.panes[0].key),Z.data.activeTabKey=le};function X(){console.log("// 开始拖拽")}function ee(se,ae){se.to.className=="tab-drag-list"?H.value=Z.index+"-"+ae+"-"+se.newIndex:H.value=se.newIndex,U("index",H.value)}function te(se,ae,le){H.value=ae,U("childConfig",se),U("index",H.value),le.stopPropagation(),le.preventDefault()}function ie(se){const ae=JSON.parse(JSON.stringify(se));if(Z.list&&Z.list.length>0){let le=Z.list.findIndex(ce=>ce.id==se.id);le>-1&&(ae.id=guid(),ae.key=guid(),Z.list.splice(le+1,0,ae))}}function ne(se){if(Z.list&&Z.list.length>0){let ae=Z.list.findIndex(le=>le.id==se.id);ae>-1&&Z.list.splice(ae,1)}}function oe(se){U("childConfig",se)}function re(se){H.value=se}return(se,ae)=>{const le=vue.resolveComponent("a-button"),ce=vue.resolveComponent("a-popconfirm"),de=vue.resolveComponent("a-form"),ue=vue.resolveComponent("a-tab-pane"),he=vue.resolveComponent("a-tabs"),fe=vue.resolveComponent("a-form-item");return vue.openBlock(),vue.createElementBlock("div",null,[vue.createElementVNode("div",_hoisted_1$p,[W.activeIndex==W.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$i,[vue.createVNode(vue.unref(DragOutlined$1),{style:{padding:"6px"}})])):vue.createCommentVNode("",!0),W.data.type=="tabs"?(vue.openBlock(),vue.createBlock(fe,{key:1},{default:vue.withCtx(()=>[vue.createVNode(he,{activeKey:W.data.activeTabKey,"onUpdate:activeKey":ae[0]||(ae[0]=ge=>W.data.activeTabKey=ge),hideAdd:"",type:W.data.tabType,style:vue.normalizeStyle({width:W.data.width})},{rightExtra:vue.withCtx(()=>[vue.createVNode(le,{class:"tabs-add-btn",onClick:K},{icon:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1))]),_:1})]),default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(W.data.panes,(ge,me)=>(vue.openBlock(),vue.createBlock(ue,{key:ge.key,closable:!1,"force-render":"",class:vue.normalizeClass({active:H.value=="pane"+me})},{tab:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_3$e,[vue.createElementVNode("span",_hoisted_4$b,vue.toDisplayString(ge.title),1),vue.createVNode(ce,{title:"内部组件也会一并删除,且不能撤销,确定要删除吗",onConfirm:vue.withModifiers(Ce=>G(ge.key),["stop"])},{default:vue.withCtx(()=>[vue.createElementVNode("span",_hoisted_5$a,[vue.createVNode(vue.unref(CloseOutlined$1))])]),_:2},1032,["onConfirm"])])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_6$9,[vue.createVNode(vue.unref(VueDraggableNext),{class:"tab-drag-list",list:ge.content,animation:"300",handle:".move",group:"itxst","ghost-class":"ghost","force-fallback":!0,onStart:X,onEnd:Ce=>ee(Ce,me)},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(ge.content,(Ce,pe)=>(vue.openBlock(),vue.createBlock(de,{class:"form-container","label-col":{style:{width:vue.unref(Q).formData.config.labelWidth+"px"}}},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:vue.normalizeClass(["widget-view",{active:H.value==W.index+"-"+me+"-"+pe}]),onMousedown:ke=>te(Ce,W.index+"-"+me+"-"+pe,ke)},[Ce.type=="childform"?(vue.openBlock(),vue.createBlock(FormVue,{key:0,data:Ce,list:ge.content,activeIndex:H.value,index:W.index+"-"+me+"-"+pe},null,8,["data","list","activeIndex","index"])):Ce.type=="table"?(vue.openBlock(),vue.createBlock(FormTable,{key:1,data:Ce,activeIndex:H.value,list:ge.content,index:W.index+"-"+me+"-"+pe},null,8,["data","activeIndex","list","index"])):Ce.type=="grid"?(vue.openBlock(),vue.createBlock(FormGrid,{key:2,data:Ce,activeIndex:H.value,list:ge.content,index:W.index+"-"+me+"-"+pe,onChildConfig:oe,onIndex:re},null,8,["data","activeIndex","list","index"])):Ce.type=="collapse"?(vue.openBlock(),vue.createBlock(FormCollapse,{key:3,data:Ce,activeIndex:H.value,list:ge.content,index:W.index+"-"+me+"-"+pe,onChildConfig:oe,onIndex:re},null,8,["data","activeIndex","list","index"])):(vue.openBlock(),vue.createBlock(FormInput,{key:4,data:Ce,list:ge.content,activeIndex:H.value,index:W.index+"-"+me+"-"+pe},null,8,["data","list","activeIndex","index"]))],42,_hoisted_7$7)]),_:2},1032,["label-col"]))),256))]),_:2},1032,["list","onEnd"]),_hoisted_8$6])]),_:2},1032,["class"]))),128))]),_:1},8,["activeKey","type","style"])]),_:1})):vue.createCommentVNode("",!0)]),W.activeIndex==W.index?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$6,[vue.createVNode(vue.unref(CopyOutlined$1),{style:{padding:"3px 5px"},onClick:ae[1]||(ae[1]=ge=>ie(W.data))}),vue.createVNode(vue.unref(DeleteOutlined$1),{onClick:ae[2]||(ae[2]=ge=>ne(W.data))})])):vue.createCommentVNode("",!0)])}}}),FormTabs_vue_vue_type_style_index_0_scoped_1bb7b8b6_lang="",FormTabs=_export_sfc(_sfc_main$M,[["__scopeId","data-v-1bb7b8b6"]]),FormTabs$1=Object.freeze(Object.defineProperty({__proto__:null,default:FormTabs},Symbol.toStringTag,{value:"Module"})),_hoisted_1$o={class:""},_hoisted_2$h=["onMousedown"],_sfc_main$L=vue.defineComponent({__name:"index",emits:["controlConfig"],setup(W,{emit:C}){const Q=useFormStore();let{formData:Z}=storeToRefs(Q);const H=vue.ref("-1"),U=C;function K(ne,oe,re){U("controlConfig",ne),H.value=oe,re.stopPropagation(),re.preventDefault()}function G(ne){U("controlConfig",ne)}function X(ne){H.value=ne}function ee(){H.value="-1"}function te(ne){ne.to.className=="widget-col-list"?H.value="base"+ne.newIndex:ne.to.className=="tab-drag-list"||(ne.to.className.includes("col-drag-list")||ne.to.className=="collapse-drag-list"?H.value="-1":H.value=ne.newIndex)}function ie(ne){return!(ne.draggedContext.element.type=="grid"&&ne.to.className.includes("col-drag-list")||ne.to.className.includes("row-drag-list"))}return(ne,oe)=>{const re=vue.resolveComponent("a-form");return vue.openBlock(),vue.createBlock(re,{class:"form-container","label-col":{style:{width:vue.unref(Q).formData.config.labelWidth+"px"}},labelWrap:!0},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(VueDraggableNext),{class:vue.normalizeClass(vue.unref(Z).list.length>0?"widget-form-list":"widgt-empty"),list:vue.unref(Z).list,"ghost-class":"ghost",handle:".move","force-fallback":!0,"chosen-class":"chosenClass1","drag-class":"dragClass1",animation:"1000",onStart:ee,onEnd:te,group:"itxst","fallback-class":!0,"fallback-on-body":!0,"touch-start-threshold":10,"fallback-tolerance":10,move:ie,itemKey:""},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(Z).list,(se,ae)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$o,[vue.createElementVNode("div",{class:vue.normalizeClass(["widget-col widget-view",{active:H.value==ae.toString()}]),onMousedown:le=>K(se,ae.toString(),le)},[se.type=="grid"?(vue.openBlock(),vue.createBlock(FormGrid,{key:0,data:se,list:vue.unref(Z).list,activeIndex:H.value.toString(),onChildConfig:G,onIndex:X,index:ae.toString()},null,8,["data","list","activeIndex","index"])):se.type=="table"?(vue.openBlock(),vue.createBlock(FormTable,{key:1,data:se,activeIndex:H.value.toString(),list:vue.unref(Z).list,index:ae},null,8,["data","activeIndex","list","index"])):se.type=="report"?(vue.openBlock(),vue.createBlock(FormReport,{key:2,data:se,activeIndex:H.value.toString(),index:ae},null,8,["data","activeIndex","index"])):se.type=="childform"?(vue.openBlock(),vue.createBlock(FormVue,{key:3,data:se,list:vue.unref(Z).list,activeIndex:H.value.toString(),index:ae.toString()},null,8,["data","list","activeIndex","index"])):se.type=="tabs"?(vue.openBlock(),vue.createBlock(FormTabs,{key:4,data:se,list:vue.unref(Z).list,activeIndex:H.value.toString(),onChildConfig:G,onIndex:X,index:ae.toString()},null,8,["data","list","activeIndex","index"])):se.type=="collapse"?(vue.openBlock(),vue.createBlock(FormCollapse,{key:5,data:se,list:vue.unref(Z).list,activeIndex:H.value.toString(),onChildConfig:G,onIndex:X,index:ae.toString()},null,8,["data","list","activeIndex","index"])):(vue.openBlock(),vue.createBlock(FormInput,{key:6,data:se,list:vue.unref(Z).list,activeIndex:H.value.toString(),index:ae.toString()},null,8,["data","list","activeIndex","index"]))],42,_hoisted_2$h)]))),256))]),_:1},8,["class","list"])]),_:1},8,["label-col"])}}}),index_vue_vue_type_style_index_0_scoped_95a7066b_lang="",FormDesign=_export_sfc(_sfc_main$L,[["__scopeId","data-v-95a7066b"]]),index$9=Object.freeze(Object.defineProperty({__proto__:null,default:FormDesign},Symbol.toStringTag,{value:"Module"})),_hoisted_1$n={style:{padding:"2px"}},_hoisted_2$g={style:{display:"flex","align-items":"center","margin-bottom":"5px"}},_sfc_main$K=vue.defineComponent({__name:"Grid",props:{configData:{type:Object,default:{}}},setup(W){const C=W,Q=[{label:"上",value:"top"},{label:"右",value:"right"},{label:"下",value:"bottom"},{label:"左",value:"left"}],Z=[{label:"左对齐",value:"left"},{label:"右对齐",value:"right"},{label:"顶部对齐",value:"top"}];function H(X){C.configData[X]==null?C.configData[X]=0:C.configData[X]--,C.configData[X]<0&&(C.configData[X]=0)}function U(X){C.configData[X]==null?C.configData[X]=0:C.configData[X]++}function K(){C.configData.columns.push({type:"col",key:guid(),id:guid(),options:{span:0,offset:0,push:0,pull:0,xs:24,sm:12,md:12,lg:12,xl:12},list:[]})}function G(X){const{value:ee}=X.target;C.configData.labelPosition=ee,ee=="top"?C.configData.layout="vertical":C.configData.layout="horizontal"}return(X,ee)=>{const te=vue.resolveComponent("a-input"),ie=vue.resolveComponent("a-form-item"),ne=vue.resolveComponent("a-input-number"),oe=vue.resolveComponent("a-button"),re=vue.resolveComponent("a-divider"),se=vue.resolveComponent("a-radio-group"),ae=vue.resolveComponent("a-textarea"),le=vue.resolveComponent("a-form");return vue.openBlock(),vue.createBlock(le,{layout:"vertical",model:W.configData,autocomplete:"off"},{default:vue.withCtx(()=>[vue.createVNode(ie,{label:"字段标识",rules:[{required:!0}]},{default:vue.withCtx(()=>[vue.createVNode(te,{value:W.configData.model,"onUpdate:value":ee[0]||(ee[0]=ce=>W.configData.model=ce)},null,8,["value"])]),_:1}),vue.createVNode(ie,{label:"栅格间距"},{default:vue.withCtx(()=>[vue.createVNode(ne,{value:W.configData.options.gutter,"onUpdate:value":ee[1]||(ee[1]=ce=>W.configData.options.gutter=ce),min:0,max:30,style:{width:"50%"}},null,8,["value"]),vue.createTextVNode(" px ")]),_:1}),vue.createVNode(ie,{label:"列配置项"},{default:vue.withCtx(()=>[vue.createElementVNode("ul",null,[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(W.configData.columns,(ce,de)=>(vue.openBlock(),vue.createElementBlock("li",{key:de},[vue.createVNode(vue.unref(MenuOutlined$1),{style:{"font-size":"14px",margin:"0px 5px",cursor:"move"}}),vue.createElementVNode("div",_hoisted_1$n,[vue.createVNode(ne,{value:ce.options.span,"onUpdate:value":ue=>ce.options.span=ue,min:0,max:24,style:{width:"150px"}},null,8,["value","onUpdate:value"])]),vue.createVNode(oe,{danger:"",shape:"circle",size:"small",style:{margin:"auto 5px"}},{icon:vue.withCtx(()=>[vue.createVNode(vue.unref(MinusOutlined$1))]),_:1})]))),128))]),vue.createVNode(oe,{type:"link",onClick:K},{default:vue.withCtx(()=>[vue.createTextVNode("添加列")]),_:1}),vue.createVNode(re,{type:"vertical"}),vue.createElementVNode("span",null,"合计:"+vue.toDisplayString(W.configData.columns.reduce((ce,de)=>ce+de.options.span,0)),1)]),_:1}),vue.createVNode(ie,{label:"栅格内边距"},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(Q,(ce,de)=>vue.createElementVNode("div",_hoisted_2$g,[vue.createTextVNode(vue.toDisplayString(ce.label)+": ",1),vue.createVNode(ne,{value:W.configData[ce.value],"onUpdate:value":ue=>W.configData[ce.value]=ue,min:0},{addonBefore:vue.withCtx(()=>[vue.createVNode(vue.unref(MinusOutlined$1),{onClick:ue=>H(ce.value)},null,8,["onClick"])]),addonAfter:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1),{onClick:ue=>U(ce.value)},null,8,["onClick"])]),_:2},1032,["value","onUpdate:value"])])),64))]),_:1}),vue.createVNode(ie,{label:"标签对齐方式"},{default:vue.withCtx(()=>[vue.createVNode(se,{value:W.configData.labelPosition,"onUpdate:value":ee[2]||(ee[2]=ce=>W.configData.labelPosition=ce),"button-style":"solid","option-type":"button",options:Z,onChange:G},null,8,["value"])]),_:1}),vue.createVNode(ie,{label:"其他扩展"},{default:vue.withCtx(()=>[vue.createVNode(ae,{value:W.configData.extended,"onUpdate:value":ee[3]||(ee[3]=ce=>W.configData.extended=ce),rows:3},null,8,["value"])]),_:1})]),_:1},8,["model"])}}}),Grid_vue_vue_type_style_index_0_scoped_f249ca0f_lang="",CGrid=_export_sfc(_sfc_main$K,[["__scopeId","data-v-f249ca0f"]]),Grid=Object.freeze(Object.defineProperty({__proto__:null,default:CGrid},Symbol.toStringTag,{value:"Module"})),_sfc_main$J=vue.defineComponent({__name:"Col",props:{configData:{type:Object,default:{}}},setup(W){return(C,Q)=>{const Z=vue.resolveComponent("a-input-number"),H=vue.resolveComponent("a-form-item"),U=vue.resolveComponent("a-textarea"),K=vue.resolveComponent("a-form");return vue.openBlock(),vue.createBlock(K,{layout:"vertical",model:W.configData,autocomplete:"off"},{default:vue.withCtx(()=>[vue.createVNode(H,{label:"栅格占据的列数"},{default:vue.withCtx(()=>[vue.createVNode(Z,{value:W.configData.options.span,"onUpdate:value":Q[0]||(Q[0]=G=>W.configData.options.span=G),min:1,max:24,style:{width:"100%"}},null,8,["value"])]),_:1}),vue.createVNode(H,{label:"栅格左侧的间隔格数"},{default:vue.withCtx(()=>[vue.createVNode(Z,{value:W.configData.options.offset,"onUpdate:value":Q[1]||(Q[1]=G=>W.configData.options.offset=G),min:0,max:10,style:{width:"100%"}},null,8,["value"])]),_:1}),vue.createVNode(H,{label:"其他扩展"},{default:vue.withCtx(()=>[vue.createVNode(U,{value:W.configData.options.extended,"onUpdate:value":Q[2]||(Q[2]=G=>W.configData.options.extended=G),rows:3},null,8,["value"])]),_:1})]),_:1},8,["model"])}}}),Col=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$J},Symbol.toStringTag,{value:"Module"})),_withScopeId$5=W=>(vue.pushScopeId("data-v-970a3ede"),W=W(),vue.popScopeId(),W),_hoisted_1$m={class:"table-column-setting"},_hoisted_2$f={class:"left"},_hoisted_3$d={class:"left-content"},_hoisted_4$a=_withScopeId$5(()=>vue.createElementVNode("br",null,null,-1)),_hoisted_5$9=_withScopeId$5(()=>vue.createElementVNode("br",null,null,-1)),_hoisted_6$8=_withScopeId$5(()=>vue.createElementVNode("br",null,null,-1)),_hoisted_7$6={class:"treeItem"},_hoisted_8$5={class:"title"},_hoisted_9$5={class:"right"},_hoisted_10$4={class:"right-content"},_hoisted_11$4={key:0},_sfc_main$I=vue.defineComponent({__name:"TableColumn",props:{configData:{type:Object,default:{}},tableColumns:{type:Object,default:[]}},emits:["update:tableColumns","ok"],setup(W,{expose:C,emit:Q}){const Z=useUserStore(),H=Empty$1.PRESENTED_IMAGE_SIMPLE,U=W,K=[{value:"input",label:"文本框"},{value:"select",label:"下拉框"}];let G=vue.ref(!1),X=vue.ref([]),ee=vue.ref([]);const te={children:"children",title:"title",key:"id",componentType:"",dic:""};let ie=vue.ref(),ne=vue.ref([]),oe=vue.ref([]),re=vue.ref([]),se={title:[{required:!0,message:"请填写标题",trigger:"change"}],width:[{pattern:/(^\d+((px)|%)?$)|(^auto$)/,message:"请填写正确的格式",trigger:"change"}]},ae=vue.ref();const le=Q;vue.watch(()=>U.tableColumns,ye=>{X.value=ce(JSON.parse(JSON.stringify(ye))),X.value.length>0&&(ae.value=X.value[0],ne.value=[ae.value.id],oe.value=ne.value)},{deep:!0,immediate:!0}),vue.watch(()=>X.value,(ye,xe)=>{ee.value=de(JSON.parse(JSON.stringify(ye)))},{deep:!0,immediate:!0}),vue.watch(()=>G.value,ye=>{ye?Ie():De()}),C({show:ue});function ce(ye){return ye.map(Je=>(Je.id||(Je.id="column-"+guid()),Je.options?Je.options.hidden==null&&(Je.options.hidden=!1):Je.options={hidden:!1},Je.children&&(Je.children=ce(Je.children)),Je))}function de(ye,xe){return ye.map(Se=>{xe?Se.fPid=xe:Se.fPid&&delete Se.fPid;let Ee=xe||Se.id;return Se.children&&(Se.children=de(Se.children,Ee)),Se})}function ue(){G.value=!0}function he(ye,xe){ae.value?ie.value.validate().then(()=>{ae.value=xe.selected?xe.node.dataRef:void 0,oe.value=ye}).catch(Je=>{ne.value=oe.value}):(ae.value=xe.selected?xe.node.dataRef:void 0,oe.value=ye)}function fe(ye){if(ye.node.dataRef){let xe=JSON.parse(JSON.stringify(re.value));xe.push(ye.node.dataRef.id),re.value=Array.from(new Set(xe))}}function ge(ye){const xe=ye.node.id,Je=ye.dragNode.id,Se=ye.node.pos.split("-"),Ee=ye.dropPosition-Number(Se[Se.length-1]),Me=(Re,$e,Ve)=>{Re.forEach((Te,je)=>{if(Te.id===$e)return Ve(Te,je,Re);if(Te.children)return Me(Te.children,$e,Ve)})},Pe=[...X.value];let Fe;if(Me(Pe,Je,(Re,$e,Ve)=>{Ve.splice($e,1),Fe=Re}),!ye.dropToGap)Me(Pe,xe,Re=>{Re.children=Re.children||[],Re.children.unshift(Fe)});else if((ye.node.children||[]).length>0&&ye.node.expanded&&Ee===1)Me(Pe,xe,Re=>{Re.children=Re.children||[],Re.children.unshift(Fe)});else{let Re=[],$e=0;Me(Pe,xe,(Ve,Te,je)=>{Re=je,$e=Te}),Ee===-1?Re.splice($e,0,Fe):Re.splice($e+1,0,Fe)}X.value=Pe}function me(ye,xe){for(let Je=0;Je<ye.length;Je++){let Se=ye[Je];if(Se.id===xe)return Se;if(Se.children&&Se.children.length>0){let Ee=me(Se.children,xe);if(Ee)return Ee}}return null}function Ce(ye,xe){for(let Je=0;Je<ye.length;Je++){if(ye[Je].id==xe){ye[Je+1]?ae.value=ye[Je+1]:ye[Je-1]?ae.value=ye[Je-1]:ae.value=void 0,ne.value=ae.value?[ae.value.id]:[],oe.value=ne.value,ye.splice(Je,1);return}ye[Je].children&&ye[Je].children.length>0&&Ce(ye[Je].children,xe)}}function pe(){let ye="newColumn";if(ae.value){ye=ae.value.dataIndex;let Je=me(ee.value,ae.value.id);if(Je.fPid){let Se=me(ee.value,Je.fPid);Se&&(ye=Se.dataIndex)}}let xe={id:"column-"+guid(),title:"新增列名",dataIndex:ye,width:"auto",options:{hidden:!1}};if(ae.value){let Je=me(X.value,ae.value.id);Je.children?Je.children.push(xe):Je.children=[xe];let Se=JSON.parse(JSON.stringify(re.value));Se.push(ae.value.id),re.value=Array.from(new Set(Se))}else X.value.push(xe)}function ke(ye){Ce(X.value,ye.id)}function be(){ie.value==null?ve():ie.value.validate().then(()=>{ve()}).catch(ye=>{console.log("error",ye)})}function ve(){le("update:tableColumns",Ne(X.value)),le("ok"),G.value=!1}function Ne(ye,xe){return ye.map(Se=>(typeof Se.width=="string"&&(Se.width=Number(Se.width)?Number(Se.width):Se.width),Se.children&&(Se.children=Ne(Se.children)),Se))}function Ie(){document.onkeydown=ye=>{if(ae.value){let xe=ye||event||window.event||arguments.callee.caller.arguments[0],Je=0;xe&&xe.keyCode==40?Je=Je+1:xe&&xe.keyCode==38&&(Je=Je-1),(Je==1||Je==-1)&&we(X.value,Je)}}}function we(ye,xe){for(let Je=0;Je<ye.length;Je++){if(ye[Je].id==ae.value.id){ye[Je+xe]&&(ae.value=ye[Je+xe],ne.value=[ae.value.id],oe.value=ne.value);return}ye[Je].children&&ye[Je].children.length>0&&we(ye[Je].children,xe)}}function De(){document.onkeydown=null}function Qe(ye){ye.target.value&&(ae.value.width="0",ae.value.className="table-hidden")}return(ye,xe)=>{const Je=vue.resolveComponent("a-switch"),Se=vue.resolveComponent("a-input"),Ee=vue.resolveComponent("a-form-item"),Me=vue.resolveComponent("a-button"),Pe=vue.resolveComponent("a-popconfirm"),Fe=vue.resolveComponent("a-tree"),Re=vue.resolveComponent("a-select"),$e=vue.resolveComponent("a-select-option"),Ve=vue.resolveComponent("a-radio"),Te=vue.resolveComponent("a-radio-group"),je=vue.resolveComponent("a-form"),He=vue.resolveComponent("a-empty"),Ue=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(Ue,{open:vue.unref(G),"onUpdate:open":xe[12]||(xe[12]=Ge=>vue.isRef(G)?G.value=Ge:G=Ge),title:"列配置",width:"850px",onOk:be},{default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$m,[vue.createElementVNode("div",_hoisted_2$f,[vue.createElementVNode("div",_hoisted_3$d,[vue.createTextVNode(" 行内编辑: "),vue.createVNode(Je,{checked:W.configData.isedit,"onUpdate:checked":xe[0]||(xe[0]=Ge=>W.configData.isedit=Ge),"checked-children":"是","un-checked-children":"否"},null,8,["checked"]),_hoisted_4$a,vue.createTextVNode(),_hoisted_5$9,W.configData.isedit?(vue.openBlock(),vue.createBlock(Ee,{key:0,label:"更新标识",name:"title"},{default:vue.withCtx(()=>[vue.createVNode(Se,{value:W.configData.keyCol,"onUpdate:value":xe[1]||(xe[1]=Ge=>W.configData.keyCol=Ge),style:{width:"120px"}},null,8,["value"])]),_:1})):vue.createCommentVNode("",!0),vue.createVNode(Me,{style:{"margin-bottom":"10px"},type:"primary",size:"small",onClick:pe},{icon:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1))]),default:vue.withCtx(()=>[vue.createTextVNode("添加")]),_:1}),_hoisted_6$8,vue.createVNode(Fe,{"expanded-keys":vue.unref(re),"onUpdate:expandedKeys":xe[3]||(xe[3]=Ge=>vue.isRef(re)?re.value=Ge:re=Ge),"selected-keys":vue.unref(ne),"onUpdate:selectedKeys":xe[4]||(xe[4]=Ge=>vue.isRef(ne)?ne.value=Ge:ne=Ge),fieldNames:te,"tree-data":vue.unref(X),blockNode:"",draggable:"",onDragenter:fe,onDrop:ge,onSelect:he},{title:vue.withCtx(Ge=>[vue.createElementVNode("div",_hoisted_7$6,[vue.createElementVNode("div",_hoisted_8$5,vue.toDisplayString(Ge.title),1),vue.createVNode(Pe,{"cancel-text":"否","ok-text":"是",title:Ge.children&&Ge.children.length>0?"确定要删除吗?,这将会删除其下所有子节点":"确定要删除吗?",onConfirm:it=>ke(Ge)},{default:vue.withCtx(()=>[vue.unref(ae)&&Ge.id==vue.unref(ae).id?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"operate",onClick:xe[2]||(xe[2]=vue.withModifiers(()=>{},["stop"]))},[vue.createVNode(vue.unref(CloseCircleOutlined$1),{style:{color:"#ff3030"}})])):vue.createCommentVNode("",!0)]),_:2},1032,["title","onConfirm"])])]),_:1},8,["expanded-keys","selected-keys","tree-data"])])]),vue.createElementVNode("div",_hoisted_9$5,[vue.createElementVNode("div",_hoisted_10$4,[vue.unref(ae)!==void 0?(vue.openBlock(),vue.createBlock(je,{key:0,ref_key:"formRef",ref:ie,"label-col":{span:4},model:vue.unref(ae),rules:vue.unref(se),"wrapper-col":{span:19}},{default:vue.withCtx(()=>[vue.createVNode(Ee,{label:"标题",name:"title"},{default:vue.withCtx(()=>[vue.createVNode(Se,{value:vue.unref(ae).title,"onUpdate:value":xe[5]||(xe[5]=Ge=>vue.unref(ae).title=Ge)},null,8,["value"])]),_:1}),!vue.unref(ae).children||!vue.unref(ae).children.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_11$4,[vue.createVNode(Ee,{label:"绑定字段",name:"dataIndex"},{default:vue.withCtx(()=>[vue.createVNode(Se,{value:vue.unref(ae).dataIndex,"onUpdate:value":xe[6]||(xe[6]=Ge=>vue.unref(ae).dataIndex=Ge)},null,8,["value"])]),_:1}),W.configData.isedit?(vue.openBlock(),vue.createBlock(Ee,{key:0,label:"编辑控件",name:"width"},{default:vue.withCtx(()=>[vue.createVNode(Re,{value:vue.unref(ae).componentType,"onUpdate:value":xe[7]||(xe[7]=Ge=>vue.unref(ae).componentType=Ge),"show-search":"",style:{width:"40%"},options:K},null,8,["value"]),vue.unref(ae).componentType=="select"?(vue.openBlock(),vue.createBlock(Re,{key:0,value:vue.unref(ae).dic,"onUpdate:value":xe[8]||(xe[8]=Ge=>vue.unref(ae).dic=Ge),"allow-clear":"",style:{width:"40%","margin-left":"20px"}},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(Z).getAllDicts,(Ge,it)=>(vue.openBlock(),vue.createBlock($e,{value:Ge.value},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(Ge.label+"("+Ge.value+")"),1)]),_:2},1032,["value"]))),256))]),_:1},8,["value"])):vue.createCommentVNode("",!0)]),_:1})):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0),vue.createVNode(Ee,{label:"字段宽度",name:"width"},{default:vue.withCtx(()=>[vue.createVNode(Se,{value:vue.unref(ae).width,"onUpdate:value":xe[9]||(xe[9]=Ge=>vue.unref(ae).width=Ge)},null,8,["value"])]),_:1}),vue.createVNode(Ee,{label:"自动省略",name:"ellipsis"},{default:vue.withCtx(()=>[vue.createVNode(Je,{checked:vue.unref(ae).ellipsis,"onUpdate:checked":xe[10]||(xe[10]=Ge=>vue.unref(ae).ellipsis=Ge)},null,8,["checked"])]),_:1}),vue.createVNode(Ee,{label:"隐藏"},{default:vue.withCtx(()=>[vue.createVNode(Te,{value:vue.unref(ae).options.hidden,"onUpdate:value":xe[11]||(xe[11]=Ge=>vue.unref(ae).options.hidden=Ge),onChange:Qe},{default:vue.withCtx(()=>[vue.createVNode(Ve,{value:!0},{default:vue.withCtx(()=>[vue.createTextVNode("是")]),_:1}),vue.createVNode(Ve,{value:!1},{default:vue.withCtx(()=>[vue.createTextVNode("否")]),_:1})]),_:1},8,["value"])]),_:1})]),_:1},8,["model","rules"])):(vue.openBlock(),vue.createBlock(He,{key:1,image:vue.unref(H)},null,8,["image"]))])])])]),_:1},8,["open"])}}}),TableColumn_vue_vue_type_style_index_0_scoped_970a3ede_lang="",TableColumn=_export_sfc(_sfc_main$I,[["__scopeId","data-v-970a3ede"]]),TableColumn$1=Object.freeze(Object.defineProperty({__proto__:null,default:TableColumn},Symbol.toStringTag,{value:"Module"})),_sfc_main$H=vue.defineComponent({__name:"TableBtnModal",props:{open:{type:Boolean,default:!1},data:{type:Array,default:[]}},emits:["onClose"],setup(W,{emit:C}){const Q=W;let Z=vue.ref(Q.data);debugger;const H=vue.defineComponent({props:{vnodes:{type:Object,required:!0}},render(){return this.vnodes}}),U=vue.ref();let K=vue.ref({operList:["行新增","导出"],typeList:[{label:"主按钮",value:"primary"},{label:"次按钮",value:"default"},{label:"虚按钮",value:"dashed"},{label:"文本按钮",value:"text"},{label:"链接按钮",value:"link"}],sizeList:[{label:"大",value:"large"},{label:"中",value:"default"},{label:"小",value:"small"}]}),G=vue.ref(Q.open),X=0;const ee=ae=>{ae.preventDefault(),K.value.operList.push(U.value||` ${X+=1}`),U.value=""};function te(ae,le){Z.value.splice(le,1)}function ie(){Z.value.push({title:"",oper:"",type:"primary",icon:"",size:""})}const ne=[{title:"行新增",oper:"onCAdd",type:"primary",icon:"",size:"small"},{title:"导出",oper:"onCExport",type:"primary",icon:"",size:"small"}];function oe(ae,le){const ce=ne.find(de=>de.title===ae);ce!=null&&(Z.value[le]={...ce})}const re=C;function se(){re("onClose",{update:!1})}return(ae,le)=>{const ce=vue.resolveComponent("a-divider"),de=vue.resolveComponent("a-input"),ue=vue.resolveComponent("a-button"),he=vue.resolveComponent("a-space"),fe=vue.resolveComponent("a-select"),ge=vue.resolveComponent("a-col"),me=vue.resolveComponent("a-row"),Ce=vue.resolveComponent("a-form-item"),pe=vue.resolveComponent("a-drawer");return vue.openBlock(),vue.createBlock(pe,{title:"按钮配置",width:720,open:vue.unref(G),"body-style":{paddingBottom:"80px"},"footer-style":{textAlign:"right"},onClose:se},{default:vue.withCtx(()=>[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(vue.unref(Z),(ke,be)=>(vue.openBlock(),vue.createBlock(me,{style:{"padding-bottom":"5px"},gutter:[16,24]},{default:vue.withCtx(()=>[vue.createVNode(ge,{span:5},{default:vue.withCtx(()=>[vue.createVNode(fe,{value:ke.title,"onUpdate:value":ve=>ke.title=ve,"show-search":"",placeholder:"按钮名称",options:vue.unref(K).operList.map(ve=>({value:ve})),style:{width:"100%"},onChange:ve=>oe(ke.title,be)},{dropdownRender:vue.withCtx(({menuNode:ve})=>[vue.createVNode(vue.unref(H),{vnodes:ve},null,8,["vnodes"]),vue.createVNode(ce,{style:{margin:"4px 0"}}),vue.createVNode(he,{style:{padding:"4px 8px"}},{default:vue.withCtx(()=>[vue.createVNode(de,{ref_for:!0,ref:"inputRef",value:U.value,"onUpdate:value":le[0]||(le[0]=Ne=>U.value=Ne),placeholder:"输入"},null,8,["value"]),vue.createVNode(ue,{type:"text",onClick:ee},{icon:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1))]),_:1})]),_:1})]),_:2},1032,["value","onUpdate:value","options","onChange"])]),_:2},1024),vue.createVNode(ge,{span:5},{default:vue.withCtx(()=>[vue.createVNode(de,{value:ke.oper,"onUpdate:value":ve=>ke.oper=ve,placeholder:"按钮事件"},null,8,["value","onUpdate:value"])]),_:2},1024),vue.createVNode(ge,{span:5},{default:vue.withCtx(()=>[vue.createVNode(fe,{value:ke.type,"onUpdate:value":ve=>ke.type=ve,placeholder:"按钮类型",options:vue.unref(K).typeList,style:{width:"100%"}},null,8,["value","onUpdate:value","options"])]),_:2},1024),vue.createVNode(ge,{span:4},{default:vue.withCtx(()=>[vue.createVNode(de,{value:ke.icon,"onUpdate:value":ve=>ke.icon=ve,placeholder:"按钮图标"},null,8,["value","onUpdate:value"])]),_:2},1024),vue.createVNode(ge,{span:3},{default:vue.withCtx(()=>[vue.createVNode(fe,{value:ke.size,"onUpdate:value":ve=>ke.size=ve,placeholder:"大小",options:vue.unref(K).sizeList,style:{width:"100%"}},null,8,["value","onUpdate:value","options"])]),_:2},1024),vue.createVNode(ge,{span:2,style:{"line-height":"30px"}},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(MinusCircleFilled$1),{onClick:ve=>te(ke,be),style:{cursor:"pointer !important","font-size":"16px",color:"#f56c6c","border-color":"#fbc4c4"}},null,8,["onClick"])]),_:2},1024)]),_:2},1024))),256)),vue.createVNode(Ce,null,{default:vue.withCtx(()=>[vue.createVNode(ue,{type:"dashed",style:{width:"100%"},onClick:ie},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(PlusOutlined$1)),vue.createTextVNode(" 添加自定义操作按钮 ")]),_:1})]),_:1})]),_:1},8,["open"])}}}),TableBtnModal=Object.freeze(Object.defineProperty({__proto__:null,default:_sfc_main$H},Symbol.toStringTag,{value:"Module"})),_hoisted_1$l=vue.createElementVNode("a",{style:{color:"red","font-size":"10px"}},"仅支持报表设计",-1),_hoisted_2$e={key:0},_hoisted_3$c={key:1},_sfc_main$G=vue.defineComponent({__name:"Table",props:{configData:{type:Object,default:{}}},setup(W){const C=vue.ref(!1),Q=useFormStore(),Z=useDataStore();let H=vue.ref(),U=vue.computed(()=>Z.getSelectTables.filter(le=>le.isList==1));const K=W;let G=vue.ref([]),X=vue.ref(K.configData.action);vue.watch(()=>K.configData.action,le=>{X.value=le},{deep:!0});const ee=()=>{X.value.push({title:"",oper:""})};function te(le){let ce=X.value.indexOf(le);ce!==-1&&X.value.splice(ce,1)}function ie(le){let ce=Z.getSelectData.filter(he=>he.isList==1),de=ce.filter(he=>he.value.split(".")[0]==le).map(he=>he.value.split(".")[1]);de.length==0&&(de=ce.map(he=>he.value));debugger;let ue=de.map(he=>({key:"column-"+guid(),title:he,dataIndex:he,width:"auto",options:{hidden:!1}}));K.configData.tableColumns=ue}function ne(){G.value=JSON.parse(JSON.stringify(K.configData.tableColumns,null," ")),H.value.show()}function oe(){K.configData.tableColumns=G.value}function re(){K.configData.options.headerBtns=K.configData.options.headerBtns||[],C.value=!0}function se(le){C.value=!1}function ae(le){let ce=K.configData.extended,de='class="select-table" :row-selection="rowSelection" :rowKey="keyName" :customRow="customRow"',ue=Q.formData.config.eventScript[0].func,he=`
669
669
  // 必须参数 -- start ---
670
670
  const props = defineProps({
671
671
  value: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, ref as t, onMounted as m, unref as r, openBlock as c, createBlock as l, createCommentVNode as p } from "vue";
2
- import { w as d, x as f } from "./index-5ba5ee24.js";
2
+ import { w as d, x as f } from "./index-71cad06d.js";
3
3
  const h = /* @__PURE__ */ u({
4
4
  __name: "formTest",
5
5
  setup(i) {
@@ -1,4 +1,4 @@
1
- import { y as F } from "./index-5ba5ee24.js";
1
+ import { y as F } from "./index-71cad06d.js";
2
2
  import "vue";
3
3
  /*!-----------------------------------------------------------------------------
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- import { y as i } from "./index-5ba5ee24.js";
1
+ import { y as i } from "./index-71cad06d.js";
2
2
  import "vue";
3
3
  /*!-----------------------------------------------------------------------------
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- import { y as p } from "./index-5ba5ee24.js";
1
+ import { y as p } from "./index-71cad06d.js";
2
2
  import "vue";
3
3
  /*!-----------------------------------------------------------------------------
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,7 +1,7 @@
1
1
  var $e = Object.defineProperty;
2
2
  var qe = (e, n, i) => n in e ? $e(e, n, { enumerable: !0, configurable: !0, writable: !0, value: i }) : e[n] = i;
3
3
  var k = (e, n, i) => (qe(e, typeof n != "symbol" ? n + "" : n, i), i);
4
- import { y as Qe } from "./index-5ba5ee24.js";
4
+ import { y as Qe } from "./index-71cad06d.js";
5
5
  import "vue";
6
6
  /*!-----------------------------------------------------------------------------
7
7
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- import { _ as r } from "./index-5ba5ee24.js";
1
+ import { _ as r } from "./index-71cad06d.js";
2
2
  import "vue";
3
3
  const e = {};
4
4
  function n(t, c) {