form-imagining 0.0.87-21 → 0.0.87-23

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-C4CEVhQR.js} +1 -1
  2. package/dist/{Ceshi-B3kZG5NY.js → Ceshi-DEWhIqtU.js} +1 -1
  3. package/dist/{Ceshi2-ZyVxqi6l.js → Ceshi2-atww_hoa.js} +1 -1
  4. package/dist/Col-B5Ass1aQ.js +4 -0
  5. package/dist/Collapse-rtbic9dB.js +4 -0
  6. package/dist/{Demo-c8pVdOsy.js → Demo-DsBosCtK.js} +1 -1
  7. package/dist/FX-DX9WL6M3.js +4 -0
  8. package/dist/{FormGridCopy-B8qF7r0o.js → FormGridCopy-LBYISmTF.js} +1 -1
  9. package/dist/GenerateForm-C-b6biSr.js +4 -0
  10. package/dist/GenerateReport-D9Cbvy4O.js +4 -0
  11. package/dist/{HelloWorld-CS7lzdZM.js → HelloWorld-BEcsSIGJ.js} +1 -1
  12. package/dist/Input-/345/210/240/351/231/{244-D4j_ymDh.js → 244-B5kDIS0y.js} +1 -1
  13. package/dist/Label-/345/210/240/351/231/{244-CAfGJXlJ.js → 244-5RFXctSS.js} +1 -1
  14. package/dist/{Login-BIHZ9nS4.js → Login-FrCl5Uq7.js} +1 -1
  15. package/dist/ReportModule-ytZcUnZ1.js +4 -0
  16. package/dist/SqlModule-DE12c3RO.js +4 -0
  17. package/dist/TableBtnModal-0wT0E3JK.js +4 -0
  18. package/dist/childForm-B29UI65a.js +4 -0
  19. package/dist/{cssMode-BEacvHhm.js → cssMode-DV8-oywx.js} +1 -1
  20. package/dist/form-imagining.js +1 -1
  21. package/dist/form-imagining.umd.cjs +23 -21
  22. package/dist/{formTest-CW-K577H.js → formTest-oCzGIqht.js} +1 -1
  23. package/dist/{freemarker2-CYAXc2Zn.js → freemarker2-ClQFX3ur.js} +1 -1
  24. package/dist/{handlebars-DarUunsa.js → handlebars-D98SbLAi.js} +1 -1
  25. package/dist/{html-DiKpZESP.js → html-4x2Kqwu3.js} +1 -1
  26. package/dist/{htmlMode-6GBtSFsM.js → htmlMode-DUqkvE_9.js} +1 -1
  27. package/dist/{index-CfrA6HAp.js → index-Ct5fBlac.js} +1 -1
  28. package/dist/{index-DuzQqckl.js → index-IXCXR-in.js} +1100 -1015
  29. package/dist/{index-C_mPZNtD.js → index-bK7g9whp.js} +1 -1
  30. package/dist/{javascript-DGaXq9a_.js → javascript-BtAdFLtV.js} +1 -1
  31. package/dist/{jsonMode-Cb2JZSSN.js → jsonMode-B7g3nkto.js} +1 -1
  32. package/dist/{liquid-jKKbfnYF.js → liquid-B-raW2Dj.js} +1 -1
  33. package/dist/{mdx-D8ztuZP2.js → mdx-39ULALzQ.js} +1 -1
  34. package/dist/{python-qanLtxa0.js → python-CFGgt3B-.js} +1 -1
  35. package/dist/{razor-BC4ActBR.js → razor-CPLT3fmA.js} +1 -1
  36. package/dist/style.css +1 -1
  37. package/dist/{tableSelectDemo-wzy7O2nC.js → tableSelectDemo-BkyjtUkY.js} +1 -1
  38. package/dist/{tableSelectDemo2-Cala3KB3.js → tableSelectDemo2-C0xOIagD.js} +1 -1
  39. package/dist/{tsMode-Dw94C6If.js → tsMode-DY53GJLv.js} +1 -1
  40. package/dist/{typescript-BJ4ZHObD.js → typescript-DvAkvb0T.js} +1 -1
  41. package/dist/{xml-Dcu7KA-n.js → xml-B6HondvQ.js} +1 -1
  42. package/dist/{yaml-CYlpkCfT.js → yaml-bJF8HJG_.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,26 +79012,28 @@ 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>`;
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>
79021
- <a-divider type="vertical" />
79022
- <a-popconfirm title="确定取消吗?" @confirm="cancel(record.id)">
79023
- <a-button type="link">取消</a-button><a-divider type="vertical" />
79024
- </a-popconfirm>
79025
- </span>
79026
- <span v-else>
79027
- <a-button type="link" @click="edit(record.id, ${W.model})">编辑</a-button>
79028
- </span>
79019
+ <template 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
+ <a-popconfirm title="确定取消吗?" @confirm="cancelRow(record.${W.keyCol || "id"},editableData)">
79022
+ <a-button type="link">取消</a-button>
79023
+ </a-popconfirm>
79024
+ </template>
79025
+ <template v-else>
79026
+ <a-button type="link" @click="editRow(record.${W.keyCol || "id"}, editableData, viewData.${W.model}, '${W.keyCol}')">编辑</a-button>
79027
+ </template>
79029
79028
  `), re = `
79030
79029
  <template v-if="column.key === 'action'">
79030
+ <a-space>
79031
+ <template #split>
79032
+ <a-divider type="vertical" />
79033
+ </template>
79031
79034
  ${le}
79032
- <span>
79033
79035
  ${ne}
79034
- </span>
79036
+ </a-space>
79035
79037
  </template>
79036
79038
  `;
79037
79039
  }
@@ -79041,11 +79043,11 @@ function generateTable(W, C, Q, Z, H, K) {
79041
79043
  ${re}
79042
79044
  <template v-else>
79043
79045
  <div>
79044
- <template v-if="editableData[record.id]">
79046
+ <template v-if="editableData[record.${W.keyCol || "id"}]">
79045
79047
  <a-input v-if="column.componentType == 'input'"
79046
- v-model:value="editableData[record.id][column.dataIndex]" style="margin: -5px 0" />
79048
+ v-model:value="editableData[record.${W.keyCol || "id"}][column.dataIndex]" style="margin: -5px 0" />
79047
79049
  <a-select v-else-if="column.componentType == 'select'"
79048
- v-model:value="editableData[record.id][column.dataIndex]" style="margin: -5px 0" />
79050
+ v-model:value="editableData[record.${W.keyCol || "id"}][column.dataIndex]" style="margin: -5px 0" />
79049
79051
  <div v-else>
79050
79052
  {{ text }}
79051
79053
  </div>
@@ -85770,7 +85772,7 @@ async function generateFormCode(W) {
85770
85772
  import { defHttp } from "/@/utils/http/axios";
85771
85773
  import { ref, reactive, onMounted, computed, onBeforeUpdate,useAttrs, watch } from "vue";
85772
85774
  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";
85775
+ 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
85776
  import tableSelectProps from "/@/components/form-widget/widget/tableSelectOptions"
85775
85777
  import { cModal } from "/@/components/cModal/index"
85776
85778
  import { Modal, message } from 'ant-design-vue';
@@ -86803,7 +86805,7 @@ const _hoisted_1$p = { style: { "text-align": "left" } }, _hoisted_2$h = { class
86803
86805
  }, 8, ["model"]);
86804
86806
  };
86805
86807
  }
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({
86808
+ }), _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
86809
  __name: "TableColumn",
86808
86810
  props: {
86809
86811
  configData: {
@@ -87146,7 +87148,8 @@ const _hoisted_1$p = { style: { "text-align": "left" } }, _hoisted_2$h = { class
87146
87148
  "onUpdate:value": ye[7] || (ye[7] = (Ge) => unref(ae).componentType = Ge),
87147
87149
  "show-search": "",
87148
87150
  style: { width: "40%" },
87149
- options: G
87151
+ options: G,
87152
+ "allow-clear": ""
87150
87153
  }, null, 8, ["value"]),
87151
87154
  unref(ae).componentType == "select" ? (openBlock(), createBlock(Ve, {
87152
87155
  key: 0,
@@ -87293,7 +87296,7 @@ const _hoisted_1$p = { style: { "text-align": "left" } }, _hoisted_2$h = { class
87293
87296
  }, 8, ["open"]);
87294
87297
  };
87295
87298
  }
87296
- }), TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-7b7f4045"]]), TableColumn$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
87299
+ }), TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-815c4fe0"]]), TableColumn$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
87297
87300
  __proto__: null,
87298
87301
  default: TableColumn
87299
87302
  }, Symbol.toStringTag, { value: "Module" })), _sfc_main$u = /* @__PURE__ */ defineComponent({
@@ -164630,37 +164633,37 @@ registerLanguage({
164630
164633
  id: "freemarker2",
164631
164634
  extensions: [".ftl", ".ftlh", ".ftlx"],
164632
164635
  aliases: ["FreeMarker2", "Apache FreeMarker2"],
164633
- loader: () => import("./freemarker2-CYAXc2Zn.js").then((W) => W.TagAutoInterpolationDollar)
164636
+ loader: () => import("./freemarker2-ClQFX3ur.js").then((W) => W.TagAutoInterpolationDollar)
164634
164637
  });
164635
164638
  registerLanguage({
164636
164639
  id: "freemarker2.tag-angle.interpolation-dollar",
164637
164640
  aliases: ["FreeMarker2 (Angle/Dollar)", "Apache FreeMarker2 (Angle/Dollar)"],
164638
- loader: () => import("./freemarker2-CYAXc2Zn.js").then((W) => W.TagAngleInterpolationDollar)
164641
+ loader: () => import("./freemarker2-ClQFX3ur.js").then((W) => W.TagAngleInterpolationDollar)
164639
164642
  });
164640
164643
  registerLanguage({
164641
164644
  id: "freemarker2.tag-bracket.interpolation-dollar",
164642
164645
  aliases: ["FreeMarker2 (Bracket/Dollar)", "Apache FreeMarker2 (Bracket/Dollar)"],
164643
- loader: () => import("./freemarker2-CYAXc2Zn.js").then((W) => W.TagBracketInterpolationDollar)
164646
+ loader: () => import("./freemarker2-ClQFX3ur.js").then((W) => W.TagBracketInterpolationDollar)
164644
164647
  });
164645
164648
  registerLanguage({
164646
164649
  id: "freemarker2.tag-angle.interpolation-bracket",
164647
164650
  aliases: ["FreeMarker2 (Angle/Bracket)", "Apache FreeMarker2 (Angle/Bracket)"],
164648
- loader: () => import("./freemarker2-CYAXc2Zn.js").then((W) => W.TagAngleInterpolationBracket)
164651
+ loader: () => import("./freemarker2-ClQFX3ur.js").then((W) => W.TagAngleInterpolationBracket)
164649
164652
  });
164650
164653
  registerLanguage({
164651
164654
  id: "freemarker2.tag-bracket.interpolation-bracket",
164652
164655
  aliases: ["FreeMarker2 (Bracket/Bracket)", "Apache FreeMarker2 (Bracket/Bracket)"],
164653
- loader: () => import("./freemarker2-CYAXc2Zn.js").then((W) => W.TagBracketInterpolationBracket)
164656
+ loader: () => import("./freemarker2-ClQFX3ur.js").then((W) => W.TagBracketInterpolationBracket)
164654
164657
  });
164655
164658
  registerLanguage({
164656
164659
  id: "freemarker2.tag-auto.interpolation-dollar",
164657
164660
  aliases: ["FreeMarker2 (Auto/Dollar)", "Apache FreeMarker2 (Auto/Dollar)"],
164658
- loader: () => import("./freemarker2-CYAXc2Zn.js").then((W) => W.TagAutoInterpolationDollar)
164661
+ loader: () => import("./freemarker2-ClQFX3ur.js").then((W) => W.TagAutoInterpolationDollar)
164659
164662
  });
164660
164663
  registerLanguage({
164661
164664
  id: "freemarker2.tag-auto.interpolation-bracket",
164662
164665
  aliases: ["FreeMarker2 (Auto/Bracket)", "Apache FreeMarker2 (Auto/Bracket)"],
164663
- loader: () => import("./freemarker2-CYAXc2Zn.js").then((W) => W.TagAutoInterpolationBracket)
164666
+ loader: () => import("./freemarker2-ClQFX3ur.js").then((W) => W.TagAutoInterpolationBracket)
164664
164667
  });
164665
164668
  /*!-----------------------------------------------------------------------------
164666
164669
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -164698,7 +164701,7 @@ registerLanguage({
164698
164701
  extensions: [".handlebars", ".hbs"],
164699
164702
  aliases: ["Handlebars", "handlebars", "hbs"],
164700
164703
  mimetypes: ["text/x-handlebars-template"],
164701
- loader: () => import("./handlebars-DarUunsa.js")
164704
+ loader: () => import("./handlebars-D98SbLAi.js")
164702
164705
  });
164703
164706
  /*!-----------------------------------------------------------------------------
164704
164707
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -164723,7 +164726,7 @@ registerLanguage({
164723
164726
  extensions: [".html", ".htm", ".shtml", ".xhtml", ".mdoc", ".jsp", ".asp", ".aspx", ".jshtm"],
164724
164727
  aliases: ["HTML", "htm", "html", "xhtml"],
164725
164728
  mimetypes: ["text/html", "text/x-jshtm", "text/template", "text/ng-template"],
164726
- loader: () => import("./html-DiKpZESP.js")
164729
+ loader: () => import("./html-4x2Kqwu3.js")
164727
164730
  });
164728
164731
  /*!-----------------------------------------------------------------------------
164729
164732
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -164764,7 +164767,7 @@ registerLanguage({
164764
164767
  filenames: ["jakefile"],
164765
164768
  aliases: ["JavaScript", "javascript", "js"],
164766
164769
  mimetypes: ["text/javascript"],
164767
- loader: () => import("./javascript-DGaXq9a_.js")
164770
+ loader: () => import("./javascript-BtAdFLtV.js")
164768
164771
  });
164769
164772
  /*!-----------------------------------------------------------------------------
164770
164773
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -164839,7 +164842,7 @@ registerLanguage({
164839
164842
  extensions: [".liquid", ".html.liquid"],
164840
164843
  aliases: ["Liquid", "liquid"],
164841
164844
  mimetypes: ["application/liquid"],
164842
- loader: () => import("./liquid-jKKbfnYF.js")
164845
+ loader: () => import("./liquid-B-raW2Dj.js")
164843
164846
  });
164844
164847
  /*!-----------------------------------------------------------------------------
164845
164848
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -164875,7 +164878,7 @@ registerLanguage({
164875
164878
  id: "mdx",
164876
164879
  extensions: [".mdx"],
164877
164880
  aliases: ["MDX", "mdx"],
164878
- loader: () => import("./mdx-D8ztuZP2.js")
164881
+ loader: () => import("./mdx-39ULALzQ.js")
164879
164882
  });
164880
164883
  /*!-----------------------------------------------------------------------------
164881
164884
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -165070,7 +165073,7 @@ registerLanguage({
165070
165073
  extensions: [".py", ".rpy", ".pyw", ".cpy", ".gyp", ".gypi"],
165071
165074
  aliases: ["Python", "py"],
165072
165075
  firstLine: "^#!/.*\\bpython[0-9.-]*\\b",
165073
- loader: () => import("./python-qanLtxa0.js")
165076
+ loader: () => import("./python-CFGgt3B-.js")
165074
165077
  });
165075
165078
  /*!-----------------------------------------------------------------------------
165076
165079
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -165107,7 +165110,7 @@ registerLanguage({
165107
165110
  extensions: [".cshtml"],
165108
165111
  aliases: ["Razor", "razor"],
165109
165112
  mimetypes: ["text/x-cshtml"],
165110
- loader: () => import("./razor-BC4ActBR.js")
165113
+ loader: () => import("./razor-CPLT3fmA.js")
165111
165114
  });
165112
165115
  /*!-----------------------------------------------------------------------------
165113
165116
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -165359,7 +165362,7 @@ registerLanguage({
165359
165362
  extensions: [".ts", ".tsx", ".cts", ".mts"],
165360
165363
  aliases: ["TypeScript", "ts", "typescript"],
165361
165364
  mimetypes: ["text/typescript"],
165362
- loader: () => import("./typescript-BJ4ZHObD.js")
165365
+ loader: () => import("./typescript-DvAkvb0T.js")
165363
165366
  });
165364
165367
  /*!-----------------------------------------------------------------------------
165365
165368
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -165427,7 +165430,7 @@ registerLanguage({
165427
165430
  firstLine: "(\\<\\?xml.*)|(\\<svg)|(\\<\\!doctype\\s+svg)",
165428
165431
  aliases: ["XML", "xml"],
165429
165432
  mimetypes: ["text/xml", "application/xml", "application/xaml+xml", "application/xml-dtd"],
165430
- loader: () => import("./xml-Dcu7KA-n.js")
165433
+ loader: () => import("./xml-B6HondvQ.js")
165431
165434
  });
165432
165435
  /*!-----------------------------------------------------------------------------
165433
165436
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -165440,7 +165443,7 @@ registerLanguage({
165440
165443
  extensions: [".yaml", ".yml"],
165441
165444
  aliases: ["YAML", "yaml", "YML", "yml"],
165442
165445
  mimetypes: ["application/x-yaml", "text/x-yaml"],
165443
- loader: () => import("./yaml-CYlpkCfT.js")
165446
+ loader: () => import("./yaml-bJF8HJG_.js")
165444
165447
  });
165445
165448
  /*!-----------------------------------------------------------------------------
165446
165449
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -165543,7 +165546,7 @@ var LanguageServiceDefaultsImpl$3 = class {
165543
165546
  );
165544
165547
  monaco_editor_core_exports$3.languages.css = { cssDefaults, lessDefaults, scssDefaults };
165545
165548
  function getMode$3() {
165546
- return import("./cssMode-BEacvHhm.js");
165549
+ return import("./cssMode-DV8-oywx.js");
165547
165550
  }
165548
165551
  monaco_editor_core_exports$3.languages.onLanguage("less", () => {
165549
165552
  getMode$3().then((W) => W.setupMode(lessDefaults));
@@ -165649,7 +165652,7 @@ monaco_editor_core_exports$2.languages.html = {
165649
165652
  registerHTMLLanguageService
165650
165653
  };
165651
165654
  function getMode$2() {
165652
- return import("./htmlMode-6GBtSFsM.js");
165655
+ return import("./htmlMode-DUqkvE_9.js");
165653
165656
  }
165654
165657
  function registerHTMLLanguageService(W, C = optionsDefault, Q = getConfigurationDefault(W)) {
165655
165658
  const Z = new LanguageServiceDefaultsImpl$2(W, C, Q);
@@ -165726,7 +165729,7 @@ var LanguageServiceDefaultsImpl$1 = class {
165726
165729
  ), getWorker = () => getMode$1().then((W) => W.getWorker());
165727
165730
  monaco_editor_core_exports$1.languages.json = { jsonDefaults, getWorker };
165728
165731
  function getMode$1() {
165729
- return import("./jsonMode-Cb2JZSSN.js");
165732
+ return import("./jsonMode-B7g3nkto.js");
165730
165733
  }
165731
165734
  monaco_editor_core_exports$1.languages.register({
165732
165735
  id: "json",
@@ -165890,7 +165893,7 @@ monaco_editor_core_exports.languages.typescript = {
165890
165893
  getJavaScriptWorker
165891
165894
  };
165892
165895
  function getMode() {
165893
- return import("./tsMode-Dw94C6If.js");
165896
+ return import("./tsMode-DY53GJLv.js");
165894
165897
  }
165895
165898
  monaco_editor_core_exports.languages.onLanguage("typescript", () => getMode().then((W) => W.setupTypeScript(typescriptDefaults)));
165896
165899
  monaco_editor_core_exports.languages.onLanguage("javascript", () => getMode().then((W) => W.setupJavaScript(javascriptDefaults)));
@@ -201568,951 +201571,6 @@ function validateReg(W, C, Q) {
201568
201571
  }
201569
201572
  return Z && !Q.match(Z) && (H = !1), H ? "" : C;
201570
201573
  }
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
201574
  /*!
202517
201575
  * vue-router v4.2.5
202518
201576
  * (c) 2023 Eduardo San Martin Morote
@@ -204247,6 +203305,1050 @@ function extractChangingRecords(W, C) {
204247
203305
  function useRoute() {
204248
203306
  return inject(routeLocationKey);
204249
203307
  }
203308
+ const RootRoute = [
203309
+ {
203310
+ path: "/",
203311
+ name: "home",
203312
+ component: () => import("./index-Ct5fBlac.js"),
203313
+ meta: {
203314
+ title: "home"
203315
+ }
203316
+ },
203317
+ {
203318
+ path: "/cc/:code",
203319
+ name: "formTest",
203320
+ component: () => import("./formTest-oCzGIqht.js")
203321
+ }
203322
+ ], basicRoutes = RootRoute, router = createRouter({
203323
+ history: createWebHistory("./"),
203324
+ routes: basicRoutes,
203325
+ strict: !0,
203326
+ scrollBehavior: () => ({ left: 0, top: 0 })
203327
+ });
203328
+ function compareObjects(W, C) {
203329
+ let Q = {};
203330
+ for (const Z in W)
203331
+ W[Z] !== C[Z] && (Q[Z] = C[Z]);
203332
+ return Q;
203333
+ }
203334
+ const toString = Object.prototype.toString;
203335
+ function is(W, C) {
203336
+ return toString.call(W) === `[object ${C}]`;
203337
+ }
203338
+ function isObject(W) {
203339
+ return W !== null && is(W, "Object");
203340
+ }
203341
+ function isEmpty(W) {
203342
+ 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;
203343
+ }
203344
+ function isString(W) {
203345
+ return is(W, "String");
203346
+ }
203347
+ function isArray(W) {
203348
+ return W && Array.isArray(W);
203349
+ }
203350
+ function isNotNull(W) {
203351
+ return !(W == null || W == null || W == "");
203352
+ }
203353
+ let validateInfos = reactive({});
203354
+ async function getData(W, C, Q) {
203355
+ Q.value = !1, await defHttp.post({ url: "/imaginform/zrzy-form/generate/select", data: { formId: C, param: { code: "liulu" } } }, { withToken: !0 }).then((H) => {
203356
+ H.result != "{}" && (W.value = JSON.parse(H.result)), Q.value = !0;
203357
+ });
203358
+ }
203359
+ async function getDataByApi(W, C) {
203360
+ }
203361
+ async function getInheritData(W, C) {
203362
+ }
203363
+ function onSubmitForm(W, C) {
203364
+ let Q, Z = W.querySelectorAll("[write-field]");
203365
+ console.log("formDom", Z);
203366
+ for (let H = 0; H < Z.length; H++)
203367
+ validateFun(Z[H]);
203368
+ if (C && C(), Q = isValidateSuccess(), Q) {
203369
+ console.log("校验成功");
203370
+ let H = {};
203371
+ return H = getUpdateData(Z), H;
203372
+ } else
203373
+ return !1;
203374
+ }
203375
+ function getUpdateData(W) {
203376
+ let C = {};
203377
+ for (let Q = 0; Q < W.length; Q++) {
203378
+ let Z = getDomValue(W[Q]);
203379
+ const K = getDomAttribute(W[Q], "write-field").split(";");
203380
+ for (let G = 0; G < K.length; G++) {
203381
+ const U = K[G].split("."), X = U[0];
203382
+ C[X] = C[X] ? C[X] : {}, C[X][U[1]] = Z;
203383
+ }
203384
+ }
203385
+ return C;
203386
+ }
203387
+ function getDomValue(W, C, Q) {
203388
+ var H, K, G, U;
203389
+ let Z;
203390
+ if (Q)
203391
+ Z = Q;
203392
+ else {
203393
+ if (C && W.target) {
203394
+ 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;
203395
+ X && X.contains("table-select-selected") && (C = void 0, W = W.target.parentNode.parentNode.parentNode);
203396
+ }
203397
+ if (C)
203398
+ Z = W.target.value;
203399
+ else {
203400
+ let X = W.classList;
203401
+ if (X.contains("ant-select")) {
203402
+ let ee = W.getAttribute("data-value"), te = ee ? JSON.parse(ee) : "", ie = W.getAttribute("punctuation");
203403
+ Array.isArray(te) ? (te = te.map((ne) => ne.value ? ne.value : ne).filter((ne) => ne), Z = te.length ? te.join(ie || ",") : "") : Z = te;
203404
+ } else if (X.contains("ant-checkbox-group") || X.contains("ant-radio-group")) {
203405
+ let ee = W.getAttribute("data-value"), te = ee ? JSON.parse(ee) : "";
203406
+ Z = Array.isArray(te) ? te.length ? te.join(",") : "" : te;
203407
+ } else if (X.contains("ant-picker-range-custom")) {
203408
+ let ee = Array.from(W.childNodes).find((ie) => ie.classList && ie.classList.contains("ant-picker-range"));
203409
+ Z = Array.from(ee.childNodes).filter((ie) => ie.classList && ie.classList.contains("ant-picker-input")).map((ie) => ie.childNodes[0].value);
203410
+ } else if (X.contains("ant-picker-custom")) {
203411
+ let ee = Array.from(W.childNodes).find((ie) => ie.classList && ie.classList.contains("ant-picker"));
203412
+ Z = Array.from(ee.childNodes).find((ie) => ie.classList && ie.classList.contains("ant-picker-input")).childNodes[0].value;
203413
+ } else
203414
+ Z = W.value;
203415
+ }
203416
+ }
203417
+ return Z || "";
203418
+ }
203419
+ function getDomAttribute(W, C, Q) {
203420
+ let Z, H;
203421
+ if (Q) {
203422
+ let K = W.target.classList ? W.target : W.nativeEvent.target, G = K.classList, U = K.parentNode.classList;
203423
+ if (G.contains("ant-select-selection-search-input") || U.contains("ant-picker-input")) {
203424
+ let X = K.parentNode.parentNode.parentNode;
203425
+ K.parentNode.parentNode.classList.contains("ant-select-selection-overflow-item") && (X = K.parentNode.parentNode.parentNode.parentNode.parentNode), H = X.getAttribute(C);
203426
+ } else G.contains("ant-radio-input") ? H = K.parentNode.parentNode.parentNode.getAttribute(C) : H = K.getAttribute(C);
203427
+ } else
203428
+ W.target ? H = W.target.getAttribute(C) : H = W.getAttribute(C);
203429
+ return Z = isJsonData(H) ? JSON.parse(H) : H, Z;
203430
+ }
203431
+ function validateFun(W, C, Q, Z) {
203432
+ var X;
203433
+ typeof W == "string" && (W = (X = document.querySelectorAll(`[write-field="${W}"]`)) == null ? void 0 : X[0]);
203434
+ let H = getDomValue(W, C, Q), K = getDomAttribute(W, "rules", C), G = getDomAttribute(W, "write-field", C), U = "";
203435
+ if (K && G) {
203436
+ for (let ee = 0; ee < K.length; ee++)
203437
+ K[ee].type == "required" && (U += validateRequired(H)), U.length == 0 && (U += validateReg(K[ee].type, K[ee].msg, H));
203438
+ 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";
203439
+ }
203440
+ Z && Z(W);
203441
+ }
203442
+ function isValidateSuccess() {
203443
+ let W = !0;
203444
+ for (const C in validateInfos)
203445
+ if (validateInfos[C].validateStatus == "error") {
203446
+ W = !1;
203447
+ break;
203448
+ }
203449
+ return W;
203450
+ }
203451
+ const syncChange = (W, C, Q, Z, H, K) => {
203452
+ Q = Q || ",";
203453
+ let G = Z.split("."), U = Array.isArray(W) ? W.map((X) => X.value || X) : [W.value || W];
203454
+ if (C[G[0]][G[1]] = U ? U.join(Q) : void 0, H) {
203455
+ let X = H.split("."), ee = Array.isArray(W) ? W.map((te) => te.label || te) : [W.label || W];
203456
+ C[X[0]][X[1]] = ee ? ee.join(Q) : void 0;
203457
+ }
203458
+ nextTick(() => {
203459
+ K && K(W);
203460
+ });
203461
+ };
203462
+ function onTableSelectClear(W, C, Q) {
203463
+ let Z = C.split(".");
203464
+ W[Z[0]][Z[1]] = "", Q && Q();
203465
+ }
203466
+ function onTableSelectChange(W, C, Q, Z, H) {
203467
+ let K = Z.split(".");
203468
+ Q[K[0]][K[1]] = W ? W.join(",") : void 0, H && H();
203469
+ }
203470
+ function onTableSelectRowChange(W, C, Q, Z, H, K, G) {
203471
+ let U = Q.split("."), X = W.map((ee) => ee[Z]);
203472
+ if (C[U[0]][U[1]] = X ? X.join(",") : void 0, H && K) {
203473
+ let ee = H.split("."), te = W.map((ie) => ie[K]);
203474
+ C[ee[0]][ee[1]] = te ? te.join(",") : void 0;
203475
+ }
203476
+ G && G(W);
203477
+ }
203478
+ const getSelectAllCheck = (W, C) => {
203479
+ let Q = C ? C.map((H) => H.value) : [], Z = W ? W.includes(",") ? W.split(",") : [W] : [];
203480
+ return Z.length == Q.length && Z.length !== 0 && Q.length !== 0;
203481
+ }, setSelectAllCheck = (W, C, Q, Z) => {
203482
+ let H = W.target.checked, K = Q ? Q.split(".") : null;
203483
+ if (K) {
203484
+ let G = Z ? Z.map((U) => U.value) : [];
203485
+ C[K[0]][K[1]] = H ? G.join(",") : null;
203486
+ }
203487
+ };
203488
+ function getAccount(W, C, Q) {
203489
+ let Z = 0;
203490
+ switch (W) {
203491
+ case "sum":
203492
+ Z = sum(C, Q);
203493
+ break;
203494
+ case "avg":
203495
+ Z = sum(C, Q) / C.split(",").length;
203496
+ break;
203497
+ }
203498
+ return Z;
203499
+ }
203500
+ function sum(W, C) {
203501
+ let Q = 0;
203502
+ if (W.indexOf(",") > -1) {
203503
+ let Z = W.split(",");
203504
+ for (let H = 0; H < Z.length; H++) {
203505
+ let K = Z[H].split("."), G = C[K[0]][K[1]];
203506
+ G == null && (G = 0), Q += G;
203507
+ }
203508
+ }
203509
+ return Q;
203510
+ }
203511
+ function hideField(W, C, Q) {
203512
+ let Z = !1;
203513
+ const H = W[Q].ruleList[0], { field: K, selectType: G, ruleValue: U } = H, X = K.split(".");
203514
+ let ee = U;
203515
+ if (G == "field") {
203516
+ const te = U.split(".");
203517
+ ee = C.value[te[0]][te[1]];
203518
+ }
203519
+ if (C.value != null) {
203520
+ const te = C.value[X[0]];
203521
+ te != null && te[X[1]] != null && (Z = te[X[1]] === ee);
203522
+ }
203523
+ return Z;
203524
+ }
203525
+ function getSelectJsonSetting(W) {
203526
+ for (const C in W.value)
203527
+ if (W.value[C].options.length == 0) {
203528
+ 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;
203529
+ defHttp.get({ url: Q }, { withToken: !0 }).then((Z) => {
203530
+ 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)));
203531
+ });
203532
+ }
203533
+ }
203534
+ function initCTableV2(W) {
203535
+ const C = router.currentRoute.value.query, Q = "/api/zrzy-form/generate/getGridModels";
203536
+ let Z = {
203537
+ isPage: !1
203538
+ };
203539
+ W.pagination.pageSize && (Z.isPage = !0, Z.current = W.pagination.current, Z.size = W.pagination.pageSize), defHttp.post({
203540
+ url: Q,
203541
+ data: {
203542
+ formId: W.formId ? W.formId : 14,
203543
+ readName: W.pagination.bindName,
203544
+ param: { slbh: C.slbh ? C.slbh : "CQSC202412090000534" },
203545
+ ...Z
203546
+ }
203547
+ }, { withToken: !0 }).then((H) => {
203548
+ 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);
203549
+ });
203550
+ }
203551
+ function initAllCTableV2(W) {
203552
+ let C = W.paginations;
203553
+ for (const Q in C) {
203554
+ let Z = C[Q];
203555
+ Z.bindName && initCTableV2({ viewData: W.viewData, formId: W.formId, pagination: Z });
203556
+ }
203557
+ }
203558
+ let obj$1 = reactive({ obj1: {}, obj2: {} });
203559
+ const editRow = (W, C, Q, Z) => {
203560
+ C[W] = cloneDeep(Q.filter((H) => W == H[Z])[0]), obj$1.obj1[W] = cloneDeep(C[W]), console.log("editableData", C);
203561
+ }, saveRow = (W, C, Q, Z, H, K) => {
203562
+ Object.assign(Q.filter((U) => W == U[Z])[0], C[W]), obj$1.obj2[W] = cloneDeep(C[W]);
203563
+ let G = [];
203564
+ if (G = compareObjects(obj$1.obj1[W], obj$1.obj2[W]), isEmpty(G))
203565
+ delObj$1(W, C);
203566
+ else {
203567
+ let U = [];
203568
+ U = G;
203569
+ const X = Z || "id", ee = C[W][X];
203570
+ let te = "/imaginform/zrzy-form/form/report/update";
203571
+ ee == "" ? te = "/imaginform/zrzy-form/form/report/add" : U[X] = ee, defHttp.post({
203572
+ url: te,
203573
+ data: {
203574
+ keyCol: X,
203575
+ tableName: H,
203576
+ data: G
203577
+ }
203578
+ }, { withToken: !0 }).then((ie) => {
203579
+ ie.code == 200 ? (delObj$1(W, C), api$2.info("数据更新成功"), ee == "" ? K && K(ie.result) : K && K()) : api$2.error("数据更新失败");
203580
+ });
203581
+ }
203582
+ };
203583
+ function delObj$1(W, C) {
203584
+ delete C[W], delete obj$1.obj1[W], delete obj$1.obj2[W];
203585
+ }
203586
+ const cancelRow = (W, C) => {
203587
+ delete C[W];
203588
+ }, locale$2 = {
203589
+ locale: "zh_CN",
203590
+ today: "今天",
203591
+ now: "此刻",
203592
+ backToToday: "返回今天",
203593
+ ok: "确定",
203594
+ timeSelect: "选择时间",
203595
+ dateSelect: "选择日期",
203596
+ weekSelect: "选择周",
203597
+ clear: "清除",
203598
+ month: "月",
203599
+ year: "年",
203600
+ previousMonth: "上个月 (翻页上键)",
203601
+ nextMonth: "下个月 (翻页下键)",
203602
+ monthSelect: "选择月份",
203603
+ yearSelect: "选择年份",
203604
+ decadeSelect: "选择年代",
203605
+ yearFormat: "YYYY年",
203606
+ dayFormat: "D日",
203607
+ dateFormat: "YYYY年M月D日",
203608
+ dateTimeFormat: "YYYY年M月D日 HH时mm分ss秒",
203609
+ previousYear: "上一年 (Control键加左方向键)",
203610
+ nextYear: "下一年 (Control键加右方向键)",
203611
+ previousDecade: "上一年代",
203612
+ nextDecade: "下一年代",
203613
+ previousCentury: "上一世纪",
203614
+ nextCentury: "下一世纪"
203615
+ }, locale$1 = {
203616
+ placeholder: "请选择时间",
203617
+ rangePlaceholder: ["开始时间", "结束时间"]
203618
+ }, locale = {
203619
+ lang: _extends$1({
203620
+ placeholder: "请选择日期",
203621
+ yearPlaceholder: "请选择年份",
203622
+ quarterPlaceholder: "请选择季度",
203623
+ monthPlaceholder: "请选择月份",
203624
+ weekPlaceholder: "请选择周",
203625
+ rangePlaceholder: ["开始日期", "结束日期"],
203626
+ rangeYearPlaceholder: ["开始年份", "结束年份"],
203627
+ rangeMonthPlaceholder: ["开始月份", "结束月份"],
203628
+ rangeQuarterPlaceholder: ["开始季度", "结束季度"],
203629
+ rangeWeekPlaceholder: ["开始周", "结束周"]
203630
+ }, locale$2),
203631
+ timePickerLocale: _extends$1({}, locale$1)
203632
+ };
203633
+ locale.lang.ok = "确定";
203634
+ const typeTemplate = "${label}不是一个有效的${type}", localeValues = {
203635
+ locale: "zh-cn",
203636
+ Pagination: Pagination$2,
203637
+ DatePicker: locale,
203638
+ TimePicker: locale$1,
203639
+ Calendar: locale,
203640
+ // locales for all components
203641
+ global: {
203642
+ placeholder: "请选择"
203643
+ },
203644
+ Table: {
203645
+ filterTitle: "筛选",
203646
+ filterConfirm: "确定",
203647
+ filterReset: "重置",
203648
+ filterEmptyText: "无筛选项",
203649
+ filterCheckall: "全选",
203650
+ filterSearchPlaceholder: "在筛选项中搜索",
203651
+ selectAll: "全选当页",
203652
+ selectInvert: "反选当页",
203653
+ selectNone: "清空所有",
203654
+ selectionAll: "全选所有",
203655
+ sortTitle: "排序",
203656
+ expand: "展开行",
203657
+ collapse: "关闭行",
203658
+ triggerDesc: "点击降序",
203659
+ triggerAsc: "点击升序",
203660
+ cancelSort: "取消排序"
203661
+ },
203662
+ Tour: {
203663
+ Next: "下一步",
203664
+ Previous: "上一步",
203665
+ Finish: "结束导览"
203666
+ },
203667
+ Modal: {
203668
+ okText: "确定",
203669
+ cancelText: "取消",
203670
+ justOkText: "知道了"
203671
+ },
203672
+ Popconfirm: {
203673
+ cancelText: "取消",
203674
+ okText: "确定"
203675
+ },
203676
+ Transfer: {
203677
+ searchPlaceholder: "请输入搜索内容",
203678
+ itemUnit: "项",
203679
+ itemsUnit: "项",
203680
+ remove: "删除",
203681
+ selectCurrent: "全选当页",
203682
+ removeCurrent: "删除当页",
203683
+ selectAll: "全选所有",
203684
+ removeAll: "删除全部",
203685
+ selectInvert: "反选当页"
203686
+ },
203687
+ Upload: {
203688
+ uploading: "文件上传中",
203689
+ removeFile: "删除文件",
203690
+ uploadError: "上传错误",
203691
+ previewFile: "预览文件",
203692
+ downloadFile: "下载文件"
203693
+ },
203694
+ Empty: {
203695
+ description: "暂无数据"
203696
+ },
203697
+ Icon: {
203698
+ icon: "图标"
203699
+ },
203700
+ Text: {
203701
+ edit: "编辑",
203702
+ copy: "复制",
203703
+ copied: "复制成功",
203704
+ expand: "展开"
203705
+ },
203706
+ PageHeader: {
203707
+ back: "返回"
203708
+ },
203709
+ Form: {
203710
+ optional: "(可选)",
203711
+ defaultValidateMessages: {
203712
+ default: "字段验证错误${label}",
203713
+ required: "请输入${label}",
203714
+ enum: "${label}必须是其中一个[${enum}]",
203715
+ whitespace: "${label}不能为空字符",
203716
+ date: {
203717
+ format: "${label}日期格式无效",
203718
+ parse: "${label}不能转换为日期",
203719
+ invalid: "${label}是一个无效日期"
203720
+ },
203721
+ types: {
203722
+ string: typeTemplate,
203723
+ method: typeTemplate,
203724
+ array: typeTemplate,
203725
+ object: typeTemplate,
203726
+ number: typeTemplate,
203727
+ date: typeTemplate,
203728
+ boolean: typeTemplate,
203729
+ integer: typeTemplate,
203730
+ float: typeTemplate,
203731
+ regexp: typeTemplate,
203732
+ email: typeTemplate,
203733
+ url: typeTemplate,
203734
+ hex: typeTemplate
203735
+ },
203736
+ string: {
203737
+ len: "${label}须为${len}个字符",
203738
+ min: "${label}最少${min}个字符",
203739
+ max: "${label}最多${max}个字符",
203740
+ range: "${label}须在${min}-${max}字符之间"
203741
+ },
203742
+ number: {
203743
+ len: "${label}必须等于${len}",
203744
+ min: "${label}最小值为${min}",
203745
+ max: "${label}最大值为${max}",
203746
+ range: "${label}须在${min}-${max}之间"
203747
+ },
203748
+ array: {
203749
+ len: "须为${len}个${label}",
203750
+ min: "最少${min}个${label}",
203751
+ max: "最多${max}个${label}",
203752
+ range: "${label}数量须在${min}-${max}之间"
203753
+ },
203754
+ pattern: {
203755
+ mismatch: "${label}与模式不匹配${pattern}"
203756
+ }
203757
+ }
203758
+ },
203759
+ Image: {
203760
+ preview: "预览"
203761
+ },
203762
+ QRCode: {
203763
+ expired: "二维码已过期",
203764
+ refresh: "点击刷新",
203765
+ scanned: "已扫描"
203766
+ }
203767
+ }, _sfc_main$g = /* @__PURE__ */ defineComponent({
203768
+ __name: "index",
203769
+ props: {
203770
+ title: {
203771
+ type: String,
203772
+ default: "标题"
203773
+ },
203774
+ width: {
203775
+ type: [String, Number],
203776
+ default: 520
203777
+ },
203778
+ filePath: {
203779
+ type: String,
203780
+ default: "components/wonderform/free/PreviewDemo"
203781
+ },
203782
+ formData: {
203783
+ type: [Object, String, Number, Array]
203784
+ },
203785
+ okText: {
203786
+ type: String,
203787
+ default: "确认"
203788
+ },
203789
+ cancelText: {
203790
+ type: String,
203791
+ default: "取消"
203792
+ },
203793
+ onOk: {
203794
+ type: Function,
203795
+ default: null
203796
+ },
203797
+ onCancel: {
203798
+ type: Function,
203799
+ default: null
203800
+ },
203801
+ footer: {
203802
+ type: Boolean,
203803
+ default: !0
203804
+ }
203805
+ },
203806
+ setup(W, { expose: C }) {
203807
+ const Q = /* @__PURE__ */ Object.assign({ "/src/App.vue": () => import("./App-C4CEVhQR.js"), "/src/components/HelloWorld.vue": () => import("./HelloWorld-BEcsSIGJ.js"), "/src/components/cModal/index.vue": () => Promise.resolve().then(() => index$6), "/src/components/form-widget/widget/childForm.vue": () => import("./childForm-B29UI65a.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-BkyjtUkY.js"), "/src/components/form-widget/widget/tableSelectDemo2.vue": () => import("./tableSelectDemo2-C0xOIagD.js"), "/src/components/generate/Ceshi.vue": () => import("./Ceshi-DEWhIqtU.js"), "/src/components/generate/Ceshi2.vue": () => import("./Ceshi2-atww_hoa.js"), "/src/components/generate/Demo.vue": () => import("./Demo-DsBosCtK.js"), "/src/components/generate/GenerateForm.vue": () => import("./GenerateForm-C-b6biSr.js"), "/src/components/generate/GenerateReport.vue": () => import("./GenerateReport-D9Cbvy4O.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-bK7g9whp.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-B5Ass1aQ.js"), "/src/components/wonderform/config/modules/Collapse.vue": () => import("./Collapse-rtbic9dB.js"), "/src/components/wonderform/config/modules/DataSource.vue": () => Promise.resolve().then(() => DataSource$2), "/src/components/wonderform/config/modules/FX.vue": () => import("./FX-DX9WL6M3.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-删除-B5kDIS0y.js"), "/src/components/wonderform/config/modules/Label-删除.vue": () => import("./Label-删除-5RFXctSS.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-0wT0E3JK.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-LBYISmTF.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-DE12c3RO.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-ytZcUnZ1.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-oCzGIqht.js"), "/src/views/sys/login/Login.vue": () => import("./Login-FrCl5Uq7.js"), "/src/views/workbench/index.vue": () => import("./index-Ct5fBlac.js") });
203808
+ let Z = ref(!1), H = ref(!1), K = ref(), G = ref(!1);
203809
+ const U = computed(() => defineAsyncComponent(Q[`/src/${X.filePath}.vue`])), X = W, ee = computed(() => X.footer ? "" : { footer: null });
203810
+ C({
203811
+ setConfirmLoading: te,
203812
+ show: oe,
203813
+ close: re
203814
+ }), onMounted(() => {
203815
+ oe();
203816
+ });
203817
+ function te(ae) {
203818
+ H.value = ae;
203819
+ }
203820
+ function ie() {
203821
+ if (X.onOk && typeof X.onOk == "function") {
203822
+ let ae = K.value;
203823
+ X.onOk(ae);
203824
+ } else
203825
+ Z.value = !1;
203826
+ }
203827
+ function ne() {
203828
+ if (X.onCancel && typeof X.onCancel == "function") {
203829
+ let ae = K.value;
203830
+ X.onCancel(ae);
203831
+ } else
203832
+ Z.value = !1;
203833
+ }
203834
+ function oe() {
203835
+ Z.value = !0;
203836
+ }
203837
+ function re() {
203838
+ Z.value = !1;
203839
+ }
203840
+ function se() {
203841
+ G.value = !G.value;
203842
+ }
203843
+ return (ae, le) => {
203844
+ const ce = resolveComponent("a-modal"), de = resolveComponent("a-config-provider");
203845
+ return openBlock(), createBlock(de, { locale: unref(localeValues) }, {
203846
+ default: withCtx(() => [
203847
+ createVNode(ce, mergeProps({
203848
+ class: "commonModal",
203849
+ open: unref(Z),
203850
+ "onUpdate:open": le[0] || (le[0] = (ue) => isRef(Z) ? Z.value = ue : Z = ue),
203851
+ width: unref(G) ? "100%" : W.width,
203852
+ "wrap-class-name": unref(G) ? "full-common-modal" : "",
203853
+ confirmLoading: unref(H),
203854
+ maskClosable: !1,
203855
+ okText: W.okText,
203856
+ cancelText: W.cancelText
203857
+ }, ee.value, {
203858
+ onOk: ie,
203859
+ onCancel: ne
203860
+ }), {
203861
+ title: withCtx(() => [
203862
+ createTextVNode(toDisplayString(W.title) + " ", 1),
203863
+ createElementVNode("div", {
203864
+ class: "fullscreen-custom",
203865
+ onClick: se
203866
+ }, [
203867
+ unref(G) ? (openBlock(), createBlock(unref(FullscreenExitOutlined), { key: 0 })) : (openBlock(), createBlock(unref(FullscreenOutlined), { key: 1 }))
203868
+ ])
203869
+ ]),
203870
+ default: withCtx(() => [
203871
+ (openBlock(), createBlock(resolveDynamicComponent(U.value), {
203872
+ formData: W.formData,
203873
+ ref_key: "link",
203874
+ ref: K
203875
+ }, null, 8, ["formData"]))
203876
+ ]),
203877
+ _: 1
203878
+ }, 16, ["open", "width", "wrap-class-name", "confirmLoading", "okText", "cancelText"])
203879
+ ]),
203880
+ _: 1
203881
+ }, 8, ["locale"]);
203882
+ };
203883
+ }
203884
+ }), CommonModal = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-7fcccc1f"]]), index$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
203885
+ __proto__: null,
203886
+ default: CommonModal
203887
+ }, Symbol.toStringTag, { value: "Module" })), _hoisted_1$9 = ["xlink:href"], _sfc_main$f = /* @__PURE__ */ defineComponent({
203888
+ __name: "SvgIcon",
203889
+ props: {
203890
+ name: {
203891
+ type: String,
203892
+ required: !0
203893
+ },
203894
+ title: {
203895
+ type: String,
203896
+ required: !1
203897
+ },
203898
+ color: {
203899
+ type: String,
203900
+ default: ""
203901
+ },
203902
+ width: {
203903
+ type: String,
203904
+ default: "16px"
203905
+ },
203906
+ height: {
203907
+ type: String,
203908
+ default: "16px"
203909
+ }
203910
+ },
203911
+ setup(W) {
203912
+ const C = W, Q = computed(() => `#icon-${C.name}`), Z = computed(() => C.name ? `svg-icon icon-${C.name}` : "svg-icon");
203913
+ return (H, K) => (openBlock(), createElementBlock("svg", mergeProps({ class: Z.value }, H.$attrs, {
203914
+ style: { color: W.color, width: W.width, height: W.height }
203915
+ }), [
203916
+ createElementVNode("title", null, toDisplayString(W.title), 1),
203917
+ createElementVNode("use", { "xlink:href": Q.value }, null, 8, _hoisted_1$9)
203918
+ ], 16));
203919
+ }
203920
+ }), SvgIcon = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-f02ffdf6"]]), SvgIcon$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
203921
+ __proto__: null,
203922
+ default: SvgIcon
203923
+ }, Symbol.toStringTag, { value: "Module" })), _hoisted_1$8 = {
203924
+ class: "table-header-css",
203925
+ style: { "text-align": "left", padding: "5px", overflow: "hidden" }
203926
+ }, _hoisted_2$5 = { style: { float: "left" } }, _hoisted_3$4 = { style: { float: "right" } }, _sfc_main$e = /* @__PURE__ */ defineComponent({
203927
+ __name: "index",
203928
+ props: {
203929
+ // 表格数据
203930
+ dataSource: {
203931
+ type: Array,
203932
+ default: () => []
203933
+ },
203934
+ // 表格列
203935
+ columns: {
203936
+ type: Array,
203937
+ default: () => []
203938
+ },
203939
+ // 分页信息
203940
+ paginations: {
203941
+ type: Object,
203942
+ default: () => ({})
203943
+ },
203944
+ // 加载中
203945
+ loading: {
203946
+ type: Boolean,
203947
+ default: !1
203948
+ }
203949
+ },
203950
+ emits: ["columns-change"],
203951
+ setup(W, { emit: C }) {
203952
+ const Q = W;
203953
+ let Z = ref(!1), H = ref([]);
203954
+ H.value = Q.columns;
203955
+ let K = ref([]);
203956
+ const G = reactive({
203957
+ indeterminate: !0,
203958
+ checkAll: !0,
203959
+ checkValue: K.value
203960
+ }), U = computed(() => {
203961
+ let ne = [];
203962
+ return Q.columns.map((oe) => {
203963
+ oe.title != "操作" && (ne.push({ label: oe.title, value: oe.dataIndex }), K.value.push(oe.dataIndex));
203964
+ }), ne;
203965
+ });
203966
+ function X(ne) {
203967
+ return Q.columns.filter((oe) => ne.includes(oe.dataIndex) ? !0 : oe.title == "操作");
203968
+ }
203969
+ const ee = C;
203970
+ function te(ne) {
203971
+ const oe = X(ne);
203972
+ H.value = oe, ee("columns-change", H.value);
203973
+ }
203974
+ const ie = (ne) => {
203975
+ if (!ne.target.checked) {
203976
+ api$2.error("不能全部取消,请至少选择一个字段!"), G.checkAll = !0;
203977
+ return;
203978
+ }
203979
+ Object.assign(G, {
203980
+ checkValue: ne.target.checked ? K.value : [],
203981
+ indeterminate: !1
203982
+ }), te(G.checkValue);
203983
+ };
203984
+ return watch(
203985
+ () => G.checkValue,
203986
+ (ne) => {
203987
+ G.indeterminate = !!ne.length && ne.length < K.value.length, G.checkAll = ne.length === K.value.length;
203988
+ }
203989
+ ), (ne, oe) => {
203990
+ 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");
203991
+ return openBlock(), createElementBlock(Fragment, null, [
203992
+ createElementVNode("div", _hoisted_1$8, [
203993
+ createElementVNode("div", _hoisted_2$5, [
203994
+ createVNode(re, null, {
203995
+ default: withCtx(() => [
203996
+ renderSlot(ne.$slots, "toolbar", {}, void 0, !0)
203997
+ ]),
203998
+ _: 3
203999
+ })
204000
+ ]),
204001
+ createElementVNode("div", _hoisted_3$4, [
204002
+ createVNode(ce, {
204003
+ style: { width: "300px" },
204004
+ trigger: "click",
204005
+ open: unref(Z),
204006
+ "onUpdate:open": oe[2] || (oe[2] = (ue) => isRef(Z) ? Z.value = ue : Z = ue),
204007
+ placement: "rightBottom",
204008
+ "arrow-point-at-center": ""
204009
+ }, {
204010
+ title: withCtx(() => [
204011
+ createVNode(se, {
204012
+ checked: G.checkAll,
204013
+ "onUpdate:checked": oe[0] || (oe[0] = (ue) => G.checkAll = ue),
204014
+ indeterminate: G.indeterminate,
204015
+ onChange: ie
204016
+ }, {
204017
+ default: withCtx(() => [
204018
+ createTextVNode(" 全选 ")
204019
+ ]),
204020
+ _: 1
204021
+ }, 8, ["checked", "indeterminate"])
204022
+ ]),
204023
+ content: withCtx(() => [
204024
+ createVNode(ae, { style: { height: "2px", margin: "10px 0px!important" } }),
204025
+ createVNode(le, {
204026
+ options: U.value,
204027
+ value: G.checkValue,
204028
+ "onUpdate:value": oe[1] || (oe[1] = (ue) => G.checkValue = ue),
204029
+ onChange: te
204030
+ }, null, 8, ["options", "value"])
204031
+ ]),
204032
+ default: withCtx(() => [
204033
+ createVNode(unref(FunnelPlotOutlined), { style: { "font-size": "16px" } })
204034
+ ]),
204035
+ _: 1
204036
+ }, 8, ["open"])
204037
+ ])
204038
+ ]),
204039
+ createVNode(de, {
204040
+ columns: unref(H),
204041
+ "data-source": W.dataSource,
204042
+ loading: W.loading,
204043
+ pagination: W.paginations,
204044
+ bordered: ""
204045
+ }, {
204046
+ bodyCell: withCtx(({ column: ue, text: he, record: fe }) => [
204047
+ ue.key === "action" ? (openBlock(), createBlock(re, { key: 0 }, {
204048
+ split: withCtx(() => [
204049
+ createVNode(ae, { type: "vertical" })
204050
+ ]),
204051
+ default: withCtx(() => [
204052
+ renderSlot(ne.$slots, "rowbar", { record: fe }, void 0, !0)
204053
+ ]),
204054
+ _: 2
204055
+ }, 1024)) : createCommentVNode("", !0)
204056
+ ]),
204057
+ _: 3
204058
+ }, 8, ["columns", "data-source", "loading", "pagination"])
204059
+ ], 64);
204060
+ };
204061
+ }
204062
+ }), CTable = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__scopeId", "data-v-b4a4a76f"]]), index$5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
204063
+ __proto__: null,
204064
+ default: CTable
204065
+ }, Symbol.toStringTag, { value: "Module" })), _sfc_main$d = /* @__PURE__ */ defineComponent({
204066
+ __name: "tableSelect",
204067
+ props: {
204068
+ value: {
204069
+ type: [String, Number, Array]
204070
+ },
204071
+ mode: {
204072
+ type: String,
204073
+ default: ""
204074
+ },
204075
+ bindKeyName: {
204076
+ type: String,
204077
+ default: ""
204078
+ },
204079
+ bindLabelName: {
204080
+ type: String,
204081
+ default: ""
204082
+ },
204083
+ tableProps: {
204084
+ type: [Number, String, Object, Array]
204085
+ },
204086
+ dropMenuWidth: {
204087
+ type: [Number, String],
204088
+ default: ""
204089
+ },
204090
+ dropMenuHeight: {
204091
+ type: [Number, String],
204092
+ default: ""
204093
+ },
204094
+ filePath: {
204095
+ type: String,
204096
+ default: ""
204097
+ },
204098
+ placement: {
204099
+ type: String,
204100
+ default: "bottomLeft"
204101
+ }
204102
+ },
204103
+ emits: ["update:value", "rowChange"],
204104
+ setup(W, { emit: C }) {
204105
+ const Q = W;
204106
+ let Z = ref(!1), H = ref();
204107
+ const K = computed(() => ({
204108
+ allowClear: !0,
204109
+ ...useAttrs()
204110
+ }));
204111
+ ref();
204112
+ let G = ref([]), U = computed({
204113
+ get() {
204114
+ return Q.value;
204115
+ },
204116
+ set(ce) {
204117
+ oe("update:value", ce);
204118
+ }
204119
+ });
204120
+ watch(() => U.value, (ce) => {
204121
+ H.value && (H.value.focus(), nextTick(() => {
204122
+ H.value.blur();
204123
+ }));
204124
+ }, {
204125
+ immediate: !0
204126
+ });
204127
+ const X = /* @__PURE__ */ Object.assign({ "/src/App.vue": () => import("./App-C4CEVhQR.js"), "/src/components/HelloWorld.vue": () => import("./HelloWorld-BEcsSIGJ.js"), "/src/components/cModal/index.vue": () => Promise.resolve().then(() => index$6), "/src/components/form-widget/widget/childForm.vue": () => import("./childForm-B29UI65a.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-BkyjtUkY.js"), "/src/components/form-widget/widget/tableSelectDemo2.vue": () => import("./tableSelectDemo2-C0xOIagD.js"), "/src/components/generate/Ceshi.vue": () => import("./Ceshi-DEWhIqtU.js"), "/src/components/generate/Ceshi2.vue": () => import("./Ceshi2-atww_hoa.js"), "/src/components/generate/Demo.vue": () => import("./Demo-DsBosCtK.js"), "/src/components/generate/GenerateForm.vue": () => import("./GenerateForm-C-b6biSr.js"), "/src/components/generate/GenerateReport.vue": () => import("./GenerateReport-D9Cbvy4O.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-bK7g9whp.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-B5Ass1aQ.js"), "/src/components/wonderform/config/modules/Collapse.vue": () => import("./Collapse-rtbic9dB.js"), "/src/components/wonderform/config/modules/DataSource.vue": () => Promise.resolve().then(() => DataSource$2), "/src/components/wonderform/config/modules/FX.vue": () => import("./FX-DX9WL6M3.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-删除-B5kDIS0y.js"), "/src/components/wonderform/config/modules/Label-删除.vue": () => import("./Label-删除-5RFXctSS.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-0wT0E3JK.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-LBYISmTF.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-DE12c3RO.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-ytZcUnZ1.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-oCzGIqht.js"), "/src/views/sys/login/Login.vue": () => import("./Login-FrCl5Uq7.js"), "/src/views/workbench/index.vue": () => import("./index-Ct5fBlac.js") }), ee = useSlots(), te = computed(() => {
204128
+ if (Q.filePath) {
204129
+ let ce = `/src/${Q.filePath}.vue`;
204130
+ return Q.filePath ? Object.keys(X).includes(ce) : !1;
204131
+ } else
204132
+ return !1;
204133
+ }), ie = computed(() => te ? defineAsyncComponent(X[`/src/${Q.filePath}.vue`]) : null), ne = computed(() => {
204134
+ 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}`}`;
204135
+ return ue && he ? ue + ";" + he : ue && !he ? ue : !ue && he ? he : "";
204136
+ }), oe = C, re = computed(() => H.value ? H.value.$el.offsetWidth + "px" : "");
204137
+ onMounted(() => {
204138
+ Z.value = !0, nextTick(() => {
204139
+ Z.value = !1;
204140
+ });
204141
+ });
204142
+ function se() {
204143
+ nextTick(() => {
204144
+ let ce = K.value, de = H.value.$el.classList;
204145
+ ce && !ce.disabled && !de.contains("ant-select-disabled") ? Z.value = !0 : Z.value = !1;
204146
+ });
204147
+ }
204148
+ function ae(ce) {
204149
+ Q.mode !== "multiple" && (Z.value = !1), oe("rowChange", ce);
204150
+ }
204151
+ function le(ce) {
204152
+ ce ? G.value = ce.map((de) => ({
204153
+ label: de[Q.bindLabelName] || "",
204154
+ value: de[Q.bindKeyName]
204155
+ })) : G.value = [];
204156
+ }
204157
+ return (ce, de) => {
204158
+ const ue = resolveComponent("a-select"), he = resolveComponent("a-empty"), fe = resolveComponent("a-dropdown");
204159
+ return openBlock(), createBlock(fe, {
204160
+ overlayClassName: "table-select-dropdown",
204161
+ trigger: ["click"],
204162
+ open: unref(Z),
204163
+ "onUpdate:open": de[2] || (de[2] = (ge) => isRef(Z) ? Z.value = ge : Z = ge),
204164
+ placement: W.placement,
204165
+ onClick: se
204166
+ }, {
204167
+ overlay: withCtx(() => [
204168
+ createElementVNode("div", {
204169
+ class: "table-select-content",
204170
+ style: normalizeStyle$1(ne.value)
204171
+ }, [
204172
+ te.value && ie.value ? (openBlock(), createBlock(resolveDynamicComponent(ie.value), {
204173
+ key: 0,
204174
+ value: unref(U),
204175
+ "onUpdate:value": de[1] || (de[1] = (ge) => isRef(U) ? U.value = ge : U = ge),
204176
+ mode: W.mode,
204177
+ keyName: W.bindKeyName,
204178
+ tableProps: W.tableProps,
204179
+ onGetTable: le,
204180
+ onRowChange: ae
204181
+ }, null, 40, ["value", "mode", "keyName", "tableProps"])) : (openBlock(), createBlock(he, { key: 1 }))
204182
+ ], 4)
204183
+ ]),
204184
+ default: withCtx(() => [
204185
+ createVNode(ue, mergeProps({
204186
+ ref_key: "select",
204187
+ ref: H,
204188
+ class: "table-select-selected",
204189
+ value: unref(U),
204190
+ "onUpdate:value": de[0] || (de[0] = (ge) => isRef(U) ? U.value = ge : U = ge),
204191
+ options: unref(G),
204192
+ mode: W.mode
204193
+ }, K.value, { open: !1 }), createSlots({ _: 2 }, [
204194
+ unref(ee).suffixIcon ? {
204195
+ name: "suffixIcon",
204196
+ fn: withCtx(() => [
204197
+ renderSlot(ce.$slots, "suffixIcon", {}, void 0, !0)
204198
+ ]),
204199
+ key: "0"
204200
+ } : void 0
204201
+ ]), 1040, ["value", "options", "mode"])
204202
+ ]),
204203
+ _: 3
204204
+ }, 8, ["open", "placement"]);
204205
+ };
204206
+ }
204207
+ }), CTableSelect = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-3843eea3"]]), tableSelect = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
204208
+ __proto__: null,
204209
+ default: CTableSelect
204210
+ }, Symbol.toStringTag, { value: "Module" })), _sfc_main$c = /* @__PURE__ */ defineComponent({
204211
+ __name: "childForm",
204212
+ props: {
204213
+ filePath: {
204214
+ type: String,
204215
+ default: ""
204216
+ }
204217
+ },
204218
+ setup(W) {
204219
+ const C = /* @__PURE__ */ Object.assign({ "/src/App.vue": () => import("./App-C4CEVhQR.js"), "/src/components/HelloWorld.vue": () => import("./HelloWorld-BEcsSIGJ.js"), "/src/components/cModal/index.vue": () => Promise.resolve().then(() => index$6), "/src/components/form-widget/widget/childForm.vue": () => import("./childForm-B29UI65a.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-BkyjtUkY.js"), "/src/components/form-widget/widget/tableSelectDemo2.vue": () => import("./tableSelectDemo2-C0xOIagD.js"), "/src/components/generate/Ceshi.vue": () => import("./Ceshi-DEWhIqtU.js"), "/src/components/generate/Ceshi2.vue": () => import("./Ceshi2-atww_hoa.js"), "/src/components/generate/Demo.vue": () => import("./Demo-DsBosCtK.js"), "/src/components/generate/GenerateForm.vue": () => import("./GenerateForm-C-b6biSr.js"), "/src/components/generate/GenerateReport.vue": () => import("./GenerateReport-D9Cbvy4O.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-bK7g9whp.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-B5Ass1aQ.js"), "/src/components/wonderform/config/modules/Collapse.vue": () => import("./Collapse-rtbic9dB.js"), "/src/components/wonderform/config/modules/DataSource.vue": () => Promise.resolve().then(() => DataSource$2), "/src/components/wonderform/config/modules/FX.vue": () => import("./FX-DX9WL6M3.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-删除-B5kDIS0y.js"), "/src/components/wonderform/config/modules/Label-删除.vue": () => import("./Label-删除-5RFXctSS.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-0wT0E3JK.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-LBYISmTF.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-DE12c3RO.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-ytZcUnZ1.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-oCzGIqht.js"), "/src/views/sys/login/Login.vue": () => import("./Login-FrCl5Uq7.js"), "/src/views/workbench/index.vue": () => import("./index-Ct5fBlac.js") }), Q = W, Z = computed(() => {
204220
+ if (Q.filePath) {
204221
+ let K = `/src/${Q.filePath}.vue`;
204222
+ return Q.filePath ? Object.keys(C).includes(K) : !1;
204223
+ } else
204224
+ return !1;
204225
+ }), H = computed(() => Z ? defineAsyncComponent(C[`/src/${Q.filePath}.vue`]) : null);
204226
+ return (K, G) => {
204227
+ const U = resolveComponent("a-empty"), X = resolveComponent("a-card");
204228
+ return Z.value ? (openBlock(), createBlock(resolveDynamicComponent(H.value), normalizeProps(mergeProps({ key: 0 }, useAttrs)), null, 16)) : (openBlock(), createBlock(X, { key: 1 }, {
204229
+ default: withCtx(() => [
204230
+ createVNode(U)
204231
+ ]),
204232
+ _: 1
204233
+ }));
204234
+ };
204235
+ }
204236
+ }), _hoisted_1$7 = { class: "collapsePanel" }, _hoisted_2$4 = {
204237
+ key: 0,
204238
+ class: "collapse-btn"
204239
+ }, _hoisted_3$3 = { class: "collapse-form-list" }, _sfc_main$b = /* @__PURE__ */ defineComponent({
204240
+ __name: "collapsePanel",
204241
+ props: {
204242
+ classname: {
204243
+ type: String,
204244
+ default: "title-css1"
204245
+ },
204246
+ header: {
204247
+ type: String,
204248
+ default: "标题"
204249
+ },
204250
+ showArrow: {
204251
+ type: Boolean,
204252
+ default: !0
204253
+ },
204254
+ defaultCollapse: {
204255
+ type: Boolean,
204256
+ default: !1
204257
+ },
204258
+ collapseType: {
204259
+ type: String,
204260
+ default: "row"
204261
+ }
204262
+ },
204263
+ setup(W) {
204264
+ const C = W;
204265
+ let Q = ref(C.defaultCollapse);
204266
+ function Z(H) {
204267
+ H == C.collapseType && (Q.value = !Q.value);
204268
+ }
204269
+ return (H, K) => {
204270
+ const G = resolveComponent("svg-icon");
204271
+ return openBlock(), createElementBlock("div", _hoisted_1$7, [
204272
+ createElementVNode("div", {
204273
+ class: normalizeClass([W.classname, "title-between", W.collapseType == "row" ? "clickPointer" : "clickAuto"]),
204274
+ onClick: K[2] || (K[2] = (U) => Z("row"))
204275
+ }, [
204276
+ createElementVNode("span", {
204277
+ class: normalizeClass(W.collapseType == "icon" ? "clickAuto" : "clickPointer"),
204278
+ onClick: K[0] || (K[0] = (U) => Z("header"))
204279
+ }, toDisplayString(W.header), 3),
204280
+ W.showArrow ? (openBlock(), createElementBlock("div", _hoisted_2$4, [
204281
+ createVNode(G, {
204282
+ class: normalizeClass(W.collapseType == "header" ? "clickAuto" : "clickPointer"),
204283
+ style: normalizeStyle$1(unref(Q) ? { transform: "rotate(180deg)" } : {}),
204284
+ height: "20",
204285
+ name: "arrow",
204286
+ width: "20",
204287
+ onClick: K[1] || (K[1] = (U) => Z("icon"))
204288
+ }, null, 8, ["class", "style"])
204289
+ ])) : createCommentVNode("", !0)
204290
+ ], 2),
204291
+ withDirectives(createElementVNode("div", _hoisted_3$3, [
204292
+ renderSlot(H.$slots, "default", {}, void 0, !0)
204293
+ ], 512), [
204294
+ [vShow, !unref(Q)]
204295
+ ])
204296
+ ]);
204297
+ };
204298
+ }
204299
+ }), CCollapsePanel = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-c4840e5b"]]), collapsePanel = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
204300
+ __proto__: null,
204301
+ default: CCollapsePanel
204302
+ }, Symbol.toStringTag, { value: "Module" }));
204303
+ var zhCn = { exports: {} };
204304
+ (function(W, C) {
204305
+ (function(Q, Z) {
204306
+ W.exports = Z(dayjs_minExports);
204307
+ })(commonjsGlobal, function(Q) {
204308
+ function Z(G) {
204309
+ return G && typeof G == "object" && "default" in G ? G : { default: G };
204310
+ }
204311
+ 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) {
204312
+ return U === "W" ? G + "周" : G + "日";
204313
+ }, 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) {
204314
+ var X = 100 * G + U;
204315
+ return X < 600 ? "凌晨" : X < 900 ? "早上" : X < 1100 ? "上午" : X < 1300 ? "中午" : X < 1800 ? "下午" : "晚上";
204316
+ } };
204317
+ return H.default.locale(K, null, !0), K;
204318
+ });
204319
+ })(zhCn);
204320
+ dayjs.locale("zh-cn");
204321
+ function registerGlobComp(W) {
204322
+ 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);
204323
+ }
204324
+ function cModal(W) {
204325
+ let C, Q, Z;
204326
+ C = document.createElement("div"), W && !W.onCancel && (W.onCancel = () => {
204327
+ U();
204328
+ }), W && !W.onOk && (W.onOk = () => {
204329
+ U();
204330
+ }), Q = createApp(CommonModal, { ...W }), registerGlobComp(Q), Z = Q.mount(C);
204331
+ function H(X) {
204332
+ Z && Z.setConfirmLoading(X);
204333
+ }
204334
+ function K() {
204335
+ Z && Z.show();
204336
+ }
204337
+ function G() {
204338
+ Z && Z.close();
204339
+ }
204340
+ function U() {
204341
+ G(), setTimeout(() => {
204342
+ Z = Q.unmount();
204343
+ }, 200);
204344
+ }
204345
+ return {
204346
+ setConfirmLoading: H,
204347
+ show: K,
204348
+ close: G,
204349
+ destroy: U
204350
+ };
204351
+ }
204250
204352
  const _sfc_main$a = /* @__PURE__ */ defineComponent({
204251
204353
  __name: "GenerateForm",
204252
204354
  props: {
@@ -204273,7 +204375,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
204273
204375
  getSelectJsonSetting(selectJsonSetting);
204274
204376
  let columns = ref([]);
204275
204377
  columns.value = generateData.columns;
204276
- let basicInfo = ref({}), paginations = reactive({ ...generateData.pagScript }), activeTabKey = ref(generateData.variableScript.activeTabKey), _viewData = getViewData(), viewData = ref(_viewData), demoRefs = [];
204378
+ let basicInfo = ref({}), paginations = ref(), editableData = reactive({});
204379
+ paginations.value = generateData.paginations;
204380
+ let activeTabKey = ref(generateData.variableScript.activeTabKey), _viewData = getViewData(), viewData = ref(_viewData), demoRefs = [];
204277
204381
  if (cBasicInfo)
204278
204382
  for (let W = 0; W < cBasicInfo.length; W++) {
204279
204383
  const C = cBasicInfo[W].name, Q = cBasicInfo[W].type, Z = cBasicInfo[W].default;
@@ -204303,6 +204407,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
204303
204407
  },
204304
204408
  setup() {
204305
204409
  let formData = ref([]), datalist = ref([]), formRef = ref();
204410
+ initAllCTableV2({ viewData, formId: props.formId, paginations: paginations.value });
204306
204411
  function onSubmit() {
204307
204412
  return onSubmitForm(formRef.value, onBeforeValidate);
204308
204413
  }
@@ -204337,7 +204442,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
204337
204442
  cModal,
204338
204443
  getTreeDictItemsByCode,
204339
204444
  getCasDictItemsByCode,
204445
+ initCTableV2,
204340
204446
  tableSelectProps,
204447
+ editableData,
204448
+ saveRow,
204449
+ editRow,
204450
+ cancelRow,
204341
204451
  // defineExpose,
204342
204452
  pagination,
204343
204453
  datalist,
@@ -205432,25 +205542,6 @@ function encrypt(W) {
205432
205542
  padding: CryptoJS.pad.Pkcs7
205433
205543
  }).toString();
205434
205544
  }
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
205545
  const _hoisted_1$6 = { class: "flex-div" }, _hoisted_2$3 = ["title"], _hoisted_3$2 = { style: { display: "flex" } }, _sfc_main$9 = /* @__PURE__ */ defineComponent({
205455
205546
  __name: "Header",
205456
205547
  props: {
@@ -206334,7 +206425,7 @@ const _hoisted_1$6 = { class: "flex-div" }, _hoisted_2$3 = ["title"], _hoisted_3
206334
206425
  props: {
206335
206426
  id: {
206336
206427
  type: Number,
206337
- default: 36
206428
+ default: 89
206338
206429
  }
206339
206430
  },
206340
206431
  setup(W) {
@@ -206481,7 +206572,7 @@ const _hoisted_1$6 = { class: "flex-div" }, _hoisted_2$3 = ["title"], _hoisted_3
206481
206572
  }, 8, ["spinning"]);
206482
206573
  };
206483
206574
  }
206484
- }), FormImage = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-10047be1"]]), index$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
206575
+ }), FormImage = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-c8e177a4"]]), index$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
206485
206576
  __proto__: null,
206486
206577
  default: FormImage
206487
206578
  }, Symbol.toStringTag, { value: "Module" })), _withScopeId = (W) => (pushScopeId("data-v-be2df7b1"), W = W(), popScopeId(), W), _hoisted_1$3 = {
@@ -207622,12 +207713,6 @@ function generateReportHtml(W, C, Q, Z) {
207622
207713
  function getApiSourceCode(W) {
207623
207714
  return W && W.cType && W.cType == "javascript" ? `let reportApiSource = ${JSON.stringify(W.dataSource)}` : "";
207624
207715
  }
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
207716
  let dataSource = ref(), paginations = ref();
207632
207717
  ref([]);
207633
207718
  ref({});