asiaint-lowcode 3.0.14 → 3.0.16

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 (44) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +144 -144
  3. package/dist/index.d.ts +14 -23
  4. package/dist/lazy/Card-DIBN4bRf.js +59 -0
  5. package/dist/lazy/CardList-DkwHDPNp.js +51 -0
  6. package/dist/lazy/CardListItem-DbXsd1_k.js +85 -0
  7. package/dist/lazy/{Cascader-CdcNT10v.js → Cascader-BZhmVWOO.js} +1 -1
  8. package/dist/lazy/{Checkbox-CJK0zpkP.js → Checkbox-B1TSYANT.js} +2 -2
  9. package/dist/lazy/{Collapse-R3V_-9Qy.js → Collapse-C8VWxgHp.js} +1 -1
  10. package/dist/lazy/{Component-BUukjBGQ.js → Component-CUa78qLF.js} +1 -1
  11. package/dist/lazy/{Component-CnZjiCoz.js → Component-Cmw2Jlj3.js} +1 -1
  12. package/dist/lazy/{Component-BZ3Z_bac.js → Component-CqAhbbGQ.js} +1 -1
  13. package/dist/lazy/Component-D-Eh8B-j.js +89 -0
  14. package/dist/lazy/{Component-DbJnyH6w.js → Component-DUuuNUxC.js} +1 -1
  15. package/dist/lazy/Component-HCqPaHwQ.js +68 -0
  16. package/dist/lazy/Component-NvoLQyab.js +34 -0
  17. package/dist/lazy/CurdCard-BSgF68nl.js +85 -0
  18. package/dist/lazy/{Custom-DY63ABbq.js → Custom-zNcfkvdD.js} +1 -1
  19. package/dist/lazy/DatePicker-sqHk1tuj.js +25 -0
  20. package/dist/lazy/{FormList-Df9RL7s7.js → FormList-ChQYp1l-.js} +1 -1
  21. package/dist/lazy/Grid-GCB39VOw.js +38 -0
  22. package/dist/lazy/{Inline-CdWL3Eo6.js → Inline-D1ZMiudr.js} +1 -1
  23. package/dist/lazy/{JsonEdit-RsSvMWDj.js → JsonEdit-BK25HRpb.js} +1 -1
  24. package/dist/lazy/{ObjGroup-BG6jqGua.js → ObjGroup-DLXLO2wj.js} +1 -1
  25. package/dist/lazy/OfferDetails-CKwTw0z4.js +95 -0
  26. package/dist/lazy/{Radio-BIji-gnQ.js → Radio-DoOsjG7K.js} +12 -12
  27. package/dist/lazy/{SearchSelect-CYLY81h9.js → SearchSelect-CktfCSrM.js} +27 -27
  28. package/dist/lazy/Select-DgAQhalx.js +76 -0
  29. package/dist/lazy/Table-C3PlF9J4.js +273 -0
  30. package/dist/lazy/{Tabs-B7G8h04a.js → Tabs-C7ZXJbOT.js} +1 -1
  31. package/dist/lazy/TextArea-DBUM3-2Q.js +25 -0
  32. package/dist/lazy/Wrapper-DIpJqF_p.js +22 -0
  33. package/dist/lazy/{index-6mpfROTy.js → index-BvOUGCFQ.js} +7690 -7491
  34. package/dist/lazy/{useSelect-C3fi7G2S.js → useSelect-BqqanrGo.js} +1 -1
  35. package/dist/style.css +2 -2
  36. package/package.json +1 -1
  37. package/dist/lazy/Card-CaWqhmgk.js +0 -77
  38. package/dist/lazy/Component-C4dBecYq.js +0 -32
  39. package/dist/lazy/Component-CiXpJ5wI.js +0 -70
  40. package/dist/lazy/Component-DO63yabq.js +0 -66
  41. package/dist/lazy/DatePicker-gDYjpGax.js +0 -11
  42. package/dist/lazy/Grid-08EF9A-O.js +0 -30
  43. package/dist/lazy/Select-C1vTDJWg.js +0 -78
  44. package/dist/lazy/TextArea-C0PEa3Es.js +0 -25
package/dist/index.d.ts CHANGED
@@ -113,7 +113,6 @@ ruleMap: Record<string, any>;
113
113
  pageUrl?: string;
114
114
  pageParams?: any;
115
115
  }>>, {
116
- methodMap: {
117
116
  findRef: <T extends keyof RefTypeMap>(key: string) => RefType<T>;
118
117
  setFormDisabled: (key: string, disabled: boolean) => void;
119
118
  validate: (keys: string[] | string) => Promise<boolean | undefined>;
@@ -131,7 +130,7 @@ setPageParams: (params: any) => void;
131
130
  setGlobalParams: (params: any) => void;
132
131
  getGlobalParams: () => any;
133
132
  setBtnState: setBtnStateFn;
134
- };
133
+ setReadMode: (key: string, readMode: boolean) => void;
135
134
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
136
135
  done: (...args: any[]) => void;
137
136
  refresh: (...args: any[]) => void;
@@ -178,10 +177,13 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
178
177
  declare type BtnType = {
179
178
  key: string;
180
179
  text: string;
180
+ isTextBtn?: boolean;
181
+ isLinkBtn?: boolean;
181
182
  onClick: string;
182
- disabled: boolean;
183
- hidden: boolean;
183
+ disabled?: boolean;
184
+ hidden?: boolean;
184
185
  type?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
186
+ color?: string;
185
187
  icon?: {
186
188
  name: string;
187
189
  color?: string;
@@ -232,7 +234,6 @@ readonly tabPosition: EpPropMergeType<StringConstructor, "right" | "top" | "left
232
234
  readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
233
235
  readonly modelValue?: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
234
236
  } | undefined;
235
- readonly mixMode?: boolean | undefined;
236
237
  readonly hidden?: boolean | undefined;
237
238
  readonly content: readonly {
238
239
  readonly label: string;
@@ -240,6 +241,7 @@ readonly url: string;
240
241
  readonly disabled?: boolean | undefined;
241
242
  readonly closable?: boolean | undefined;
242
243
  readonly pageParams?: any;
244
+ readonly mixMode?: boolean | undefined;
243
245
  }[];
244
246
  readonly btns: readonly {
245
247
  readonly key: string;
@@ -250,6 +252,7 @@ readonly hidden: boolean;
250
252
  }[];
251
253
  };
252
254
  rootRef: Readonly<unknown>;
255
+ findRef: (url: string) => PageMethods;
253
256
  type: string;
254
257
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
255
258
  schema: {
@@ -270,10 +273,6 @@ schema: {
270
273
  required: true;
271
274
  type: PropType<InfoCardSchema>;
272
275
  };
273
- pageRulePath: {
274
- type: PropType<string>;
275
- required: true;
276
- };
277
276
  }>, {
278
277
  type: string;
279
278
  schema: ModelRef<InfoCardSchema, string, InfoCardSchema, InfoCardSchema>;
@@ -282,10 +281,6 @@ schema: {
282
281
  required: true;
283
282
  type: PropType<InfoCardSchema>;
284
283
  };
285
- pageRulePath: {
286
- type: PropType<string>;
287
- required: true;
288
- };
289
284
  }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
290
285
 
291
286
  declare const _default_4: DefineComponent<ExtractPropTypes< {
@@ -447,7 +442,6 @@ export declare type FormSchema = {
447
442
  items: FormItemType[];
448
443
  rulePath?: string;
449
444
  hidden?: boolean;
450
- read?: boolean;
451
445
  dataModel?: string;
452
446
  };
453
447
 
@@ -464,9 +458,9 @@ declare type InfoCardSchema = {
464
458
  value: string;
465
459
  color?: string;
466
460
  }[];
467
- customerInfo: {
468
- name: string;
469
- id: string;
461
+ header: {
462
+ title: string;
463
+ subTitle: string;
470
464
  avatar: string;
471
465
  };
472
466
  };
@@ -542,7 +536,7 @@ export declare type Options = {
542
536
  translateFn?: (key: string, dataSource: Record<string, any>) => any;
543
537
  };
544
538
 
545
- export declare type PageMethods = InstanceType<typeof PageRender>['methodMap'];
539
+ export declare type PageMethods = Omit<InstanceType<typeof PageRender>, keyof ComponentPublicInstance | 'onDone' | 'onRefresh'>;
546
540
 
547
541
  export declare const PageRender: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, ReturnType<typeof __VLS_template_2>>;
548
542
 
@@ -685,11 +679,10 @@ declare type TableSchema = {
685
679
  key: string;
686
680
  rulePath: string;
687
681
  rowKey?: string;
688
- addForm?: FormRenderProps;
689
682
  showDynamicSearch?: boolean;
690
683
  multipleSelection?: boolean;
691
684
  highlightCurrentRow?: boolean;
692
- ['highlight-current-row']?: boolean;
685
+ stripe?: boolean;
693
686
  rowClick?: string;
694
687
  rowDbClick?: string;
695
688
  sizeChange?: string;
@@ -699,7 +692,6 @@ declare type TableSchema = {
699
692
  condition?: string | boolean;
700
693
  })[];
701
694
  columns: TableColumn[];
702
- form?: FormSchema;
703
695
  hidden?: boolean;
704
696
  hiddenPagination?: boolean;
705
697
  handleCurrentChange?: string;
@@ -713,7 +705,6 @@ declare type TabsSchema = {
713
705
  onMounted?: string;
714
706
  onActivated?: string;
715
707
  tabProps?: TabsProps;
716
- mixMode?: boolean;
717
708
  hidden?: boolean;
718
709
  content: {
719
710
  label: string;
@@ -721,6 +712,7 @@ declare type TabsSchema = {
721
712
  disabled?: boolean;
722
713
  closable?: boolean;
723
714
  pageParams?: any;
715
+ mixMode?: boolean;
724
716
  }[];
725
717
  btns: Array<{
726
718
  key: string;
@@ -808,7 +800,6 @@ export declare const useFormInstance: () => {
808
800
  }[];
809
801
  readonly rulePath?: string | undefined;
810
802
  readonly hidden?: boolean | undefined;
811
- readonly read?: boolean | undefined;
812
803
  readonly dataModel?: string | undefined;
813
804
  };
814
805
  readonly schemaContext?: {
@@ -0,0 +1,59 @@
1
+ import { defineComponent as d, ref as i, resolveComponent as p, openBlock as t, createBlock as m, mergeProps as u, withCtx as o, createElementVNode as s, createElementBlock as _, createVNode as l, unref as n, normalizeClass as v, createCommentVNode as f, toDisplayString as h, Transition as C, withDirectives as b, vShow as w } from "vue";
2
+ import { _ as B, B as k, a as E, b as $ } from "./index-BvOUGCFQ.js";
3
+ import "element-plus";
4
+ const y = { class: "card-header" }, N = { class: "card-btns" }, V = /* @__PURE__ */ d({
5
+ __name: "Card",
6
+ props: {
7
+ children: {},
8
+ collapsible: { type: Boolean },
9
+ header: {},
10
+ btns: {}
11
+ },
12
+ setup(g) {
13
+ const e = i(!1);
14
+ return (a, r) => {
15
+ const c = p("ElCard");
16
+ return t(), m(c, u(a.$attrs, {
17
+ class: ["crm-card", { collapsed: e.value }],
18
+ shadow: "never"
19
+ }), {
20
+ header: o(() => [
21
+ s("div", y, [
22
+ a.collapsible ? (t(), _("div", {
23
+ key: 0,
24
+ class: "icon-wrapper",
25
+ onClick: r[0] || (r[0] = (D) => e.value = !e.value)
26
+ }, [
27
+ l(n(B), {
28
+ name: "dropdown",
29
+ class: v(["dropdown-icon", { "is-collapsed": e.value }])
30
+ }, null, 8, ["class"])
31
+ ])) : f("", !0),
32
+ s("span", null, h(a.header), 1),
33
+ s("div", N, [
34
+ l(n(k), {
35
+ btns: a.btns || []
36
+ }, null, 8, ["btns"])
37
+ ])
38
+ ])
39
+ ]),
40
+ default: o(() => [
41
+ l(C, { name: "collapse" }, {
42
+ default: o(() => [
43
+ b(s("div", null, [
44
+ l(n(E), { list: a.children }, null, 8, ["list"])
45
+ ], 512), [
46
+ [w, !e.value]
47
+ ])
48
+ ]),
49
+ _: 1
50
+ })
51
+ ]),
52
+ _: 1
53
+ }, 16, ["class"]);
54
+ };
55
+ }
56
+ }), P = /* @__PURE__ */ $(V, [["__scopeId", "data-v-a2ac1e9f"]]);
57
+ export {
58
+ P as default
59
+ };
@@ -0,0 +1,51 @@
1
+ import { defineComponent as m, inject as s, openBlock as t, createElementBlock as o, Fragment as n, createElementVNode as r, normalizeStyle as f, renderList as C, createVNode as g, toDisplayString as k } from "vue";
2
+ import { C as b } from "./CardListItem-DbXsd1_k.js";
3
+ import { b as M } from "./index-BvOUGCFQ.js";
4
+ const v = /* @__PURE__ */ m({
5
+ __name: "CardList",
6
+ props: {
7
+ data: {},
8
+ btns: {},
9
+ columns: { default: 3 },
10
+ gap: { default: 16 },
11
+ footerText: {},
12
+ onClickFooter: {}
13
+ },
14
+ setup(l) {
15
+ const a = l, c = s("ruleModule", void 0), d = s("pageMethodMap", {}), i = () => {
16
+ try {
17
+ c[a.onClickFooter](d, a.data);
18
+ } catch (e) {
19
+ console.error(e);
20
+ }
21
+ };
22
+ return (e, y) => (t(), o(n, null, [
23
+ r("div", {
24
+ class: "card-list",
25
+ style: f({
26
+ "--columns": e.columns,
27
+ "--gap": e.gap + "px"
28
+ })
29
+ }, [
30
+ (t(!0), o(n, null, C(e.data, (p, u) => (t(), o("div", {
31
+ class: "card-list-item",
32
+ key: u
33
+ }, [
34
+ g(b, {
35
+ data: p,
36
+ btns: e.btns
37
+ }, null, 8, ["data", "btns"])
38
+ ]))), 128))
39
+ ], 4),
40
+ r("div", {
41
+ class: "card-list-footer",
42
+ onClick: i
43
+ }, [
44
+ r("span", null, k(e.footerText), 1)
45
+ ])
46
+ ], 64));
47
+ }
48
+ }), L = /* @__PURE__ */ M(v, [["__scopeId", "data-v-4eb91dc5"]]);
49
+ export {
50
+ L as default
51
+ };
@@ -0,0 +1,85 @@
1
+ import { defineComponent as y, inject as c, resolveComponent as M, openBlock as s, createElementBlock as a, createElementVNode as e, normalizeStyle as r, toDisplayString as l, createCommentVNode as d, Fragment as m, renderList as _, createVNode as i, withCtx as g } from "vue";
2
+ import { I as p, b as I } from "./index-BvOUGCFQ.js";
3
+ const w = { class: "card-list-item" }, B = { class: "card-list-item-header" }, L = { class: "card-list-item-header-title" }, N = {
4
+ key: 0,
5
+ class: "card-list-item-header-title__sub"
6
+ }, T = { class: "card-list-item-header-btns" }, V = ["onClick"], E = { class: "card-list-item-content" }, F = { class: "card-list-item-content-item-label" }, S = { class: "card-list-item-content-item-value" }, j = {
7
+ key: 0,
8
+ class: "card-list-item-footer"
9
+ }, z = { class: "card-list-item-footer-text" }, D = /* @__PURE__ */ y({
10
+ __name: "CardListItem",
11
+ props: {
12
+ data: {},
13
+ btns: {}
14
+ },
15
+ setup(u) {
16
+ const h = u, v = c("ruleModule", void 0), b = c("pageMethodMap", {}), f = (t) => {
17
+ try {
18
+ v[t.onClick](b, h.data);
19
+ } catch (n) {
20
+ console.error(n);
21
+ }
22
+ };
23
+ return (t, n) => {
24
+ const C = M("el-tooltip");
25
+ return s(), a("div", w, [
26
+ e("div", B, [
27
+ e("div", L, [
28
+ e("div", {
29
+ class: "card-list-item-header-title__text",
30
+ style: r({ color: t.data.titleColor })
31
+ }, l(t.data.title), 5),
32
+ t.data.subTitle ? (s(), a("div", N, [
33
+ e("span", {
34
+ class: "card-list-item-header-title__sub-icon",
35
+ style: r({ backgroundColor: t.data.subTitleColor })
36
+ }, null, 4),
37
+ e("span", null, l(t.data.subTitle), 1)
38
+ ])) : d("", !0)
39
+ ]),
40
+ e("div", T, [
41
+ (s(!0), a(m, null, _(t.btns, (o, k) => (s(), a("div", {
42
+ class: "card-list-item-header-btns-item",
43
+ key: k,
44
+ onClick: ($) => f(o)
45
+ }, [
46
+ i(C, {
47
+ class: "box-item",
48
+ effect: "dark",
49
+ content: o.label,
50
+ placement: "top",
51
+ "popper-class": "low-tsp",
52
+ "show-after": 300
53
+ }, {
54
+ default: g(() => [
55
+ i(p, {
56
+ name: o.icon
57
+ }, null, 8, ["name"])
58
+ ]),
59
+ _: 2
60
+ }, 1032, ["content"])
61
+ ], 8, V))), 128))
62
+ ])
63
+ ]),
64
+ e("div", E, [
65
+ (s(!0), a(m, null, _(t.data.content, (o) => (s(), a("div", {
66
+ class: "card-list-item-content-item",
67
+ key: o.label
68
+ }, [
69
+ e("div", F, l(o.label) + ":", 1),
70
+ e("div", S, l(o.value), 1)
71
+ ]))), 128))
72
+ ]),
73
+ t.data.footer ? (s(), a("div", j, [
74
+ i(p, {
75
+ name: t.data.footer.icon
76
+ }, null, 8, ["name"]),
77
+ e("span", z, l(t.data.footer.text), 1)
78
+ ])) : d("", !0)
79
+ ]);
80
+ };
81
+ }
82
+ }), G = /* @__PURE__ */ I(D, [["__scopeId", "data-v-3cbc388d"]]);
83
+ export {
84
+ G as C
85
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, mergeModels as g, useModel as v, inject as d, resolveComponent as M, openBlock as y, createBlock as C, mergeProps as h, unref as r } from "vue";
2
2
  import "element-plus";
3
- import { u as V } from "./useSelect-C3fi7G2S.js";
3
+ import { u as V } from "./useSelect-BqqanrGo.js";
4
4
  const k = /* @__PURE__ */ f({
5
5
  __name: "Cascader",
6
6
  props: /* @__PURE__ */ g({
@@ -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-6mpfROTy.js";
4
- import { u as E } from "./useSelect-C3fi7G2S.js";
3
+ import { u as j } from "./index-BvOUGCFQ.js";
4
+ import { u as E } from "./useSelect-BqqanrGo.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-6mpfROTy.js";
2
+ import { a as y } from "./index-BvOUGCFQ.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,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-6mpfROTy.js";
2
+ import { u as V } from "./index-BvOUGCFQ.js";
3
3
  import "element-plus";
4
4
  const B = /* @__PURE__ */ d({
5
5
  __name: "Component",
@@ -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-6mpfROTy.js";
5
+ import { u as b, b as x } from "./index-BvOUGCFQ.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 $, 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-6mpfROTy.js";
2
+ import { b as H, u as K, c as Q } from "./index-BvOUGCFQ.js";
3
3
  import "element-plus";
4
4
  const Z = $({
5
5
  props: {
@@ -0,0 +1,89 @@
1
+ import { defineComponent as $, inject as h, ref as b, resolveComponent as C, openBlock as c, createBlock as m, mergeProps as B, withCtx as f, createElementVNode as a, toDisplayString as y, createElementBlock as _, createCommentVNode as k, Fragment as v, renderList as I, unref as P, withModifiers as V, createTextVNode as w } from "vue";
2
+ import { f as E, I as F, b as j } from "./index-BvOUGCFQ.js";
3
+ import "element-plus";
4
+ const A = { class: "custom-tree-node" }, D = { class: "tree-node-text" }, K = { class: "tree-node-label" }, R = {
5
+ key: 0,
6
+ class: "tree-node-present"
7
+ }, S = /* @__PURE__ */ $({
8
+ __name: "Component",
9
+ props: {
10
+ onNodeClick: {},
11
+ onLoad: {},
12
+ btns: {}
13
+ },
14
+ setup(N) {
15
+ const l = N, r = h("ruleModule", void 0), d = h("pageMethodMap", {}), i = b(), g = (e, t) => {
16
+ i.value = e.id;
17
+ }, M = (e, t, n) => {
18
+ if (r)
19
+ try {
20
+ r[e](d, { node: t, data: n });
21
+ } catch (s) {
22
+ console.error(s);
23
+ }
24
+ }, x = (e, t) => {
25
+ if (l.onNodeClick && r)
26
+ try {
27
+ r[l.onNodeClick](d, { node: e, data: t });
28
+ } catch (n) {
29
+ console.error(n);
30
+ }
31
+ }, L = (e, t, n) => {
32
+ if (l.onLoad && r)
33
+ try {
34
+ r[l.onLoad](d, { node: e, resolve: t, reject: n });
35
+ } catch (s) {
36
+ console.error(s);
37
+ }
38
+ };
39
+ return (e, t) => {
40
+ const n = C("el-button"), s = C("el-tree");
41
+ return c(), m(s, B(e.$attrs, {
42
+ onNodeClick: x,
43
+ load: L,
44
+ ref: "treeRef",
45
+ class: "crm-tree",
46
+ indent: 32,
47
+ "current-node-key": i.value,
48
+ onCurrentChange: g
49
+ }), {
50
+ default: f(({ node: p, data: u }) => [
51
+ a("div", A, [
52
+ a("div", D, [
53
+ a("span", K, y(p.label), 1),
54
+ u.id === i.value ? (c(), _("div", R, "Present")) : k("", !0)
55
+ ]),
56
+ a("div", null, [
57
+ (c(!0), _(v, null, I(e.btns, (o) => (c(), _(v, {
58
+ key: o.key
59
+ }, [
60
+ P(E)(o.hidden, { $node: p, $data: u }) ? k("", !0) : (c(), m(n, {
61
+ key: 0,
62
+ link: "",
63
+ onClick: V((T) => M(o.onClick, p, u), ["stop"]),
64
+ disabled: o.disabled,
65
+ type: o.type
66
+ }, {
67
+ default: f(() => [
68
+ o.icon ? (c(), m(F, {
69
+ key: 0,
70
+ name: o.icon.name,
71
+ color: o.icon.color,
72
+ class: "btn-icon"
73
+ }, null, 8, ["name", "color"])) : k("", !0),
74
+ w(" " + y(o.text), 1)
75
+ ]),
76
+ _: 2
77
+ }, 1032, ["onClick", "disabled", "type"]))
78
+ ], 64))), 128))
79
+ ])
80
+ ])
81
+ ]),
82
+ _: 1
83
+ }, 16, ["current-node-key"]);
84
+ };
85
+ }
86
+ }), H = /* @__PURE__ */ j(S, [["__scopeId", "data-v-ec89a37a"]]);
87
+ export {
88
+ H as default
89
+ };
@@ -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-6mpfROTy.js";
3
+ import { _ as f } from "./index-BvOUGCFQ.js";
4
4
  const $ = {
5
5
  key: 0,
6
6
  style: { "min-width": "300px" }
@@ -0,0 +1,68 @@
1
+ import { defineComponent as V, mergeModels as y, useModel as _, ref as b, computed as k, watch as g, onMounted as h, resolveComponent as d, openBlock as u, createElementBlock as p, toDisplayString as w, createBlock as m, mergeProps as B, withCtx as c, createVNode as C, normalizeStyle as M, Fragment as I, renderList as P } from "vue";
2
+ const A = { key: 0 }, U = /* @__PURE__ */ V({
3
+ __name: "Component",
4
+ props: /* @__PURE__ */ y({
5
+ selectPosition: { default: "append" },
6
+ selectWidth: { default: 70 },
7
+ selectInitialValue: {},
8
+ read: { type: Boolean },
9
+ options: { default: () => [] },
10
+ parse: {}
11
+ }, {
12
+ modelValue: {
13
+ default: ""
14
+ },
15
+ modelModifiers: {}
16
+ }),
17
+ emits: ["update:modelValue"],
18
+ setup(i) {
19
+ const r = i, t = _(i, "modelValue"), o = b(""), s = k({
20
+ get() {
21
+ var e;
22
+ return (e = t.value) == null ? void 0 : e.replaceAll(o.value, "");
23
+ },
24
+ set(e) {
25
+ e ? t.value = e + o.value : t.value = e;
26
+ }
27
+ });
28
+ return g(o, (e, a) => {
29
+ var n;
30
+ t.value && (t.value = ((n = t.value) == null ? void 0 : n.replaceAll(a, "")) + e);
31
+ }), h(() => {
32
+ r.selectInitialValue && (o.value = r.selectInitialValue);
33
+ }), (e, a) => {
34
+ const n = d("el-option"), v = d("el-select"), f = d("el-input");
35
+ return e.read ? (u(), p("span", A, w(s.value || "--"), 1)) : (u(), m(f, B({
36
+ key: 1,
37
+ "show-word-limit": "",
38
+ autocomplete: "off"
39
+ }, e.$attrs, {
40
+ modelValue: s.value,
41
+ "onUpdate:modelValue": a[1] || (a[1] = (l) => s.value = l)
42
+ }), {
43
+ [e.selectPosition]: c(() => [
44
+ C(v, {
45
+ modelValue: o.value,
46
+ "onUpdate:modelValue": a[0] || (a[0] = (l) => o.value = l),
47
+ style: M({ width: e.selectWidth + "px" }),
48
+ placeholder: " "
49
+ }, {
50
+ default: c(() => [
51
+ (u(!0), p(I, null, P(e.options, (l) => (u(), m(n, {
52
+ label: l.label,
53
+ value: l.value,
54
+ disabled: l.disabled,
55
+ key: l.value
56
+ }, null, 8, ["label", "value", "disabled"]))), 128))
57
+ ]),
58
+ _: 1
59
+ }, 8, ["modelValue", "style"])
60
+ ]),
61
+ _: 2
62
+ }, 1040, ["modelValue"]));
63
+ };
64
+ }
65
+ });
66
+ export {
67
+ U as default
68
+ };
@@ -0,0 +1,34 @@
1
+ import { defineComponent as s, mergeModels as u, useModel as p, resolveComponent as d, openBlock as t, createElementBlock as i, toDisplayString as c, createBlock as y, mergeProps as f } from "vue";
2
+ import { u as v } from "./index-BvOUGCFQ.js";
3
+ import "element-plus";
4
+ const _ = { key: 0 }, K = /* @__PURE__ */ s({
5
+ __name: "Component",
6
+ props: /* @__PURE__ */ u({
7
+ min: {},
8
+ read: { type: Boolean }
9
+ }, {
10
+ modelValue: {},
11
+ modelModifiers: {}
12
+ }),
13
+ emits: ["update:modelValue"],
14
+ setup(l) {
15
+ const o = p(l, "modelValue");
16
+ v();
17
+ const m = (e) => {
18
+ ["E", "e", "+", "-"].includes(e.key) && e.preventDefault();
19
+ };
20
+ return (e, n) => {
21
+ const r = d("el-input-number");
22
+ return e.read ? (t(), i("span", _, c(typeof o.value == "number" ? o.value : "--"), 1)) : (t(), y(r, f({ key: 1 }, e.$attrs, {
23
+ modelValue: o.value,
24
+ "onUpdate:modelValue": n[0] || (n[0] = (a) => o.value = a),
25
+ style: { width: "100%" },
26
+ min: e.min || 0,
27
+ onKeydown: m
28
+ }), null, 16, ["modelValue", "min"]));
29
+ };
30
+ }
31
+ });
32
+ export {
33
+ K as default
34
+ };