asiaint-lowcode 3.0.6 → 3.0.7

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 (31) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +136 -136
  3. package/dist/index.d.ts +28 -2
  4. package/dist/lazy/Card-BICyqkcl.js +70 -0
  5. package/dist/lazy/{Cascader-cKLK7mem.js → Cascader-BZL8MhiH.js} +17 -12
  6. package/dist/lazy/{Checkbox-DtbVDDXb.js → Checkbox-BAT6NqSY.js} +2 -2
  7. package/dist/lazy/{Collapse-DMYUW4Km.js → Collapse-BewyvIUk.js} +1 -1
  8. package/dist/lazy/{Component-BjEXrMSI.js → Component-B7sDX0op.js} +1 -1
  9. package/dist/lazy/Component-BZnQOmUv.js +69 -0
  10. package/dist/lazy/{Component-DzK59rNg.js → Component-Bx5jW_vw.js} +1 -1
  11. package/dist/lazy/{Component-i7k--fN-.js → Component-DREsTAii.js} +1 -1
  12. package/dist/lazy/{Component-BCxS_AH5.js → Component-DTV7H-bM.js} +1 -1
  13. package/dist/lazy/{Custom-DEoV7gvb.js → Custom-BhPEMv39.js} +1 -1
  14. package/dist/lazy/{DatePicker-al4c4ajg.js → DatePicker-DPsaKvWF.js} +1 -1
  15. package/dist/lazy/{FormList-CNSVq4AR.js → FormList-BGlH8gig.js} +1 -1
  16. package/dist/lazy/{Grid-CyJHLzs1.js → Grid-CVd3BMAR.js} +1 -1
  17. package/dist/lazy/{Inline-CpQAmde3.js → Inline-KJq-Auig.js} +1 -1
  18. package/dist/lazy/{JsonEdit-D4tp2QDt.js → JsonEdit-C5NAnHPv.js} +1 -1
  19. package/dist/lazy/{ObjGroup-Z7cutw6v.js → ObjGroup-DTbSx77l.js} +1 -1
  20. package/dist/lazy/Radio-BRY5I1l1.js +83 -0
  21. package/dist/lazy/{SearchSelect-DrwHTBHY.js → SearchSelect-DAo4_Xhq.js} +33 -23
  22. package/dist/lazy/{Select-D3sP3-da.js → Select-_fEGDALy.js} +24 -19
  23. package/dist/lazy/{Tabs-BraXCkHy.js → Tabs-C46mp1GR.js} +1 -1
  24. package/dist/lazy/{TextArea-5g1xr0mj.js → TextArea-TsgAVKuR.js} +1 -1
  25. package/dist/lazy/{index-D5eszhxL.js → index-CPKMl9aN.js} +4902 -4773
  26. package/dist/lazy/{useSelect-CPxQO_Ri.js → useSelect-beVhTinV.js} +1 -1
  27. package/dist/style.css +2 -2
  28. package/package.json +1 -1
  29. package/dist/lazy/Card-BwIpHHbi.js +0 -65
  30. package/dist/lazy/Component-BftgSxpa.js +0 -13
  31. package/dist/lazy/Radio-Bbn3m_Hg.js +0 -78
package/dist/index.d.ts CHANGED
@@ -47,6 +47,7 @@ vCodePass: boolean;
47
47
  updateFormValues: (values: Record<string, any>, isAssign?: boolean) => void;
48
48
  updateSelectData: (key: string, value: Record<string, any>) => void;
49
49
  updateInitialValues: (values: Record<string, any>) => void;
50
+ getInitialValues: () => Record<string, any>;
50
51
  updateVCodePass: (value: boolean) => void;
51
52
  validate: () => FormValidationResult | undefined;
52
53
  resetFields: (names?: string[]) => void;
@@ -56,6 +57,7 @@ findItemByName: (items: FormItemType[], name: string) => FormItemType | null;
56
57
  setFieldEditSts: (key: string, value: boolean) => void;
57
58
  setFieldVisibleSts: (key: string, value: boolean) => void;
58
59
  setFieldValue: (key: string, realValue: any, value: any) => void;
60
+ getFieldValue: (key: string) => any;
59
61
  type: string;
60
62
  schema: FormSchema;
61
63
  schemaContext: Record<string, any>;
@@ -153,6 +155,8 @@ declare type BtnType = {
153
155
  onClick: string;
154
156
  disabled: boolean;
155
157
  hidden: boolean;
158
+ type?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
159
+ label?: string;
156
160
  };
157
161
 
158
162
  declare const _default: {
@@ -348,11 +352,30 @@ export declare type PageMethods = {
348
352
  getItemByName: (formKey: string, itemKey: string) => FormItemType | null | undefined;
349
353
  getPageParams: () => any;
350
354
  setHidden: (key: string, hiddenState: boolean) => void;
355
+ setBtnDisabled: (key: string, disabled: boolean) => void;
351
356
  setBtnHidden: (key: string, hiddenState: boolean) => void;
352
357
  addPageParams: (params: any) => void;
353
358
  setPageParams: (params: any) => void;
354
359
  setGlobalParams: (params: any) => void;
355
360
  getGlobalParams: () => any;
361
+ setBtnState: (params: {
362
+ type: 'form';
363
+ formKey: string;
364
+ btnKey: string;
365
+ } | {
366
+ type: 'table';
367
+ tableKey: string;
368
+ btnPosition: 'top' | 'row';
369
+ btnKey: string;
370
+ } | {
371
+ type: 'page';
372
+ btnKey: string;
373
+ } | {
374
+ type: 'card';
375
+ formKey: string;
376
+ cardKey: string;
377
+ btnKey: string;
378
+ }, stateType: 'hidden' | 'disabled', state: boolean) => void;
356
379
  };
357
380
 
358
381
  export declare const PageRender: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, ReturnType<typeof __VLS_template_2>>;
@@ -440,6 +463,9 @@ pageSize: number;
440
463
  isChange: boolean;
441
464
  };
442
465
  setTopBtnHidden: (btnKey: string, hidden: boolean) => void;
466
+ setColVisible: (colKey: string, visible: boolean) => void;
467
+ setColumn: <K extends keyof TableColumn>(key: string, keyName: K, keyValue: TableColumn[K]) => void;
468
+ setRowBtnHidden: (btnKey: string, hidden: boolean) => void;
443
469
  type: string;
444
470
  design: boolean;
445
471
  read: boolean;
@@ -475,8 +501,8 @@ declare type TableSchema = {
475
501
  rowDbClick?: string;
476
502
  sizeChange?: string;
477
503
  pageChange?: string;
478
- topBtns?: Record<string, any>[];
479
- rowBtns?: Record<string, any>[];
504
+ topBtns?: BtnType[];
505
+ rowBtns?: BtnType[];
480
506
  columns: TableColumn[];
481
507
  form?: FormSchema;
482
508
  hidden?: boolean;
@@ -0,0 +1,70 @@
1
+ import { defineComponent as y, ref as M, inject as i, resolveComponent as c, openBlock as l, createBlock as d, normalizeProps as g, guardReactiveProps as w, withCtx as n, createElementVNode as r, unref as p, normalizeClass as $, createCommentVNode as u, toDisplayString as _, createElementBlock as m, Fragment as h, renderList as B, createTextVNode as E, createVNode as v, Transition as V, withDirectives as N, vShow as z } from "vue";
2
+ import { _ as D, a as P, b as S } from "./index-CPKMl9aN.js";
3
+ import "element-plus";
4
+ const T = { class: "card-header" }, j = { class: "card-btns" }, x = /* @__PURE__ */ y({
5
+ __name: "Card",
6
+ props: {
7
+ children: {},
8
+ collapsible: { type: Boolean },
9
+ header: {},
10
+ btns: {}
11
+ },
12
+ setup(F) {
13
+ const a = M(!1), s = i("ruleModule", void 0), C = i("pageMethodMap", {}), f = (e) => {
14
+ if (s && s[e])
15
+ try {
16
+ s[e](C);
17
+ } catch (t) {
18
+ console.error(t);
19
+ }
20
+ };
21
+ return (e, t) => {
22
+ const k = c("el-button"), b = c("ElCard");
23
+ return l(), d(b, g(w(e.$attrs)), {
24
+ header: n(() => [
25
+ r("div", T, [
26
+ e.collapsible ? (l(), d(p(D), {
27
+ key: 0,
28
+ name: "dropdown",
29
+ onClick: t[0] || (t[0] = (o) => a.value = !a.value),
30
+ class: $(["dropdown-icon", { "is-collapsed": a.value }])
31
+ }, null, 8, ["class"])) : u("", !0),
32
+ r("span", null, _(e.header), 1),
33
+ r("div", j, [
34
+ (l(!0), m(h, null, B(e.btns, (o) => (l(), m(h, {
35
+ key: o.key
36
+ }, [
37
+ o.hidden ? u("", !0) : (l(), d(k, {
38
+ key: 0,
39
+ onClick: (I) => f(o.onClick),
40
+ disabled: o.disabled
41
+ }, {
42
+ default: n(() => [
43
+ E(_(o.text), 1)
44
+ ]),
45
+ _: 2
46
+ }, 1032, ["onClick", "disabled"]))
47
+ ], 64))), 128))
48
+ ])
49
+ ])
50
+ ]),
51
+ default: n(() => [
52
+ v(V, { name: "collapse" }, {
53
+ default: n(() => [
54
+ N(r("div", null, [
55
+ v(p(P), { list: e.children }, null, 8, ["list"])
56
+ ], 512), [
57
+ [z, !a.value]
58
+ ])
59
+ ]),
60
+ _: 1
61
+ })
62
+ ]),
63
+ _: 1
64
+ }, 16);
65
+ };
66
+ }
67
+ }), A = /* @__PURE__ */ S(x, [["__scopeId", "data-v-8b8ea7b4"]]);
68
+ export {
69
+ A as default
70
+ };
@@ -1,6 +1,6 @@
1
- import { defineComponent as f, mergeModels as g, useModel as v, inject as d, resolveComponent as M, openBlock as C, createBlock as h, mergeProps as y, unref as u } from "vue";
1
+ import { defineComponent as f, mergeModels as g, useModel as v, inject as d, resolveComponent as M, openBlock as C, createBlock as h, mergeProps as y, unref as s } from "vue";
2
2
  import "element-plus";
3
- import { u as V } from "./useSelect-CPxQO_Ri.js";
3
+ import { u as V } from "./useSelect-beVhTinV.js";
4
4
  const k = /* @__PURE__ */ f({
5
5
  __name: "Cascader",
6
6
  props: /* @__PURE__ */ g({
@@ -19,23 +19,28 @@ const k = /* @__PURE__ */ f({
19
19
  modelModifiers: {}
20
20
  }),
21
21
  emits: ["update:modelValue"],
22
- setup(o) {
23
- const l = o, a = v(o, "modelValue"), n = d("ruleModule", void 0), s = d("pageMethodMap", {}), p = (e) => {
24
- l.onChange && n && n[l.onChange](s, e);
25
- }, { currentOptions: r, loading: m } = V(l);
26
- return (e, t) => {
22
+ setup(a) {
23
+ const l = a, t = v(a, "modelValue"), n = d("ruleModule", void 0), u = d("pageMethodMap", {}), r = (e) => {
24
+ if (l.onChange && n)
25
+ try {
26
+ n[l.onChange](u, e);
27
+ } catch (o) {
28
+ console.error(o);
29
+ }
30
+ }, { currentOptions: p, loading: m } = V(l);
31
+ return (e, o) => {
27
32
  const i = M("el-cascader");
28
33
  return C(), h(i, y({
29
- modelValue: a.value,
30
- "onUpdate:modelValue": t[0] || (t[0] = (c) => a.value = c),
31
- options: u(r),
32
- loading: u(m),
34
+ modelValue: t.value,
35
+ "onUpdate:modelValue": o[0] || (o[0] = (c) => t.value = c),
36
+ options: s(p),
37
+ loading: s(m),
33
38
  props: {
34
39
  multiple: e.multiple,
35
40
  label: e.labelKey,
36
41
  value: e.valueKey
37
42
  }
38
- }, e.$attrs, { onChange: p }), null, 16, ["modelValue", "options", "loading", "props"]);
43
+ }, e.$attrs, { onChange: r }), null, 16, ["modelValue", "options", "loading", "props"]);
39
44
  };
40
45
  }
41
46
  });
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as w, mergeModels as B, useModel as D, watch as F, resolveComponent as u, resolveDirective as M, unref as a, openBlock as l, createElementBlock as n, toDisplayString as I, Fragment as d, createCommentVNode as i, withDirectives as P, createBlock as s, mergeProps as S, withCtx as f, renderList as h } from "vue";
2
2
  import "element-plus";
3
- import { u as j } from "./index-D5eszhxL.js";
4
- import { u as E } from "./useSelect-CPxQO_Ri.js";
3
+ import { u as j } from "./index-CPKMl9aN.js";
4
+ import { u as E } from "./useSelect-beVhTinV.js";
5
5
  const L = { key: 0 }, N = {
6
6
  key: 0,
7
7
  style: { "font-size": "12px" }
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, ref as f, onMounted as _, watch as h, resolveComponent as c, openBlock as o, createBlock as i, mergeProps as C, withCtx as r, createElementBlock as E, Fragment as k, renderList as v, createVNode as m, unref as V } from "vue";
2
- import { a as y } from "./index-D5eszhxL.js";
2
+ import { a as y } from "./index-CPKMl9aN.js";
3
3
  import "element-plus";
4
4
  import { _ as B } from "./Title.vue_vue_type_script_setup_true_lang-Ceco_9-w.js";
5
5
  const x = /* @__PURE__ */ u({
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as b, mergeModels as V, useModel as B, resolveComponent as d, openBlock as l, createBlock as n, createSlots as C, withCtx as a, createElementBlock as m, Fragment as w, createVNode as E, unref as r, createElementVNode as o, createTextVNode as i, toDisplayString as p, createCommentVNode as u } from "vue";
2
2
  import { ElMessage as M, ElMessageBox as N } from "element-plus";
3
- import { _ as f } from "./index-D5eszhxL.js";
3
+ import { _ as f } from "./index-CPKMl9aN.js";
4
4
  const $ = {
5
5
  key: 0,
6
6
  style: { "min-width": "300px" }
@@ -0,0 +1,69 @@
1
+ import { defineComponent as M, inject as p, resolveComponent as m, openBlock as a, createBlock as u, mergeProps as g, withCtx as _, createElementVNode as s, toDisplayString as k, createElementBlock as C, Fragment as h, renderList as L, createTextVNode as x, createCommentVNode as B } from "vue";
2
+ import { b as V } from "./index-CPKMl9aN.js";
3
+ const E = { class: "custom-tree-node" }, $ = /* @__PURE__ */ M({
4
+ __name: "Component",
5
+ props: {
6
+ onNodeClick: {},
7
+ onLoad: {},
8
+ btns: {}
9
+ },
10
+ setup(f) {
11
+ const l = f, t = p("ruleModule", void 0), d = p("pageMethodMap", {}), y = (e, n, o) => {
12
+ if (t)
13
+ try {
14
+ t[e](d, { node: n, data: o });
15
+ } catch (c) {
16
+ console.error(c);
17
+ }
18
+ }, N = (e, n) => {
19
+ if (l.onNodeClick && t)
20
+ try {
21
+ t[l.onNodeClick](d, { node: e, data: n });
22
+ } catch (o) {
23
+ console.error(o);
24
+ }
25
+ }, b = (e, n, o) => {
26
+ if (l.onLoad && t)
27
+ try {
28
+ t[l.onLoad](d, { node: e, resolve: n, reject: o });
29
+ } catch (c) {
30
+ console.error(c);
31
+ }
32
+ };
33
+ return (e, n) => {
34
+ const o = m("el-button"), c = m("el-tree");
35
+ return a(), u(c, g(e.$attrs, {
36
+ onNodeClick: N,
37
+ load: b
38
+ }), {
39
+ default: _(({ node: i, data: v }) => [
40
+ s("div", E, [
41
+ s("span", null, k(i.label), 1),
42
+ s("div", null, [
43
+ (a(!0), C(h, null, L(e.btns, (r) => (a(), C(h, {
44
+ key: r.key
45
+ }, [
46
+ r.hidden ? B("", !0) : (a(), u(o, {
47
+ key: 0,
48
+ link: "",
49
+ onClick: (j) => y(r.onClick, i, v),
50
+ disabled: r.disabled,
51
+ type: r.type
52
+ }, {
53
+ default: _(() => [
54
+ x(k(r.text), 1)
55
+ ]),
56
+ _: 2
57
+ }, 1032, ["onClick", "disabled", "type"]))
58
+ ], 64))), 128))
59
+ ])
60
+ ])
61
+ ]),
62
+ _: 1
63
+ }, 16);
64
+ };
65
+ }
66
+ }), D = /* @__PURE__ */ V($, [["__scopeId", "data-v-a0b3221b"]]);
67
+ export {
68
+ D as default
69
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, mergeModels as m, useModel as r, resolveComponent as u, openBlock as p, createBlock as i, mergeProps as c, unref as f } from "vue";
2
- import { u as V } from "./index-D5eszhxL.js";
2
+ import { u as V } from "./index-CPKMl9aN.js";
3
3
  import "element-plus";
4
4
  const B = /* @__PURE__ */ d({
5
5
  __name: "Component",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, ref as v, computed as N, watch as L, onMounted as x, onBeforeUnmount as F, openBlock as T, createElementBlock as E, mergeModels as J, useModel as A, resolveComponent as G, unref as W, createElementVNode as P, createBlock as X, withCtx as D, createTextVNode as I, createCommentVNode as Y, createVNode as R } from "vue";
2
- import { b as H, u as K, c as Q } from "./index-D5eszhxL.js";
2
+ import { b as H, u as K, c as Q } from "./index-CPKMl9aN.js";
3
3
  import "element-plus";
4
4
  const Z = $({
5
5
  props: {
@@ -2,7 +2,7 @@ var u = Object.defineProperty;
2
2
  var m = (o, e, t) => e in o ? u(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
3
  var a = (o, e, t) => m(o, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { defineComponent as g, mergeModels as v, useModel as I, ref as c, onMounted as w, resolveComponent as C, openBlock as y, createElementBlock as _, createVNode as V, createElementVNode as M } from "vue";
5
- import { u as b, b as x } from "./index-D5eszhxL.js";
5
+ import { u as b, b as x } from "./index-CPKMl9aN.js";
6
6
  import "element-plus";
7
7
  function S() {
8
8
  return "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(",");
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as n, mergeModels as s, useModel as p, openBlock as t, createElementBlock as r, createBlock as u, resolveDynamicComponent as d, mergeProps as c } from "vue";
2
- import { b as i } from "./index-D5eszhxL.js";
2
+ import { b as i } from "./index-CPKMl9aN.js";
3
3
  const f = {
4
4
  key: 0,
5
5
  class: "empty"
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as t, openBlock as o, createBlock as c, mergeProps as n } from "vue";
2
- import { b as s } from "./index-D5eszhxL.js";
2
+ import { b as s } from "./index-CPKMl9aN.js";
3
3
  const _ = {};
4
4
  function a(e, p) {
5
5
  const r = t("el-date-picker");
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, mergeModels as j, useModel as G, ref as T, computed as M, watch as H, onMounted as J, provide as K, resolveComponent as b, openBlock as l, createElementBlock as _, unref as m, createBlock as s, Fragment as $, renderList as g, withCtx as r, createElementVNode as C, createVNode as v, mergeProps as R, createCommentVNode as y, toDisplayString as F, createTextVNode as O, h as Q } from "vue";
2
- import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-D5eszhxL.js";
2
+ import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-CPKMl9aN.js";
3
3
  import "element-plus";
4
4
  const Y = { class: "vfc-formList" }, Z = { key: 1 }, x = { class: "list-item-content" }, ee = { class: "card-header" }, le = { style: { "margin-top": "5px" } }, oe = /* @__PURE__ */ S({
5
5
  __name: "FormList",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as t, computed as n, openBlock as a, createBlock as m, unref as p, normalizeStyle as s } from "vue";
2
- import { a as i } from "./index-D5eszhxL.js";
2
+ import { a as i } from "./index-CPKMl9aN.js";
3
3
  import "element-plus";
4
4
  const g = /* @__PURE__ */ t({
5
5
  __name: "Grid",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as a, computed as l, openBlock as p, createBlock as r, unref as i, normalizeStyle as s } from "vue";
2
- import { a as c, b as f } from "./index-D5eszhxL.js";
2
+ import { a as c, b as f } from "./index-CPKMl9aN.js";
3
3
  import "element-plus";
4
4
  const m = /* @__PURE__ */ a({
5
5
  __name: "Inline",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as At, openBlock as mt, createElementBlock as wt, mergeProps as St, createElementVNode as pt, renderSlot as It, normalizeClass as bt, mergeModels as Tt, useModel as Et, createBlock as Rt, unref as $t, withCtx as _t, createVNode as Lt } from "vue";
2
- import { b as xt, g as Nt } from "./index-D5eszhxL.js";
2
+ import { b as xt, g as Nt } from "./index-CPKMl9aN.js";
3
3
  import "element-plus";
4
4
  const Mt = /* @__PURE__ */ At({
5
5
  __name: "Disabled",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, inject as i, provide as d, ref as f, openBlock as e, createElementBlock as o, unref as n, createBlock as m, Fragment as _, renderList as $, mergeProps as b } from "vue";
2
- import { u as j, d as h, e as k } from "./index-D5eszhxL.js";
2
+ import { u as j, d as h, e as k } from "./index-CPKMl9aN.js";
3
3
  import "element-plus";
4
4
  const v = { class: "vfc-ObjGroup" }, B = {
5
5
  key: 1,
@@ -0,0 +1,83 @@
1
+ import { defineComponent as B, mergeModels as S, useModel as T, inject as K, resolveComponent as p, resolveDirective as w, unref as l, openBlock as a, createElementBlock as d, toDisplayString as F, Fragment as y, createCommentVNode as N, withDirectives as I, createBlock as f, mergeProps as k, withCtx as C, createVNode as P, renderList as M } from "vue";
2
+ import { u as $ } from "./index-CPKMl9aN.js";
3
+ import { u as j } from "./useSelect-beVhTinV.js";
4
+ const E = { key: 0 }, L = {
5
+ key: 0,
6
+ style: { "font-size": "12px" }
7
+ }, q = /* @__PURE__ */ B({
8
+ __name: "Radio",
9
+ props: /* @__PURE__ */ S({
10
+ options: { default: () => [] },
11
+ mode: { default: "static" },
12
+ labelKey: { default: "label" },
13
+ valueKey: { default: "value" },
14
+ disabledKey: { default: "disabled" },
15
+ apiParams: {},
16
+ dependentFields: {},
17
+ name: { default: "" },
18
+ onChange: {},
19
+ optionType: { default: "circle" },
20
+ direction: { default: "horizontal" },
21
+ space: { default: 20 }
22
+ }, {
23
+ modelValue: { type: [String, Number, Boolean], default: "" },
24
+ modelModifiers: {}
25
+ }),
26
+ emits: ["update:modelValue"],
27
+ setup(v) {
28
+ const u = v, c = T(v, "modelValue"), m = $(), b = K("ruleModule", void 0), V = K("pageMethodMap", {}), _ = (e) => {
29
+ const { valueKey: i = "value", name: s } = u;
30
+ let t = {};
31
+ if (t = n.value.find((r) => r[i] === e) || {}, m.selectData && s && m.updateSelectData(s, t), u.onChange && b)
32
+ try {
33
+ b[u.onChange](V, e, t);
34
+ } catch (r) {
35
+ console.error(r);
36
+ }
37
+ }, { currentOptions: n, loading: g } = j(u);
38
+ return (e, i) => {
39
+ var h;
40
+ const s = p("el-radio"), t = p("el-radio-button"), r = p("el-space"), D = p("el-radio-group"), z = w("loading");
41
+ return l(m).read ? (a(), d("div", E, F((h = l(n).find((o) => o[e.valueKey] === c.value)) == null ? void 0 : h[e.labelKey]), 1)) : (a(), d(y, { key: 1 }, [
42
+ !l(n).length && !l(g) ? (a(), d("div", L, "暂无选项")) : N("", !0),
43
+ I((a(), f(D, k({
44
+ modelValue: c.value,
45
+ "onUpdate:modelValue": i[0] || (i[0] = (o) => c.value = o),
46
+ onChange: _
47
+ }, e.$attrs), {
48
+ default: C(() => [
49
+ P(r, {
50
+ wrap: "",
51
+ direction: e.direction,
52
+ size: [e.space, e.space],
53
+ alignment: "normal"
54
+ }, {
55
+ default: C(() => [
56
+ e.optionType === "circle" || e.optionType === "border" ? (a(!0), d(y, { key: 0 }, M(l(n), (o) => (a(), f(s, {
57
+ key: o[e.valueKey],
58
+ label: o[e.labelKey],
59
+ value: o[e.valueKey],
60
+ disabled: o[e.disabledKey],
61
+ border: e.optionType === "border"
62
+ }, null, 8, ["label", "value", "disabled", "border"]))), 128)) : (a(!0), d(y, { key: 1 }, M(l(n), (o) => (a(), f(t, k({
63
+ key: o[e.valueKey],
64
+ label: o[e.labelKey],
65
+ value: o[e.valueKey],
66
+ disabled: o[e.disabledKey],
67
+ ref_for: !0
68
+ }, e.$attrs), null, 16, ["label", "value", "disabled"]))), 128))
69
+ ]),
70
+ _: 1
71
+ }, 8, ["direction", "size"])
72
+ ]),
73
+ _: 1
74
+ }, 16, ["modelValue"])), [
75
+ [z, l(g)]
76
+ ])
77
+ ], 64));
78
+ };
79
+ }
80
+ });
81
+ export {
82
+ q as default
83
+ };
@@ -1,6 +1,6 @@
1
- import { defineComponent as w, mergeModels as A, useModel as F, inject as S, resolveComponent as b, resolveDirective as I, unref as n, openBlock as a, createElementBlock as u, toDisplayString as v, withDirectives as N, createBlock as k, mergeProps as j, withCtx as y, Fragment as P, renderList as $, createTextVNode as E, createVNode as C } from "vue";
2
- import { u as L, _ as O, b as T } from "./index-D5eszhxL.js";
3
- import { u as U } from "./useSelect-CPxQO_Ri.js";
1
+ import { defineComponent as w, mergeModels as A, useModel as F, inject as S, resolveComponent as b, resolveDirective as I, unref as d, openBlock as o, createElementBlock as u, toDisplayString as v, withDirectives as N, createBlock as k, mergeProps as j, withCtx as y, Fragment as P, renderList as $, createTextVNode as E, createVNode as C } from "vue";
2
+ import { u as L, _ as O, b as T } from "./index-CPKMl9aN.js";
3
+ import { u as U } from "./useSelect-beVhTinV.js";
4
4
  const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
5
5
  key: 1,
6
6
  class: "search-select-wrapper"
@@ -25,25 +25,35 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
25
25
  }),
26
26
  emits: ["update:modelValue"],
27
27
  setup(h) {
28
- const o = h, d = F(h, "modelValue"), m = L(), c = S("ruleModule", void 0), _ = S("pageMethodMap", {}), M = (e) => {
29
- const { valueKey: i = "value", multiple: f, name: p } = o;
30
- let t = {};
31
- f && Array.isArray(e) ? t = s.value.filter((r) => e.includes(r[i])) : t = s.value.find((r) => r[i] === e) || {}, m.selectData && p && m.updateSelectData(p, t), o.onChange && c && c[o.onChange](_, e, t);
28
+ const t = h, s = F(h, "modelValue"), m = L(), c = S("ruleModule", void 0), _ = S("pageMethodMap", {}), M = (e) => {
29
+ const { valueKey: i = "value", multiple: f, name: p } = t;
30
+ let n = {};
31
+ if (f && Array.isArray(e) ? n = r.value.filter((a) => e.includes(a[i])) : n = r.value.find((a) => a[i] === e) || {}, m.selectData && p && m.updateSelectData(p, n), t.onChange && c)
32
+ try {
33
+ c[t.onChange](_, e, n);
34
+ } catch (a) {
35
+ console.error(a);
36
+ }
32
37
  }, V = () => {
33
- o.onSearch && c && c[o.onSearch](_);
34
- }, { currentOptions: s, loading: B } = U(o);
38
+ if (t.onSearch && c)
39
+ try {
40
+ c[t.onSearch](_);
41
+ } catch (e) {
42
+ console.error(e);
43
+ }
44
+ }, { currentOptions: r, loading: B } = U(t);
35
45
  return (e, i) => {
36
46
  var g;
37
- const f = b("el-option"), p = b("el-select"), t = b("el-button"), r = I("loading");
38
- return n(m).read ? (a(), u("div", q, [
39
- e.multiple ? (a(), u("div", z, v(d.value && d.value.map((l) => {
47
+ const f = b("el-option"), p = b("el-select"), n = b("el-button"), a = I("loading");
48
+ return d(m).read ? (o(), u("div", q, [
49
+ e.multiple ? (o(), u("div", z, v(s.value && s.value.map((l) => {
40
50
  var K;
41
- return (K = n(s).find((D) => D[e.valueKey] === l)) == null ? void 0 : K[e.labelKey];
42
- }).join("、")), 1)) : (a(), u("div", G, v((g = n(s).find((l) => l[e.valueKey] === d.value)) == null ? void 0 : g[e.labelKey]), 1))
43
- ])) : (a(), u("div", H, [
44
- N((a(), k(p, j({
45
- modelValue: d.value,
46
- "onUpdate:modelValue": i[0] || (i[0] = (l) => d.value = l)
51
+ return (K = d(r).find((D) => D[e.valueKey] === l)) == null ? void 0 : K[e.labelKey];
52
+ }).join("、")), 1)) : (o(), u("div", G, v((g = d(r).find((l) => l[e.valueKey] === s.value)) == null ? void 0 : g[e.labelKey]), 1))
53
+ ])) : (o(), u("div", H, [
54
+ N((o(), k(p, j({
55
+ modelValue: s.value,
56
+ "onUpdate:modelValue": i[0] || (i[0] = (l) => s.value = l)
47
57
  }, e.$attrs, {
48
58
  onChange: M,
49
59
  multiple: e.multiple,
@@ -52,7 +62,7 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
52
62
  disabled: e.disabled
53
63
  }), {
54
64
  default: y(() => [
55
- (a(!0), u(P, null, $(n(s), (l) => (a(), k(f, {
65
+ (o(!0), u(P, null, $(d(r), (l) => (o(), k(f, {
56
66
  key: l[e.valueKey],
57
67
  label: l[e.labelKey],
58
68
  value: l[e.valueKey],
@@ -66,22 +76,22 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
66
76
  ]),
67
77
  _: 1
68
78
  }, 16, ["modelValue", "multiple", "disabled"])), [
69
- [r, n(B)]
79
+ [a, d(B)]
70
80
  ]),
71
- C(t, {
81
+ C(n, {
72
82
  onClick: V,
73
83
  disabled: e.disabled,
74
84
  class: "search-btn"
75
85
  }, {
76
86
  default: y(() => [
77
- C(n(O), { name: "search" })
87
+ C(d(O), { name: "search" })
78
88
  ]),
79
89
  _: 1
80
90
  }, 8, ["disabled"])
81
91
  ]));
82
92
  };
83
93
  }
84
- }), X = /* @__PURE__ */ T(J, [["__scopeId", "data-v-e82a633c"]]);
94
+ }), X = /* @__PURE__ */ T(J, [["__scopeId", "data-v-4fd2fc03"]]);
85
95
  export {
86
96
  X as default
87
97
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as C, mergeModels as V, useModel as _, inject as c, resolveComponent as f, resolveDirective as D, openBlock as u, createBlock as v, mergeProps as k, withCtx as y, withDirectives as B, createElementBlock as b, Fragment as S, renderList as A, unref as g, createTextVNode as F, toDisplayString as w } from "vue";
2
- import { u as I } from "./index-D5eszhxL.js";
3
- import { u as N } from "./useSelect-CPxQO_Ri.js";
1
+ import { defineComponent as C, mergeModels as V, useModel as _, inject as m, resolveComponent as f, resolveDirective as D, openBlock as r, createBlock as v, mergeProps as k, withCtx as y, withDirectives as B, createElementBlock as b, Fragment as S, renderList as A, unref as g, createTextVNode as F, toDisplayString as w } from "vue";
2
+ import { u as I } from "./index-CPKMl9aN.js";
3
+ import { u as N } from "./useSelect-beVhTinV.js";
4
4
  const P = { style: { "min-height": "32px" } }, O = /* @__PURE__ */ C({
5
5
  __name: "Select",
6
6
  props: /* @__PURE__ */ V({
@@ -19,34 +19,39 @@ const P = { style: { "min-height": "32px" } }, O = /* @__PURE__ */ C({
19
19
  modelModifiers: {}
20
20
  }),
21
21
  emits: ["update:modelValue"],
22
- setup(r) {
23
- const o = r, i = _(r, "modelValue"), p = I(), m = c("ruleModule", void 0), h = c("pageMethodMap", {}), K = (e) => {
22
+ setup(d) {
23
+ const o = d, i = _(d, "modelValue"), p = I(), c = m("ruleModule", void 0), h = m("pageMethodMap", {}), K = (l) => {
24
24
  const { valueKey: t = "value", multiple: s, name: n } = o;
25
25
  let a = {};
26
- s && Array.isArray(e) ? a = d.value.filter((l) => e.includes(l[t])) : a = d.value.find((l) => l[t] === e) || {}, p.selectData && n && p.updateSelectData(n, a), o.onChange && m && m[o.onChange](h, e, a);
27
- }, { currentOptions: d, loading: M } = N(o);
28
- return (e, t) => {
26
+ if (s && Array.isArray(l) ? a = u.value.filter((e) => l.includes(e[t])) : a = u.value.find((e) => e[t] === l) || {}, p.selectData && n && p.updateSelectData(n, a), o.onChange && c)
27
+ try {
28
+ c[o.onChange](h, l, a);
29
+ } catch (e) {
30
+ console.error(e);
31
+ }
32
+ }, { currentOptions: u, loading: M } = N(o);
33
+ return (l, t) => {
29
34
  const s = f("el-option"), n = f("el-select"), a = D("loading");
30
- return u(), v(n, k({
35
+ return r(), v(n, k({
31
36
  modelValue: i.value,
32
- "onUpdate:modelValue": t[0] || (t[0] = (l) => i.value = l)
33
- }, e.$attrs, {
37
+ "onUpdate:modelValue": t[0] || (t[0] = (e) => i.value = e)
38
+ }, l.$attrs, {
34
39
  onChange: K,
35
- multiple: e.multiple,
40
+ multiple: l.multiple,
36
41
  clearable: "",
37
42
  filterable: "",
38
43
  "fallback-placements": ["bottom"]
39
44
  }), {
40
45
  default: y(() => [
41
- B((u(), b("div", P, [
42
- (u(!0), b(S, null, A(g(d), (l) => (u(), v(s, {
43
- key: l[e.valueKey],
44
- label: l[e.labelKey],
45
- value: l[e.valueKey],
46
- disabled: l[e.disabledKey]
46
+ B((r(), b("div", P, [
47
+ (r(!0), b(S, null, A(g(u), (e) => (r(), v(s, {
48
+ key: e[l.valueKey],
49
+ label: e[l.labelKey],
50
+ value: e[l.valueKey],
51
+ disabled: e[l.disabledKey]
47
52
  }, {
48
53
  default: y(() => [
49
- F(w(l[e.labelKey]), 1)
54
+ F(w(e[l.labelKey]), 1)
50
55
  ]),
51
56
  _: 2
52
57
  }, 1032, ["label", "value", "disabled"]))), 128))
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, ref as m, watch as _, onMounted as h, resolveComponent as a, openBlock as l, createBlock as c, mergeProps as u, withCtx as d, createElementBlock as b, Fragment as v, renderList as y, createVNode as k, unref as K } from "vue";
2
- import { a as V } from "./index-D5eszhxL.js";
2
+ import { a as V } from "./index-CPKMl9aN.js";
3
3
  import "element-plus";
4
4
  const w = /* @__PURE__ */ i({
5
5
  __name: "Tabs",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, useModel as s, resolveComponent as p, unref as d, openBlock as t, createElementBlock as i, toDisplayString as c, createBlock as f, mergeProps as _ } from "vue";
2
- import { u as v } from "./index-D5eszhxL.js";
2
+ import { u as v } from "./index-CPKMl9aN.js";
3
3
  import "element-plus";
4
4
  const V = { key: 0 }, B = /* @__PURE__ */ u({
5
5
  __name: "TextArea",