form-imagining 0.0.87-21 → 0.0.87-22

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 (52) hide show
  1. package/dist/{App-STtClgh-.js → App-CYKm1R4I.js} +1 -1
  2. package/dist/{Ceshi-B3kZG5NY.js → Ceshi-CfaMY4Oa.js} +1 -1
  3. package/dist/{Ceshi2-ZyVxqi6l.js → Ceshi2-DAUomDPa.js} +1 -1
  4. package/dist/Col-CUTQPfvg.js +4 -0
  5. package/dist/Collapse-BUAeB7s2.js +4 -0
  6. package/dist/{Demo-c8pVdOsy.js → Demo-wwlflHrU.js} +1 -1
  7. package/dist/FX-BkPacjRG.js +4 -0
  8. package/dist/{FormGridCopy-B8qF7r0o.js → FormGridCopy-Vbw3dZWN.js} +1 -1
  9. package/dist/GenerateForm-B2D-CTx8.js +4 -0
  10. package/dist/GenerateReport-cTt550si.js +4 -0
  11. package/dist/{HelloWorld-CS7lzdZM.js → HelloWorld-gW4Uk1zN.js} +1 -1
  12. package/dist/Input-/345/210/240/351/231/{244-D4j_ymDh.js → 244-BGv1mwne.js} +1 -1
  13. package/dist/Label-/345/210/240/351/231/{244-CAfGJXlJ.js → 244-DXz5aAXD.js} +1 -1
  14. package/dist/{Login-BIHZ9nS4.js → Login-elXMyAu9.js} +1 -1
  15. package/dist/ReportModule-CzyznFhE.js +4 -0
  16. package/dist/SqlModule-CPjWhfaZ.js +4 -0
  17. package/dist/TableBtnModal-FPcA6fYh.js +4 -0
  18. package/dist/childForm-DQXXphVw.js +4 -0
  19. package/dist/{cssMode-BEacvHhm.js → cssMode-5R7P7FR7.js} +1 -1
  20. package/dist/form-imagining.js +1 -1
  21. package/dist/form-imagining.umd.cjs +14 -13
  22. package/dist/{formTest-CW-K577H.js → formTest-DshZ4C20.js} +1 -1
  23. package/dist/{freemarker2-CYAXc2Zn.js → freemarker2-CHOyUMVa.js} +1 -1
  24. package/dist/{handlebars-DarUunsa.js → handlebars-4F-Usk_W.js} +1 -1
  25. package/dist/{html-DiKpZESP.js → html-DqbaFEfx.js} +1 -1
  26. package/dist/{htmlMode-6GBtSFsM.js → htmlMode-kPMMUNGS.js} +1 -1
  27. package/dist/{index-CfrA6HAp.js → index-D7sRtSly.js} +1 -1
  28. package/dist/{index-DuzQqckl.js → index-H1Yw2PHJ.js} +1091 -1007
  29. package/dist/{index-C_mPZNtD.js → index-kQ6gIBxs.js} +1 -1
  30. package/dist/{javascript-DGaXq9a_.js → javascript-VSj-W4zY.js} +1 -1
  31. package/dist/{jsonMode-Cb2JZSSN.js → jsonMode-Ctvq91A-.js} +1 -1
  32. package/dist/{liquid-jKKbfnYF.js → liquid-Dhow4GT6.js} +1 -1
  33. package/dist/{mdx-D8ztuZP2.js → mdx-C0nLvpT1.js} +1 -1
  34. package/dist/{python-qanLtxa0.js → python-BUEOj0VD.js} +1 -1
  35. package/dist/{razor-BC4ActBR.js → razor-AjoEooen.js} +1 -1
  36. package/dist/style.css +1 -1
  37. package/dist/{tableSelectDemo-wzy7O2nC.js → tableSelectDemo-BcYtit8U.js} +1 -1
  38. package/dist/{tableSelectDemo2-Cala3KB3.js → tableSelectDemo2-CKRkmATh.js} +1 -1
  39. package/dist/{tsMode-Dw94C6If.js → tsMode-Ci39ctG5.js} +1 -1
  40. package/dist/{typescript-BJ4ZHObD.js → typescript-C-tK9j2R.js} +1 -1
  41. package/dist/{xml-Dcu7KA-n.js → xml-DIS-Ugaq.js} +1 -1
  42. package/dist/{yaml-CYlpkCfT.js → yaml-vBY6lGQG.js} +1 -1
  43. package/package.json +1 -1
  44. package/dist/Col-BcOXEdD1.js +0 -4
  45. package/dist/Collapse-B6__FPFF.js +0 -4
  46. package/dist/FX-uz7_Bwem.js +0 -4
  47. package/dist/GenerateForm-C-SzbnLl.js +0 -4
  48. package/dist/GenerateReport-CgHLOSq5.js +0 -4
  49. package/dist/ReportModule-DKB1TUf4.js +0 -4
  50. package/dist/SqlModule-Ed6ebKg4.js +0 -4
  51. package/dist/TableBtnModal-CZ1pVamz.js +0 -4
  52. package/dist/childForm-Bc3kaLTq.js +0 -4
@@ -1,7 +1,7 @@
1
1
  var Ti = Object.defineProperty;
2
2
  var Ai = (W, C, Q) => C in W ? Ti(W, C, { enumerable: !0, configurable: !0, writable: !0, value: Q }) : W[C] = Q;
3
3
  var ai = (W, C, Q) => Ai(W, typeof C != "symbol" ? C + "" : C, Q);
4
- import { defineComponent, h as h$2, resolveComponent, openBlock, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, createVNode, unref, withCtx, createBlock, effectScope, ref, markRaw, toRaw, isRef, isReactive, toRef, hasInjectionContext, inject, getCurrentInstance, watch, reactive, nextTick, computed, getCurrentScope, onScopeDispose, toRefs, createCommentVNode, normalizeStyle as normalizeStyle$1, normalizeClass, createSlots, isVNode, Comment, Text as Text$1, onMounted, onUpdated, onUnmounted, provide, shallowRef, watchEffect, onBeforeUnmount, triggerRef, Transition, withDirectives, resolveDirective, cloneVNode, render, withModifiers, vShow, onBeforeMount, Teleport, createTextVNode, useAttrs, onBeforeUpdate, TransitionGroup, onActivated, pushScopeId, popScopeId, useCssVars, defineAsyncComponent, mergeProps, resolveDynamicComponent, renderSlot, useSlots, normalizeProps, createApp, shallowReactive } from "vue";
4
+ import { defineComponent, h as h$2, resolveComponent, openBlock, createElementBlock, Fragment, renderList, createElementVNode, toDisplayString, createVNode, unref, withCtx, createBlock, effectScope, ref, markRaw, toRaw, isRef, isReactive, toRef, hasInjectionContext, inject, getCurrentInstance, watch, reactive, nextTick, computed, getCurrentScope, onScopeDispose, toRefs, createCommentVNode, normalizeStyle as normalizeStyle$1, normalizeClass, createSlots, isVNode, Comment, Text as Text$1, onMounted, onUpdated, onUnmounted, provide, shallowRef, watchEffect, onBeforeUnmount, triggerRef, Transition, withDirectives, resolveDirective, cloneVNode, render, withModifiers, vShow, onBeforeMount, Teleport, createTextVNode, useAttrs, onBeforeUpdate, TransitionGroup, onActivated, pushScopeId, popScopeId, useCssVars, shallowReactive, defineAsyncComponent, mergeProps, resolveDynamicComponent, renderSlot, useSlots, normalizeProps, createApp } from "vue";
5
5
  /*!
6
6
  * vue-draggable-next v2.2.0
7
7
  * (c) 2023 Anish George
@@ -79012,24 +79012,25 @@ function generateTable(W, C, Q, Z, H, K) {
79012
79012
  for (let ce = 0; ce < oe; ce++) {
79013
79013
  const de = W.action[ce];
79014
79014
  let ue = de.extend || "";
79015
- ne += `<a-button type="link" ${ue} @click="${de.oper}(record, index)">${de.title}</a-button>`, ce != oe - 1 && (ne += '<a-divider type="vertical" />');
79015
+ X ? ne += `<a-button type="link" ${ue} @click="${de.oper}(record, index, editableData)">${de.title}</a-button>` : ne += `<a-button type="link" ${ue} @click="${de.oper}(record, index)">${de.title}</a-button>`, ce != oe - 1 && (ne += '<a-divider type="vertical" />');
79016
79016
  }
79017
79017
  let le = "";
79018
79018
  X && (le = `
79019
- <span v-if="editableData[record.id]">
79020
- <a-button type="link" @click="save(record.id, ${W.model})">保存</a-button>
79019
+ <span v-if="editableData[record.${W.keyCol || "id"}]">
79020
+ <a-button type="link" @click="saveRow(record.${W.keyCol || "id"}, editableData, viewData.${W.model},'${W.keyCol}', '${W.model}', updateFormNewData)">保存</a-button>
79021
79021
  <a-divider type="vertical" />
79022
- <a-popconfirm title="确定取消吗?" @confirm="cancel(record.id)">
79022
+ <a-popconfirm title="确定取消吗?" @confirm="cancelRow(record.${W.keyCol || "id"},editableData)">
79023
79023
  <a-button type="link">取消</a-button><a-divider type="vertical" />
79024
79024
  </a-popconfirm>
79025
79025
  </span>
79026
79026
  <span v-else>
79027
- <a-button type="link" @click="edit(record.id, ${W.model})">编辑</a-button>
79027
+ <a-button type="link" @click="editRow(record.${W.keyCol || "id"}, editableData, viewData.${W.model}, '${W.keyCol}')">编辑</a-button>
79028
79028
  </span>
79029
79029
  `), re = `
79030
79030
  <template v-if="column.key === 'action'">
79031
79031
  ${le}
79032
79032
  <span>
79033
+ ${W.action.length ? '<a-divider type="vertical" />' : ""}
79033
79034
  ${ne}
79034
79035
  </span>
79035
79036
  </template>
@@ -79041,11 +79042,11 @@ function generateTable(W, C, Q, Z, H, K) {
79041
79042
  ${re}
79042
79043
  <template v-else>
79043
79044
  <div>
79044
- <template v-if="editableData[record.id]">
79045
+ <template v-if="editableData[record.${W.keyCol || "id"}]">
79045
79046
  <a-input v-if="column.componentType == 'input'"
79046
- v-model:value="editableData[record.id][column.dataIndex]" style="margin: -5px 0" />
79047
+ v-model:value="editableData[record.${W.keyCol || "id"}][column.dataIndex]" style="margin: -5px 0" />
79047
79048
  <a-select v-else-if="column.componentType == 'select'"
79048
- v-model:value="editableData[record.id][column.dataIndex]" style="margin: -5px 0" />
79049
+ v-model:value="editableData[record.${W.keyCol || "id"}][column.dataIndex]" style="margin: -5px 0" />
79049
79050
  <div v-else>
79050
79051
  {{ text }}
79051
79052
  </div>
@@ -85770,7 +85771,7 @@ async function generateFormCode(W) {
85770
85771
  import { defHttp } from "/@/utils/http/axios";
85771
85772
  import { ref, reactive, onMounted, computed, onBeforeUpdate,useAttrs, watch } from "vue";
85772
85773
  import { getDictItemsByCode,getTreeDictItemsByCode,formatMultipleSelectValue,formatMultipleTreeSelectValue, getCasDictItemsByCode, useVNodes } from '/@/utils/form/commonUtils';
85773
- import { getData,getDataByApi,initTable, initCTableV2, initAllCTableV2, validateInfos, validateFun, onSubmitForm, syncChange, onTableSelectClear, onTableSelectChange, onTableSelectRowChange, getSelectAllCheck, setSelectAllCheck, getAccount, hideField, getSelectJsonSetting } from "/@/utils/form/wonder1.0.1";
85774
+ import { getData,getDataByApi,initTable, initCTableV2, initAllCTableV2, validateInfos, validateFun, onSubmitForm, syncChange, onTableSelectClear, onTableSelectChange, onTableSelectRowChange, getSelectAllCheck, setSelectAllCheck, getAccount, hideField, getSelectJsonSetting,editRow, saveRow, cancelRow } from "/@/utils/form/wonder1.0.1";
85774
85775
  import tableSelectProps from "/@/components/form-widget/widget/tableSelectOptions"
85775
85776
  import { cModal } from "/@/components/cModal/index"
85776
85777
  import { Modal, message } from 'ant-design-vue';
@@ -86803,7 +86804,7 @@ const _hoisted_1$p = { style: { "text-align": "left" } }, _hoisted_2$h = { class
86803
86804
  }, 8, ["model"]);
86804
86805
  };
86805
86806
  }
86806
- }), _withScopeId$6 = (W) => (pushScopeId("data-v-7b7f4045"), W = W(), popScopeId(), W), _hoisted_1$k = { class: "table-column-setting" }, _hoisted_2$c = { class: "left" }, _hoisted_3$b = { class: "left-content" }, _hoisted_4$7 = /* @__PURE__ */ _withScopeId$6(() => /* @__PURE__ */ createElementVNode("br", null, null, -1)), _hoisted_5$7 = /* @__PURE__ */ _withScopeId$6(() => /* @__PURE__ */ createElementVNode("br", null, null, -1)), _hoisted_6$7 = /* @__PURE__ */ _withScopeId$6(() => /* @__PURE__ */ 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$v = /* @__PURE__ */ defineComponent({
86807
+ }), _withScopeId$6 = (W) => (pushScopeId("data-v-815c4fe0"), W = W(), popScopeId(), W), _hoisted_1$k = { class: "table-column-setting" }, _hoisted_2$c = { class: "left" }, _hoisted_3$b = { class: "left-content" }, _hoisted_4$7 = /* @__PURE__ */ _withScopeId$6(() => /* @__PURE__ */ createElementVNode("br", null, null, -1)), _hoisted_5$7 = /* @__PURE__ */ _withScopeId$6(() => /* @__PURE__ */ createElementVNode("br", null, null, -1)), _hoisted_6$7 = /* @__PURE__ */ _withScopeId$6(() => /* @__PURE__ */ 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$v = /* @__PURE__ */ defineComponent({
86807
86808
  __name: "TableColumn",
86808
86809
  props: {
86809
86810
  configData: {
@@ -87146,7 +87147,8 @@ const _hoisted_1$p = { style: { "text-align": "left" } }, _hoisted_2$h = { class
87146
87147
  "onUpdate:value": ye[7] || (ye[7] = (Ge) => unref(ae).componentType = Ge),
87147
87148
  "show-search": "",
87148
87149
  style: { width: "40%" },
87149
- options: G
87150
+ options: G,
87151
+ "allow-clear": ""
87150
87152
  }, null, 8, ["value"]),
87151
87153
  unref(ae).componentType == "select" ? (openBlock(), createBlock(Ve, {
87152
87154
  key: 0,
@@ -87293,7 +87295,7 @@ const _hoisted_1$p = { style: { "text-align": "left" } }, _hoisted_2$h = { class
87293
87295
  }, 8, ["open"]);
87294
87296
  };
87295
87297
  }
87296
- }), TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-7b7f4045"]]), TableColumn$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
87298
+ }), TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-815c4fe0"]]), TableColumn$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
87297
87299
  __proto__: null,
87298
87300
  default: TableColumn
87299
87301
  }, Symbol.toStringTag, { value: "Module" })), _sfc_main$u = /* @__PURE__ */ defineComponent({
@@ -164630,37 +164632,37 @@ registerLanguage({
164630
164632
  id: "freemarker2",
164631
164633
  extensions: [".ftl", ".ftlh", ".ftlx"],
164632
164634
  aliases: ["FreeMarker2", "Apache FreeMarker2"],
164633
- loader: () => import("./freemarker2-CYAXc2Zn.js").then((W) => W.TagAutoInterpolationDollar)
164635
+ loader: () => import("./freemarker2-CHOyUMVa.js").then((W) => W.TagAutoInterpolationDollar)
164634
164636
  });
164635
164637
  registerLanguage({
164636
164638
  id: "freemarker2.tag-angle.interpolation-dollar",
164637
164639
  aliases: ["FreeMarker2 (Angle/Dollar)", "Apache FreeMarker2 (Angle/Dollar)"],
164638
- loader: () => import("./freemarker2-CYAXc2Zn.js").then((W) => W.TagAngleInterpolationDollar)
164640
+ loader: () => import("./freemarker2-CHOyUMVa.js").then((W) => W.TagAngleInterpolationDollar)
164639
164641
  });
164640
164642
  registerLanguage({
164641
164643
  id: "freemarker2.tag-bracket.interpolation-dollar",
164642
164644
  aliases: ["FreeMarker2 (Bracket/Dollar)", "Apache FreeMarker2 (Bracket/Dollar)"],
164643
- loader: () => import("./freemarker2-CYAXc2Zn.js").then((W) => W.TagBracketInterpolationDollar)
164645
+ loader: () => import("./freemarker2-CHOyUMVa.js").then((W) => W.TagBracketInterpolationDollar)
164644
164646
  });
164645
164647
  registerLanguage({
164646
164648
  id: "freemarker2.tag-angle.interpolation-bracket",
164647
164649
  aliases: ["FreeMarker2 (Angle/Bracket)", "Apache FreeMarker2 (Angle/Bracket)"],
164648
- loader: () => import("./freemarker2-CYAXc2Zn.js").then((W) => W.TagAngleInterpolationBracket)
164650
+ loader: () => import("./freemarker2-CHOyUMVa.js").then((W) => W.TagAngleInterpolationBracket)
164649
164651
  });
164650
164652
  registerLanguage({
164651
164653
  id: "freemarker2.tag-bracket.interpolation-bracket",
164652
164654
  aliases: ["FreeMarker2 (Bracket/Bracket)", "Apache FreeMarker2 (Bracket/Bracket)"],
164653
- loader: () => import("./freemarker2-CYAXc2Zn.js").then((W) => W.TagBracketInterpolationBracket)
164655
+ loader: () => import("./freemarker2-CHOyUMVa.js").then((W) => W.TagBracketInterpolationBracket)
164654
164656
  });
164655
164657
  registerLanguage({
164656
164658
  id: "freemarker2.tag-auto.interpolation-dollar",
164657
164659
  aliases: ["FreeMarker2 (Auto/Dollar)", "Apache FreeMarker2 (Auto/Dollar)"],
164658
- loader: () => import("./freemarker2-CYAXc2Zn.js").then((W) => W.TagAutoInterpolationDollar)
164660
+ loader: () => import("./freemarker2-CHOyUMVa.js").then((W) => W.TagAutoInterpolationDollar)
164659
164661
  });
164660
164662
  registerLanguage({
164661
164663
  id: "freemarker2.tag-auto.interpolation-bracket",
164662
164664
  aliases: ["FreeMarker2 (Auto/Bracket)", "Apache FreeMarker2 (Auto/Bracket)"],
164663
- loader: () => import("./freemarker2-CYAXc2Zn.js").then((W) => W.TagAutoInterpolationBracket)
164665
+ loader: () => import("./freemarker2-CHOyUMVa.js").then((W) => W.TagAutoInterpolationBracket)
164664
164666
  });
164665
164667
  /*!-----------------------------------------------------------------------------
164666
164668
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -164698,7 +164700,7 @@ registerLanguage({
164698
164700
  extensions: [".handlebars", ".hbs"],
164699
164701
  aliases: ["Handlebars", "handlebars", "hbs"],
164700
164702
  mimetypes: ["text/x-handlebars-template"],
164701
- loader: () => import("./handlebars-DarUunsa.js")
164703
+ loader: () => import("./handlebars-4F-Usk_W.js")
164702
164704
  });
164703
164705
  /*!-----------------------------------------------------------------------------
164704
164706
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -164723,7 +164725,7 @@ registerLanguage({
164723
164725
  extensions: [".html", ".htm", ".shtml", ".xhtml", ".mdoc", ".jsp", ".asp", ".aspx", ".jshtm"],
164724
164726
  aliases: ["HTML", "htm", "html", "xhtml"],
164725
164727
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
164726
- loader: () => import("./html-DiKpZESP.js")
164728
+ loader: () => import("./html-DqbaFEfx.js")
164727
164729
  });
164728
164730
  /*!-----------------------------------------------------------------------------
164729
164731
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -164764,7 +164766,7 @@ registerLanguage({
164764
164766
  filenames: ["jakefile"],
164765
164767
  aliases: ["JavaScript", "javascript", "js"],
164766
164768
  mimetypes: ["text/javascript"],
164767
- loader: () => import("./javascript-DGaXq9a_.js")
164769
+ loader: () => import("./javascript-VSj-W4zY.js")
164768
164770
  });
164769
164771
  /*!-----------------------------------------------------------------------------
164770
164772
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -164839,7 +164841,7 @@ registerLanguage({
164839
164841
  extensions: [".liquid", ".html.liquid"],
164840
164842
  aliases: ["Liquid", "liquid"],
164841
164843
  mimetypes: ["application/liquid"],
164842
- loader: () => import("./liquid-jKKbfnYF.js")
164844
+ loader: () => import("./liquid-Dhow4GT6.js")
164843
164845
  });
164844
164846
  /*!-----------------------------------------------------------------------------
164845
164847
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -164875,7 +164877,7 @@ registerLanguage({
164875
164877
  id: "mdx",
164876
164878
  extensions: [".mdx"],
164877
164879
  aliases: ["MDX", "mdx"],
164878
- loader: () => import("./mdx-D8ztuZP2.js")
164880
+ loader: () => import("./mdx-C0nLvpT1.js")
164879
164881
  });
164880
164882
  /*!-----------------------------------------------------------------------------
164881
164883
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -165070,7 +165072,7 @@ registerLanguage({
165070
165072
  extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
165071
165073
  aliases: ["Python", "py"],
165072
165074
  firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
165073
- loader: () => import("./python-qanLtxa0.js")
165075
+ loader: () => import("./python-BUEOj0VD.js")
165074
165076
  });
165075
165077
  /*!-----------------------------------------------------------------------------
165076
165078
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -165107,7 +165109,7 @@ registerLanguage({
165107
165109
  extensions: [".cshtml"],
165108
165110
  aliases: ["Razor", "razor"],
165109
165111
  mimetypes: ["text/x-cshtml"],
165110
- loader: () => import("./razor-BC4ActBR.js")
165112
+ loader: () => import("./razor-AjoEooen.js")
165111
165113
  });
165112
165114
  /*!-----------------------------------------------------------------------------
165113
165115
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -165359,7 +165361,7 @@ registerLanguage({
165359
165361
  extensions: [".ts", ".tsx", ".cts", ".mts"],
165360
165362
  aliases: ["TypeScript", "ts", "typescript"],
165361
165363
  mimetypes: ["text/typescript"],
165362
- loader: () => import("./typescript-BJ4ZHObD.js")
165364
+ loader: () => import("./typescript-C-tK9j2R.js")
165363
165365
  });
165364
165366
  /*!-----------------------------------------------------------------------------
165365
165367
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -165427,7 +165429,7 @@ registerLanguage({
165427
165429
  firstLine: "(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",
165428
165430
  aliases: ["XML", "xml"],
165429
165431
  mimetypes: ["text/xml", "application/xml", "application/xaml+xml", "application/xml-dtd"],
165430
- loader: () => import("./xml-Dcu7KA-n.js")
165432
+ loader: () => import("./xml-DIS-Ugaq.js")
165431
165433
  });
165432
165434
  /*!-----------------------------------------------------------------------------
165433
165435
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -165440,7 +165442,7 @@ registerLanguage({
165440
165442
  extensions: [".yaml", ".yml"],
165441
165443
  aliases: ["YAML", "yaml", "YML", "yml"],
165442
165444
  mimetypes: ["application/x-yaml", "text/x-yaml"],
165443
- loader: () => import("./yaml-CYlpkCfT.js")
165445
+ loader: () => import("./yaml-vBY6lGQG.js")
165444
165446
  });
165445
165447
  /*!-----------------------------------------------------------------------------
165446
165448
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -165543,7 +165545,7 @@ var LanguageServiceDefaultsImpl$3 = class {
165543
165545
  );
165544
165546
  monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
165545
165547
  function getMode$3() {
165546
- return import("./cssMode-BEacvHhm.js");
165548
+ return import("./cssMode-5R7P7FR7.js");
165547
165549
  }
165548
165550
  monaco_editor_core_exports$3.languages.onLanguage("less", () => {
165549
165551
  getMode$3().then((W) => W.setupMode(lessDefaults));
@@ -165649,7 +165651,7 @@ monaco_editor_core_exports$2.languages.html = {
165649
165651
  registerHTMLLanguageService
165650
165652
  };
165651
165653
  function getMode$2() {
165652
- return import("./htmlMode-6GBtSFsM.js");
165654
+ return import("./htmlMode-kPMMUNGS.js");
165653
165655
  }
165654
165656
  function registerHTMLLanguageService(W, C = optionsDefault, Q = getConfigurationDefault(W)) {
165655
165657
  const Z = new LanguageServiceDefaultsImpl$2(W, C, Q);
@@ -165726,7 +165728,7 @@ var LanguageServiceDefaultsImpl$1 = class {
165726
165728
  ), getWorker = () => getMode$1().then((W) => W.getWorker());
165727
165729
  monaco_editor_core_exports$1.languages.json = { jsonDefaults, getWorker };
165728
165730
  function getMode$1() {
165729
- return import("./jsonMode-Cb2JZSSN.js");
165731
+ return import("./jsonMode-Ctvq91A-.js");
165730
165732
  }
165731
165733
  monaco_editor_core_exports$1.languages.register({
165732
165734
  id: "json",
@@ -165890,7 +165892,7 @@ monaco_editor_core_exports.languages.typescript = {
165890
165892
  getJavaScriptWorker
165891
165893
  };
165892
165894
  function getMode() {
165893
- return import("./tsMode-Dw94C6If.js");
165895
+ return import("./tsMode-Ci39ctG5.js");
165894
165896
  }
165895
165897
  monaco_editor_core_exports.languages.onLanguage("typescript", () => getMode().then((W) => W.setupTypeScript(typescriptDefaults)));
165896
165898
  monaco_editor_core_exports.languages.onLanguage("javascript", () => getMode().then((W) => W.setupJavaScript(javascriptDefaults)));
@@ -201568,951 +201570,6 @@ function validateReg(W, C, Q) {
201568
201570
  }
201569
201571
  return Z && !Q.match(Z) && (H = !1), H ? "" : C;
201570
201572
  }
201571
- let validateInfos = reactive({});
201572
- async function getData(W, C, Q) {
201573
- Q.value = !1, await defHttp.post({ url: "/imaginform/zrzy-form/generate/select", data: { formId: C, param: { code: "liulu" } } }, { withToken: !0 }).then((H) => {
201574
- H.result != "{}" && (W.value = JSON.parse(H.result)), Q.value = !0;
201575
- });
201576
- }
201577
- async function getDataByApi(W, C) {
201578
- }
201579
- async function getInheritData(W, C) {
201580
- }
201581
- function onSubmitForm(W, C) {
201582
- let Q, Z = W.querySelectorAll("[write-field]");
201583
- console.log("formDom", Z);
201584
- for (let H = 0; H < Z.length; H++)
201585
- validateFun(Z[H]);
201586
- if (C && C(), Q = isValidateSuccess(), Q) {
201587
- console.log("校验成功");
201588
- let H = {};
201589
- return H = getUpdateData(Z), H;
201590
- } else
201591
- return !1;
201592
- }
201593
- function getUpdateData(W) {
201594
- let C = {};
201595
- for (let Q = 0; Q < W.length; Q++) {
201596
- let Z = getDomValue(W[Q]);
201597
- const K = getDomAttribute(W[Q], "write-field").split(";");
201598
- for (let G = 0; G < K.length; G++) {
201599
- const U = K[G].split("."), X = U[0];
201600
- C[X] = C[X] ? C[X] : {}, C[X][U[1]] = Z;
201601
- }
201602
- }
201603
- return C;
201604
- }
201605
- function getDomValue(W, C, Q) {
201606
- var H, K, G, U;
201607
- let Z;
201608
- if (Q)
201609
- Z = Q;
201610
- else {
201611
- if (C && W.target) {
201612
- let X = (U = (G = (K = (H = W.target) == null ? void 0 : H.parentNode) == null ? void 0 : K.parentNode) == null ? void 0 : G.parentNode) == null ? void 0 : U.classList;
201613
- X && X.contains("table-select-selected") && (C = void 0, W = W.target.parentNode.parentNode.parentNode);
201614
- }
201615
- if (C)
201616
- Z = W.target.value;
201617
- else {
201618
- let X = W.classList;
201619
- if (X.contains("ant-select")) {
201620
- let ee = W.getAttribute("data-value"), te = ee ? JSON.parse(ee) : "", ie = W.getAttribute("punctuation");
201621
- Array.isArray(te) ? (te = te.map((ne) => ne.value ? ne.value : ne).filter((ne) => ne), Z = te.length ? te.join(ie || ",") : "") : Z = te;
201622
- } else if (X.contains("ant-checkbox-group") || X.contains("ant-radio-group")) {
201623
- let ee = W.getAttribute("data-value"), te = ee ? JSON.parse(ee) : "";
201624
- Z = Array.isArray(te) ? te.length ? te.join(",") : "" : te;
201625
- } else if (X.contains("ant-picker-range-custom")) {
201626
- let ee = Array.from(W.childNodes).find((ie) => ie.classList && ie.classList.contains("ant-picker-range"));
201627
- Z = Array.from(ee.childNodes).filter((ie) => ie.classList && ie.classList.contains("ant-picker-input")).map((ie) => ie.childNodes[0].value);
201628
- } else if (X.contains("ant-picker-custom")) {
201629
- let ee = Array.from(W.childNodes).find((ie) => ie.classList && ie.classList.contains("ant-picker"));
201630
- Z = Array.from(ee.childNodes).find((ie) => ie.classList && ie.classList.contains("ant-picker-input")).childNodes[0].value;
201631
- } else
201632
- Z = W.value;
201633
- }
201634
- }
201635
- return Z || "";
201636
- }
201637
- function getDomAttribute(W, C, Q) {
201638
- let Z, H;
201639
- if (Q) {
201640
- let K = W.target.classList ? W.target : W.nativeEvent.target, G = K.classList, U = K.parentNode.classList;
201641
- if (G.contains("ant-select-selection-search-input") || U.contains("ant-picker-input")) {
201642
- let X = K.parentNode.parentNode.parentNode;
201643
- K.parentNode.parentNode.classList.contains("ant-select-selection-overflow-item") && (X = K.parentNode.parentNode.parentNode.parentNode.parentNode), H = X.getAttribute(C);
201644
- } else G.contains("ant-radio-input") ? H = K.parentNode.parentNode.parentNode.getAttribute(C) : H = K.getAttribute(C);
201645
- } else
201646
- W.target ? H = W.target.getAttribute(C) : H = W.getAttribute(C);
201647
- return Z = isJsonData(H) ? JSON.parse(H) : H, Z;
201648
- }
201649
- function validateFun(W, C, Q, Z) {
201650
- var X;
201651
- typeof W == "string" && (W = (X = document.querySelectorAll(`[write-field="${W}"]`)) == null ? void 0 : X[0]);
201652
- let H = getDomValue(W, C, Q), K = getDomAttribute(W, "rules", C), G = getDomAttribute(W, "write-field", C), U = "";
201653
- if (K && G) {
201654
- for (let ee = 0; ee < K.length; ee++)
201655
- K[ee].type == "required" && (U += validateRequired(H)), U.length == 0 && (U += validateReg(K[ee].type, K[ee].msg, H));
201656
- validateInfos[G] || (validateInfos[G] = {}), U.length > 0 ? (validateInfos[G].validateStatus = "error", validateInfos[G].help = U) : (validateInfos[G].validateStatus = "validating", validateInfos[G].help = ""), validateInfos[G].type = "default";
201657
- }
201658
- Z && Z(W);
201659
- }
201660
- function isValidateSuccess() {
201661
- let W = !0;
201662
- for (const C in validateInfos)
201663
- if (validateInfos[C].validateStatus == "error") {
201664
- W = !1;
201665
- break;
201666
- }
201667
- return W;
201668
- }
201669
- const syncChange = (W, C, Q, Z, H, K) => {
201670
- Q = Q || ",";
201671
- let G = Z.split("."), U = Array.isArray(W) ? W.map((X) => X.value || X) : [W.value || W];
201672
- if (C[G[0]][G[1]] = U ? U.join(Q) : void 0, H) {
201673
- let X = H.split("."), ee = Array.isArray(W) ? W.map((te) => te.label || te) : [W.label || W];
201674
- C[X[0]][X[1]] = ee ? ee.join(Q) : void 0;
201675
- }
201676
- nextTick(() => {
201677
- K && K(W);
201678
- });
201679
- };
201680
- function onTableSelectClear(W, C, Q) {
201681
- let Z = C.split(".");
201682
- W[Z[0]][Z[1]] = "", Q && Q();
201683
- }
201684
- function onTableSelectChange(W, C, Q, Z, H) {
201685
- let K = Z.split(".");
201686
- Q[K[0]][K[1]] = W ? W.join(",") : void 0, H && H();
201687
- }
201688
- function onTableSelectRowChange(W, C, Q, Z, H, K, G) {
201689
- let U = Q.split("."), X = W.map((ee) => ee[Z]);
201690
- if (C[U[0]][U[1]] = X ? X.join(",") : void 0, H && K) {
201691
- let ee = H.split("."), te = W.map((ie) => ie[K]);
201692
- C[ee[0]][ee[1]] = te ? te.join(",") : void 0;
201693
- }
201694
- G && G(W);
201695
- }
201696
- const getSelectAllCheck = (W, C) => {
201697
- let Q = C ? C.map((H) => H.value) : [], Z = W ? W.includes(",") ? W.split(",") : [W] : [];
201698
- return Z.length == Q.length && Z.length !== 0 && Q.length !== 0;
201699
- }, setSelectAllCheck = (W, C, Q, Z) => {
201700
- let H = W.target.checked, K = Q ? Q.split(".") : null;
201701
- if (K) {
201702
- let G = Z ? Z.map((U) => U.value) : [];
201703
- C[K[0]][K[1]] = H ? G.join(",") : null;
201704
- }
201705
- };
201706
- function getAccount(W, C, Q) {
201707
- let Z = 0;
201708
- switch (W) {
201709
- case "sum":
201710
- Z = sum(C, Q);
201711
- break;
201712
- case "avg":
201713
- Z = sum(C, Q) / C.split(",").length;
201714
- break;
201715
- }
201716
- return Z;
201717
- }
201718
- function sum(W, C) {
201719
- let Q = 0;
201720
- if (W.indexOf(",") > -1) {
201721
- let Z = W.split(",");
201722
- for (let H = 0; H < Z.length; H++) {
201723
- let K = Z[H].split("."), G = C[K[0]][K[1]];
201724
- G == null && (G = 0), Q += G;
201725
- }
201726
- }
201727
- return Q;
201728
- }
201729
- function hideField(W, C, Q) {
201730
- let Z = !1;
201731
- const H = W[Q].ruleList[0], { field: K, selectType: G, ruleValue: U } = H, X = K.split(".");
201732
- let ee = U;
201733
- if (G == "field") {
201734
- const te = U.split(".");
201735
- ee = C.value[te[0]][te[1]];
201736
- }
201737
- if (C.value != null) {
201738
- const te = C.value[X[0]];
201739
- te != null && te[X[1]] != null && (Z = te[X[1]] === ee);
201740
- }
201741
- return Z;
201742
- }
201743
- function getSelectJsonSetting(W) {
201744
- for (const C in W.value)
201745
- if (W.value[C].options.length == 0) {
201746
- let Q = new URL((/* @__PURE__ */ Object.assign({ "/public/json/gbhy.json": __vite_glob_0_0, "/public/json/scope_type.json": __vite_glob_0_1 }))[`/public/json/${C}.json`], import.meta.url).href;
201747
- defHttp.get({ url: Q }, { withToken: !0 }).then((Z) => {
201748
- Z && (W.value[C].remoteLabel == "label" && W.value[C].remoteValue == "value" ? W.value[C].options = Z : W.value[C].options = Z.map((H) => (H.label = H[W.value[C].remoteLabel], H.value = H[W.value[C].remoteValue], H)));
201749
- });
201750
- }
201751
- }
201752
- const locale$2 = {
201753
- locale: "zh_CN",
201754
- today: "今天",
201755
- now: "此刻",
201756
- backToToday: "返回今天",
201757
- ok: "确定",
201758
- timeSelect: "选择时间",
201759
- dateSelect: "选择日期",
201760
- weekSelect: "选择周",
201761
- clear: "清除",
201762
- month: "月",
201763
- year: "年",
201764
- previousMonth: "上个月 (翻页上键)",
201765
- nextMonth: "下个月 (翻页下键)",
201766
- monthSelect: "选择月份",
201767
- yearSelect: "选择年份",
201768
- decadeSelect: "选择年代",
201769
- yearFormat: "YYYY年",
201770
- dayFormat: "D日",
201771
- dateFormat: "YYYY年M月D日",
201772
- dateTimeFormat: "YYYY年M月D日 HH时mm分ss秒",
201773
- previousYear: "上一年 (Control键加左方向键)",
201774
- nextYear: "下一年 (Control键加右方向键)",
201775
- previousDecade: "上一年代",
201776
- nextDecade: "下一年代",
201777
- previousCentury: "上一世纪",
201778
- nextCentury: "下一世纪"
201779
- }, locale$1 = {
201780
- placeholder: "请选择时间",
201781
- rangePlaceholder: ["开始时间", "结束时间"]
201782
- }, locale = {
201783
- lang: _extends$1({
201784
- placeholder: "请选择日期",
201785
- yearPlaceholder: "请选择年份",
201786
- quarterPlaceholder: "请选择季度",
201787
- monthPlaceholder: "请选择月份",
201788
- weekPlaceholder: "请选择周",
201789
- rangePlaceholder: ["开始日期", "结束日期"],
201790
- rangeYearPlaceholder: ["开始年份", "结束年份"],
201791
- rangeMonthPlaceholder: ["开始月份", "结束月份"],
201792
- rangeQuarterPlaceholder: ["开始季度", "结束季度"],
201793
- rangeWeekPlaceholder: ["开始周", "结束周"]
201794
- }, locale$2),
201795
- timePickerLocale: _extends$1({}, locale$1)
201796
- };
201797
- locale.lang.ok = "确定";
201798
- const typeTemplate = "${label}不是一个有效的${type}", localeValues = {
201799
- locale: "zh-cn",
201800
- Pagination: Pagination$2,
201801
- DatePicker: locale,
201802
- TimePicker: locale$1,
201803
- Calendar: locale,
201804
- // locales for all components
201805
- global: {
201806
- placeholder: "请选择"
201807
- },
201808
- Table: {
201809
- filterTitle: "筛选",
201810
- filterConfirm: "确定",
201811
- filterReset: "重置",
201812
- filterEmptyText: "无筛选项",
201813
- filterCheckall: "全选",
201814
- filterSearchPlaceholder: "在筛选项中搜索",
201815
- selectAll: "全选当页",
201816
- selectInvert: "反选当页",
201817
- selectNone: "清空所有",
201818
- selectionAll: "全选所有",
201819
- sortTitle: "排序",
201820
- expand: "展开行",
201821
- collapse: "关闭行",
201822
- triggerDesc: "点击降序",
201823
- triggerAsc: "点击升序",
201824
- cancelSort: "取消排序"
201825
- },
201826
- Tour: {
201827
- Next: "下一步",
201828
- Previous: "上一步",
201829
- Finish: "结束导览"
201830
- },
201831
- Modal: {
201832
- okText: "确定",
201833
- cancelText: "取消",
201834
- justOkText: "知道了"
201835
- },
201836
- Popconfirm: {
201837
- cancelText: "取消",
201838
- okText: "确定"
201839
- },
201840
- Transfer: {
201841
- searchPlaceholder: "请输入搜索内容",
201842
- itemUnit: "项",
201843
- itemsUnit: "项",
201844
- remove: "删除",
201845
- selectCurrent: "全选当页",
201846
- removeCurrent: "删除当页",
201847
- selectAll: "全选所有",
201848
- removeAll: "删除全部",
201849
- selectInvert: "反选当页"
201850
- },
201851
- Upload: {
201852
- uploading: "文件上传中",
201853
- removeFile: "删除文件",
201854
- uploadError: "上传错误",
201855
- previewFile: "预览文件",
201856
- downloadFile: "下载文件"
201857
- },
201858
- Empty: {
201859
- description: "暂无数据"
201860
- },
201861
- Icon: {
201862
- icon: "图标"
201863
- },
201864
- Text: {
201865
- edit: "编辑",
201866
- copy: "复制",
201867
- copied: "复制成功",
201868
- expand: "展开"
201869
- },
201870
- PageHeader: {
201871
- back: "返回"
201872
- },
201873
- Form: {
201874
- optional: "(可选)",
201875
- defaultValidateMessages: {
201876
- default: "字段验证错误${label}",
201877
- required: "请输入${label}",
201878
- enum: "${label}必须是其中一个[${enum}]",
201879
- whitespace: "${label}不能为空字符",
201880
- date: {
201881
- format: "${label}日期格式无效",
201882
- parse: "${label}不能转换为日期",
201883
- invalid: "${label}是一个无效日期"
201884
- },
201885
- types: {
201886
- string: typeTemplate,
201887
- method: typeTemplate,
201888
- array: typeTemplate,
201889
- object: typeTemplate,
201890
- number: typeTemplate,
201891
- date: typeTemplate,
201892
- boolean: typeTemplate,
201893
- integer: typeTemplate,
201894
- float: typeTemplate,
201895
- regexp: typeTemplate,
201896
- email: typeTemplate,
201897
- url: typeTemplate,
201898
- hex: typeTemplate
201899
- },
201900
- string: {
201901
- len: "${label}须为${len}个字符",
201902
- min: "${label}最少${min}个字符",
201903
- max: "${label}最多${max}个字符",
201904
- range: "${label}须在${min}-${max}字符之间"
201905
- },
201906
- number: {
201907
- len: "${label}必须等于${len}",
201908
- min: "${label}最小值为${min}",
201909
- max: "${label}最大值为${max}",
201910
- range: "${label}须在${min}-${max}之间"
201911
- },
201912
- array: {
201913
- len: "须为${len}个${label}",
201914
- min: "最少${min}个${label}",
201915
- max: "最多${max}个${label}",
201916
- range: "${label}数量须在${min}-${max}之间"
201917
- },
201918
- pattern: {
201919
- mismatch: "${label}与模式不匹配${pattern}"
201920
- }
201921
- }
201922
- },
201923
- Image: {
201924
- preview: "预览"
201925
- },
201926
- QRCode: {
201927
- expired: "二维码已过期",
201928
- refresh: "点击刷新",
201929
- scanned: "已扫描"
201930
- }
201931
- }, _sfc_main$g = /* @__PURE__ */ defineComponent({
201932
- __name: "index",
201933
- props: {
201934
- title: {
201935
- type: String,
201936
- default: "标题"
201937
- },
201938
- width: {
201939
- type: [String, Number],
201940
- default: 520
201941
- },
201942
- filePath: {
201943
- type: String,
201944
- default: "components/wonderform/free/PreviewDemo"
201945
- },
201946
- formData: {
201947
- type: [Object, String, Number, Array]
201948
- },
201949
- okText: {
201950
- type: String,
201951
- default: "确认"
201952
- },
201953
- cancelText: {
201954
- type: String,
201955
- default: "取消"
201956
- },
201957
- onOk: {
201958
- type: Function,
201959
- default: null
201960
- },
201961
- onCancel: {
201962
- type: Function,
201963
- default: null
201964
- },
201965
- footer: {
201966
- type: Boolean,
201967
- default: !0
201968
- }
201969
- },
201970
- setup(W, { expose: C }) {
201971
- const Q = /* @__PURE__ */ Object.assign({ "/src/App.vue": () => import("./App-STtClgh-.js"), "/src/components/HelloWorld.vue": () => import("./HelloWorld-CS7lzdZM.js"), "/src/components/cModal/index.vue": () => Promise.resolve().then(() => index$6), "/src/components/form-widget/widget/childForm.vue": () => import("./childForm-Bc3kaLTq.js"), "/src/components/form-widget/widget/collapsePanel.vue": () => Promise.resolve().then(() => collapsePanel), "/src/components/form-widget/widget/tableSelect.vue": () => Promise.resolve().then(() => tableSelect), "/src/components/form-widget/widget/tableSelectDemo.vue": () => import("./tableSelectDemo-wzy7O2nC.js"), "/src/components/form-widget/widget/tableSelectDemo2.vue": () => import("./tableSelectDemo2-Cala3KB3.js"), "/src/components/generate/Ceshi.vue": () => import("./Ceshi-B3kZG5NY.js"), "/src/components/generate/Ceshi2.vue": () => import("./Ceshi2-ZyVxqi6l.js"), "/src/components/generate/Demo.vue": () => import("./Demo-c8pVdOsy.js"), "/src/components/generate/GenerateForm.vue": () => import("./GenerateForm-C-SzbnLl.js"), "/src/components/generate/GenerateReport.vue": () => import("./GenerateReport-CgHLOSq5.js"), "/src/components/icon/SvgIcon.vue": () => Promise.resolve().then(() => SvgIcon$1), "/src/components/monaco/monacoEditor.vue": () => Promise.resolve().then(() => monacoEditor$1), "/src/components/table/index.vue": () => Promise.resolve().then(() => index$5), "/src/components/vfd/index.vue": () => import("./index-C_mPZNtD.js"), "/src/components/wonderform/config/ReportIndex.vue": () => Promise.resolve().then(() => ReportIndex), "/src/components/wonderform/config/index.vue": () => Promise.resolve().then(() => index$7), "/src/components/wonderform/config/modules/Col.vue": () => import("./Col-BcOXEdD1.js"), "/src/components/wonderform/config/modules/Collapse.vue": () => import("./Collapse-B6__FPFF.js"), "/src/components/wonderform/config/modules/DataSource.vue": () => Promise.resolve().then(() => DataSource$2), "/src/components/wonderform/config/modules/FX.vue": () => import("./FX-uz7_Bwem.js"), "/src/components/wonderform/config/modules/Form.vue": () => Promise.resolve().then(() => Form), "/src/components/wonderform/config/modules/FormSetting.vue": () => Promise.resolve().then(() => FormSetting$1), "/src/components/wonderform/config/modules/FormSettingIndex.vue": () => Promise.resolve().then(() => FormSettingIndex), "/src/components/wonderform/config/modules/Grid.vue": () => Promise.resolve().then(() => Grid), "/src/components/wonderform/config/modules/Input-删除.vue": () => import("./Input-删除-D4j_ymDh.js"), "/src/components/wonderform/config/modules/Label-删除.vue": () => import("./Label-删除-CAfGJXlJ.js"), "/src/components/wonderform/config/modules/Properties.vue": () => Promise.resolve().then(() => Properties), "/src/components/wonderform/config/modules/ReportProperties.vue": () => Promise.resolve().then(() => ReportProperties), "/src/components/wonderform/config/modules/Table.vue": () => Promise.resolve().then(() => Table$1), "/src/components/wonderform/config/modules/TableBtnModal.vue": () => import("./TableBtnModal-CZ1pVamz.js"), "/src/components/wonderform/config/modules/TableColumn.vue": () => Promise.resolve().then(() => TableColumn$1), "/src/components/wonderform/config/modules/Tabs.vue": () => Promise.resolve().then(() => Tabs), "/src/components/wonderform/config/modules/TypeScript.vue": () => Promise.resolve().then(() => TypeScript$1), "/src/components/wonderform/design/Form.vue": () => import("./Form-CsKlmwSd.js"), "/src/components/wonderform/design/index.vue": () => Promise.resolve().then(() => index$8), "/src/components/wonderform/design/modules/FormCol.vue": () => Promise.resolve().then(() => FormCol$1), "/src/components/wonderform/design/modules/FormCollapse.vue": () => Promise.resolve().then(() => FormCollapse$1), "/src/components/wonderform/design/modules/FormGrid.vue": () => Promise.resolve().then(() => FormGrid$1), "/src/components/wonderform/design/modules/FormGridCopy.vue": () => import("./FormGridCopy-B8qF7r0o.js"), "/src/components/wonderform/design/modules/FormInput.vue": () => Promise.resolve().then(() => FormInput$1), "/src/components/wonderform/design/modules/FormReport.vue": () => Promise.resolve().then(() => FormReport$1), "/src/components/wonderform/design/modules/FormTable.vue": () => Promise.resolve().then(() => FormTable$1), "/src/components/wonderform/design/modules/FormTabs.vue": () => Promise.resolve().then(() => FormTabs$1), "/src/components/wonderform/design/modules/FormVue.vue": () => Promise.resolve().then(() => FormVue$1), "/src/components/wonderform/dsource/index.vue": () => Promise.resolve().then(() => index$4), "/src/components/wonderform/dsource/modules/SqlModule.vue": () => import("./SqlModule-Ed6ebKg4.js"), "/src/components/wonderform/header/Header.vue": () => Promise.resolve().then(() => Header), "/src/components/wonderform/header/modules/Code.vue": () => Promise.resolve().then(() => Code$1), "/src/components/wonderform/index.vue": () => Promise.resolve().then(() => index$3), "/src/components/wonderform/tool/index.vue": () => Promise.resolve().then(() => index$b), "/src/components/wonderreport/Demo.vue": () => import("./Demo-dzSXIWpK.js"), "/src/components/wonderreport/ReportModule.vue": () => import("./ReportModule-DKB1TUf4.js"), "/src/components/wonderreport/header/index.vue": () => Promise.resolve().then(() => index$2), "/src/components/wonderreport/index.vue": () => Promise.resolve().then(() => index$1), "/src/views/formTest.vue": () => import("./formTest-CW-K577H.js"), "/src/views/sys/login/Login.vue": () => import("./Login-BIHZ9nS4.js"), "/src/views/workbench/index.vue": () => import("./index-CfrA6HAp.js") });
201972
- let Z = ref(!1), H = ref(!1), K = ref(), G = ref(!1);
201973
- const U = computed(() => defineAsyncComponent(Q[`/src/${X.filePath}.vue`])), X = W, ee = computed(() => X.footer ? "" : { footer: null });
201974
- C({
201975
- setConfirmLoading: te,
201976
- show: oe,
201977
- close: re
201978
- }), onMounted(() => {
201979
- oe();
201980
- });
201981
- function te(ae) {
201982
- H.value = ae;
201983
- }
201984
- function ie() {
201985
- if (X.onOk && typeof X.onOk == "function") {
201986
- let ae = K.value;
201987
- X.onOk(ae);
201988
- } else
201989
- Z.value = !1;
201990
- }
201991
- function ne() {
201992
- if (X.onCancel && typeof X.onCancel == "function") {
201993
- let ae = K.value;
201994
- X.onCancel(ae);
201995
- } else
201996
- Z.value = !1;
201997
- }
201998
- function oe() {
201999
- Z.value = !0;
202000
- }
202001
- function re() {
202002
- Z.value = !1;
202003
- }
202004
- function se() {
202005
- G.value = !G.value;
202006
- }
202007
- return (ae, le) => {
202008
- const ce = resolveComponent("a-modal"), de = resolveComponent("a-config-provider");
202009
- return openBlock(), createBlock(de, { locale: unref(localeValues) }, {
202010
- default: withCtx(() => [
202011
- createVNode(ce, mergeProps({
202012
- class: "commonModal",
202013
- open: unref(Z),
202014
- "onUpdate:open": le[0] || (le[0] = (ue) => isRef(Z) ? Z.value = ue : Z = ue),
202015
- width: unref(G) ? "100%" : W.width,
202016
- "wrap-class-name": unref(G) ? "full-common-modal" : "",
202017
- confirmLoading: unref(H),
202018
- maskClosable: !1,
202019
- okText: W.okText,
202020
- cancelText: W.cancelText
202021
- }, ee.value, {
202022
- onOk: ie,
202023
- onCancel: ne
202024
- }), {
202025
- title: withCtx(() => [
202026
- createTextVNode(toDisplayString(W.title) + " ", 1),
202027
- createElementVNode("div", {
202028
- class: "fullscreen-custom",
202029
- onClick: se
202030
- }, [
202031
- unref(G) ? (openBlock(), createBlock(unref(FullscreenExitOutlined), { key: 0 })) : (openBlock(), createBlock(unref(FullscreenOutlined), { key: 1 }))
202032
- ])
202033
- ]),
202034
- default: withCtx(() => [
202035
- (openBlock(), createBlock(resolveDynamicComponent(U.value), {
202036
- formData: W.formData,
202037
- ref_key: "link",
202038
- ref: K
202039
- }, null, 8, ["formData"]))
202040
- ]),
202041
- _: 1
202042
- }, 16, ["open", "width", "wrap-class-name", "confirmLoading", "okText", "cancelText"])
202043
- ]),
202044
- _: 1
202045
- }, 8, ["locale"]);
202046
- };
202047
- }
202048
- }), CommonModal = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-7fcccc1f"]]), index$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
202049
- __proto__: null,
202050
- default: CommonModal
202051
- }, Symbol.toStringTag, { value: "Module" })), _hoisted_1$9 = ["xlink:href"], _sfc_main$f = /* @__PURE__ */ defineComponent({
202052
- __name: "SvgIcon",
202053
- props: {
202054
- name: {
202055
- type: String,
202056
- required: !0
202057
- },
202058
- title: {
202059
- type: String,
202060
- required: !1
202061
- },
202062
- color: {
202063
- type: String,
202064
- default: ""
202065
- },
202066
- width: {
202067
- type: String,
202068
- default: "16px"
202069
- },
202070
- height: {
202071
- type: String,
202072
- default: "16px"
202073
- }
202074
- },
202075
- setup(W) {
202076
- const C = W, Q = computed(() => `#icon-${C.name}`), Z = computed(() => C.name ? `svg-icon icon-${C.name}` : "svg-icon");
202077
- return (H, K) => (openBlock(), createElementBlock("svg", mergeProps({ class: Z.value }, H.$attrs, {
202078
- style: { color: W.color, width: W.width, height: W.height }
202079
- }), [
202080
- createElementVNode("title", null, toDisplayString(W.title), 1),
202081
- createElementVNode("use", { "xlink:href": Q.value }, null, 8, _hoisted_1$9)
202082
- ], 16));
202083
- }
202084
- }), SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-f02ffdf6"]]), SvgIcon$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
202085
- __proto__: null,
202086
- default: SvgIcon
202087
- }, Symbol.toStringTag, { value: "Module" })), _hoisted_1$8 = {
202088
- class: "table-header-css",
202089
- style: { "text-align": "left", padding: "5px", overflow: "hidden" }
202090
- }, _hoisted_2$5 = { style: { float: "left" } }, _hoisted_3$4 = { style: { float: "right" } }, _sfc_main$e = /* @__PURE__ */ defineComponent({
202091
- __name: "index",
202092
- props: {
202093
- // 表格数据
202094
- dataSource: {
202095
- type: Array,
202096
- default: () => []
202097
- },
202098
- // 表格列
202099
- columns: {
202100
- type: Array,
202101
- default: () => []
202102
- },
202103
- // 分页信息
202104
- paginations: {
202105
- type: Object,
202106
- default: () => ({})
202107
- },
202108
- // 加载中
202109
- loading: {
202110
- type: Boolean,
202111
- default: !1
202112
- }
202113
- },
202114
- emits: ["columns-change"],
202115
- setup(W, { emit: C }) {
202116
- const Q = W;
202117
- let Z = ref(!1), H = ref([]);
202118
- H.value = Q.columns;
202119
- let K = ref([]);
202120
- const G = reactive({
202121
- indeterminate: !0,
202122
- checkAll: !0,
202123
- checkValue: K.value
202124
- }), U = computed(() => {
202125
- let ne = [];
202126
- return Q.columns.map((oe) => {
202127
- oe.title != "操作" && (ne.push({ label: oe.title, value: oe.dataIndex }), K.value.push(oe.dataIndex));
202128
- }), ne;
202129
- });
202130
- function X(ne) {
202131
- return Q.columns.filter((oe) => ne.includes(oe.dataIndex) ? !0 : oe.title == "操作");
202132
- }
202133
- const ee = C;
202134
- function te(ne) {
202135
- const oe = X(ne);
202136
- H.value = oe, ee("columns-change", H.value);
202137
- }
202138
- const ie = (ne) => {
202139
- if (!ne.target.checked) {
202140
- api$2.error("不能全部取消,请至少选择一个字段!"), G.checkAll = !0;
202141
- return;
202142
- }
202143
- Object.assign(G, {
202144
- checkValue: ne.target.checked ? K.value : [],
202145
- indeterminate: !1
202146
- }), te(G.checkValue);
202147
- };
202148
- return watch(
202149
- () => G.checkValue,
202150
- (ne) => {
202151
- G.indeterminate = !!ne.length && ne.length < K.value.length, G.checkAll = ne.length === K.value.length;
202152
- }
202153
- ), (ne, oe) => {
202154
- const re = resolveComponent("a-space"), se = resolveComponent("a-checkbox"), ae = resolveComponent("a-divider"), le = resolveComponent("a-checkbox-group"), ce = resolveComponent("a-popover"), de = resolveComponent("a-table");
202155
- return openBlock(), createElementBlock(Fragment, null, [
202156
- createElementVNode("div", _hoisted_1$8, [
202157
- createElementVNode("div", _hoisted_2$5, [
202158
- createVNode(re, null, {
202159
- default: withCtx(() => [
202160
- renderSlot(ne.$slots, "toolbar", {}, void 0, !0)
202161
- ]),
202162
- _: 3
202163
- })
202164
- ]),
202165
- createElementVNode("div", _hoisted_3$4, [
202166
- createVNode(ce, {
202167
- style: { width: "300px" },
202168
- trigger: "click",
202169
- open: unref(Z),
202170
- "onUpdate:open": oe[2] || (oe[2] = (ue) => isRef(Z) ? Z.value = ue : Z = ue),
202171
- placement: "rightBottom",
202172
- "arrow-point-at-center": ""
202173
- }, {
202174
- title: withCtx(() => [
202175
- createVNode(se, {
202176
- checked: G.checkAll,
202177
- "onUpdate:checked": oe[0] || (oe[0] = (ue) => G.checkAll = ue),
202178
- indeterminate: G.indeterminate,
202179
- onChange: ie
202180
- }, {
202181
- default: withCtx(() => [
202182
- createTextVNode(" 全选 ")
202183
- ]),
202184
- _: 1
202185
- }, 8, ["checked", "indeterminate"])
202186
- ]),
202187
- content: withCtx(() => [
202188
- createVNode(ae, { style: { height: "2px", margin: "10px 0px!important" } }),
202189
- createVNode(le, {
202190
- options: U.value,
202191
- value: G.checkValue,
202192
- "onUpdate:value": oe[1] || (oe[1] = (ue) => G.checkValue = ue),
202193
- onChange: te
202194
- }, null, 8, ["options", "value"])
202195
- ]),
202196
- default: withCtx(() => [
202197
- createVNode(unref(FunnelPlotOutlined), { style: { "font-size": "16px" } })
202198
- ]),
202199
- _: 1
202200
- }, 8, ["open"])
202201
- ])
202202
- ]),
202203
- createVNode(de, {
202204
- columns: unref(H),
202205
- "data-source": W.dataSource,
202206
- loading: W.loading,
202207
- pagination: W.paginations,
202208
- bordered: ""
202209
- }, {
202210
- bodyCell: withCtx(({ column: ue, text: he, record: fe }) => [
202211
- ue.key === "action" ? (openBlock(), createBlock(re, { key: 0 }, {
202212
- split: withCtx(() => [
202213
- createVNode(ae, { type: "vertical" })
202214
- ]),
202215
- default: withCtx(() => [
202216
- renderSlot(ne.$slots, "rowbar", { record: fe }, void 0, !0)
202217
- ]),
202218
- _: 2
202219
- }, 1024)) : createCommentVNode("", !0)
202220
- ]),
202221
- _: 3
202222
- }, 8, ["columns", "data-source", "loading", "pagination"])
202223
- ], 64);
202224
- };
202225
- }
202226
- }), CTable = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-b4a4a76f"]]), index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
202227
- __proto__: null,
202228
- default: CTable
202229
- }, Symbol.toStringTag, { value: "Module" })), _sfc_main$d = /* @__PURE__ */ defineComponent({
202230
- __name: "tableSelect",
202231
- props: {
202232
- value: {
202233
- type: [String, Number, Array]
202234
- },
202235
- mode: {
202236
- type: String,
202237
- default: ""
202238
- },
202239
- bindKeyName: {
202240
- type: String,
202241
- default: ""
202242
- },
202243
- bindLabelName: {
202244
- type: String,
202245
- default: ""
202246
- },
202247
- tableProps: {
202248
- type: [Number, String, Object, Array]
202249
- },
202250
- dropMenuWidth: {
202251
- type: [Number, String],
202252
- default: ""
202253
- },
202254
- dropMenuHeight: {
202255
- type: [Number, String],
202256
- default: ""
202257
- },
202258
- filePath: {
202259
- type: String,
202260
- default: ""
202261
- },
202262
- placement: {
202263
- type: String,
202264
- default: "bottomLeft"
202265
- }
202266
- },
202267
- emits: ["update:value", "rowChange"],
202268
- setup(W, { emit: C }) {
202269
- const Q = W;
202270
- let Z = ref(!1), H = ref();
202271
- const K = computed(() => ({
202272
- allowClear: !0,
202273
- ...useAttrs()
202274
- }));
202275
- ref();
202276
- let G = ref([]), U = computed({
202277
- get() {
202278
- return Q.value;
202279
- },
202280
- set(ce) {
202281
- oe("update:value", ce);
202282
- }
202283
- });
202284
- watch(() => U.value, (ce) => {
202285
- H.value && (H.value.focus(), nextTick(() => {
202286
- H.value.blur();
202287
- }));
202288
- }, {
202289
- immediate: !0
202290
- });
202291
- const X = /* @__PURE__ */ Object.assign({ "/src/App.vue": () => import("./App-STtClgh-.js"), "/src/components/HelloWorld.vue": () => import("./HelloWorld-CS7lzdZM.js"), "/src/components/cModal/index.vue": () => Promise.resolve().then(() => index$6), "/src/components/form-widget/widget/childForm.vue": () => import("./childForm-Bc3kaLTq.js"), "/src/components/form-widget/widget/collapsePanel.vue": () => Promise.resolve().then(() => collapsePanel), "/src/components/form-widget/widget/tableSelect.vue": () => Promise.resolve().then(() => tableSelect), "/src/components/form-widget/widget/tableSelectDemo.vue": () => import("./tableSelectDemo-wzy7O2nC.js"), "/src/components/form-widget/widget/tableSelectDemo2.vue": () => import("./tableSelectDemo2-Cala3KB3.js"), "/src/components/generate/Ceshi.vue": () => import("./Ceshi-B3kZG5NY.js"), "/src/components/generate/Ceshi2.vue": () => import("./Ceshi2-ZyVxqi6l.js"), "/src/components/generate/Demo.vue": () => import("./Demo-c8pVdOsy.js"), "/src/components/generate/GenerateForm.vue": () => import("./GenerateForm-C-SzbnLl.js"), "/src/components/generate/GenerateReport.vue": () => import("./GenerateReport-CgHLOSq5.js"), "/src/components/icon/SvgIcon.vue": () => Promise.resolve().then(() => SvgIcon$1), "/src/components/monaco/monacoEditor.vue": () => Promise.resolve().then(() => monacoEditor$1), "/src/components/table/index.vue": () => Promise.resolve().then(() => index$5), "/src/components/vfd/index.vue": () => import("./index-C_mPZNtD.js"), "/src/components/wonderform/config/ReportIndex.vue": () => Promise.resolve().then(() => ReportIndex), "/src/components/wonderform/config/index.vue": () => Promise.resolve().then(() => index$7), "/src/components/wonderform/config/modules/Col.vue": () => import("./Col-BcOXEdD1.js"), "/src/components/wonderform/config/modules/Collapse.vue": () => import("./Collapse-B6__FPFF.js"), "/src/components/wonderform/config/modules/DataSource.vue": () => Promise.resolve().then(() => DataSource$2), "/src/components/wonderform/config/modules/FX.vue": () => import("./FX-uz7_Bwem.js"), "/src/components/wonderform/config/modules/Form.vue": () => Promise.resolve().then(() => Form), "/src/components/wonderform/config/modules/FormSetting.vue": () => Promise.resolve().then(() => FormSetting$1), "/src/components/wonderform/config/modules/FormSettingIndex.vue": () => Promise.resolve().then(() => FormSettingIndex), "/src/components/wonderform/config/modules/Grid.vue": () => Promise.resolve().then(() => Grid), "/src/components/wonderform/config/modules/Input-删除.vue": () => import("./Input-删除-D4j_ymDh.js"), "/src/components/wonderform/config/modules/Label-删除.vue": () => import("./Label-删除-CAfGJXlJ.js"), "/src/components/wonderform/config/modules/Properties.vue": () => Promise.resolve().then(() => Properties), "/src/components/wonderform/config/modules/ReportProperties.vue": () => Promise.resolve().then(() => ReportProperties), "/src/components/wonderform/config/modules/Table.vue": () => Promise.resolve().then(() => Table$1), "/src/components/wonderform/config/modules/TableBtnModal.vue": () => import("./TableBtnModal-CZ1pVamz.js"), "/src/components/wonderform/config/modules/TableColumn.vue": () => Promise.resolve().then(() => TableColumn$1), "/src/components/wonderform/config/modules/Tabs.vue": () => Promise.resolve().then(() => Tabs), "/src/components/wonderform/config/modules/TypeScript.vue": () => Promise.resolve().then(() => TypeScript$1), "/src/components/wonderform/design/Form.vue": () => import("./Form-CsKlmwSd.js"), "/src/components/wonderform/design/index.vue": () => Promise.resolve().then(() => index$8), "/src/components/wonderform/design/modules/FormCol.vue": () => Promise.resolve().then(() => FormCol$1), "/src/components/wonderform/design/modules/FormCollapse.vue": () => Promise.resolve().then(() => FormCollapse$1), "/src/components/wonderform/design/modules/FormGrid.vue": () => Promise.resolve().then(() => FormGrid$1), "/src/components/wonderform/design/modules/FormGridCopy.vue": () => import("./FormGridCopy-B8qF7r0o.js"), "/src/components/wonderform/design/modules/FormInput.vue": () => Promise.resolve().then(() => FormInput$1), "/src/components/wonderform/design/modules/FormReport.vue": () => Promise.resolve().then(() => FormReport$1), "/src/components/wonderform/design/modules/FormTable.vue": () => Promise.resolve().then(() => FormTable$1), "/src/components/wonderform/design/modules/FormTabs.vue": () => Promise.resolve().then(() => FormTabs$1), "/src/components/wonderform/design/modules/FormVue.vue": () => Promise.resolve().then(() => FormVue$1), "/src/components/wonderform/dsource/index.vue": () => Promise.resolve().then(() => index$4), "/src/components/wonderform/dsource/modules/SqlModule.vue": () => import("./SqlModule-Ed6ebKg4.js"), "/src/components/wonderform/header/Header.vue": () => Promise.resolve().then(() => Header), "/src/components/wonderform/header/modules/Code.vue": () => Promise.resolve().then(() => Code$1), "/src/components/wonderform/index.vue": () => Promise.resolve().then(() => index$3), "/src/components/wonderform/tool/index.vue": () => Promise.resolve().then(() => index$b), "/src/components/wonderreport/Demo.vue": () => import("./Demo-dzSXIWpK.js"), "/src/components/wonderreport/ReportModule.vue": () => import("./ReportModule-DKB1TUf4.js"), "/src/components/wonderreport/header/index.vue": () => Promise.resolve().then(() => index$2), "/src/components/wonderreport/index.vue": () => Promise.resolve().then(() => index$1), "/src/views/formTest.vue": () => import("./formTest-CW-K577H.js"), "/src/views/sys/login/Login.vue": () => import("./Login-BIHZ9nS4.js"), "/src/views/workbench/index.vue": () => import("./index-CfrA6HAp.js") }), ee = useSlots(), te = computed(() => {
202292
- if (Q.filePath) {
202293
- let ce = `/src/${Q.filePath}.vue`;
202294
- return Q.filePath ? Object.keys(X).includes(ce) : !1;
202295
- } else
202296
- return !1;
202297
- }), ie = computed(() => te ? defineAsyncComponent(X[`/src/${Q.filePath}.vue`]) : null), ne = computed(() => {
202298
- let ce = Q.dropMenuWidth, de = Q.dropMenuHeight, ue = ce == null || ce == "" ? `width: ${re.value}` : `width: ${typeof ce == "number" ? `${ce}px` : `${ce}`}`, he = de == null || de == "" ? "" : `height: ${typeof de == "number" ? `${de}px` : `${de}`}`;
202299
- return ue && he ? ue + ";" + he : ue && !he ? ue : !ue && he ? he : "";
202300
- }), oe = C, re = computed(() => H.value ? H.value.$el.offsetWidth + "px" : "");
202301
- onMounted(() => {
202302
- Z.value = !0, nextTick(() => {
202303
- Z.value = !1;
202304
- });
202305
- });
202306
- function se() {
202307
- nextTick(() => {
202308
- let ce = K.value, de = H.value.$el.classList;
202309
- ce && !ce.disabled && !de.contains("ant-select-disabled") ? Z.value = !0 : Z.value = !1;
202310
- });
202311
- }
202312
- function ae(ce) {
202313
- Q.mode !== "multiple" && (Z.value = !1), oe("rowChange", ce);
202314
- }
202315
- function le(ce) {
202316
- ce ? G.value = ce.map((de) => ({
202317
- label: de[Q.bindLabelName] || "",
202318
- value: de[Q.bindKeyName]
202319
- })) : G.value = [];
202320
- }
202321
- return (ce, de) => {
202322
- const ue = resolveComponent("a-select"), he = resolveComponent("a-empty"), fe = resolveComponent("a-dropdown");
202323
- return openBlock(), createBlock(fe, {
202324
- overlayClassName: "table-select-dropdown",
202325
- trigger: ["click"],
202326
- open: unref(Z),
202327
- "onUpdate:open": de[2] || (de[2] = (ge) => isRef(Z) ? Z.value = ge : Z = ge),
202328
- placement: W.placement,
202329
- onClick: se
202330
- }, {
202331
- overlay: withCtx(() => [
202332
- createElementVNode("div", {
202333
- class: "table-select-content",
202334
- style: normalizeStyle$1(ne.value)
202335
- }, [
202336
- te.value && ie.value ? (openBlock(), createBlock(resolveDynamicComponent(ie.value), {
202337
- key: 0,
202338
- value: unref(U),
202339
- "onUpdate:value": de[1] || (de[1] = (ge) => isRef(U) ? U.value = ge : U = ge),
202340
- mode: W.mode,
202341
- keyName: W.bindKeyName,
202342
- tableProps: W.tableProps,
202343
- onGetTable: le,
202344
- onRowChange: ae
202345
- }, null, 40, ["value", "mode", "keyName", "tableProps"])) : (openBlock(), createBlock(he, { key: 1 }))
202346
- ], 4)
202347
- ]),
202348
- default: withCtx(() => [
202349
- createVNode(ue, mergeProps({
202350
- ref_key: "select",
202351
- ref: H,
202352
- class: "table-select-selected",
202353
- value: unref(U),
202354
- "onUpdate:value": de[0] || (de[0] = (ge) => isRef(U) ? U.value = ge : U = ge),
202355
- options: unref(G),
202356
- mode: W.mode
202357
- }, K.value, { open: !1 }), createSlots({ _: 2 }, [
202358
- unref(ee).suffixIcon ? {
202359
- name: "suffixIcon",
202360
- fn: withCtx(() => [
202361
- renderSlot(ce.$slots, "suffixIcon", {}, void 0, !0)
202362
- ]),
202363
- key: "0"
202364
- } : void 0
202365
- ]), 1040, ["value", "options", "mode"])
202366
- ]),
202367
- _: 3
202368
- }, 8, ["open", "placement"]);
202369
- };
202370
- }
202371
- }), CTableSelect = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-3843eea3"]]), tableSelect = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
202372
- __proto__: null,
202373
- default: CTableSelect
202374
- }, Symbol.toStringTag, { value: "Module" })), _sfc_main$c = /* @__PURE__ */ defineComponent({
202375
- __name: "childForm",
202376
- props: {
202377
- filePath: {
202378
- type: String,
202379
- default: ""
202380
- }
202381
- },
202382
- setup(W) {
202383
- const C = /* @__PURE__ */ Object.assign({ "/src/App.vue": () => import("./App-STtClgh-.js"), "/src/components/HelloWorld.vue": () => import("./HelloWorld-CS7lzdZM.js"), "/src/components/cModal/index.vue": () => Promise.resolve().then(() => index$6), "/src/components/form-widget/widget/childForm.vue": () => import("./childForm-Bc3kaLTq.js"), "/src/components/form-widget/widget/collapsePanel.vue": () => Promise.resolve().then(() => collapsePanel), "/src/components/form-widget/widget/tableSelect.vue": () => Promise.resolve().then(() => tableSelect), "/src/components/form-widget/widget/tableSelectDemo.vue": () => import("./tableSelectDemo-wzy7O2nC.js"), "/src/components/form-widget/widget/tableSelectDemo2.vue": () => import("./tableSelectDemo2-Cala3KB3.js"), "/src/components/generate/Ceshi.vue": () => import("./Ceshi-B3kZG5NY.js"), "/src/components/generate/Ceshi2.vue": () => import("./Ceshi2-ZyVxqi6l.js"), "/src/components/generate/Demo.vue": () => import("./Demo-c8pVdOsy.js"), "/src/components/generate/GenerateForm.vue": () => import("./GenerateForm-C-SzbnLl.js"), "/src/components/generate/GenerateReport.vue": () => import("./GenerateReport-CgHLOSq5.js"), "/src/components/icon/SvgIcon.vue": () => Promise.resolve().then(() => SvgIcon$1), "/src/components/monaco/monacoEditor.vue": () => Promise.resolve().then(() => monacoEditor$1), "/src/components/table/index.vue": () => Promise.resolve().then(() => index$5), "/src/components/vfd/index.vue": () => import("./index-C_mPZNtD.js"), "/src/components/wonderform/config/ReportIndex.vue": () => Promise.resolve().then(() => ReportIndex), "/src/components/wonderform/config/index.vue": () => Promise.resolve().then(() => index$7), "/src/components/wonderform/config/modules/Col.vue": () => import("./Col-BcOXEdD1.js"), "/src/components/wonderform/config/modules/Collapse.vue": () => import("./Collapse-B6__FPFF.js"), "/src/components/wonderform/config/modules/DataSource.vue": () => Promise.resolve().then(() => DataSource$2), "/src/components/wonderform/config/modules/FX.vue": () => import("./FX-uz7_Bwem.js"), "/src/components/wonderform/config/modules/Form.vue": () => Promise.resolve().then(() => Form), "/src/components/wonderform/config/modules/FormSetting.vue": () => Promise.resolve().then(() => FormSetting$1), "/src/components/wonderform/config/modules/FormSettingIndex.vue": () => Promise.resolve().then(() => FormSettingIndex), "/src/components/wonderform/config/modules/Grid.vue": () => Promise.resolve().then(() => Grid), "/src/components/wonderform/config/modules/Input-删除.vue": () => import("./Input-删除-D4j_ymDh.js"), "/src/components/wonderform/config/modules/Label-删除.vue": () => import("./Label-删除-CAfGJXlJ.js"), "/src/components/wonderform/config/modules/Properties.vue": () => Promise.resolve().then(() => Properties), "/src/components/wonderform/config/modules/ReportProperties.vue": () => Promise.resolve().then(() => ReportProperties), "/src/components/wonderform/config/modules/Table.vue": () => Promise.resolve().then(() => Table$1), "/src/components/wonderform/config/modules/TableBtnModal.vue": () => import("./TableBtnModal-CZ1pVamz.js"), "/src/components/wonderform/config/modules/TableColumn.vue": () => Promise.resolve().then(() => TableColumn$1), "/src/components/wonderform/config/modules/Tabs.vue": () => Promise.resolve().then(() => Tabs), "/src/components/wonderform/config/modules/TypeScript.vue": () => Promise.resolve().then(() => TypeScript$1), "/src/components/wonderform/design/Form.vue": () => import("./Form-CsKlmwSd.js"), "/src/components/wonderform/design/index.vue": () => Promise.resolve().then(() => index$8), "/src/components/wonderform/design/modules/FormCol.vue": () => Promise.resolve().then(() => FormCol$1), "/src/components/wonderform/design/modules/FormCollapse.vue": () => Promise.resolve().then(() => FormCollapse$1), "/src/components/wonderform/design/modules/FormGrid.vue": () => Promise.resolve().then(() => FormGrid$1), "/src/components/wonderform/design/modules/FormGridCopy.vue": () => import("./FormGridCopy-B8qF7r0o.js"), "/src/components/wonderform/design/modules/FormInput.vue": () => Promise.resolve().then(() => FormInput$1), "/src/components/wonderform/design/modules/FormReport.vue": () => Promise.resolve().then(() => FormReport$1), "/src/components/wonderform/design/modules/FormTable.vue": () => Promise.resolve().then(() => FormTable$1), "/src/components/wonderform/design/modules/FormTabs.vue": () => Promise.resolve().then(() => FormTabs$1), "/src/components/wonderform/design/modules/FormVue.vue": () => Promise.resolve().then(() => FormVue$1), "/src/components/wonderform/dsource/index.vue": () => Promise.resolve().then(() => index$4), "/src/components/wonderform/dsource/modules/SqlModule.vue": () => import("./SqlModule-Ed6ebKg4.js"), "/src/components/wonderform/header/Header.vue": () => Promise.resolve().then(() => Header), "/src/components/wonderform/header/modules/Code.vue": () => Promise.resolve().then(() => Code$1), "/src/components/wonderform/index.vue": () => Promise.resolve().then(() => index$3), "/src/components/wonderform/tool/index.vue": () => Promise.resolve().then(() => index$b), "/src/components/wonderreport/Demo.vue": () => import("./Demo-dzSXIWpK.js"), "/src/components/wonderreport/ReportModule.vue": () => import("./ReportModule-DKB1TUf4.js"), "/src/components/wonderreport/header/index.vue": () => Promise.resolve().then(() => index$2), "/src/components/wonderreport/index.vue": () => Promise.resolve().then(() => index$1), "/src/views/formTest.vue": () => import("./formTest-CW-K577H.js"), "/src/views/sys/login/Login.vue": () => import("./Login-BIHZ9nS4.js"), "/src/views/workbench/index.vue": () => import("./index-CfrA6HAp.js") }), Q = W, Z = computed(() => {
202384
- if (Q.filePath) {
202385
- let K = `/src/${Q.filePath}.vue`;
202386
- return Q.filePath ? Object.keys(C).includes(K) : !1;
202387
- } else
202388
- return !1;
202389
- }), H = computed(() => Z ? defineAsyncComponent(C[`/src/${Q.filePath}.vue`]) : null);
202390
- return (K, G) => {
202391
- const U = resolveComponent("a-empty"), X = resolveComponent("a-card");
202392
- return Z.value ? (openBlock(), createBlock(resolveDynamicComponent(H.value), normalizeProps(mergeProps({ key: 0 }, useAttrs)), null, 16)) : (openBlock(), createBlock(X, { key: 1 }, {
202393
- default: withCtx(() => [
202394
- createVNode(U)
202395
- ]),
202396
- _: 1
202397
- }));
202398
- };
202399
- }
202400
- }), _hoisted_1$7 = { class: "collapsePanel" }, _hoisted_2$4 = {
202401
- key: 0,
202402
- class: "collapse-btn"
202403
- }, _hoisted_3$3 = { class: "collapse-form-list" }, _sfc_main$b = /* @__PURE__ */ defineComponent({
202404
- __name: "collapsePanel",
202405
- props: {
202406
- classname: {
202407
- type: String,
202408
- default: "title-css1"
202409
- },
202410
- header: {
202411
- type: String,
202412
- default: "标题"
202413
- },
202414
- showArrow: {
202415
- type: Boolean,
202416
- default: !0
202417
- },
202418
- defaultCollapse: {
202419
- type: Boolean,
202420
- default: !1
202421
- },
202422
- collapseType: {
202423
- type: String,
202424
- default: "row"
202425
- }
202426
- },
202427
- setup(W) {
202428
- const C = W;
202429
- let Q = ref(C.defaultCollapse);
202430
- function Z(H) {
202431
- H == C.collapseType && (Q.value = !Q.value);
202432
- }
202433
- return (H, K) => {
202434
- const G = resolveComponent("svg-icon");
202435
- return openBlock(), createElementBlock("div", _hoisted_1$7, [
202436
- createElementVNode("div", {
202437
- class: normalizeClass([W.classname, "title-between", W.collapseType == "row" ? "clickPointer" : "clickAuto"]),
202438
- onClick: K[2] || (K[2] = (U) => Z("row"))
202439
- }, [
202440
- createElementVNode("span", {
202441
- class: normalizeClass(W.collapseType == "icon" ? "clickAuto" : "clickPointer"),
202442
- onClick: K[0] || (K[0] = (U) => Z("header"))
202443
- }, toDisplayString(W.header), 3),
202444
- W.showArrow ? (openBlock(), createElementBlock("div", _hoisted_2$4, [
202445
- createVNode(G, {
202446
- class: normalizeClass(W.collapseType == "header" ? "clickAuto" : "clickPointer"),
202447
- style: normalizeStyle$1(unref(Q) ? { transform: "rotate(180deg)" } : {}),
202448
- height: "20",
202449
- name: "arrow",
202450
- width: "20",
202451
- onClick: K[1] || (K[1] = (U) => Z("icon"))
202452
- }, null, 8, ["class", "style"])
202453
- ])) : createCommentVNode("", !0)
202454
- ], 2),
202455
- withDirectives(createElementVNode("div", _hoisted_3$3, [
202456
- renderSlot(H.$slots, "default", {}, void 0, !0)
202457
- ], 512), [
202458
- [vShow, !unref(Q)]
202459
- ])
202460
- ]);
202461
- };
202462
- }
202463
- }), CCollapsePanel = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-c4840e5b"]]), collapsePanel = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
202464
- __proto__: null,
202465
- default: CCollapsePanel
202466
- }, Symbol.toStringTag, { value: "Module" }));
202467
- var zhCn = { exports: {} };
202468
- (function(W, C) {
202469
- (function(Q, Z) {
202470
- W.exports = Z(dayjs_minExports);
202471
- })(commonjsGlobal, function(Q) {
202472
- function Z(G) {
202473
- return G && typeof G == "object" && "default" in G ? G : { default: G };
202474
- }
202475
- var H = Z(Q), K = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(G, U) {
202476
- return U === "W" ? G + "周" : G + "日";
202477
- }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(G, U) {
202478
- var X = 100 * G + U;
202479
- return X < 600 ? "凌晨" : X < 900 ? "早上" : X < 1100 ? "上午" : X < 1300 ? "中午" : X < 1800 ? "下午" : "晚上";
202480
- } };
202481
- return H.default.locale(K, null, !0), K;
202482
- });
202483
- })(zhCn);
202484
- dayjs.locale("zh-cn");
202485
- function registerGlobComp(W) {
202486
- W.component("svg-icon", SvgIcon), W.component("c-table", CTable), W.component("c-table-select", CTableSelect), W.component("c-child-form", _sfc_main$c), W.component("c-collapse-panel", CCollapsePanel), W.use(Layout).use(Input).use(Row).use(Col).use(Form$1).use(Empty$1).use(Tabs$1).use(Modal).use(InputNumber$1).use(Button$2).use(Table$2).use(Pagination).use(ConfigProvider).use(Switch$1).use(Select).use(Radio).use(Slider$1).use(Dropdown).use(Menu$1).use(Divider$1).use(DatePicker$1).use(Collapse).use(Checkbox).use(Tree).use(TreeSelect$1).use(Space).use(List$1).use(Popconfirm$1).use(Cascader$1).use(Card).use(Flex).use(Drawer$1).use(Tooltip).use(Upload).use(Spin).use(Popover$1);
202487
- }
202488
- function cModal(W) {
202489
- let C, Q, Z;
202490
- C = document.createElement("div"), W && !W.onCancel && (W.onCancel = () => {
202491
- U();
202492
- }), W && !W.onOk && (W.onOk = () => {
202493
- U();
202494
- }), Q = createApp(CommonModal, { ...W }), registerGlobComp(Q), Z = Q.mount(C);
202495
- function H(X) {
202496
- Z && Z.setConfirmLoading(X);
202497
- }
202498
- function K() {
202499
- Z && Z.show();
202500
- }
202501
- function G() {
202502
- Z && Z.close();
202503
- }
202504
- function U() {
202505
- G(), setTimeout(() => {
202506
- Z = Q.unmount();
202507
- }, 200);
202508
- }
202509
- return {
202510
- setConfirmLoading: H,
202511
- show: K,
202512
- close: G,
202513
- destroy: U
202514
- };
202515
- }
202516
201573
  /*!
202517
201574
  * vue-router v4.2.5
202518
201575
  * (c) 2023 Eduardo San Martin Morote
@@ -204247,6 +203304,1050 @@ function extractChangingRecords(W, C) {
204247
203304
  function useRoute() {
204248
203305
  return inject(routeLocationKey);
204249
203306
  }
203307
+ const RootRoute = [
203308
+ {
203309
+ path: "/",
203310
+ name: "home",
203311
+ component: () => import("./index-D7sRtSly.js"),
203312
+ meta: {
203313
+ title: "home"
203314
+ }
203315
+ },
203316
+ {
203317
+ path: "/cc/:code",
203318
+ name: "formTest",
203319
+ component: () => import("./formTest-DshZ4C20.js")
203320
+ }
203321
+ ], basicRoutes = RootRoute, router = createRouter({
203322
+ history: createWebHistory("./"),
203323
+ routes: basicRoutes,
203324
+ strict: !0,
203325
+ scrollBehavior: () => ({ left: 0, top: 0 })
203326
+ });
203327
+ function compareObjects(W, C) {
203328
+ let Q = {};
203329
+ for (const Z in W)
203330
+ W[Z] !== C[Z] && (Q[Z] = C[Z]);
203331
+ return Q;
203332
+ }
203333
+ const toString = Object.prototype.toString;
203334
+ function is(W, C) {
203335
+ return toString.call(W) === `[object ${C}]`;
203336
+ }
203337
+ function isObject(W) {
203338
+ return W !== null && is(W, "Object");
203339
+ }
203340
+ function isEmpty(W) {
203341
+ return isArray(W) || isString(W) ? W.length === 0 : W instanceof Map || W instanceof Set ? W.size === 0 : isObject(W) ? Object.keys(W).length === 0 : !1;
203342
+ }
203343
+ function isString(W) {
203344
+ return is(W, "String");
203345
+ }
203346
+ function isArray(W) {
203347
+ return W && Array.isArray(W);
203348
+ }
203349
+ function isNotNull(W) {
203350
+ return !(W == null || W == null || W == "");
203351
+ }
203352
+ let validateInfos = reactive({});
203353
+ async function getData(W, C, Q) {
203354
+ Q.value = !1, await defHttp.post({ url: "/imaginform/zrzy-form/generate/select", data: { formId: C, param: { code: "liulu" } } }, { withToken: !0 }).then((H) => {
203355
+ H.result != "{}" && (W.value = JSON.parse(H.result)), Q.value = !0;
203356
+ });
203357
+ }
203358
+ async function getDataByApi(W, C) {
203359
+ }
203360
+ async function getInheritData(W, C) {
203361
+ }
203362
+ function onSubmitForm(W, C) {
203363
+ let Q, Z = W.querySelectorAll("[write-field]");
203364
+ console.log("formDom", Z);
203365
+ for (let H = 0; H < Z.length; H++)
203366
+ validateFun(Z[H]);
203367
+ if (C && C(), Q = isValidateSuccess(), Q) {
203368
+ console.log("校验成功");
203369
+ let H = {};
203370
+ return H = getUpdateData(Z), H;
203371
+ } else
203372
+ return !1;
203373
+ }
203374
+ function getUpdateData(W) {
203375
+ let C = {};
203376
+ for (let Q = 0; Q < W.length; Q++) {
203377
+ let Z = getDomValue(W[Q]);
203378
+ const K = getDomAttribute(W[Q], "write-field").split(";");
203379
+ for (let G = 0; G < K.length; G++) {
203380
+ const U = K[G].split("."), X = U[0];
203381
+ C[X] = C[X] ? C[X] : {}, C[X][U[1]] = Z;
203382
+ }
203383
+ }
203384
+ return C;
203385
+ }
203386
+ function getDomValue(W, C, Q) {
203387
+ var H, K, G, U;
203388
+ let Z;
203389
+ if (Q)
203390
+ Z = Q;
203391
+ else {
203392
+ if (C && W.target) {
203393
+ let X = (U = (G = (K = (H = W.target) == null ? void 0 : H.parentNode) == null ? void 0 : K.parentNode) == null ? void 0 : G.parentNode) == null ? void 0 : U.classList;
203394
+ X && X.contains("table-select-selected") && (C = void 0, W = W.target.parentNode.parentNode.parentNode);
203395
+ }
203396
+ if (C)
203397
+ Z = W.target.value;
203398
+ else {
203399
+ let X = W.classList;
203400
+ if (X.contains("ant-select")) {
203401
+ let ee = W.getAttribute("data-value"), te = ee ? JSON.parse(ee) : "", ie = W.getAttribute("punctuation");
203402
+ Array.isArray(te) ? (te = te.map((ne) => ne.value ? ne.value : ne).filter((ne) => ne), Z = te.length ? te.join(ie || ",") : "") : Z = te;
203403
+ } else if (X.contains("ant-checkbox-group") || X.contains("ant-radio-group")) {
203404
+ let ee = W.getAttribute("data-value"), te = ee ? JSON.parse(ee) : "";
203405
+ Z = Array.isArray(te) ? te.length ? te.join(",") : "" : te;
203406
+ } else if (X.contains("ant-picker-range-custom")) {
203407
+ let ee = Array.from(W.childNodes).find((ie) => ie.classList && ie.classList.contains("ant-picker-range"));
203408
+ Z = Array.from(ee.childNodes).filter((ie) => ie.classList && ie.classList.contains("ant-picker-input")).map((ie) => ie.childNodes[0].value);
203409
+ } else if (X.contains("ant-picker-custom")) {
203410
+ let ee = Array.from(W.childNodes).find((ie) => ie.classList && ie.classList.contains("ant-picker"));
203411
+ Z = Array.from(ee.childNodes).find((ie) => ie.classList && ie.classList.contains("ant-picker-input")).childNodes[0].value;
203412
+ } else
203413
+ Z = W.value;
203414
+ }
203415
+ }
203416
+ return Z || "";
203417
+ }
203418
+ function getDomAttribute(W, C, Q) {
203419
+ let Z, H;
203420
+ if (Q) {
203421
+ let K = W.target.classList ? W.target : W.nativeEvent.target, G = K.classList, U = K.parentNode.classList;
203422
+ if (G.contains("ant-select-selection-search-input") || U.contains("ant-picker-input")) {
203423
+ let X = K.parentNode.parentNode.parentNode;
203424
+ K.parentNode.parentNode.classList.contains("ant-select-selection-overflow-item") && (X = K.parentNode.parentNode.parentNode.parentNode.parentNode), H = X.getAttribute(C);
203425
+ } else G.contains("ant-radio-input") ? H = K.parentNode.parentNode.parentNode.getAttribute(C) : H = K.getAttribute(C);
203426
+ } else
203427
+ W.target ? H = W.target.getAttribute(C) : H = W.getAttribute(C);
203428
+ return Z = isJsonData(H) ? JSON.parse(H) : H, Z;
203429
+ }
203430
+ function validateFun(W, C, Q, Z) {
203431
+ var X;
203432
+ typeof W == "string" && (W = (X = document.querySelectorAll(`[write-field="${W}"]`)) == null ? void 0 : X[0]);
203433
+ let H = getDomValue(W, C, Q), K = getDomAttribute(W, "rules", C), G = getDomAttribute(W, "write-field", C), U = "";
203434
+ if (K && G) {
203435
+ for (let ee = 0; ee < K.length; ee++)
203436
+ K[ee].type == "required" && (U += validateRequired(H)), U.length == 0 && (U += validateReg(K[ee].type, K[ee].msg, H));
203437
+ validateInfos[G] || (validateInfos[G] = {}), U.length > 0 ? (validateInfos[G].validateStatus = "error", validateInfos[G].help = U) : (validateInfos[G].validateStatus = "validating", validateInfos[G].help = ""), validateInfos[G].type = "default";
203438
+ }
203439
+ Z && Z(W);
203440
+ }
203441
+ function isValidateSuccess() {
203442
+ let W = !0;
203443
+ for (const C in validateInfos)
203444
+ if (validateInfos[C].validateStatus == "error") {
203445
+ W = !1;
203446
+ break;
203447
+ }
203448
+ return W;
203449
+ }
203450
+ const syncChange = (W, C, Q, Z, H, K) => {
203451
+ Q = Q || ",";
203452
+ let G = Z.split("."), U = Array.isArray(W) ? W.map((X) => X.value || X) : [W.value || W];
203453
+ if (C[G[0]][G[1]] = U ? U.join(Q) : void 0, H) {
203454
+ let X = H.split("."), ee = Array.isArray(W) ? W.map((te) => te.label || te) : [W.label || W];
203455
+ C[X[0]][X[1]] = ee ? ee.join(Q) : void 0;
203456
+ }
203457
+ nextTick(() => {
203458
+ K && K(W);
203459
+ });
203460
+ };
203461
+ function onTableSelectClear(W, C, Q) {
203462
+ let Z = C.split(".");
203463
+ W[Z[0]][Z[1]] = "", Q && Q();
203464
+ }
203465
+ function onTableSelectChange(W, C, Q, Z, H) {
203466
+ let K = Z.split(".");
203467
+ Q[K[0]][K[1]] = W ? W.join(",") : void 0, H && H();
203468
+ }
203469
+ function onTableSelectRowChange(W, C, Q, Z, H, K, G) {
203470
+ let U = Q.split("."), X = W.map((ee) => ee[Z]);
203471
+ if (C[U[0]][U[1]] = X ? X.join(",") : void 0, H && K) {
203472
+ let ee = H.split("."), te = W.map((ie) => ie[K]);
203473
+ C[ee[0]][ee[1]] = te ? te.join(",") : void 0;
203474
+ }
203475
+ G && G(W);
203476
+ }
203477
+ const getSelectAllCheck = (W, C) => {
203478
+ let Q = C ? C.map((H) => H.value) : [], Z = W ? W.includes(",") ? W.split(",") : [W] : [];
203479
+ return Z.length == Q.length && Z.length !== 0 && Q.length !== 0;
203480
+ }, setSelectAllCheck = (W, C, Q, Z) => {
203481
+ let H = W.target.checked, K = Q ? Q.split(".") : null;
203482
+ if (K) {
203483
+ let G = Z ? Z.map((U) => U.value) : [];
203484
+ C[K[0]][K[1]] = H ? G.join(",") : null;
203485
+ }
203486
+ };
203487
+ function getAccount(W, C, Q) {
203488
+ let Z = 0;
203489
+ switch (W) {
203490
+ case "sum":
203491
+ Z = sum(C, Q);
203492
+ break;
203493
+ case "avg":
203494
+ Z = sum(C, Q) / C.split(",").length;
203495
+ break;
203496
+ }
203497
+ return Z;
203498
+ }
203499
+ function sum(W, C) {
203500
+ let Q = 0;
203501
+ if (W.indexOf(",") > -1) {
203502
+ let Z = W.split(",");
203503
+ for (let H = 0; H < Z.length; H++) {
203504
+ let K = Z[H].split("."), G = C[K[0]][K[1]];
203505
+ G == null && (G = 0), Q += G;
203506
+ }
203507
+ }
203508
+ return Q;
203509
+ }
203510
+ function hideField(W, C, Q) {
203511
+ let Z = !1;
203512
+ const H = W[Q].ruleList[0], { field: K, selectType: G, ruleValue: U } = H, X = K.split(".");
203513
+ let ee = U;
203514
+ if (G == "field") {
203515
+ const te = U.split(".");
203516
+ ee = C.value[te[0]][te[1]];
203517
+ }
203518
+ if (C.value != null) {
203519
+ const te = C.value[X[0]];
203520
+ te != null && te[X[1]] != null && (Z = te[X[1]] === ee);
203521
+ }
203522
+ return Z;
203523
+ }
203524
+ function getSelectJsonSetting(W) {
203525
+ for (const C in W.value)
203526
+ if (W.value[C].options.length == 0) {
203527
+ let Q = new URL((/* @__PURE__ */ Object.assign({ "/public/json/gbhy.json": __vite_glob_0_0, "/public/json/scope_type.json": __vite_glob_0_1 }))[`/public/json/${C}.json`], import.meta.url).href;
203528
+ defHttp.get({ url: Q }, { withToken: !0 }).then((Z) => {
203529
+ Z && (W.value[C].remoteLabel == "label" && W.value[C].remoteValue == "value" ? W.value[C].options = Z : W.value[C].options = Z.map((H) => (H.label = H[W.value[C].remoteLabel], H.value = H[W.value[C].remoteValue], H)));
203530
+ });
203531
+ }
203532
+ }
203533
+ function initCTableV2(W) {
203534
+ const C = router.currentRoute.value.query, Q = "/api/zrzy-form/generate/getGridModels";
203535
+ let Z = {
203536
+ isPage: !1
203537
+ };
203538
+ W.pagination.pageSize && (Z.isPage = !0, Z.current = W.pagination.current, Z.size = W.pagination.pageSize), defHttp.post({
203539
+ url: Q,
203540
+ data: {
203541
+ formId: W.formId ? W.formId : 14,
203542
+ readName: W.pagination.bindName,
203543
+ param: { slbh: C.slbh ? C.slbh : "CQSC202412090000534" },
203544
+ ...Z
203545
+ }
203546
+ }, { withToken: !0 }).then((H) => {
203547
+ H && H.code == 200 && (Z.isPage ? (W.viewData.value[W.pagination.bindName] = H.result.records, W.pagination.total = H.result.total) : W.viewData.value[W.pagination.bindName] = H.result);
203548
+ });
203549
+ }
203550
+ function initAllCTableV2(W) {
203551
+ let C = W.paginations;
203552
+ for (const Q in C) {
203553
+ let Z = C[Q];
203554
+ Z.bindName && initCTableV2({ viewData: W.viewData, formId: W.formId, pagination: Z });
203555
+ }
203556
+ }
203557
+ let obj$1 = reactive({ obj1: {}, obj2: {} });
203558
+ const editRow = (W, C, Q, Z) => {
203559
+ C[W] = cloneDeep(Q.filter((H) => W == H[Z])[0]), obj$1.obj1[W] = cloneDeep(C[W]), console.log("editableData", C);
203560
+ }, saveRow = (W, C, Q, Z, H, K) => {
203561
+ Object.assign(Q.filter((U) => W == U[Z])[0], C[W]), obj$1.obj2[W] = cloneDeep(C[W]);
203562
+ let G = [];
203563
+ if (G = compareObjects(obj$1.obj1[W], obj$1.obj2[W]), isEmpty(G))
203564
+ delObj$1(W, C);
203565
+ else {
203566
+ let U = [];
203567
+ U = G;
203568
+ const X = Z || "id", ee = C[W][X];
203569
+ let te = "/imaginform/zrzy-form/form/report/update";
203570
+ ee == "" ? te = "/imaginform/zrzy-form/form/report/add" : U[X] = ee, defHttp.post({
203571
+ url: te,
203572
+ data: {
203573
+ keyCol: X,
203574
+ tableName: H,
203575
+ data: G
203576
+ }
203577
+ }, { withToken: !0 }).then((ie) => {
203578
+ ie.code == 200 ? (delObj$1(W, C), api$2.info("数据更新成功"), ee == "" ? K && K(ie.result) : K && K()) : api$2.error("数据更新失败");
203579
+ });
203580
+ }
203581
+ };
203582
+ function delObj$1(W, C) {
203583
+ delete C[W], delete obj$1.obj1[W], delete obj$1.obj2[W];
203584
+ }
203585
+ const cancelRow = (W, C) => {
203586
+ delete C[W];
203587
+ }, locale$2 = {
203588
+ locale: "zh_CN",
203589
+ today: "今天",
203590
+ now: "此刻",
203591
+ backToToday: "返回今天",
203592
+ ok: "确定",
203593
+ timeSelect: "选择时间",
203594
+ dateSelect: "选择日期",
203595
+ weekSelect: "选择周",
203596
+ clear: "清除",
203597
+ month: "月",
203598
+ year: "年",
203599
+ previousMonth: "上个月 (翻页上键)",
203600
+ nextMonth: "下个月 (翻页下键)",
203601
+ monthSelect: "选择月份",
203602
+ yearSelect: "选择年份",
203603
+ decadeSelect: "选择年代",
203604
+ yearFormat: "YYYY年",
203605
+ dayFormat: "D日",
203606
+ dateFormat: "YYYY年M月D日",
203607
+ dateTimeFormat: "YYYY年M月D日 HH时mm分ss秒",
203608
+ previousYear: "上一年 (Control键加左方向键)",
203609
+ nextYear: "下一年 (Control键加右方向键)",
203610
+ previousDecade: "上一年代",
203611
+ nextDecade: "下一年代",
203612
+ previousCentury: "上一世纪",
203613
+ nextCentury: "下一世纪"
203614
+ }, locale$1 = {
203615
+ placeholder: "请选择时间",
203616
+ rangePlaceholder: ["开始时间", "结束时间"]
203617
+ }, locale = {
203618
+ lang: _extends$1({
203619
+ placeholder: "请选择日期",
203620
+ yearPlaceholder: "请选择年份",
203621
+ quarterPlaceholder: "请选择季度",
203622
+ monthPlaceholder: "请选择月份",
203623
+ weekPlaceholder: "请选择周",
203624
+ rangePlaceholder: ["开始日期", "结束日期"],
203625
+ rangeYearPlaceholder: ["开始年份", "结束年份"],
203626
+ rangeMonthPlaceholder: ["开始月份", "结束月份"],
203627
+ rangeQuarterPlaceholder: ["开始季度", "结束季度"],
203628
+ rangeWeekPlaceholder: ["开始周", "结束周"]
203629
+ }, locale$2),
203630
+ timePickerLocale: _extends$1({}, locale$1)
203631
+ };
203632
+ locale.lang.ok = "确定";
203633
+ const typeTemplate = "${label}不是一个有效的${type}", localeValues = {
203634
+ locale: "zh-cn",
203635
+ Pagination: Pagination$2,
203636
+ DatePicker: locale,
203637
+ TimePicker: locale$1,
203638
+ Calendar: locale,
203639
+ // locales for all components
203640
+ global: {
203641
+ placeholder: "请选择"
203642
+ },
203643
+ Table: {
203644
+ filterTitle: "筛选",
203645
+ filterConfirm: "确定",
203646
+ filterReset: "重置",
203647
+ filterEmptyText: "无筛选项",
203648
+ filterCheckall: "全选",
203649
+ filterSearchPlaceholder: "在筛选项中搜索",
203650
+ selectAll: "全选当页",
203651
+ selectInvert: "反选当页",
203652
+ selectNone: "清空所有",
203653
+ selectionAll: "全选所有",
203654
+ sortTitle: "排序",
203655
+ expand: "展开行",
203656
+ collapse: "关闭行",
203657
+ triggerDesc: "点击降序",
203658
+ triggerAsc: "点击升序",
203659
+ cancelSort: "取消排序"
203660
+ },
203661
+ Tour: {
203662
+ Next: "下一步",
203663
+ Previous: "上一步",
203664
+ Finish: "结束导览"
203665
+ },
203666
+ Modal: {
203667
+ okText: "确定",
203668
+ cancelText: "取消",
203669
+ justOkText: "知道了"
203670
+ },
203671
+ Popconfirm: {
203672
+ cancelText: "取消",
203673
+ okText: "确定"
203674
+ },
203675
+ Transfer: {
203676
+ searchPlaceholder: "请输入搜索内容",
203677
+ itemUnit: "项",
203678
+ itemsUnit: "项",
203679
+ remove: "删除",
203680
+ selectCurrent: "全选当页",
203681
+ removeCurrent: "删除当页",
203682
+ selectAll: "全选所有",
203683
+ removeAll: "删除全部",
203684
+ selectInvert: "反选当页"
203685
+ },
203686
+ Upload: {
203687
+ uploading: "文件上传中",
203688
+ removeFile: "删除文件",
203689
+ uploadError: "上传错误",
203690
+ previewFile: "预览文件",
203691
+ downloadFile: "下载文件"
203692
+ },
203693
+ Empty: {
203694
+ description: "暂无数据"
203695
+ },
203696
+ Icon: {
203697
+ icon: "图标"
203698
+ },
203699
+ Text: {
203700
+ edit: "编辑",
203701
+ copy: "复制",
203702
+ copied: "复制成功",
203703
+ expand: "展开"
203704
+ },
203705
+ PageHeader: {
203706
+ back: "返回"
203707
+ },
203708
+ Form: {
203709
+ optional: "(可选)",
203710
+ defaultValidateMessages: {
203711
+ default: "字段验证错误${label}",
203712
+ required: "请输入${label}",
203713
+ enum: "${label}必须是其中一个[${enum}]",
203714
+ whitespace: "${label}不能为空字符",
203715
+ date: {
203716
+ format: "${label}日期格式无效",
203717
+ parse: "${label}不能转换为日期",
203718
+ invalid: "${label}是一个无效日期"
203719
+ },
203720
+ types: {
203721
+ string: typeTemplate,
203722
+ method: typeTemplate,
203723
+ array: typeTemplate,
203724
+ object: typeTemplate,
203725
+ number: typeTemplate,
203726
+ date: typeTemplate,
203727
+ boolean: typeTemplate,
203728
+ integer: typeTemplate,
203729
+ float: typeTemplate,
203730
+ regexp: typeTemplate,
203731
+ email: typeTemplate,
203732
+ url: typeTemplate,
203733
+ hex: typeTemplate
203734
+ },
203735
+ string: {
203736
+ len: "${label}须为${len}个字符",
203737
+ min: "${label}最少${min}个字符",
203738
+ max: "${label}最多${max}个字符",
203739
+ range: "${label}须在${min}-${max}字符之间"
203740
+ },
203741
+ number: {
203742
+ len: "${label}必须等于${len}",
203743
+ min: "${label}最小值为${min}",
203744
+ max: "${label}最大值为${max}",
203745
+ range: "${label}须在${min}-${max}之间"
203746
+ },
203747
+ array: {
203748
+ len: "须为${len}个${label}",
203749
+ min: "最少${min}个${label}",
203750
+ max: "最多${max}个${label}",
203751
+ range: "${label}数量须在${min}-${max}之间"
203752
+ },
203753
+ pattern: {
203754
+ mismatch: "${label}与模式不匹配${pattern}"
203755
+ }
203756
+ }
203757
+ },
203758
+ Image: {
203759
+ preview: "预览"
203760
+ },
203761
+ QRCode: {
203762
+ expired: "二维码已过期",
203763
+ refresh: "点击刷新",
203764
+ scanned: "已扫描"
203765
+ }
203766
+ }, _sfc_main$g = /* @__PURE__ */ defineComponent({
203767
+ __name: "index",
203768
+ props: {
203769
+ title: {
203770
+ type: String,
203771
+ default: "标题"
203772
+ },
203773
+ width: {
203774
+ type: [String, Number],
203775
+ default: 520
203776
+ },
203777
+ filePath: {
203778
+ type: String,
203779
+ default: "components/wonderform/free/PreviewDemo"
203780
+ },
203781
+ formData: {
203782
+ type: [Object, String, Number, Array]
203783
+ },
203784
+ okText: {
203785
+ type: String,
203786
+ default: "确认"
203787
+ },
203788
+ cancelText: {
203789
+ type: String,
203790
+ default: "取消"
203791
+ },
203792
+ onOk: {
203793
+ type: Function,
203794
+ default: null
203795
+ },
203796
+ onCancel: {
203797
+ type: Function,
203798
+ default: null
203799
+ },
203800
+ footer: {
203801
+ type: Boolean,
203802
+ default: !0
203803
+ }
203804
+ },
203805
+ setup(W, { expose: C }) {
203806
+ const Q = /* @__PURE__ */ Object.assign({ "/src/App.vue": () => import("./App-CYKm1R4I.js"), "/src/components/HelloWorld.vue": () => import("./HelloWorld-gW4Uk1zN.js"), "/src/components/cModal/index.vue": () => Promise.resolve().then(() => index$6), "/src/components/form-widget/widget/childForm.vue": () => import("./childForm-DQXXphVw.js"), "/src/components/form-widget/widget/collapsePanel.vue": () => Promise.resolve().then(() => collapsePanel), "/src/components/form-widget/widget/tableSelect.vue": () => Promise.resolve().then(() => tableSelect), "/src/components/form-widget/widget/tableSelectDemo.vue": () => import("./tableSelectDemo-BcYtit8U.js"), "/src/components/form-widget/widget/tableSelectDemo2.vue": () => import("./tableSelectDemo2-CKRkmATh.js"), "/src/components/generate/Ceshi.vue": () => import("./Ceshi-CfaMY4Oa.js"), "/src/components/generate/Ceshi2.vue": () => import("./Ceshi2-DAUomDPa.js"), "/src/components/generate/Demo.vue": () => import("./Demo-wwlflHrU.js"), "/src/components/generate/GenerateForm.vue": () => import("./GenerateForm-B2D-CTx8.js"), "/src/components/generate/GenerateReport.vue": () => import("./GenerateReport-cTt550si.js"), "/src/components/icon/SvgIcon.vue": () => Promise.resolve().then(() => SvgIcon$1), "/src/components/monaco/monacoEditor.vue": () => Promise.resolve().then(() => monacoEditor$1), "/src/components/table/index.vue": () => Promise.resolve().then(() => index$5), "/src/components/vfd/index.vue": () => import("./index-kQ6gIBxs.js"), "/src/components/wonderform/config/ReportIndex.vue": () => Promise.resolve().then(() => ReportIndex), "/src/components/wonderform/config/index.vue": () => Promise.resolve().then(() => index$7), "/src/components/wonderform/config/modules/Col.vue": () => import("./Col-CUTQPfvg.js"), "/src/components/wonderform/config/modules/Collapse.vue": () => import("./Collapse-BUAeB7s2.js"), "/src/components/wonderform/config/modules/DataSource.vue": () => Promise.resolve().then(() => DataSource$2), "/src/components/wonderform/config/modules/FX.vue": () => import("./FX-BkPacjRG.js"), "/src/components/wonderform/config/modules/Form.vue": () => Promise.resolve().then(() => Form), "/src/components/wonderform/config/modules/FormSetting.vue": () => Promise.resolve().then(() => FormSetting$1), "/src/components/wonderform/config/modules/FormSettingIndex.vue": () => Promise.resolve().then(() => FormSettingIndex), "/src/components/wonderform/config/modules/Grid.vue": () => Promise.resolve().then(() => Grid), "/src/components/wonderform/config/modules/Input-删除.vue": () => import("./Input-删除-BGv1mwne.js"), "/src/components/wonderform/config/modules/Label-删除.vue": () => import("./Label-删除-DXz5aAXD.js"), "/src/components/wonderform/config/modules/Properties.vue": () => Promise.resolve().then(() => Properties), "/src/components/wonderform/config/modules/ReportProperties.vue": () => Promise.resolve().then(() => ReportProperties), "/src/components/wonderform/config/modules/Table.vue": () => Promise.resolve().then(() => Table$1), "/src/components/wonderform/config/modules/TableBtnModal.vue": () => import("./TableBtnModal-FPcA6fYh.js"), "/src/components/wonderform/config/modules/TableColumn.vue": () => Promise.resolve().then(() => TableColumn$1), "/src/components/wonderform/config/modules/Tabs.vue": () => Promise.resolve().then(() => Tabs), "/src/components/wonderform/config/modules/TypeScript.vue": () => Promise.resolve().then(() => TypeScript$1), "/src/components/wonderform/design/Form.vue": () => import("./Form-CsKlmwSd.js"), "/src/components/wonderform/design/index.vue": () => Promise.resolve().then(() => index$8), "/src/components/wonderform/design/modules/FormCol.vue": () => Promise.resolve().then(() => FormCol$1), "/src/components/wonderform/design/modules/FormCollapse.vue": () => Promise.resolve().then(() => FormCollapse$1), "/src/components/wonderform/design/modules/FormGrid.vue": () => Promise.resolve().then(() => FormGrid$1), "/src/components/wonderform/design/modules/FormGridCopy.vue": () => import("./FormGridCopy-Vbw3dZWN.js"), "/src/components/wonderform/design/modules/FormInput.vue": () => Promise.resolve().then(() => FormInput$1), "/src/components/wonderform/design/modules/FormReport.vue": () => Promise.resolve().then(() => FormReport$1), "/src/components/wonderform/design/modules/FormTable.vue": () => Promise.resolve().then(() => FormTable$1), "/src/components/wonderform/design/modules/FormTabs.vue": () => Promise.resolve().then(() => FormTabs$1), "/src/components/wonderform/design/modules/FormVue.vue": () => Promise.resolve().then(() => FormVue$1), "/src/components/wonderform/dsource/index.vue": () => Promise.resolve().then(() => index$4), "/src/components/wonderform/dsource/modules/SqlModule.vue": () => import("./SqlModule-CPjWhfaZ.js"), "/src/components/wonderform/header/Header.vue": () => Promise.resolve().then(() => Header), "/src/components/wonderform/header/modules/Code.vue": () => Promise.resolve().then(() => Code$1), "/src/components/wonderform/index.vue": () => Promise.resolve().then(() => index$3), "/src/components/wonderform/tool/index.vue": () => Promise.resolve().then(() => index$b), "/src/components/wonderreport/Demo.vue": () => import("./Demo-dzSXIWpK.js"), "/src/components/wonderreport/ReportModule.vue": () => import("./ReportModule-CzyznFhE.js"), "/src/components/wonderreport/header/index.vue": () => Promise.resolve().then(() => index$2), "/src/components/wonderreport/index.vue": () => Promise.resolve().then(() => index$1), "/src/views/formTest.vue": () => import("./formTest-DshZ4C20.js"), "/src/views/sys/login/Login.vue": () => import("./Login-elXMyAu9.js"), "/src/views/workbench/index.vue": () => import("./index-D7sRtSly.js") });
203807
+ let Z = ref(!1), H = ref(!1), K = ref(), G = ref(!1);
203808
+ const U = computed(() => defineAsyncComponent(Q[`/src/${X.filePath}.vue`])), X = W, ee = computed(() => X.footer ? "" : { footer: null });
203809
+ C({
203810
+ setConfirmLoading: te,
203811
+ show: oe,
203812
+ close: re
203813
+ }), onMounted(() => {
203814
+ oe();
203815
+ });
203816
+ function te(ae) {
203817
+ H.value = ae;
203818
+ }
203819
+ function ie() {
203820
+ if (X.onOk && typeof X.onOk == "function") {
203821
+ let ae = K.value;
203822
+ X.onOk(ae);
203823
+ } else
203824
+ Z.value = !1;
203825
+ }
203826
+ function ne() {
203827
+ if (X.onCancel && typeof X.onCancel == "function") {
203828
+ let ae = K.value;
203829
+ X.onCancel(ae);
203830
+ } else
203831
+ Z.value = !1;
203832
+ }
203833
+ function oe() {
203834
+ Z.value = !0;
203835
+ }
203836
+ function re() {
203837
+ Z.value = !1;
203838
+ }
203839
+ function se() {
203840
+ G.value = !G.value;
203841
+ }
203842
+ return (ae, le) => {
203843
+ const ce = resolveComponent("a-modal"), de = resolveComponent("a-config-provider");
203844
+ return openBlock(), createBlock(de, { locale: unref(localeValues) }, {
203845
+ default: withCtx(() => [
203846
+ createVNode(ce, mergeProps({
203847
+ class: "commonModal",
203848
+ open: unref(Z),
203849
+ "onUpdate:open": le[0] || (le[0] = (ue) => isRef(Z) ? Z.value = ue : Z = ue),
203850
+ width: unref(G) ? "100%" : W.width,
203851
+ "wrap-class-name": unref(G) ? "full-common-modal" : "",
203852
+ confirmLoading: unref(H),
203853
+ maskClosable: !1,
203854
+ okText: W.okText,
203855
+ cancelText: W.cancelText
203856
+ }, ee.value, {
203857
+ onOk: ie,
203858
+ onCancel: ne
203859
+ }), {
203860
+ title: withCtx(() => [
203861
+ createTextVNode(toDisplayString(W.title) + " ", 1),
203862
+ createElementVNode("div", {
203863
+ class: "fullscreen-custom",
203864
+ onClick: se
203865
+ }, [
203866
+ unref(G) ? (openBlock(), createBlock(unref(FullscreenExitOutlined), { key: 0 })) : (openBlock(), createBlock(unref(FullscreenOutlined), { key: 1 }))
203867
+ ])
203868
+ ]),
203869
+ default: withCtx(() => [
203870
+ (openBlock(), createBlock(resolveDynamicComponent(U.value), {
203871
+ formData: W.formData,
203872
+ ref_key: "link",
203873
+ ref: K
203874
+ }, null, 8, ["formData"]))
203875
+ ]),
203876
+ _: 1
203877
+ }, 16, ["open", "width", "wrap-class-name", "confirmLoading", "okText", "cancelText"])
203878
+ ]),
203879
+ _: 1
203880
+ }, 8, ["locale"]);
203881
+ };
203882
+ }
203883
+ }), CommonModal = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-7fcccc1f"]]), index$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
203884
+ __proto__: null,
203885
+ default: CommonModal
203886
+ }, Symbol.toStringTag, { value: "Module" })), _hoisted_1$9 = ["xlink:href"], _sfc_main$f = /* @__PURE__ */ defineComponent({
203887
+ __name: "SvgIcon",
203888
+ props: {
203889
+ name: {
203890
+ type: String,
203891
+ required: !0
203892
+ },
203893
+ title: {
203894
+ type: String,
203895
+ required: !1
203896
+ },
203897
+ color: {
203898
+ type: String,
203899
+ default: ""
203900
+ },
203901
+ width: {
203902
+ type: String,
203903
+ default: "16px"
203904
+ },
203905
+ height: {
203906
+ type: String,
203907
+ default: "16px"
203908
+ }
203909
+ },
203910
+ setup(W) {
203911
+ const C = W, Q = computed(() => `#icon-${C.name}`), Z = computed(() => C.name ? `svg-icon icon-${C.name}` : "svg-icon");
203912
+ return (H, K) => (openBlock(), createElementBlock("svg", mergeProps({ class: Z.value }, H.$attrs, {
203913
+ style: { color: W.color, width: W.width, height: W.height }
203914
+ }), [
203915
+ createElementVNode("title", null, toDisplayString(W.title), 1),
203916
+ createElementVNode("use", { "xlink:href": Q.value }, null, 8, _hoisted_1$9)
203917
+ ], 16));
203918
+ }
203919
+ }), SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-f02ffdf6"]]), SvgIcon$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
203920
+ __proto__: null,
203921
+ default: SvgIcon
203922
+ }, Symbol.toStringTag, { value: "Module" })), _hoisted_1$8 = {
203923
+ class: "table-header-css",
203924
+ style: { "text-align": "left", padding: "5px", overflow: "hidden" }
203925
+ }, _hoisted_2$5 = { style: { float: "left" } }, _hoisted_3$4 = { style: { float: "right" } }, _sfc_main$e = /* @__PURE__ */ defineComponent({
203926
+ __name: "index",
203927
+ props: {
203928
+ // 表格数据
203929
+ dataSource: {
203930
+ type: Array,
203931
+ default: () => []
203932
+ },
203933
+ // 表格列
203934
+ columns: {
203935
+ type: Array,
203936
+ default: () => []
203937
+ },
203938
+ // 分页信息
203939
+ paginations: {
203940
+ type: Object,
203941
+ default: () => ({})
203942
+ },
203943
+ // 加载中
203944
+ loading: {
203945
+ type: Boolean,
203946
+ default: !1
203947
+ }
203948
+ },
203949
+ emits: ["columns-change"],
203950
+ setup(W, { emit: C }) {
203951
+ const Q = W;
203952
+ let Z = ref(!1), H = ref([]);
203953
+ H.value = Q.columns;
203954
+ let K = ref([]);
203955
+ const G = reactive({
203956
+ indeterminate: !0,
203957
+ checkAll: !0,
203958
+ checkValue: K.value
203959
+ }), U = computed(() => {
203960
+ let ne = [];
203961
+ return Q.columns.map((oe) => {
203962
+ oe.title != "操作" && (ne.push({ label: oe.title, value: oe.dataIndex }), K.value.push(oe.dataIndex));
203963
+ }), ne;
203964
+ });
203965
+ function X(ne) {
203966
+ return Q.columns.filter((oe) => ne.includes(oe.dataIndex) ? !0 : oe.title == "操作");
203967
+ }
203968
+ const ee = C;
203969
+ function te(ne) {
203970
+ const oe = X(ne);
203971
+ H.value = oe, ee("columns-change", H.value);
203972
+ }
203973
+ const ie = (ne) => {
203974
+ if (!ne.target.checked) {
203975
+ api$2.error("不能全部取消,请至少选择一个字段!"), G.checkAll = !0;
203976
+ return;
203977
+ }
203978
+ Object.assign(G, {
203979
+ checkValue: ne.target.checked ? K.value : [],
203980
+ indeterminate: !1
203981
+ }), te(G.checkValue);
203982
+ };
203983
+ return watch(
203984
+ () => G.checkValue,
203985
+ (ne) => {
203986
+ G.indeterminate = !!ne.length && ne.length < K.value.length, G.checkAll = ne.length === K.value.length;
203987
+ }
203988
+ ), (ne, oe) => {
203989
+ const re = resolveComponent("a-space"), se = resolveComponent("a-checkbox"), ae = resolveComponent("a-divider"), le = resolveComponent("a-checkbox-group"), ce = resolveComponent("a-popover"), de = resolveComponent("a-table");
203990
+ return openBlock(), createElementBlock(Fragment, null, [
203991
+ createElementVNode("div", _hoisted_1$8, [
203992
+ createElementVNode("div", _hoisted_2$5, [
203993
+ createVNode(re, null, {
203994
+ default: withCtx(() => [
203995
+ renderSlot(ne.$slots, "toolbar", {}, void 0, !0)
203996
+ ]),
203997
+ _: 3
203998
+ })
203999
+ ]),
204000
+ createElementVNode("div", _hoisted_3$4, [
204001
+ createVNode(ce, {
204002
+ style: { width: "300px" },
204003
+ trigger: "click",
204004
+ open: unref(Z),
204005
+ "onUpdate:open": oe[2] || (oe[2] = (ue) => isRef(Z) ? Z.value = ue : Z = ue),
204006
+ placement: "rightBottom",
204007
+ "arrow-point-at-center": ""
204008
+ }, {
204009
+ title: withCtx(() => [
204010
+ createVNode(se, {
204011
+ checked: G.checkAll,
204012
+ "onUpdate:checked": oe[0] || (oe[0] = (ue) => G.checkAll = ue),
204013
+ indeterminate: G.indeterminate,
204014
+ onChange: ie
204015
+ }, {
204016
+ default: withCtx(() => [
204017
+ createTextVNode(" 全选 ")
204018
+ ]),
204019
+ _: 1
204020
+ }, 8, ["checked", "indeterminate"])
204021
+ ]),
204022
+ content: withCtx(() => [
204023
+ createVNode(ae, { style: { height: "2px", margin: "10px 0px!important" } }),
204024
+ createVNode(le, {
204025
+ options: U.value,
204026
+ value: G.checkValue,
204027
+ "onUpdate:value": oe[1] || (oe[1] = (ue) => G.checkValue = ue),
204028
+ onChange: te
204029
+ }, null, 8, ["options", "value"])
204030
+ ]),
204031
+ default: withCtx(() => [
204032
+ createVNode(unref(FunnelPlotOutlined), { style: { "font-size": "16px" } })
204033
+ ]),
204034
+ _: 1
204035
+ }, 8, ["open"])
204036
+ ])
204037
+ ]),
204038
+ createVNode(de, {
204039
+ columns: unref(H),
204040
+ "data-source": W.dataSource,
204041
+ loading: W.loading,
204042
+ pagination: W.paginations,
204043
+ bordered: ""
204044
+ }, {
204045
+ bodyCell: withCtx(({ column: ue, text: he, record: fe }) => [
204046
+ ue.key === "action" ? (openBlock(), createBlock(re, { key: 0 }, {
204047
+ split: withCtx(() => [
204048
+ createVNode(ae, { type: "vertical" })
204049
+ ]),
204050
+ default: withCtx(() => [
204051
+ renderSlot(ne.$slots, "rowbar", { record: fe }, void 0, !0)
204052
+ ]),
204053
+ _: 2
204054
+ }, 1024)) : createCommentVNode("", !0)
204055
+ ]),
204056
+ _: 3
204057
+ }, 8, ["columns", "data-source", "loading", "pagination"])
204058
+ ], 64);
204059
+ };
204060
+ }
204061
+ }), CTable = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-b4a4a76f"]]), index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
204062
+ __proto__: null,
204063
+ default: CTable
204064
+ }, Symbol.toStringTag, { value: "Module" })), _sfc_main$d = /* @__PURE__ */ defineComponent({
204065
+ __name: "tableSelect",
204066
+ props: {
204067
+ value: {
204068
+ type: [String, Number, Array]
204069
+ },
204070
+ mode: {
204071
+ type: String,
204072
+ default: ""
204073
+ },
204074
+ bindKeyName: {
204075
+ type: String,
204076
+ default: ""
204077
+ },
204078
+ bindLabelName: {
204079
+ type: String,
204080
+ default: ""
204081
+ },
204082
+ tableProps: {
204083
+ type: [Number, String, Object, Array]
204084
+ },
204085
+ dropMenuWidth: {
204086
+ type: [Number, String],
204087
+ default: ""
204088
+ },
204089
+ dropMenuHeight: {
204090
+ type: [Number, String],
204091
+ default: ""
204092
+ },
204093
+ filePath: {
204094
+ type: String,
204095
+ default: ""
204096
+ },
204097
+ placement: {
204098
+ type: String,
204099
+ default: "bottomLeft"
204100
+ }
204101
+ },
204102
+ emits: ["update:value", "rowChange"],
204103
+ setup(W, { emit: C }) {
204104
+ const Q = W;
204105
+ let Z = ref(!1), H = ref();
204106
+ const K = computed(() => ({
204107
+ allowClear: !0,
204108
+ ...useAttrs()
204109
+ }));
204110
+ ref();
204111
+ let G = ref([]), U = computed({
204112
+ get() {
204113
+ return Q.value;
204114
+ },
204115
+ set(ce) {
204116
+ oe("update:value", ce);
204117
+ }
204118
+ });
204119
+ watch(() => U.value, (ce) => {
204120
+ H.value && (H.value.focus(), nextTick(() => {
204121
+ H.value.blur();
204122
+ }));
204123
+ }, {
204124
+ immediate: !0
204125
+ });
204126
+ const X = /* @__PURE__ */ Object.assign({ "/src/App.vue": () => import("./App-CYKm1R4I.js"), "/src/components/HelloWorld.vue": () => import("./HelloWorld-gW4Uk1zN.js"), "/src/components/cModal/index.vue": () => Promise.resolve().then(() => index$6), "/src/components/form-widget/widget/childForm.vue": () => import("./childForm-DQXXphVw.js"), "/src/components/form-widget/widget/collapsePanel.vue": () => Promise.resolve().then(() => collapsePanel), "/src/components/form-widget/widget/tableSelect.vue": () => Promise.resolve().then(() => tableSelect), "/src/components/form-widget/widget/tableSelectDemo.vue": () => import("./tableSelectDemo-BcYtit8U.js"), "/src/components/form-widget/widget/tableSelectDemo2.vue": () => import("./tableSelectDemo2-CKRkmATh.js"), "/src/components/generate/Ceshi.vue": () => import("./Ceshi-CfaMY4Oa.js"), "/src/components/generate/Ceshi2.vue": () => import("./Ceshi2-DAUomDPa.js"), "/src/components/generate/Demo.vue": () => import("./Demo-wwlflHrU.js"), "/src/components/generate/GenerateForm.vue": () => import("./GenerateForm-B2D-CTx8.js"), "/src/components/generate/GenerateReport.vue": () => import("./GenerateReport-cTt550si.js"), "/src/components/icon/SvgIcon.vue": () => Promise.resolve().then(() => SvgIcon$1), "/src/components/monaco/monacoEditor.vue": () => Promise.resolve().then(() => monacoEditor$1), "/src/components/table/index.vue": () => Promise.resolve().then(() => index$5), "/src/components/vfd/index.vue": () => import("./index-kQ6gIBxs.js"), "/src/components/wonderform/config/ReportIndex.vue": () => Promise.resolve().then(() => ReportIndex), "/src/components/wonderform/config/index.vue": () => Promise.resolve().then(() => index$7), "/src/components/wonderform/config/modules/Col.vue": () => import("./Col-CUTQPfvg.js"), "/src/components/wonderform/config/modules/Collapse.vue": () => import("./Collapse-BUAeB7s2.js"), "/src/components/wonderform/config/modules/DataSource.vue": () => Promise.resolve().then(() => DataSource$2), "/src/components/wonderform/config/modules/FX.vue": () => import("./FX-BkPacjRG.js"), "/src/components/wonderform/config/modules/Form.vue": () => Promise.resolve().then(() => Form), "/src/components/wonderform/config/modules/FormSetting.vue": () => Promise.resolve().then(() => FormSetting$1), "/src/components/wonderform/config/modules/FormSettingIndex.vue": () => Promise.resolve().then(() => FormSettingIndex), "/src/components/wonderform/config/modules/Grid.vue": () => Promise.resolve().then(() => Grid), "/src/components/wonderform/config/modules/Input-删除.vue": () => import("./Input-删除-BGv1mwne.js"), "/src/components/wonderform/config/modules/Label-删除.vue": () => import("./Label-删除-DXz5aAXD.js"), "/src/components/wonderform/config/modules/Properties.vue": () => Promise.resolve().then(() => Properties), "/src/components/wonderform/config/modules/ReportProperties.vue": () => Promise.resolve().then(() => ReportProperties), "/src/components/wonderform/config/modules/Table.vue": () => Promise.resolve().then(() => Table$1), "/src/components/wonderform/config/modules/TableBtnModal.vue": () => import("./TableBtnModal-FPcA6fYh.js"), "/src/components/wonderform/config/modules/TableColumn.vue": () => Promise.resolve().then(() => TableColumn$1), "/src/components/wonderform/config/modules/Tabs.vue": () => Promise.resolve().then(() => Tabs), "/src/components/wonderform/config/modules/TypeScript.vue": () => Promise.resolve().then(() => TypeScript$1), "/src/components/wonderform/design/Form.vue": () => import("./Form-CsKlmwSd.js"), "/src/components/wonderform/design/index.vue": () => Promise.resolve().then(() => index$8), "/src/components/wonderform/design/modules/FormCol.vue": () => Promise.resolve().then(() => FormCol$1), "/src/components/wonderform/design/modules/FormCollapse.vue": () => Promise.resolve().then(() => FormCollapse$1), "/src/components/wonderform/design/modules/FormGrid.vue": () => Promise.resolve().then(() => FormGrid$1), "/src/components/wonderform/design/modules/FormGridCopy.vue": () => import("./FormGridCopy-Vbw3dZWN.js"), "/src/components/wonderform/design/modules/FormInput.vue": () => Promise.resolve().then(() => FormInput$1), "/src/components/wonderform/design/modules/FormReport.vue": () => Promise.resolve().then(() => FormReport$1), "/src/components/wonderform/design/modules/FormTable.vue": () => Promise.resolve().then(() => FormTable$1), "/src/components/wonderform/design/modules/FormTabs.vue": () => Promise.resolve().then(() => FormTabs$1), "/src/components/wonderform/design/modules/FormVue.vue": () => Promise.resolve().then(() => FormVue$1), "/src/components/wonderform/dsource/index.vue": () => Promise.resolve().then(() => index$4), "/src/components/wonderform/dsource/modules/SqlModule.vue": () => import("./SqlModule-CPjWhfaZ.js"), "/src/components/wonderform/header/Header.vue": () => Promise.resolve().then(() => Header), "/src/components/wonderform/header/modules/Code.vue": () => Promise.resolve().then(() => Code$1), "/src/components/wonderform/index.vue": () => Promise.resolve().then(() => index$3), "/src/components/wonderform/tool/index.vue": () => Promise.resolve().then(() => index$b), "/src/components/wonderreport/Demo.vue": () => import("./Demo-dzSXIWpK.js"), "/src/components/wonderreport/ReportModule.vue": () => import("./ReportModule-CzyznFhE.js"), "/src/components/wonderreport/header/index.vue": () => Promise.resolve().then(() => index$2), "/src/components/wonderreport/index.vue": () => Promise.resolve().then(() => index$1), "/src/views/formTest.vue": () => import("./formTest-DshZ4C20.js"), "/src/views/sys/login/Login.vue": () => import("./Login-elXMyAu9.js"), "/src/views/workbench/index.vue": () => import("./index-D7sRtSly.js") }), ee = useSlots(), te = computed(() => {
204127
+ if (Q.filePath) {
204128
+ let ce = `/src/${Q.filePath}.vue`;
204129
+ return Q.filePath ? Object.keys(X).includes(ce) : !1;
204130
+ } else
204131
+ return !1;
204132
+ }), ie = computed(() => te ? defineAsyncComponent(X[`/src/${Q.filePath}.vue`]) : null), ne = computed(() => {
204133
+ let ce = Q.dropMenuWidth, de = Q.dropMenuHeight, ue = ce == null || ce == "" ? `width: ${re.value}` : `width: ${typeof ce == "number" ? `${ce}px` : `${ce}`}`, he = de == null || de == "" ? "" : `height: ${typeof de == "number" ? `${de}px` : `${de}`}`;
204134
+ return ue && he ? ue + ";" + he : ue && !he ? ue : !ue && he ? he : "";
204135
+ }), oe = C, re = computed(() => H.value ? H.value.$el.offsetWidth + "px" : "");
204136
+ onMounted(() => {
204137
+ Z.value = !0, nextTick(() => {
204138
+ Z.value = !1;
204139
+ });
204140
+ });
204141
+ function se() {
204142
+ nextTick(() => {
204143
+ let ce = K.value, de = H.value.$el.classList;
204144
+ ce && !ce.disabled && !de.contains("ant-select-disabled") ? Z.value = !0 : Z.value = !1;
204145
+ });
204146
+ }
204147
+ function ae(ce) {
204148
+ Q.mode !== "multiple" && (Z.value = !1), oe("rowChange", ce);
204149
+ }
204150
+ function le(ce) {
204151
+ ce ? G.value = ce.map((de) => ({
204152
+ label: de[Q.bindLabelName] || "",
204153
+ value: de[Q.bindKeyName]
204154
+ })) : G.value = [];
204155
+ }
204156
+ return (ce, de) => {
204157
+ const ue = resolveComponent("a-select"), he = resolveComponent("a-empty"), fe = resolveComponent("a-dropdown");
204158
+ return openBlock(), createBlock(fe, {
204159
+ overlayClassName: "table-select-dropdown",
204160
+ trigger: ["click"],
204161
+ open: unref(Z),
204162
+ "onUpdate:open": de[2] || (de[2] = (ge) => isRef(Z) ? Z.value = ge : Z = ge),
204163
+ placement: W.placement,
204164
+ onClick: se
204165
+ }, {
204166
+ overlay: withCtx(() => [
204167
+ createElementVNode("div", {
204168
+ class: "table-select-content",
204169
+ style: normalizeStyle$1(ne.value)
204170
+ }, [
204171
+ te.value && ie.value ? (openBlock(), createBlock(resolveDynamicComponent(ie.value), {
204172
+ key: 0,
204173
+ value: unref(U),
204174
+ "onUpdate:value": de[1] || (de[1] = (ge) => isRef(U) ? U.value = ge : U = ge),
204175
+ mode: W.mode,
204176
+ keyName: W.bindKeyName,
204177
+ tableProps: W.tableProps,
204178
+ onGetTable: le,
204179
+ onRowChange: ae
204180
+ }, null, 40, ["value", "mode", "keyName", "tableProps"])) : (openBlock(), createBlock(he, { key: 1 }))
204181
+ ], 4)
204182
+ ]),
204183
+ default: withCtx(() => [
204184
+ createVNode(ue, mergeProps({
204185
+ ref_key: "select",
204186
+ ref: H,
204187
+ class: "table-select-selected",
204188
+ value: unref(U),
204189
+ "onUpdate:value": de[0] || (de[0] = (ge) => isRef(U) ? U.value = ge : U = ge),
204190
+ options: unref(G),
204191
+ mode: W.mode
204192
+ }, K.value, { open: !1 }), createSlots({ _: 2 }, [
204193
+ unref(ee).suffixIcon ? {
204194
+ name: "suffixIcon",
204195
+ fn: withCtx(() => [
204196
+ renderSlot(ce.$slots, "suffixIcon", {}, void 0, !0)
204197
+ ]),
204198
+ key: "0"
204199
+ } : void 0
204200
+ ]), 1040, ["value", "options", "mode"])
204201
+ ]),
204202
+ _: 3
204203
+ }, 8, ["open", "placement"]);
204204
+ };
204205
+ }
204206
+ }), CTableSelect = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-3843eea3"]]), tableSelect = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
204207
+ __proto__: null,
204208
+ default: CTableSelect
204209
+ }, Symbol.toStringTag, { value: "Module" })), _sfc_main$c = /* @__PURE__ */ defineComponent({
204210
+ __name: "childForm",
204211
+ props: {
204212
+ filePath: {
204213
+ type: String,
204214
+ default: ""
204215
+ }
204216
+ },
204217
+ setup(W) {
204218
+ const C = /* @__PURE__ */ Object.assign({ "/src/App.vue": () => import("./App-CYKm1R4I.js"), "/src/components/HelloWorld.vue": () => import("./HelloWorld-gW4Uk1zN.js"), "/src/components/cModal/index.vue": () => Promise.resolve().then(() => index$6), "/src/components/form-widget/widget/childForm.vue": () => import("./childForm-DQXXphVw.js"), "/src/components/form-widget/widget/collapsePanel.vue": () => Promise.resolve().then(() => collapsePanel), "/src/components/form-widget/widget/tableSelect.vue": () => Promise.resolve().then(() => tableSelect), "/src/components/form-widget/widget/tableSelectDemo.vue": () => import("./tableSelectDemo-BcYtit8U.js"), "/src/components/form-widget/widget/tableSelectDemo2.vue": () => import("./tableSelectDemo2-CKRkmATh.js"), "/src/components/generate/Ceshi.vue": () => import("./Ceshi-CfaMY4Oa.js"), "/src/components/generate/Ceshi2.vue": () => import("./Ceshi2-DAUomDPa.js"), "/src/components/generate/Demo.vue": () => import("./Demo-wwlflHrU.js"), "/src/components/generate/GenerateForm.vue": () => import("./GenerateForm-B2D-CTx8.js"), "/src/components/generate/GenerateReport.vue": () => import("./GenerateReport-cTt550si.js"), "/src/components/icon/SvgIcon.vue": () => Promise.resolve().then(() => SvgIcon$1), "/src/components/monaco/monacoEditor.vue": () => Promise.resolve().then(() => monacoEditor$1), "/src/components/table/index.vue": () => Promise.resolve().then(() => index$5), "/src/components/vfd/index.vue": () => import("./index-kQ6gIBxs.js"), "/src/components/wonderform/config/ReportIndex.vue": () => Promise.resolve().then(() => ReportIndex), "/src/components/wonderform/config/index.vue": () => Promise.resolve().then(() => index$7), "/src/components/wonderform/config/modules/Col.vue": () => import("./Col-CUTQPfvg.js"), "/src/components/wonderform/config/modules/Collapse.vue": () => import("./Collapse-BUAeB7s2.js"), "/src/components/wonderform/config/modules/DataSource.vue": () => Promise.resolve().then(() => DataSource$2), "/src/components/wonderform/config/modules/FX.vue": () => import("./FX-BkPacjRG.js"), "/src/components/wonderform/config/modules/Form.vue": () => Promise.resolve().then(() => Form), "/src/components/wonderform/config/modules/FormSetting.vue": () => Promise.resolve().then(() => FormSetting$1), "/src/components/wonderform/config/modules/FormSettingIndex.vue": () => Promise.resolve().then(() => FormSettingIndex), "/src/components/wonderform/config/modules/Grid.vue": () => Promise.resolve().then(() => Grid), "/src/components/wonderform/config/modules/Input-删除.vue": () => import("./Input-删除-BGv1mwne.js"), "/src/components/wonderform/config/modules/Label-删除.vue": () => import("./Label-删除-DXz5aAXD.js"), "/src/components/wonderform/config/modules/Properties.vue": () => Promise.resolve().then(() => Properties), "/src/components/wonderform/config/modules/ReportProperties.vue": () => Promise.resolve().then(() => ReportProperties), "/src/components/wonderform/config/modules/Table.vue": () => Promise.resolve().then(() => Table$1), "/src/components/wonderform/config/modules/TableBtnModal.vue": () => import("./TableBtnModal-FPcA6fYh.js"), "/src/components/wonderform/config/modules/TableColumn.vue": () => Promise.resolve().then(() => TableColumn$1), "/src/components/wonderform/config/modules/Tabs.vue": () => Promise.resolve().then(() => Tabs), "/src/components/wonderform/config/modules/TypeScript.vue": () => Promise.resolve().then(() => TypeScript$1), "/src/components/wonderform/design/Form.vue": () => import("./Form-CsKlmwSd.js"), "/src/components/wonderform/design/index.vue": () => Promise.resolve().then(() => index$8), "/src/components/wonderform/design/modules/FormCol.vue": () => Promise.resolve().then(() => FormCol$1), "/src/components/wonderform/design/modules/FormCollapse.vue": () => Promise.resolve().then(() => FormCollapse$1), "/src/components/wonderform/design/modules/FormGrid.vue": () => Promise.resolve().then(() => FormGrid$1), "/src/components/wonderform/design/modules/FormGridCopy.vue": () => import("./FormGridCopy-Vbw3dZWN.js"), "/src/components/wonderform/design/modules/FormInput.vue": () => Promise.resolve().then(() => FormInput$1), "/src/components/wonderform/design/modules/FormReport.vue": () => Promise.resolve().then(() => FormReport$1), "/src/components/wonderform/design/modules/FormTable.vue": () => Promise.resolve().then(() => FormTable$1), "/src/components/wonderform/design/modules/FormTabs.vue": () => Promise.resolve().then(() => FormTabs$1), "/src/components/wonderform/design/modules/FormVue.vue": () => Promise.resolve().then(() => FormVue$1), "/src/components/wonderform/dsource/index.vue": () => Promise.resolve().then(() => index$4), "/src/components/wonderform/dsource/modules/SqlModule.vue": () => import("./SqlModule-CPjWhfaZ.js"), "/src/components/wonderform/header/Header.vue": () => Promise.resolve().then(() => Header), "/src/components/wonderform/header/modules/Code.vue": () => Promise.resolve().then(() => Code$1), "/src/components/wonderform/index.vue": () => Promise.resolve().then(() => index$3), "/src/components/wonderform/tool/index.vue": () => Promise.resolve().then(() => index$b), "/src/components/wonderreport/Demo.vue": () => import("./Demo-dzSXIWpK.js"), "/src/components/wonderreport/ReportModule.vue": () => import("./ReportModule-CzyznFhE.js"), "/src/components/wonderreport/header/index.vue": () => Promise.resolve().then(() => index$2), "/src/components/wonderreport/index.vue": () => Promise.resolve().then(() => index$1), "/src/views/formTest.vue": () => import("./formTest-DshZ4C20.js"), "/src/views/sys/login/Login.vue": () => import("./Login-elXMyAu9.js"), "/src/views/workbench/index.vue": () => import("./index-D7sRtSly.js") }), Q = W, Z = computed(() => {
204219
+ if (Q.filePath) {
204220
+ let K = `/src/${Q.filePath}.vue`;
204221
+ return Q.filePath ? Object.keys(C).includes(K) : !1;
204222
+ } else
204223
+ return !1;
204224
+ }), H = computed(() => Z ? defineAsyncComponent(C[`/src/${Q.filePath}.vue`]) : null);
204225
+ return (K, G) => {
204226
+ const U = resolveComponent("a-empty"), X = resolveComponent("a-card");
204227
+ return Z.value ? (openBlock(), createBlock(resolveDynamicComponent(H.value), normalizeProps(mergeProps({ key: 0 }, useAttrs)), null, 16)) : (openBlock(), createBlock(X, { key: 1 }, {
204228
+ default: withCtx(() => [
204229
+ createVNode(U)
204230
+ ]),
204231
+ _: 1
204232
+ }));
204233
+ };
204234
+ }
204235
+ }), _hoisted_1$7 = { class: "collapsePanel" }, _hoisted_2$4 = {
204236
+ key: 0,
204237
+ class: "collapse-btn"
204238
+ }, _hoisted_3$3 = { class: "collapse-form-list" }, _sfc_main$b = /* @__PURE__ */ defineComponent({
204239
+ __name: "collapsePanel",
204240
+ props: {
204241
+ classname: {
204242
+ type: String,
204243
+ default: "title-css1"
204244
+ },
204245
+ header: {
204246
+ type: String,
204247
+ default: "标题"
204248
+ },
204249
+ showArrow: {
204250
+ type: Boolean,
204251
+ default: !0
204252
+ },
204253
+ defaultCollapse: {
204254
+ type: Boolean,
204255
+ default: !1
204256
+ },
204257
+ collapseType: {
204258
+ type: String,
204259
+ default: "row"
204260
+ }
204261
+ },
204262
+ setup(W) {
204263
+ const C = W;
204264
+ let Q = ref(C.defaultCollapse);
204265
+ function Z(H) {
204266
+ H == C.collapseType && (Q.value = !Q.value);
204267
+ }
204268
+ return (H, K) => {
204269
+ const G = resolveComponent("svg-icon");
204270
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [
204271
+ createElementVNode("div", {
204272
+ class: normalizeClass([W.classname, "title-between", W.collapseType == "row" ? "clickPointer" : "clickAuto"]),
204273
+ onClick: K[2] || (K[2] = (U) => Z("row"))
204274
+ }, [
204275
+ createElementVNode("span", {
204276
+ class: normalizeClass(W.collapseType == "icon" ? "clickAuto" : "clickPointer"),
204277
+ onClick: K[0] || (K[0] = (U) => Z("header"))
204278
+ }, toDisplayString(W.header), 3),
204279
+ W.showArrow ? (openBlock(), createElementBlock("div", _hoisted_2$4, [
204280
+ createVNode(G, {
204281
+ class: normalizeClass(W.collapseType == "header" ? "clickAuto" : "clickPointer"),
204282
+ style: normalizeStyle$1(unref(Q) ? { transform: "rotate(180deg)" } : {}),
204283
+ height: "20",
204284
+ name: "arrow",
204285
+ width: "20",
204286
+ onClick: K[1] || (K[1] = (U) => Z("icon"))
204287
+ }, null, 8, ["class", "style"])
204288
+ ])) : createCommentVNode("", !0)
204289
+ ], 2),
204290
+ withDirectives(createElementVNode("div", _hoisted_3$3, [
204291
+ renderSlot(H.$slots, "default", {}, void 0, !0)
204292
+ ], 512), [
204293
+ [vShow, !unref(Q)]
204294
+ ])
204295
+ ]);
204296
+ };
204297
+ }
204298
+ }), CCollapsePanel = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-c4840e5b"]]), collapsePanel = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
204299
+ __proto__: null,
204300
+ default: CCollapsePanel
204301
+ }, Symbol.toStringTag, { value: "Module" }));
204302
+ var zhCn = { exports: {} };
204303
+ (function(W, C) {
204304
+ (function(Q, Z) {
204305
+ W.exports = Z(dayjs_minExports);
204306
+ })(commonjsGlobal, function(Q) {
204307
+ function Z(G) {
204308
+ return G && typeof G == "object" && "default" in G ? G : { default: G };
204309
+ }
204310
+ var H = Z(Q), K = { name: "zh-cn", weekdays: "星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"), weekdaysShort: "周日_周一_周二_周三_周四_周五_周六".split("_"), weekdaysMin: "日_一_二_三_四_五_六".split("_"), months: "一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"), monthsShort: "1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"), ordinal: function(G, U) {
204311
+ return U === "W" ? G + "周" : G + "日";
204312
+ }, weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "YYYY/MM/DD", LL: "YYYY年M月D日", LLL: "YYYY年M月D日Ah点mm分", LLLL: "YYYY年M月D日ddddAh点mm分", l: "YYYY/M/D", ll: "YYYY年M月D日", lll: "YYYY年M月D日 HH:mm", llll: "YYYY年M月D日dddd HH:mm" }, relativeTime: { future: "%s内", past: "%s前", s: "几秒", m: "1 分钟", mm: "%d 分钟", h: "1 小时", hh: "%d 小时", d: "1 天", dd: "%d 天", M: "1 个月", MM: "%d 个月", y: "1 年", yy: "%d 年" }, meridiem: function(G, U) {
204313
+ var X = 100 * G + U;
204314
+ return X < 600 ? "凌晨" : X < 900 ? "早上" : X < 1100 ? "上午" : X < 1300 ? "中午" : X < 1800 ? "下午" : "晚上";
204315
+ } };
204316
+ return H.default.locale(K, null, !0), K;
204317
+ });
204318
+ })(zhCn);
204319
+ dayjs.locale("zh-cn");
204320
+ function registerGlobComp(W) {
204321
+ W.component("svg-icon", SvgIcon), W.component("c-table", CTable), W.component("c-table-select", CTableSelect), W.component("c-child-form", _sfc_main$c), W.component("c-collapse-panel", CCollapsePanel), W.use(Layout).use(Input).use(Row).use(Col).use(Form$1).use(Empty$1).use(Tabs$1).use(Modal).use(InputNumber$1).use(Button$2).use(Table$2).use(Pagination).use(ConfigProvider).use(Switch$1).use(Select).use(Radio).use(Slider$1).use(Dropdown).use(Menu$1).use(Divider$1).use(DatePicker$1).use(Collapse).use(Checkbox).use(Tree).use(TreeSelect$1).use(Space).use(List$1).use(Popconfirm$1).use(Cascader$1).use(Card).use(Flex).use(Drawer$1).use(Tooltip).use(Upload).use(Spin).use(Popover$1);
204322
+ }
204323
+ function cModal(W) {
204324
+ let C, Q, Z;
204325
+ C = document.createElement("div"), W && !W.onCancel && (W.onCancel = () => {
204326
+ U();
204327
+ }), W && !W.onOk && (W.onOk = () => {
204328
+ U();
204329
+ }), Q = createApp(CommonModal, { ...W }), registerGlobComp(Q), Z = Q.mount(C);
204330
+ function H(X) {
204331
+ Z && Z.setConfirmLoading(X);
204332
+ }
204333
+ function K() {
204334
+ Z && Z.show();
204335
+ }
204336
+ function G() {
204337
+ Z && Z.close();
204338
+ }
204339
+ function U() {
204340
+ G(), setTimeout(() => {
204341
+ Z = Q.unmount();
204342
+ }, 200);
204343
+ }
204344
+ return {
204345
+ setConfirmLoading: H,
204346
+ show: K,
204347
+ close: G,
204348
+ destroy: U
204349
+ };
204350
+ }
204250
204351
  const _sfc_main$a = /* @__PURE__ */ defineComponent({
204251
204352
  __name: "GenerateForm",
204252
204353
  props: {
@@ -204273,7 +204374,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
204273
204374
  getSelectJsonSetting(selectJsonSetting);
204274
204375
  let columns = ref([]);
204275
204376
  columns.value = generateData.columns;
204276
- let basicInfo = ref({}), paginations = reactive({ ...generateData.pagScript }), activeTabKey = ref(generateData.variableScript.activeTabKey), _viewData = getViewData(), viewData = ref(_viewData), demoRefs = [];
204377
+ let basicInfo = ref({}), paginations = ref(), editableData = reactive({});
204378
+ paginations.value = generateData.paginations;
204379
+ let activeTabKey = ref(generateData.variableScript.activeTabKey), _viewData = getViewData(), viewData = ref(_viewData), demoRefs = [];
204277
204380
  if (cBasicInfo)
204278
204381
  for (let W = 0; W < cBasicInfo.length; W++) {
204279
204382
  const C = cBasicInfo[W].name, Q = cBasicInfo[W].type, Z = cBasicInfo[W].default;
@@ -204303,6 +204406,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
204303
204406
  },
204304
204407
  setup() {
204305
204408
  let formData = ref([]), datalist = ref([]), formRef = ref();
204409
+ initAllCTableV2({ viewData, formId: props.formId, paginations: paginations.value });
204306
204410
  function onSubmit() {
204307
204411
  return onSubmitForm(formRef.value, onBeforeValidate);
204308
204412
  }
@@ -204337,7 +204441,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
204337
204441
  cModal,
204338
204442
  getTreeDictItemsByCode,
204339
204443
  getCasDictItemsByCode,
204444
+ initCTableV2,
204340
204445
  tableSelectProps,
204446
+ editableData,
204447
+ saveRow,
204448
+ editRow,
204449
+ cancelRow,
204341
204450
  // defineExpose,
204342
204451
  pagination,
204343
204452
  datalist,
@@ -205432,25 +205541,6 @@ function encrypt(W) {
205432
205541
  padding: CryptoJS.pad.Pkcs7
205433
205542
  }).toString();
205434
205543
  }
205435
- const toString = Object.prototype.toString;
205436
- function is(W, C) {
205437
- return toString.call(W) === `[object ${C}]`;
205438
- }
205439
- function isObject(W) {
205440
- return W !== null && is(W, "Object");
205441
- }
205442
- function isEmpty(W) {
205443
- return isArray(W) || isString(W) ? W.length === 0 : W instanceof Map || W instanceof Set ? W.size === 0 : isObject(W) ? Object.keys(W).length === 0 : !1;
205444
- }
205445
- function isString(W) {
205446
- return is(W, "String");
205447
- }
205448
- function isArray(W) {
205449
- return W && Array.isArray(W);
205450
- }
205451
- function isNotNull(W) {
205452
- return !(W == null || W == null || W == "");
205453
- }
205454
205544
  const _hoisted_1$6 = { class: "flex-div" }, _hoisted_2$3 = ["title"], _hoisted_3$2 = { style: { display: "flex" } }, _sfc_main$9 = /* @__PURE__ */ defineComponent({
205455
205545
  __name: "Header",
205456
205546
  props: {
@@ -206334,7 +206424,7 @@ const _hoisted_1$6 = { class: "flex-div" }, _hoisted_2$3 = ["title"], _hoisted_3
206334
206424
  props: {
206335
206425
  id: {
206336
206426
  type: Number,
206337
- default: 36
206427
+ default: 52
206338
206428
  }
206339
206429
  },
206340
206430
  setup(W) {
@@ -206481,7 +206571,7 @@ const _hoisted_1$6 = { class: "flex-div" }, _hoisted_2$3 = ["title"], _hoisted_3
206481
206571
  }, 8, ["spinning"]);
206482
206572
  };
206483
206573
  }
206484
- }), FormImage = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-10047be1"]]), index$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
206574
+ }), FormImage = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-cb997288"]]), index$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
206485
206575
  __proto__: null,
206486
206576
  default: FormImage
206487
206577
  }, Symbol.toStringTag, { value: "Module" })), _withScopeId = (W) => (pushScopeId("data-v-be2df7b1"), W = W(), popScopeId(), W), _hoisted_1$3 = {
@@ -207622,12 +207712,6 @@ function generateReportHtml(W, C, Q, Z) {
207622
207712
  function getApiSourceCode(W) {
207623
207713
  return W && W.cType && W.cType == "javascript" ? `let reportApiSource = ${JSON.stringify(W.dataSource)}` : "";
207624
207714
  }
207625
- function compareObjects(W, C) {
207626
- let Q = {};
207627
- for (const Z in W)
207628
- W[Z] !== C[Z] && (Q[Z] = C[Z]);
207629
- return Q;
207630
- }
207631
207715
  let dataSource = ref(), paginations = ref();
207632
207716
  ref([]);
207633
207717
  ref({});