asiaint-lowcode 3.0.14 → 3.0.15

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 (41) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +149 -149
  3. package/dist/index.d.ts +6 -8
  4. package/dist/lazy/Card-Zf2G8kYf.js +59 -0
  5. package/dist/lazy/CardListItem-BhjMSuhz.js +65 -0
  6. package/dist/lazy/{Cascader-CdcNT10v.js → Cascader-CnHSDWyV.js} +1 -1
  7. package/dist/lazy/{Checkbox-CJK0zpkP.js → Checkbox-CXppBe8g.js} +2 -2
  8. package/dist/lazy/{Collapse-R3V_-9Qy.js → Collapse-BE41OQT2.js} +1 -1
  9. package/dist/lazy/{Component-BZ3Z_bac.js → Component-BBsYU6_G.js} +1 -1
  10. package/dist/lazy/{Component-CiXpJ5wI.js → Component-Ba8iNL9C.js} +17 -16
  11. package/dist/lazy/{Component-DbJnyH6w.js → Component-CdICNWU8.js} +1 -1
  12. package/dist/lazy/Component-DNhFHg-n.js +34 -0
  13. package/dist/lazy/{Component-BUukjBGQ.js → Component-DlVpfzdU.js} +1 -1
  14. package/dist/lazy/{Component-CnZjiCoz.js → Component-Dxlups3B.js} +1 -1
  15. package/dist/lazy/Component-HCqPaHwQ.js +68 -0
  16. package/dist/lazy/CurdCard-Cw8TCbDK.js +84 -0
  17. package/dist/lazy/{Custom-DY63ABbq.js → Custom-BrgWRhc6.js} +1 -1
  18. package/dist/lazy/DatePicker-sqHk1tuj.js +25 -0
  19. package/dist/lazy/{FormList-Df9RL7s7.js → FormList-CmKlYEPk.js} +1 -1
  20. package/dist/lazy/Grid-Be8QkPg6.js +38 -0
  21. package/dist/lazy/{Inline-CdWL3Eo6.js → Inline-DeMq-gek.js} +1 -1
  22. package/dist/lazy/{JsonEdit-RsSvMWDj.js → JsonEdit-lfdDuCnd.js} +1 -1
  23. package/dist/lazy/{ObjGroup-BG6jqGua.js → ObjGroup-X5vjdZf5.js} +1 -1
  24. package/dist/lazy/{Radio-BIji-gnQ.js → Radio-B8tb9S4T.js} +12 -12
  25. package/dist/lazy/{SearchSelect-CYLY81h9.js → SearchSelect-CXsLOVIR.js} +27 -27
  26. package/dist/lazy/Select-BnTbhwxr.js +76 -0
  27. package/dist/lazy/Table-D8rK2otW.js +257 -0
  28. package/dist/lazy/{Tabs-B7G8h04a.js → Tabs-asDjGL8T.js} +1 -1
  29. package/dist/lazy/TextArea-DBUM3-2Q.js +25 -0
  30. package/dist/lazy/Wrapper-BUShpbI8.js +20 -0
  31. package/dist/lazy/{index-6mpfROTy.js → index-D4H-OWdh.js} +7438 -7296
  32. package/dist/lazy/{useSelect-C3fi7G2S.js → useSelect-gkAmBz5n.js} +1 -1
  33. package/dist/style.css +2 -2
  34. package/package.json +1 -1
  35. package/dist/lazy/Card-CaWqhmgk.js +0 -77
  36. package/dist/lazy/Component-C4dBecYq.js +0 -32
  37. package/dist/lazy/Component-DO63yabq.js +0 -66
  38. package/dist/lazy/DatePicker-gDYjpGax.js +0 -11
  39. package/dist/lazy/Grid-08EF9A-O.js +0 -30
  40. package/dist/lazy/Select-C1vTDJWg.js +0 -78
  41. 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
183
  disabled: boolean;
183
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;
@@ -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: {
@@ -447,7 +450,6 @@ export declare type FormSchema = {
447
450
  items: FormItemType[];
448
451
  rulePath?: string;
449
452
  hidden?: boolean;
450
- read?: boolean;
451
453
  dataModel?: string;
452
454
  };
453
455
 
@@ -542,7 +544,7 @@ export declare type Options = {
542
544
  translateFn?: (key: string, dataSource: Record<string, any>) => any;
543
545
  };
544
546
 
545
- export declare type PageMethods = InstanceType<typeof PageRender>['methodMap'];
547
+ export declare type PageMethods = Omit<InstanceType<typeof PageRender>, keyof ComponentPublicInstance | 'onDone' | 'onRefresh'>;
546
548
 
547
549
  export declare const PageRender: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, ReturnType<typeof __VLS_template_2>>;
548
550
 
@@ -685,11 +687,9 @@ declare type TableSchema = {
685
687
  key: string;
686
688
  rulePath: string;
687
689
  rowKey?: string;
688
- addForm?: FormRenderProps;
689
690
  showDynamicSearch?: boolean;
690
691
  multipleSelection?: boolean;
691
692
  highlightCurrentRow?: boolean;
692
- ['highlight-current-row']?: boolean;
693
693
  rowClick?: string;
694
694
  rowDbClick?: string;
695
695
  sizeChange?: string;
@@ -699,7 +699,6 @@ declare type TableSchema = {
699
699
  condition?: string | boolean;
700
700
  })[];
701
701
  columns: TableColumn[];
702
- form?: FormSchema;
703
702
  hidden?: boolean;
704
703
  hiddenPagination?: boolean;
705
704
  handleCurrentChange?: string;
@@ -808,7 +807,6 @@ export declare const useFormInstance: () => {
808
807
  }[];
809
808
  readonly rulePath?: string | undefined;
810
809
  readonly hidden?: boolean | undefined;
811
- readonly read?: boolean | undefined;
812
810
  readonly dataModel?: string | undefined;
813
811
  };
814
812
  readonly schemaContext?: {
@@ -0,0 +1,59 @@
1
+ import { defineComponent as c, ref as i, resolveComponent as p, openBlock as t, createBlock as m, mergeProps as u, withCtx as l, createElementVNode as a, createElementBlock as _, createVNode as o, 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-D4H-OWdh.js";
3
+ import "element-plus";
4
+ const y = { class: "card-header" }, N = { class: "card-btns" }, V = /* @__PURE__ */ c({
5
+ __name: "Card",
6
+ props: {
7
+ children: {},
8
+ collapsible: { type: Boolean },
9
+ header: {},
10
+ btns: {}
11
+ },
12
+ setup(g) {
13
+ const s = i(!1);
14
+ return (e, r) => {
15
+ const d = p("ElCard");
16
+ return t(), m(d, u(e.$attrs, {
17
+ class: "crm-card",
18
+ shadow: "never"
19
+ }), {
20
+ header: l(() => [
21
+ a("div", y, [
22
+ e.collapsible ? (t(), _("div", {
23
+ key: 0,
24
+ class: "icon-wrapper",
25
+ onClick: r[0] || (r[0] = (D) => s.value = !s.value)
26
+ }, [
27
+ o(n(B), {
28
+ name: "dropdown",
29
+ class: v(["dropdown-icon", { "is-collapsed": s.value }])
30
+ }, null, 8, ["class"])
31
+ ])) : f("", !0),
32
+ a("span", null, h(e.header), 1),
33
+ a("div", N, [
34
+ o(n(k), {
35
+ btns: e.btns || []
36
+ }, null, 8, ["btns"])
37
+ ])
38
+ ])
39
+ ]),
40
+ default: l(() => [
41
+ o(C, { name: "collapse" }, {
42
+ default: l(() => [
43
+ b(a("div", null, [
44
+ o(n(E), { list: e.children }, null, 8, ["list"])
45
+ ], 512), [
46
+ [w, !s.value]
47
+ ])
48
+ ]),
49
+ _: 1
50
+ })
51
+ ]),
52
+ _: 1
53
+ }, 16);
54
+ };
55
+ }
56
+ }), P = /* @__PURE__ */ $(V, [["__scopeId", "data-v-e92c2d71"]]);
57
+ export {
58
+ P as default
59
+ };
@@ -0,0 +1,65 @@
1
+ import { defineComponent as m, resolveComponent as u, openBlock as a, createElementBlock as i, createElementVNode as t, toDisplayString as l, normalizeStyle as p, createCommentVNode as h, Fragment as o, renderList as n, createVNode as c, withCtx as v } from "vue";
2
+ import { I as b, b as k } from "./index-D4H-OWdh.js";
3
+ const C = { class: "card-list-item" }, f = { class: "card-list-item-header" }, y = { class: "card-list-item-header-title" }, I = { class: "card-list-item-header-title__text" }, g = {
4
+ key: 0,
5
+ class: "card-list-item-header-title__sub"
6
+ }, B = { class: "card-list-item-header-btns" }, L = ["onClick"], N = { class: "card-list-item-content" }, T = { class: "card-list-item-content-item-label" }, V = { class: "card-list-item-content-item-value" }, E = /* @__PURE__ */ m({
7
+ __name: "CardListItem",
8
+ props: {
9
+ data: {}
10
+ },
11
+ setup(F) {
12
+ const d = (e) => {
13
+ };
14
+ return (e, S) => {
15
+ const r = u("el-tooltip");
16
+ return a(), i("div", C, [
17
+ t("div", f, [
18
+ t("div", y, [
19
+ t("div", I, l(e.data.title), 1),
20
+ e.data.subTitle ? (a(), i("div", g, [
21
+ t("span", {
22
+ class: "card-list-item-header-title__sub-icon",
23
+ style: p({ backgroundColor: e.data.subTitleColor })
24
+ }, null, 4),
25
+ t("span", null, l(e.data.subTitle), 1)
26
+ ])) : h("", !0)
27
+ ]),
28
+ t("div", B, [
29
+ (a(!0), i(o, null, n(e.data.btns, (s, _) => (a(), i("div", {
30
+ class: "card-list-item-header-btns-item",
31
+ key: _,
32
+ onClick: (w) => d()
33
+ }, [
34
+ c(r, {
35
+ class: "box-item",
36
+ effect: "dark",
37
+ content: s.label,
38
+ placement: "top"
39
+ }, {
40
+ default: v(() => [
41
+ c(b, {
42
+ name: s.icon
43
+ }, null, 8, ["name"])
44
+ ]),
45
+ _: 2
46
+ }, 1032, ["content"])
47
+ ], 8, L))), 128))
48
+ ])
49
+ ]),
50
+ t("div", N, [
51
+ (a(!0), i(o, null, n(e.data.content, (s) => (a(), i("div", {
52
+ class: "card-list-item-content-item",
53
+ key: s.label
54
+ }, [
55
+ t("div", T, l(s.label) + ":", 1),
56
+ t("div", V, l(s.value), 1)
57
+ ]))), 128))
58
+ ])
59
+ ]);
60
+ };
61
+ }
62
+ }), $ = /* @__PURE__ */ k(E, [["__scopeId", "data-v-eea06634"]]);
63
+ export {
64
+ $ as default
65
+ };
@@ -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-gkAmBz5n.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-D4H-OWdh.js";
4
+ import { u as E } from "./useSelect-gkAmBz5n.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-D4H-OWdh.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 $, 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-D4H-OWdh.js";
3
3
  import "element-plus";
4
4
  const Z = $({
5
5
  props: {
@@ -1,5 +1,5 @@
1
- import { defineComponent as g, inject as m, resolveComponent as u, openBlock as a, createBlock as _, mergeProps as L, withCtx as k, createElementVNode as i, toDisplayString as C, createElementBlock as f, Fragment as h, renderList as b, unref as x, withModifiers as $, createTextVNode as B, createCommentVNode as V } from "vue";
2
- import { f as w, b as E } from "./index-6mpfROTy.js";
1
+ import { defineComponent as g, inject as m, resolveComponent as u, openBlock as d, createBlock as _, mergeProps as L, withCtx as f, createElementVNode as i, toDisplayString as k, createElementBlock as C, Fragment as h, renderList as b, unref as x, withModifiers as $, createTextVNode as B, createCommentVNode as V } from "vue";
2
+ import { h as w, f as E, b as I } from "./index-D4H-OWdh.js";
3
3
  import "element-plus";
4
4
  const P = { class: "custom-tree-node" }, j = /* @__PURE__ */ g({
5
5
  __name: "Component",
@@ -9,50 +9,51 @@ const P = { class: "custom-tree-node" }, j = /* @__PURE__ */ g({
9
9
  btns: {}
10
10
  },
11
11
  setup(y) {
12
- const l = y, t = m("ruleModule", void 0), d = m("pageMethodMap", {}), N = (e, n, o) => {
12
+ const l = y, t = m("ruleModule", void 0), a = m("pageMethodMap", {}), N = (e, n, o) => {
13
13
  if (t)
14
14
  try {
15
- t[e](d, { node: n, data: o });
15
+ t[e](a, { node: n, data: o });
16
16
  } catch (c) {
17
17
  console.error(c);
18
18
  }
19
19
  }, M = (e, n) => {
20
20
  if (l.onNodeClick && t)
21
21
  try {
22
- t[l.onNodeClick](d, { node: e, data: n });
22
+ t[l.onNodeClick](a, { node: e, data: n });
23
23
  } catch (o) {
24
24
  console.error(o);
25
25
  }
26
26
  }, v = (e, n, o) => {
27
27
  if (l.onLoad && t)
28
28
  try {
29
- t[l.onLoad](d, { node: e, resolve: n, reject: o });
29
+ t[l.onLoad](a, { node: e, resolve: n, reject: o });
30
30
  } catch (c) {
31
31
  console.error(c);
32
32
  }
33
33
  };
34
34
  return (e, n) => {
35
35
  const o = u("el-button"), c = u("el-tree");
36
- return a(), _(c, L(e.$attrs, {
36
+ return d(), _(c, L(e.$attrs, {
37
37
  onNodeClick: M,
38
- load: v
38
+ load: v,
39
+ icon: w
39
40
  }), {
40
- default: k(({ node: s, data: p }) => [
41
+ default: f(({ node: s, data: p }) => [
41
42
  i("div", P, [
42
- i("span", null, C(s.label), 1),
43
+ i("span", null, k(s.label), 1),
43
44
  i("div", null, [
44
- (a(!0), f(h, null, b(e.btns, (r) => (a(), f(h, {
45
+ (d(!0), C(h, null, b(e.btns, (r) => (d(), C(h, {
45
46
  key: r.key
46
47
  }, [
47
- x(w)(r.hidden, { $node: s, $data: p }) ? V("", !0) : (a(), _(o, {
48
+ x(E)(r.hidden, { $node: s, $data: p }) ? V("", !0) : (d(), _(o, {
48
49
  key: 0,
49
50
  link: "",
50
51
  onClick: $((A) => N(r.onClick, s, p), ["stop"]),
51
52
  disabled: r.disabled,
52
53
  type: r.type
53
54
  }, {
54
- default: k(() => [
55
- B(C(r.text), 1)
55
+ default: f(() => [
56
+ B(k(r.text), 1)
56
57
  ]),
57
58
  _: 2
58
59
  }, 1032, ["onClick", "disabled", "type"]))
@@ -64,7 +65,7 @@ const P = { class: "custom-tree-node" }, j = /* @__PURE__ */ g({
64
65
  }, 16);
65
66
  };
66
67
  }
67
- }), S = /* @__PURE__ */ E(j, [["__scopeId", "data-v-6203e322"]]);
68
+ }), T = /* @__PURE__ */ I(j, [["__scopeId", "data-v-ff1dc461"]]);
68
69
  export {
69
- S as default
70
+ T as default
70
71
  };
@@ -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-D4H-OWdh.js";
4
4
  const $ = {
5
5
  key: 0,
6
6
  style: { "min-width": "300px" }
@@ -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-D4H-OWdh.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
+ };
@@ -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-D4H-OWdh.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-D4H-OWdh.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(",");
@@ -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,84 @@
1
+ import { defineComponent as k, inject as m, resolveComponent as f, openBlock as t, createElementBlock as l, createElementVNode as n, normalizeClass as y, createBlock as a, createCommentVNode as v, toDisplayString as I, Fragment as p, renderList as g, withCtx as b, createVNode as r, unref as u } from "vue";
2
+ import { I as s, B, a as M, b as V } from "./index-D4H-OWdh.js";
3
+ import "element-plus";
4
+ const $ = { class: "crm-curd-card" }, z = { class: "left-part" }, E = { class: "title" }, F = { class: "right-part" }, N = /* @__PURE__ */ k({
5
+ __name: "CurdCard",
6
+ props: {
7
+ children: {},
8
+ collapsible: { type: Boolean },
9
+ title: {},
10
+ btns: {},
11
+ type: {},
12
+ mainIcon: {},
13
+ extraIcons: {}
14
+ },
15
+ setup(j) {
16
+ const c = m("ruleModule", void 0), C = m("pageMethodMap", {}), i = (e) => {
17
+ if (e && c)
18
+ try {
19
+ c[e](C);
20
+ } catch (d) {
21
+ console.error(d);
22
+ }
23
+ };
24
+ return (e, d) => {
25
+ const _ = f("el-tooltip");
26
+ return t(), l("div", $, [
27
+ n("div", {
28
+ class: y(["card-header", {
29
+ inline: e.type === "inline",
30
+ mix: e.type === "mix",
31
+ default: e.type === "default"
32
+ }])
33
+ }, [
34
+ n("div", z, [
35
+ e.mainIcon ? (t(), a(s, {
36
+ key: 0,
37
+ class: "title-icon",
38
+ size: "large",
39
+ name: e.mainIcon.name,
40
+ color: e.mainIcon.color
41
+ }, null, 8, ["name", "color"])) : v("", !0),
42
+ n("span", E, I(e.title), 1),
43
+ (t(!0), l(p, null, g(e.extraIcons, (o) => (t(), l(p, {
44
+ key: o.name
45
+ }, [
46
+ o.tips ? (t(), a(_, {
47
+ key: 0,
48
+ content: o.tips,
49
+ placement: "right"
50
+ }, {
51
+ default: b(() => [
52
+ r(s, {
53
+ class: "extra-icon",
54
+ name: o.name,
55
+ color: o.color,
56
+ onClick: (h) => i(o.onClick)
57
+ }, null, 8, ["name", "color", "onClick"])
58
+ ]),
59
+ _: 2
60
+ }, 1032, ["content"])) : (t(), a(s, {
61
+ key: 1,
62
+ class: "extra-icon",
63
+ name: o.name,
64
+ color: o.color,
65
+ onClick: (h) => i(o.onClick)
66
+ }, null, 8, ["name", "color", "onClick"]))
67
+ ], 64))), 128))
68
+ ]),
69
+ n("div", F, [
70
+ r(u(B), {
71
+ btns: e.btns || []
72
+ }, null, 8, ["btns"])
73
+ ])
74
+ ], 2),
75
+ n("div", null, [
76
+ r(u(M), { list: e.children }, null, 8, ["list"])
77
+ ])
78
+ ]);
79
+ };
80
+ }
81
+ }), R = /* @__PURE__ */ V(N, [["__scopeId", "data-v-165cc4ed"]]);
82
+ export {
83
+ R as default
84
+ };
@@ -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-6mpfROTy.js";
2
+ import { b as i } from "./index-D4H-OWdh.js";
3
3
  const f = {
4
4
  key: 0,
5
5
  class: "empty"
@@ -0,0 +1,25 @@
1
+ import { defineComponent as d, mergeModels as s, useModel as m, resolveComponent as p, openBlock as t, createElementBlock as u, toDisplayString as i, createBlock as c, mergeProps as k } from "vue";
2
+ const _ = { key: 0 }, f = /* @__PURE__ */ d({
3
+ __name: "DatePicker",
4
+ props: /* @__PURE__ */ s({
5
+ read: { type: Boolean }
6
+ }, {
7
+ modelValue: {},
8
+ modelModifiers: {}
9
+ }),
10
+ emits: ["update:modelValue"],
11
+ setup(a) {
12
+ const e = m(a, "modelValue");
13
+ return (o, l) => {
14
+ const n = p("el-date-picker");
15
+ return o.read ? (t(), u("span", _, i(e.value), 1)) : (t(), c(n, k({ key: 1 }, o.$attrs, {
16
+ modelValue: e.value,
17
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => e.value = r),
18
+ style: { width: "100%" }
19
+ }), null, 16, ["modelValue"]));
20
+ };
21
+ }
22
+ });
23
+ export {
24
+ f as default
25
+ };
@@ -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-6mpfROTy.js";
2
+ import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-D4H-OWdh.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",
@@ -0,0 +1,38 @@
1
+ import { defineComponent as o, computed as a, openBlock as d, createBlock as e, unref as r, normalizeStyle as l } from "vue";
2
+ import { a as m } from "./index-D4H-OWdh.js";
3
+ import "element-plus";
4
+ const f = /* @__PURE__ */ o({
5
+ __name: "Grid",
6
+ props: {
7
+ children: {},
8
+ columns: {},
9
+ rowGap: {},
10
+ columnGap: {},
11
+ alignItems: {},
12
+ paddingTop: {},
13
+ paddingBottom: {},
14
+ paddingLeft: {},
15
+ paddingRight: {}
16
+ },
17
+ setup(t) {
18
+ const p = t, n = a(() => ({
19
+ display: "grid",
20
+ "grid-template-columns": `repeat(${p.columns}, 1fr)`,
21
+ "row-gap": p.rowGap + "px",
22
+ "column-gap": p.columnGap + "px",
23
+ "align-items": p.alignItems,
24
+ "padding-top": p.paddingTop + "px",
25
+ "padding-bottom": p.paddingBottom + "px",
26
+ "padding-left": p.paddingLeft + "px",
27
+ "padding-right": p.paddingRight + "px"
28
+ }));
29
+ return (i, g) => (d(), e(r(m), {
30
+ class: "form-item-grid",
31
+ style: l(n.value),
32
+ list: i.children
33
+ }, null, 8, ["style", "list"]));
34
+ }
35
+ });
36
+ export {
37
+ f as default
38
+ };
@@ -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-6mpfROTy.js";
2
+ import { a as c, b as f } from "./index-D4H-OWdh.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-6mpfROTy.js";
2
+ import { b as xt, g as Nt } from "./index-D4H-OWdh.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-6mpfROTy.js";
2
+ import { u as j, d as h, e as k } from "./index-D4H-OWdh.js";
3
3
  import "element-plus";
4
4
  const v = { class: "vfc-ObjGroup" }, B = {
5
5
  key: 1,