asiaint-lowcode 3.1.142 → 3.1.143

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 (40) hide show
  1. package/dist/asiaint-lowcode.d.ts +1 -0
  2. package/dist/asiaint-lowcode.js +1 -1
  3. package/dist/asiaint-lowcode.umd.cjs +6 -6
  4. package/dist/lazy/{Card-DS0XD8tu.js → Card-OlSIhgD4.js} +1 -1
  5. package/dist/lazy/{Cascader-2xz4WYNR.js → Cascader-BDb0Ki34.js} +10 -9
  6. package/dist/lazy/{Checkbox-CARZTCib.js → Checkbox-uIBlnbes.js} +14 -13
  7. package/dist/lazy/{Collapse-BHYYPY9J.js → Collapse-D_HTmlEI.js} +1 -1
  8. package/dist/lazy/{Component-CtDLAFnm.js → Component-Boe66Tbv.js} +1 -1
  9. package/dist/lazy/{Component-DbZK73I2.js → Component-By5dLg8S.js} +1 -1
  10. package/dist/lazy/{Component-B6qOJZMu.js → Component-C67IzUwB.js} +1 -1
  11. package/dist/lazy/{Component-DmU2P_2K.js → Component-DbSA8jNq.js} +1 -1
  12. package/dist/lazy/{Component-BHy-gdds.js → Component-beJZ5t-J.js} +1 -1
  13. package/dist/lazy/{CurdCard-CZ4VhPL7.js → CurdCard-DLjH6HCg.js} +1 -1
  14. package/dist/lazy/{Custom-BiCuB_-e.js → Custom-C3q3Y9IC.js} +1 -1
  15. package/dist/lazy/{DatePicker-D-rFup5V.js → DatePicker-BVECag0i.js} +1 -1
  16. package/dist/lazy/{DragList-Ii6kqkg2.js → DragList-C0o9A4fS.js} +1 -1
  17. package/dist/lazy/{FilterSearch-DpMIShxs.js → FilterSearch-COmoVTv7.js} +1 -1
  18. package/dist/lazy/{FloatCurd-IaQW0CA2.js → FloatCurd-9_aqbXIy.js} +1 -1
  19. package/dist/lazy/{FloatSearchCurd-CqoJsN7c.js → FloatSearchCurd-CoHu0Fwr.js} +1 -1
  20. package/dist/lazy/{FormList-DVAKg3Cx.js → FormList-CA6C736S.js} +1 -1
  21. package/dist/lazy/{Grid-Bw9rmwrG.js → Grid-DqS1Rdls.js} +1 -1
  22. package/dist/lazy/{InfiniteScroll-Cmj0-z2l.js → InfiniteScroll-C-dycP5T.js} +1 -1
  23. package/dist/lazy/{Inline-B7s-iBhh.js → Inline-CikJsuAu.js} +1 -1
  24. package/dist/lazy/{JsonEdit-DLzOazGA.js → JsonEdit-D9dEoFm8.js} +1 -1
  25. package/dist/lazy/{LogList-BfSA2YIW.js → LogList-D_T6C5Xq.js} +1 -1
  26. package/dist/lazy/{ObjGroup-YJho79cG.js → ObjGroup-CT6sKwFw.js} +1 -1
  27. package/dist/lazy/{OfferDetails-BVaa7boE.js → OfferDetails-lBlIQEgo.js} +1 -1
  28. package/dist/lazy/{Pagination-Bni7hc5i.js → Pagination-BQZTZXl9.js} +1 -1
  29. package/dist/lazy/{Progress-DDOZz027.js → Progress-BBbfSGJD.js} +1 -1
  30. package/dist/lazy/{Radio-BkGE2l7X.js → Radio-uth_Ca5-.js} +15 -14
  31. package/dist/lazy/{SearchSelect-BDG-q3rh.js → SearchSelect-CN1-usiy.js} +30 -29
  32. package/dist/lazy/{Select-DZVHbfet.js → Select-BxQPR_e7.js} +17 -16
  33. package/dist/lazy/{Table-BYAny04Y.js → Table-BWgEr9DV.js} +1 -1
  34. package/dist/lazy/{Tabs-DK2Z_4Mq.js → Tabs-D3PMjDBa.js} +1 -1
  35. package/dist/lazy/{TextArea-lLxe_7vc.js → TextArea-DJnR-YcV.js} +1 -1
  36. package/dist/lazy/{Wrapper-ZyyGd7Sw.js → Wrapper-rdvc505t.js} +1 -1
  37. package/dist/lazy/{index-DdmJ7fxW.js → index-yO01RrJx.js} +33 -33
  38. package/dist/lazy/useSelect-DNbkEyNF.js +78 -0
  39. package/package.json +1 -1
  40. package/dist/lazy/useSelect-CZU2AEMN.js +0 -78
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as it, computed as J, inject as U, ref as C, useTemplateRef as st, onMounted as ut, onActivated as ct, onBeforeUnmount as pt, readonly as gt, toRefs as dt, onUnmounted as ht, resolveComponent as T, resolveDirective as vt, openBlock as r, createElementBlock as g, normalizeClass as D, createVNode as y, withCtx as d, createElementVNode as k, toDisplayString as P, unref as h, createCommentVNode as m, createTextVNode as Q, withDirectives as X, createBlock as w, Fragment as _, renderList as we, normalizeStyle as Y, withModifiers as Se, vShow as Pe, mergeProps as mt, nextTick as yt } from "vue";
2
- import { $ as ft, h as F, j as Ct, i as kt, a as wt, I as M, b as W, C as St, _ as Pt } from "./index-DdmJ7fxW.js";
2
+ import { $ as ft, h as F, j as Ct, i as kt, a as wt, I as M, b as W, C as St, _ as Pt } from "./index-yO01RrJx.js";
3
3
  import { ElTable as bt, ElLoading as be, ElMessage as zt } from "element-plus";
4
4
  const Bt = ["id"], Nt = { class: "custom-slot" }, Rt = {
5
5
  key: 0,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as N, ref as z, computed as M, watch as _, onMounted as R, onUnmounted as W, resolveComponent as C, openBlock as o, createBlock as m, mergeProps as T, withCtx as d, createElementVNode as p, createElementBlock as u, createVNode as y, createCommentVNode as f, Fragment as A, renderList as S, toDisplayString as $, normalizeClass as D, unref as F } from "vue";
2
- import { c as U, i as P, B as k, I as X, b as Y, _ as j } from "./index-DdmJ7fxW.js";
2
+ import { c as U, i as P, B as k, I as X, b as Y, _ as j } from "./index-yO01RrJx.js";
3
3
  import "element-plus";
4
4
  const q = { class: "right-icon-wrapper" }, G = {
5
5
  key: 0,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, mergeModels as i, useModel as _, computed as v, resolveComponent as f, openBlock as a, createElementBlock as n, createElementVNode as y, toDisplayString as r, createBlock as V, mergeProps as k } from "vue";
2
- import { u as x, _ as B } from "./index-DdmJ7fxW.js";
2
+ import { u as x, _ as B } from "./index-yO01RrJx.js";
3
3
  import "element-plus";
4
4
  const M = {
5
5
  key: 0,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as C, onUnmounted as g, resolveComponent as x, openBlock as r, createElementBlock as t, normalizeStyle as i, createVNode as a, withCtx as S, withDirectives as b, createElementVNode as _, normalizeClass as c, unref as B, createCommentVNode as d, vShow as D } from "vue";
2
- import { c as k, i as E, b as I, I as u, _ as j } from "./index-DdmJ7fxW.js";
2
+ import { c as k, i as E, b as I, I as u, _ as j } from "./index-yO01RrJx.js";
3
3
  import "element-plus";
4
4
  const M = {
5
5
  key: 0,
@@ -22111,7 +22111,7 @@ onClick: ${g.onClick}`);
22111
22111
  type: "basic",
22112
22112
  order: 2,
22113
22113
  attrSchema: m3,
22114
- render: fe(() => import("./TextArea-lLxe_7vc.js"))
22114
+ render: fe(() => import("./TextArea-DJnR-YcV.js"))
22115
22115
  }, f3 = {
22116
22116
  size: "small",
22117
22117
  labelPosition: "top",
@@ -22240,7 +22240,7 @@ onClick: ${g.onClick}`);
22240
22240
  }, k3 = {
22241
22241
  title: "卡片",
22242
22242
  component: "Card",
22243
- render: fe(() => import("./Card-DS0XD8tu.js")),
22243
+ render: fe(() => import("./Card-OlSIhgD4.js")),
22244
22244
  icon: jA(UA, { name: "card" }),
22245
22245
  type: "layout",
22246
22246
  order: 1,
@@ -22473,7 +22473,7 @@ onClick: ${g.onClick}`);
22473
22473
  component: "Cascader",
22474
22474
  attrSchema: F3,
22475
22475
  order: 7,
22476
- render: fe(() => import("./Cascader-2xz4WYNR.js"))
22476
+ render: fe(() => import("./Cascader-BDb0Ki34.js"))
22477
22477
  }, G3 = {
22478
22478
  size: "small",
22479
22479
  labelPosition: "top",
@@ -22517,7 +22517,7 @@ onClick: ${g.onClick}`);
22517
22517
  type: "basic",
22518
22518
  order: 14,
22519
22519
  attrSchema: G3,
22520
- render: fe(() => import("./JsonEdit-DLzOazGA.js"))
22520
+ render: fe(() => import("./JsonEdit-D9dEoFm8.js"))
22521
22521
  }, R3 = {
22522
22522
  size: "small",
22523
22523
  labelPosition: "top",
@@ -22617,7 +22617,7 @@ onClick: ${g.onClick}`);
22617
22617
  icon: jA(UA, { name: "checkbox" }),
22618
22618
  type: "basic",
22619
22619
  component: "Checkbox",
22620
- render: fe(() => import("./Checkbox-CARZTCib.js")),
22620
+ render: fe(() => import("./Checkbox-uIBlnbes.js")),
22621
22621
  order: 4,
22622
22622
  attrSchema: R3
22623
22623
  }, H3 = {
@@ -22764,7 +22764,7 @@ onClick: ${g.onClick}`);
22764
22764
  }, Y3 = {
22765
22765
  title: "自定义组件",
22766
22766
  component: "Custom",
22767
- render: fe(() => import("./Custom-BiCuB_-e.js")),
22767
+ render: fe(() => import("./Custom-C3q3Y9IC.js")),
22768
22768
  icon: jA(UA, { name: "custom" }),
22769
22769
  type: "high",
22770
22770
  order: 99,
@@ -22830,7 +22830,7 @@ onClick: ${g.onClick}`);
22830
22830
  }, O3 = {
22831
22831
  title: "日期选择器",
22832
22832
  component: "DatePicker",
22833
- render: fe(() => import("./DatePicker-D-rFup5V.js")),
22833
+ render: fe(() => import("./DatePicker-BVECag0i.js")),
22834
22834
  icon: jA(UA, { name: "datePicker" }),
22835
22835
  type: "basic",
22836
22836
  order: 9,
@@ -22955,7 +22955,7 @@ onClick: ${g.onClick}`);
22955
22955
  }, q3 = {
22956
22956
  title: "电子签名",
22957
22957
  component: "Esign",
22958
- render: fe(() => import("./Component-B6qOJZMu.js")),
22958
+ render: fe(() => import("./Component-C67IzUwB.js")),
22959
22959
  icon: jA(UA, { name: "esign" }),
22960
22960
  type: "basic",
22961
22961
  order: 11,
@@ -23057,7 +23057,7 @@ onClick: ${g.onClick}`);
23057
23057
  icon: jA(UA, { name: "radio" }),
23058
23058
  type: "basic",
23059
23059
  component: "Radio",
23060
- render: fe(() => import("./Radio-BkGE2l7X.js")),
23060
+ render: fe(() => import("./Radio-uth_Ca5-.js")),
23061
23061
  order: 3.5,
23062
23062
  attrSchema: j3
23063
23063
  }, W3 = {
@@ -23146,7 +23146,7 @@ onClick: ${g.onClick}`);
23146
23146
  }, V3 = {
23147
23147
  title: "自增容器",
23148
23148
  component: "FormList",
23149
- render: fe(() => import("./FormList-DVAKg3Cx.js")),
23149
+ render: fe(() => import("./FormList-CA6C736S.js")),
23150
23150
  icon: jA(UA, { name: "formList" }),
23151
23151
  type: "high",
23152
23152
  order: 20,
@@ -23156,7 +23156,7 @@ onClick: ${g.onClick}`);
23156
23156
  type: "layout",
23157
23157
  icon: jA(UA, { name: "grid" }),
23158
23158
  component: "Grid",
23159
- render: fe(() => import("./Grid-Bw9rmwrG.js")),
23159
+ render: fe(() => import("./Grid-DqS1Rdls.js")),
23160
23160
  order: 3,
23161
23161
  lbTitle: !0,
23162
23162
  attrSchema: {
@@ -23198,7 +23198,7 @@ onClick: ${g.onClick}`);
23198
23198
  icon: jA(UA, { name: "inline" }),
23199
23199
  type: "layout",
23200
23200
  component: "Inline",
23201
- render: fe(() => import("./Inline-B7s-iBhh.js")),
23201
+ render: fe(() => import("./Inline-CikJsuAu.js")),
23202
23202
  order: 2,
23203
23203
  lbTitle: !0,
23204
23204
  attrSchema: {
@@ -23317,7 +23317,7 @@ onClick: ${g.onClick}`);
23317
23317
  type: "basic",
23318
23318
  order: 5,
23319
23319
  component: "InputNumber",
23320
- render: fe(() => import("./Component-DbZK73I2.js")),
23320
+ render: fe(() => import("./Component-By5dLg8S.js")),
23321
23321
  attrSchema: eG
23322
23322
  }, nG = {
23323
23323
  size: "small",
@@ -23545,7 +23545,7 @@ onClick: ${g.onClick}`);
23545
23545
  type: "basic",
23546
23546
  icon: jA(UA, { name: "select" }),
23547
23547
  component: "Select",
23548
- render: fe(() => import("./Select-DZVHbfet.js")),
23548
+ render: fe(() => import("./Select-BxQPR_e7.js")),
23549
23549
  order: 3,
23550
23550
  attrSchema: sG
23551
23551
  }, gG = {
@@ -23888,7 +23888,7 @@ onClick: ${g.onClick}`);
23888
23888
  ]
23889
23889
  }, CG = {
23890
23890
  title: "开关",
23891
- render: fe(() => import("./Component-BHy-gdds.js")),
23891
+ render: fe(() => import("./Component-beJZ5t-J.js")),
23892
23892
  component: "Switch",
23893
23893
  icon: jA(UA, { name: "switch" }),
23894
23894
  type: "basic",
@@ -24065,7 +24065,7 @@ onClick: ${g.onClick}`);
24065
24065
  }, hG = {
24066
24066
  title: "上传",
24067
24067
  component: "Upload",
24068
- render: fe(() => import("./Component-CtDLAFnm.js")),
24068
+ render: fe(() => import("./Component-Boe66Tbv.js")),
24069
24069
  icon: jA(UA, { name: "upload" }),
24070
24070
  type: "basic",
24071
24071
  order: 10,
@@ -24101,7 +24101,7 @@ onClick: ${g.onClick}`);
24101
24101
  }, DG = {
24102
24102
  title: "图形验证码",
24103
24103
  component: "VerifyCode",
24104
- render: fe(() => import("./Component-DmU2P_2K.js")),
24104
+ render: fe(() => import("./Component-DbSA8jNq.js")),
24105
24105
  icon: jA(UA, { name: "verifyCode" }),
24106
24106
  type: "high",
24107
24107
  order: 18,
@@ -24109,7 +24109,7 @@ onClick: ${g.onClick}`);
24109
24109
  }, fG = {
24110
24110
  title: "折叠面板",
24111
24111
  component: "Collapse",
24112
- render: fe(() => import("./Collapse-BHYYPY9J.js")),
24112
+ render: fe(() => import("./Collapse-D_HTmlEI.js")),
24113
24113
  icon: jA(UA, { name: "collapse" }),
24114
24114
  type: "layout",
24115
24115
  order: 4,
@@ -24164,7 +24164,7 @@ onClick: ${g.onClick}`);
24164
24164
  }, bG = {
24165
24165
  title: "选项卡",
24166
24166
  component: "Tabs",
24167
- render: fe(() => import("./Tabs-DK2Z_4Mq.js")),
24167
+ render: fe(() => import("./Tabs-D3PMjDBa.js")),
24168
24168
  icon: jA(UA, { name: "tabs" }),
24169
24169
  type: "layout",
24170
24170
  order: 4,
@@ -24280,7 +24280,7 @@ onClick: ${g.onClick}`);
24280
24280
  icon: jA(UA, { name: "itemGroup" }),
24281
24281
  type: "high",
24282
24282
  component: "ObjGroup",
24283
- render: fe(() => import("./ObjGroup-YJho79cG.js")),
24283
+ render: fe(() => import("./ObjGroup-CT6sKwFw.js")),
24284
24284
  order: 2,
24285
24285
  lbTitle: !0,
24286
24286
  attrSchema: {
@@ -24778,7 +24778,7 @@ onClear: ${e.onClear}`);
24778
24778
  type: "high",
24779
24779
  icon: jA(UA, { name: "searchSelect" }),
24780
24780
  component: "SearchSelect",
24781
- render: fe(() => import("./SearchSelect-BDG-q3rh.js")),
24781
+ render: fe(() => import("./SearchSelect-CN1-usiy.js")),
24782
24782
  order: 3,
24783
24783
  attrSchema: KG
24784
24784
  }, YG = {
@@ -25620,11 +25620,11 @@ onChange: ${A.onChange}`);
25620
25620
  type: "assist",
25621
25621
  order: 8,
25622
25622
  attrSchema: iL,
25623
- render: fe(() => import("./Table-BYAny04Y.js"))
25623
+ render: fe(() => import("./Table-BWgEr9DV.js"))
25624
25624
  }, sL = {
25625
25625
  title: "curd模版卡片",
25626
25626
  component: "CurdCard",
25627
- render: fe(() => import("./CurdCard-CZ4VhPL7.js")),
25627
+ render: fe(() => import("./CurdCard-DLjH6HCg.js")),
25628
25628
  icon: jA(UA, { name: "card" }),
25629
25629
  type: "layout",
25630
25630
  order: 6,
@@ -25654,7 +25654,7 @@ onChange: ${A.onChange}`);
25654
25654
  }, rL = {
25655
25655
  title: "普通div容器",
25656
25656
  component: "Wrapper",
25657
- render: fe(() => import("./Wrapper-ZyyGd7Sw.js")),
25657
+ render: fe(() => import("./Wrapper-rdvc505t.js")),
25658
25658
  icon: jA(UA, { name: "card" }),
25659
25659
  type: "layout",
25660
25660
  order: 7,
@@ -26014,7 +26014,7 @@ onChange: ${A.onChange}`);
26014
26014
  }, NL = {
26015
26015
  title: "定制化组件(OfferDetails)",
26016
26016
  component: "OfferDetails",
26017
- render: fe(() => import("./OfferDetails-BVaa7boE.js")),
26017
+ render: fe(() => import("./OfferDetails-lBlIQEgo.js")),
26018
26018
  icon: jA(UA, { name: "card" }),
26019
26019
  type: "assist",
26020
26020
  order: 1,
@@ -26026,7 +26026,7 @@ onChange: ${A.onChange}`);
26026
26026
  }, GL = {
26027
26027
  title: "定制化组件(Progress)",
26028
26028
  component: "Progress",
26029
- render: fe(() => import("./Progress-DDOZz027.js")),
26029
+ render: fe(() => import("./Progress-BBbfSGJD.js")),
26030
26030
  icon: jA(UA, { name: "card" }),
26031
26031
  type: "assist",
26032
26032
  order: 1,
@@ -26038,7 +26038,7 @@ onChange: ${A.onChange}`);
26038
26038
  }, LL = {
26039
26039
  title: "日志列表",
26040
26040
  component: "LogList",
26041
- render: fe(() => import("./LogList-BfSA2YIW.js")),
26041
+ render: fe(() => import("./LogList-D_T6C5Xq.js")),
26042
26042
  icon: jA(UA, { name: "card" }),
26043
26043
  type: "assist",
26044
26044
  order: 12,
@@ -26052,7 +26052,7 @@ onChange: ${A.onChange}`);
26052
26052
  icon: jA(UA, { name: "inline" }),
26053
26053
  type: "layout",
26054
26054
  component: "DragList",
26055
- render: fe(() => import("./DragList-Ii6kqkg2.js")),
26055
+ render: fe(() => import("./DragList-C0o9A4fS.js")),
26056
26056
  order: 9,
26057
26057
  lbTitle: !0,
26058
26058
  attrSchema: {
@@ -26149,7 +26149,7 @@ onChange: ${A.onChange}`);
26149
26149
  icon: jA(UA, { name: "library" }),
26150
26150
  type: "assist",
26151
26151
  order: 10,
26152
- render: fe(() => import("./Pagination-Bni7hc5i.js"))
26152
+ render: fe(() => import("./Pagination-BQZTZXl9.js"))
26153
26153
  }, UL = /* @__PURE__ */ VA({
26154
26154
  __name: "Menu",
26155
26155
  props: {
@@ -26219,14 +26219,14 @@ onChange: ${A.onChange}`);
26219
26219
  }, OL = {
26220
26220
  title: "筛选搜索",
26221
26221
  component: "FilterSearch",
26222
- render: fe(() => import("./FilterSearch-DpMIShxs.js")),
26222
+ render: fe(() => import("./FilterSearch-COmoVTv7.js")),
26223
26223
  icon: jA(UA, { name: "card" }),
26224
26224
  type: "layout",
26225
26225
  order: 10
26226
26226
  }, zL = {
26227
26227
  title: "无限滚动",
26228
26228
  component: "InfiniteScroll",
26229
- render: fe(() => import("./InfiniteScroll-Cmj0-z2l.js")),
26229
+ render: fe(() => import("./InfiniteScroll-C-dycP5T.js")),
26230
26230
  icon: jA(UA, { name: "card" }),
26231
26231
  type: "layout",
26232
26232
  order: 10,
@@ -26348,14 +26348,14 @@ onClick: ${A.onClick}`);
26348
26348
  }, AR = {
26349
26349
  title: "浮动查询模版",
26350
26350
  component: "FloatCurd",
26351
- render: fe(() => import("./FloatCurd-IaQW0CA2.js")),
26351
+ render: fe(() => import("./FloatCurd-9_aqbXIy.js")),
26352
26352
  icon: jA(UA, { name: "card" }),
26353
26353
  type: "layout",
26354
26354
  order: 12
26355
26355
  }, eR = {
26356
26356
  title: "浮动搜索查询模版",
26357
26357
  component: "FloatSearchCurd",
26358
- render: fe(() => import("./FloatSearchCurd-CqoJsN7c.js")),
26358
+ render: fe(() => import("./FloatSearchCurd-CoHu0Fwr.js")),
26359
26359
  icon: jA(UA, { name: "card" }),
26360
26360
  type: "layout",
26361
26361
  order: 13
@@ -0,0 +1,78 @@
1
+ import { inject as A, ref as h, toRaw as y, onMounted as O, watch as r } from "vue";
2
+ import { $ as S, u as V, l as F, f as I } from "./index-yO01RrJx.js";
3
+ import "element-plus";
4
+ const w = () => {
5
+ const { fetchOptionsFn: e } = A(S);
6
+ return e;
7
+ }, x = (e) => {
8
+ const i = V(), m = w(), a = h([]), c = h(!1);
9
+ let d = 0;
10
+ const s = F.debounce(async () => {
11
+ if (!m || !e.apiParams || Object.values(e.apiParams).some((n) => n === void 0) && !e.allowToBeEmpty)
12
+ return;
13
+ c.value = !0;
14
+ const t = ++d;
15
+ try {
16
+ const n = await m({
17
+ formItemProps: y(e),
18
+ formSchema: y(i.schema)
19
+ });
20
+ if (t !== d)
21
+ return;
22
+ const f = e.defaultOptions || [];
23
+ if (a.value = [...f, ...n], e.filters && (a.value = a.value.filter((l) => Array.isArray(e.filters) ? !e.filters.includes(l[e.valueKey || "value"]) : !0)), e.name) {
24
+ const l = I(i.schema.items, e.name);
25
+ l && l.props && (l.props.options = a.value);
26
+ }
27
+ const o = i.formValues[e.name], u = a.value.findIndex((l) => l[e.valueKey || "value"] === o) !== -1;
28
+ if (e.refreshFlag && a.value.length > 0 && !u) {
29
+ i.updateFormValues(
30
+ {
31
+ [`${e.name}`]: a.value[0][e.valueKey || "value"]
32
+ },
33
+ !0
34
+ );
35
+ const l = I(i.schema.items, e.name);
36
+ l && l.props && (l.props.refreshFlag = !1);
37
+ }
38
+ } finally {
39
+ c.value = !1;
40
+ }
41
+ }, 300);
42
+ O(() => {
43
+ const { mode: t, options: n = [] } = e;
44
+ t === "static" && (a.value = n), t === "remote" && s();
45
+ }), r(
46
+ () => e.apiParams,
47
+ (t, n) => {
48
+ F.isEqual(t, n) || (a.value = [], s());
49
+ }
50
+ ), r(
51
+ () => e.options,
52
+ (t = []) => {
53
+ e.mode === "static" && (a.value = t);
54
+ }
55
+ ), r(
56
+ () => e.mode,
57
+ (t) => {
58
+ t === "static" && (a.value = e.options || []), t === "remote" && (a.value = [], s());
59
+ }
60
+ );
61
+ const { mode: g, dependentFields: v } = e;
62
+ if (g === "remote" && Array.isArray(v))
63
+ for (const t of v)
64
+ r(
65
+ () => i.formValues[t],
66
+ (n, f) => {
67
+ s();
68
+ }
69
+ );
70
+ return { selectChange: (t) => {
71
+ const { valueKey: n = "value", multiple: f, name: o } = e;
72
+ let u = {};
73
+ f && Array.isArray(t) ? u = a.value.filter((l) => t.includes(l[n])) : u = a.value.find((l) => l[n] === t) || {}, i.selectData && o && i.updateSelectData(o, u);
74
+ }, currentOptions: a, loading: c, fetchData: s };
75
+ };
76
+ export {
77
+ x as u
78
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asiaint-lowcode",
3
- "version": "3.1.142",
3
+ "version": "3.1.143",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,78 +0,0 @@
1
- import { inject as A, ref as h, toRaw as y, onMounted as O, watch as o } from "vue";
2
- import { $ as S, u as V, l as F, f as I } from "./index-DdmJ7fxW.js";
3
- import "element-plus";
4
- const D = () => {
5
- const { fetchOptionsFn: e } = A(S);
6
- return e;
7
- }, x = (e) => {
8
- const s = V(), m = D(), a = h([]), c = h(!1);
9
- let d = 0;
10
- const i = F.debounce(async () => {
11
- if (!m || !e.apiParams || Object.values(e.apiParams).some((l) => l === void 0))
12
- return;
13
- c.value = !0;
14
- const t = ++d;
15
- try {
16
- const l = await m({
17
- formItemProps: y(e),
18
- formSchema: y(s.schema)
19
- });
20
- if (t !== d)
21
- return;
22
- const r = e.defaultOptions || [];
23
- if (a.value = [...r, ...l], e.filters && (a.value = a.value.filter((n) => Array.isArray(e.filters) ? !e.filters.includes(n[e.valueKey || "value"]) : !0)), e.name) {
24
- const n = I(s.schema.items, e.name);
25
- n && n.props && (n.props.options = a.value);
26
- }
27
- const f = s.formValues[e.name], u = a.value.findIndex((n) => n[e.valueKey || "value"] === f) !== -1;
28
- if (e.refreshFlag && a.value.length > 0 && !u) {
29
- s.updateFormValues(
30
- {
31
- [`${e.name}`]: a.value[0][e.valueKey || "value"]
32
- },
33
- !0
34
- );
35
- const n = I(s.schema.items, e.name);
36
- n && n.props && (n.props.refreshFlag = !1);
37
- }
38
- } finally {
39
- c.value = !1;
40
- }
41
- }, 300);
42
- O(() => {
43
- const { mode: t, options: l = [] } = e;
44
- t === "static" && (a.value = l), t === "remote" && i();
45
- }), o(
46
- () => e.apiParams,
47
- (t, l) => {
48
- F.isEqual(t, l) || (a.value = [], i());
49
- }
50
- ), o(
51
- () => e.options,
52
- (t = []) => {
53
- e.mode === "static" && (a.value = t);
54
- }
55
- ), o(
56
- () => e.mode,
57
- (t) => {
58
- t === "static" && (a.value = e.options || []), t === "remote" && (a.value = [], i());
59
- }
60
- );
61
- const { mode: g, dependentFields: v } = e;
62
- if (g === "remote" && Array.isArray(v))
63
- for (const t of v)
64
- o(
65
- () => s.formValues[t],
66
- (l, r) => {
67
- i();
68
- }
69
- );
70
- return { selectChange: (t) => {
71
- const { valueKey: l = "value", multiple: r, name: f } = e;
72
- let u = {};
73
- r && Array.isArray(t) ? u = a.value.filter((n) => t.includes(n[l])) : u = a.value.find((n) => n[l] === t) || {}, s.selectData && f && s.updateSelectData(f, u);
74
- }, currentOptions: a, loading: c, fetchData: i };
75
- };
76
- export {
77
- x as u
78
- };