asiaint-lowcode 3.0.73 → 3.0.75

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 (37) hide show
  1. package/README.md +31 -31
  2. package/dist/asiaint-lowcode.js +3 -3
  3. package/dist/asiaint-lowcode.umd.cjs +168 -168
  4. package/dist/index.d.ts +125 -15
  5. package/dist/lazy/{Card-BSLPnj0t.js → Card-BL132uF0.js} +2 -2
  6. package/dist/lazy/{Cascader-DbhMXzZV.js → Cascader-BNajnGXt.js} +1 -1
  7. package/dist/lazy/{Checkbox-CugjGjO9.js → Checkbox-CB78q85K.js} +2 -2
  8. package/dist/lazy/{Collapse-vmX3PUGx.js → Collapse-BT3Z_TeL.js} +1 -1
  9. package/dist/lazy/{Component-0yrWAeoC.js → Component-BNOSHXwG.js} +2 -2
  10. package/dist/lazy/{Component-B0QFEwWr.js → Component-CVbGsSj6.js} +13 -13
  11. package/dist/lazy/{Component-BG11YH1L.js → Component-Cwe8AZcy.js} +1 -1
  12. package/dist/lazy/{Component-OVhYSWDw.js → Component-DdZRdqp7.js} +1 -1
  13. package/dist/lazy/{Component-DYYKdz9f.js → Component-Dl3PXGm5.js} +1 -1
  14. package/dist/lazy/{Component-DmRET3rE.js → Component-OAYlB5bp.js} +2 -2
  15. package/dist/lazy/{CurdCard-DYgLc5Ux.js → CurdCard-BrBulKvO.js} +20 -19
  16. package/dist/lazy/{Custom-D7UjpkOW.js → Custom-BliwSKbp.js} +7 -7
  17. package/dist/lazy/DragList-Buw-1bQc.js +317 -0
  18. package/dist/lazy/{FormList-D40CRggh.js → FormList-DTdAAtrD.js} +1 -1
  19. package/dist/lazy/{Grid-SH-t5UKW.js → Grid-DUAIHsOo.js} +10 -9
  20. package/dist/lazy/Inline-BkAIXUU0.js +35 -0
  21. package/dist/lazy/{JsonEdit-DYvUy8q6.js → JsonEdit-Bx4jK-K8.js} +3 -3
  22. package/dist/lazy/{LogList-D0JGptci.js → LogList-DHk7eKeC.js} +7 -7
  23. package/dist/lazy/{ObjGroup-DHQJdcpe.js → ObjGroup-DXJerzS2.js} +1 -1
  24. package/dist/lazy/{OfferDetails-DSgaH1Gs.js → OfferDetails-Fs5y40J0.js} +24 -24
  25. package/dist/lazy/{Progress-CogcTWsd.js → Progress-pRaKkFkw.js} +5 -5
  26. package/dist/lazy/{Radio-9tV-vmZH.js → Radio-C9Z-5npS.js} +23 -22
  27. package/dist/lazy/{SearchSelect-DLgYdGsW.js → SearchSelect-BU-_DOLr.js} +11 -11
  28. package/dist/lazy/{Select-BfKuShpB.js → Select-DJ6Ky5mO.js} +2 -2
  29. package/dist/lazy/{Table-BeIhsi28.js → Table-BlBWSnrv.js} +2 -2
  30. package/dist/lazy/{Tabs-DHYb7Jot.js → Tabs-meM_0XCE.js} +1 -1
  31. package/dist/lazy/{Wrapper-CfglrkCe.js → Wrapper-DlG2aZRe.js} +5 -5
  32. package/dist/lazy/{index-COoXTzR3.js → index-2Lph8ou3.js} +12971 -8926
  33. package/dist/lazy/{useSelect-v7E0loNK.js → useSelect-CmUZu1rN.js} +1 -1
  34. package/dist/style.css +2 -2
  35. package/global.d.ts +10 -10
  36. package/package.json +36 -36
  37. package/dist/lazy/Inline-BeKoTPJ_.js +0 -32
package/dist/index.d.ts CHANGED
@@ -1,12 +1,10 @@
1
1
  import { App } from 'vue';
2
- import { Awaitable } from 'element-plus/es/utils/typescript.mjs';
3
2
  import { Component } from 'vue';
4
3
  import { ComponentOptionsMixin } from 'vue';
5
4
  import { ComponentProvideOptions } from 'vue';
6
5
  import { ComponentPublicInstance } from 'vue';
7
6
  import { DeepReadonly } from 'vue';
8
7
  import { DefineComponent } from 'vue';
9
- import { EpPropMergeType } from 'element-plus/es/utils/index.mjs';
10
8
  import { ExtractPropTypes } from 'vue';
11
9
  import { FormInstance as FormInstance_2 } from 'packages/types';
12
10
  import { FormValidationResult } from 'element-plus';
@@ -14,6 +12,7 @@ import { InjectionKey } from 'vue';
14
12
  import { ModelRef } from 'vue';
15
13
  import { PropType } from 'vue';
16
14
  import { PublicProps } from 'vue';
15
+ import { Ref } from 'vue';
17
16
  import { TabPaneName } from 'element-plus';
18
17
  import { TabsProps } from 'element-plus';
19
18
  import { VNode } from 'vue';
@@ -67,7 +66,7 @@ getFieldValue: (key: string) => any;
67
66
  refreshDynamicListBox: (key: string) => void;
68
67
  setHidden: (value: boolean) => void;
69
68
  rootRef: unknown;
70
- type: string;
69
+ type: "form";
71
70
  schema: FormSchema;
72
71
  schemaContext: Record<string, any>;
73
72
  design: boolean;
@@ -116,7 +115,7 @@ ruleMap: Record<string, any>;
116
115
  pageUrl?: string;
117
116
  pageParams?: any;
118
117
  }>>, {
119
- findRef: <T extends keyof RefTypeMap>(key: string) => RefType<T>;
118
+ findRef: <T extends keyof FindRefTypeMap>(key: string) => FindRefType<T>;
120
119
  setFormDisabled: (key: string, disabled: boolean) => void;
121
120
  validate: (keys: string[] | string) => Promise<boolean | undefined>;
122
121
  getData: (keys?: string[] | string) => any;
@@ -179,16 +178,20 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
179
178
  };
180
179
 
181
180
  declare type BtnType = {
181
+ isGroup?: boolean;
182
+ children?: BtnType[];
183
+ tooltip?: string;
182
184
  key: string;
183
- text: string;
185
+ text?: string;
184
186
  isTextBtn?: boolean;
185
187
  isLinkBtn?: boolean;
186
188
  isPlainBtn?: boolean;
187
- onClick: string;
189
+ onClick?: string;
188
190
  disabled?: boolean;
189
191
  hidden?: boolean;
190
192
  type?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
191
193
  color?: string;
194
+ orange?: boolean;
192
195
  icon?: {
193
196
  name: string;
194
197
  color?: string;
@@ -230,14 +233,14 @@ readonly rulePath?: string | undefined;
230
233
  readonly onMounted?: string | undefined;
231
234
  readonly onActivated?: string | undefined;
232
235
  readonly tabProps?: {
233
- readonly type: EpPropMergeType<StringConstructor, "" | "card" | "border-card", unknown>;
236
+ readonly type: "" | "card" | "border-card";
234
237
  readonly stretch: boolean;
235
238
  readonly closable: boolean;
236
239
  readonly addable: boolean;
237
240
  readonly editable: boolean;
238
- readonly tabPosition: EpPropMergeType<StringConstructor, "right" | "top" | "left" | "bottom", unknown>;
239
- readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
240
- readonly modelValue?: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
241
+ readonly tabPosition: "right" | "top" | "left" | "bottom";
242
+ readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => boolean | void | Promise<boolean | void>;
243
+ readonly modelValue?: (string | number) | undefined;
241
244
  } | undefined;
242
245
  readonly hidden?: boolean | undefined;
243
246
  readonly isSticky?: boolean | undefined;
@@ -286,7 +289,7 @@ type: PropType<string>;
286
289
  required: true;
287
290
  };
288
291
  }>, {
289
- type: string;
292
+ type: "infocard";
290
293
  schema: ModelRef<InfoCardSchema, string, InfoCardSchema, InfoCardSchema>;
291
294
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
292
295
  schema: {
@@ -313,7 +316,7 @@ type: PropType<(key: string) => any>;
313
316
  required: true;
314
317
  };
315
318
  }>, {
316
- type: string;
319
+ type: "navbar";
317
320
  schema: ModelRef<NavBarSchema, string, NavBarSchema, NavBarSchema>;
318
321
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
319
322
  schema: {
@@ -330,6 +333,85 @@ required: true;
330
333
  };
331
334
  }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
332
335
 
336
+ declare const _default_5: DefineComponent<ExtractPropTypes< {
337
+ gridlayout: {
338
+ required: true;
339
+ type: PropType< {
340
+ x: number;
341
+ y: number;
342
+ w: number;
343
+ h: number;
344
+ i: string;
345
+ rowHeight?: number;
346
+ }[]>;
347
+ };
348
+ children: {
349
+ type: PropType<FormItemType[]>;
350
+ required: true;
351
+ };
352
+ rowHeight: {
353
+ type: PropType<number>;
354
+ };
355
+ colNum: {
356
+ type: PropType<number>;
357
+ };
358
+ maxRows: {
359
+ type: PropType<number>;
360
+ };
361
+ name: {
362
+ type: PropType<string>;
363
+ required: true;
364
+ };
365
+ }>, {
366
+ getLayout: () => Readonly<Ref<readonly {
367
+ readonly x: number;
368
+ readonly y: number;
369
+ readonly w: number;
370
+ readonly h: number;
371
+ readonly i: string;
372
+ readonly rowHeight?: number | undefined;
373
+ }[], readonly {
374
+ readonly x: number;
375
+ readonly y: number;
376
+ readonly w: number;
377
+ readonly h: number;
378
+ readonly i: string;
379
+ readonly rowHeight?: number | undefined;
380
+ }[]>>;
381
+ setItemX: (index: number, x: number) => void;
382
+ setItemY: (index: number, y: number) => void;
383
+ type: "draglist";
384
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
385
+ gridlayout: {
386
+ required: true;
387
+ type: PropType< {
388
+ x: number;
389
+ y: number;
390
+ w: number;
391
+ h: number;
392
+ i: string;
393
+ rowHeight?: number;
394
+ }[]>;
395
+ };
396
+ children: {
397
+ type: PropType<FormItemType[]>;
398
+ required: true;
399
+ };
400
+ rowHeight: {
401
+ type: PropType<number>;
402
+ };
403
+ colNum: {
404
+ type: PropType<number>;
405
+ };
406
+ maxRows: {
407
+ type: PropType<number>;
408
+ };
409
+ name: {
410
+ type: PropType<string>;
411
+ required: true;
412
+ };
413
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
414
+
333
415
  declare type DropdownType = {
334
416
  key: string;
335
417
  text: string;
@@ -344,6 +426,19 @@ declare type DropdownType = {
344
426
  }[];
345
427
  };
346
428
 
429
+ /**
430
+ * 根据key查找单个组件实例
431
+ * @param key 组件的key
432
+ * @returns 组件实例
433
+ */
434
+ declare type ExtraRefTypeMap = {
435
+ draglist: InstanceType<typeof _default_5> & ComponentPublicInstance;
436
+ };
437
+
438
+ declare type FindRefType<T extends keyof FindRefTypeMap> = FindRefTypeMap[T];
439
+
440
+ declare type FindRefTypeMap = RefTypeMap & ExtraRefTypeMap;
441
+
347
442
  declare type FormChange = {
348
443
  target: string;
349
444
  value?: any;
@@ -486,6 +581,7 @@ declare type InfoCardSchema = {
486
581
  copiable: boolean;
487
582
  btns: BtnType[];
488
583
  dropdowns: DropdownType[];
584
+ infos: InfoType[];
489
585
  key: string;
490
586
  rulePath?: string;
491
587
  onMounted?: string;
@@ -503,9 +599,25 @@ declare type InfoCardSchema = {
503
599
  avatar: string;
504
600
  avatarBgColor?: string;
505
601
  avatarIconColor?: string;
602
+ titleIcons?: {
603
+ icon: string;
604
+ onClick?: string;
605
+ }[];
506
606
  };
507
607
  };
508
608
 
609
+ declare type InfoType = {
610
+ key: string;
611
+ label: string;
612
+ value?: string;
613
+ type?: 'success' | 'warning' | 'danger';
614
+ icon?: {
615
+ name: string;
616
+ color?: string;
617
+ };
618
+ expendComponents?: FormItemType[];
619
+ };
620
+
509
621
  declare type Locale = {
510
622
  menus: {
511
623
  basicTitle: string;
@@ -605,8 +717,6 @@ export declare type PageSchema = {
605
717
  btnPosition?: 'center' | 'space-around' | 'space-between' | 'space-evenly' | 'end' | 'start';
606
718
  };
607
719
 
608
- declare type RefType<T extends keyof RefTypeMap> = RefTypeMap[T] & ComponentPublicInstance;
609
-
610
720
  declare type RefTypeMap = {
611
721
  [K in keyof ComponentType]: InstanceType<ComponentType[K]>;
612
722
  };
@@ -721,7 +831,7 @@ setColumn: <K extends keyof TableColumn>(key: string, keyName: K, keyValue: Tabl
721
831
  setRowsBtnHidden: (btnKey: string, hidden: boolean) => void;
722
832
  setShadowless: (shadowless: boolean) => void;
723
833
  rootRef: Readonly<unknown>;
724
- type: string;
834
+ type: "table";
725
835
  design: boolean;
726
836
  read: boolean;
727
837
  pageRulePath: string;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as B, ref as g, inject as h, resolveComponent as d, openBlock as s, createBlock as i, mergeProps as M, withCtx as c, createElementVNode as o, createElementBlock as n, createVNode as t, unref as p, normalizeClass as $, createCommentVNode as I, toDisplayString as v, Fragment as u, renderList as C, withDirectives as E, vShow as V } from "vue";
2
- import { _ as D, I as k, B as F, a as N, b as S } from "./index-COoXTzR3.js";
2
+ import { _ as D, I as k, B as F, a as N, b as S } from "./index-2Lph8ou3.js";
3
3
  import "element-plus";
4
4
  const j = { class: "card-header" }, H = { class: "card-btns" }, L = { class: "card-sub-header" }, P = /* @__PURE__ */ B({
5
5
  __name: "Card",
@@ -98,7 +98,7 @@ const j = { class: "card-header" }, H = { class: "card-btns" }, L = { class: "ca
98
98
  }, 16, ["class"]);
99
99
  };
100
100
  }
101
- }), G = /* @__PURE__ */ S(P, [["__scopeId", "data-v-f8533825"]]);
101
+ }), G = /* @__PURE__ */ S(P, [["__scopeId", "data-v-37d0cc4b"]]);
102
102
  export {
103
103
  G as default
104
104
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, mergeModels as g, useModel as v, inject as r, resolveComponent as y, openBlock as M, createBlock as h, mergeProps as C, unref as s } from "vue";
2
2
  import "element-plus";
3
- import { u as b } from "./useSelect-v7E0loNK.js";
3
+ import { u as b } from "./useSelect-CmUZu1rN.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 z, useModel as F, watch as D, resolveComponent as t, resolveDirective as M, unref as a, openBlock as l, createElementBlock as s, toDisplayString as I, withDirectives as P, createBlock as r, mergeProps as S, withCtx as y, Fragment as b, renderList as f, createCommentVNode as v } from "vue";
2
2
  import "element-plus";
3
- import { u as j } from "./index-COoXTzR3.js";
4
- import { u as E } from "./useSelect-v7E0loNK.js";
3
+ import { u as j } from "./index-2Lph8ou3.js";
4
+ import { u as E } from "./useSelect-CmUZu1rN.js";
5
5
  const L = { key: 0 }, q = /* @__PURE__ */ w({
6
6
  __name: "Checkbox",
7
7
  props: /* @__PURE__ */ z({
@@ -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-COoXTzR3.js";
2
+ import { a as y } from "./index-2Lph8ou3.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({
@@ -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-COoXTzR3.js";
5
+ import { u as b, b as x } from "./index-2Lph8ou3.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(",");
@@ -111,7 +111,7 @@ const P = { class: "vfc-verify-code" }, k = /* @__PURE__ */ g({
111
111
  ]);
112
112
  };
113
113
  }
114
- }), T = /* @__PURE__ */ x(k, [["__scopeId", "data-v-f5206e68"]]);
114
+ }), T = /* @__PURE__ */ x(k, [["__scopeId", "data-v-eda48825"]]);
115
115
  export {
116
116
  T as default
117
117
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as w, inject as C, ref as v, watch as $, resolveComponent as m, openBlock as d, createBlock as y, mergeProps as A, withCtx as f, createElementVNode as s, toDisplayString as B, createElementBlock as k, createCommentVNode as _, Fragment as N, renderList as E, unref as I, withModifiers as P, createVNode as V } from "vue";
2
- import { f as F, I as j, b as D } from "./index-COoXTzR3.js";
1
+ import { defineComponent as w, inject as C, ref as v, watch as $, resolveComponent as m, openBlock as d, createBlock as y, mergeProps as A, withCtx as f, createElementVNode as c, toDisplayString as B, createElementBlock as k, createCommentVNode as _, Fragment as N, renderList as E, unref as I, withModifiers as P, createVNode as V } from "vue";
2
+ import { f as F, I as j, b as D } from "./index-2Lph8ou3.js";
3
3
  import "element-plus";
4
4
  const R = { class: "custom-tree-node" }, S = { class: "tree-node-text" }, q = { class: "tree-node-label" }, z = {
5
5
  key: 0,
@@ -21,8 +21,8 @@ const R = { class: "custom-tree-node" }, S = { class: "tree-node-text" }, q = {
21
21
  if (a)
22
22
  try {
23
23
  a[e](l, { node: t, data: r });
24
- } catch (c) {
25
- console.error(c);
24
+ } catch (s) {
25
+ console.error(s);
26
26
  }
27
27
  }, b = (e, t) => {
28
28
  if (o.onNodeClick && a)
@@ -35,8 +35,8 @@ const R = { class: "custom-tree-node" }, S = { class: "tree-node-text" }, q = {
35
35
  if (o.onLoad && a)
36
36
  try {
37
37
  a[o.onLoad](l, { node: e, resolve: t, reject: r });
38
- } catch (c) {
39
- console.error(c);
38
+ } catch (s) {
39
+ console.error(s);
40
40
  }
41
41
  }, h = v([]);
42
42
  return $(
@@ -52,7 +52,7 @@ const R = { class: "custom-tree-node" }, S = { class: "tree-node-text" }, q = {
52
52
  immediate: !0
53
53
  }
54
54
  ), (e, t) => {
55
- const r = m("el-tooltip"), c = m("el-button"), L = m("el-tree");
55
+ const r = m("el-tooltip"), s = m("el-button"), L = m("el-tree");
56
56
  return d(), y(L, A(e.$attrs, {
57
57
  onNodeClick: b,
58
58
  load: x,
@@ -67,16 +67,16 @@ const R = { class: "custom-tree-node" }, S = { class: "tree-node-text" }, q = {
67
67
  "default-expanded-keys": h.value
68
68
  }), {
69
69
  default: f(({ node: p, data: u }) => [
70
- s("div", R, [
71
- s("div", S, [
72
- s("span", q, B(p.label), 1),
70
+ c("div", R, [
71
+ c("div", S, [
72
+ c("span", q, B(p.label), 1),
73
73
  u[e.nodeKey] === i.value ? (d(), k("div", z, "Present")) : _("", !0)
74
74
  ]),
75
- s("div", null, [
75
+ c("div", null, [
76
76
  (d(!0), k(N, null, E(e.btns, (n) => (d(), k(N, {
77
77
  key: n.key
78
78
  }, [
79
- I(F)(n.hidden, { $node: p, $data: u }) ? _("", !0) : (d(), y(c, {
79
+ I(F)(n.hidden, { $node: p, $data: u }) ? _("", !0) : (d(), y(s, {
80
80
  key: 0,
81
81
  link: "",
82
82
  onClick: P((H) => M(n.onClick, p, u), ["stop"]),
@@ -112,7 +112,7 @@ const R = { class: "custom-tree-node" }, S = { class: "tree-node-text" }, q = {
112
112
  }, 16, ["current-node-key", "node-key", "props", "data", "default-expanded-keys"]);
113
113
  };
114
114
  }
115
- }), T = /* @__PURE__ */ D(G, [["__scopeId", "data-v-ce6a97bc"]]);
115
+ }), T = /* @__PURE__ */ D(G, [["__scopeId", "data-v-c5b14347"]]);
116
116
  export {
117
117
  T as default
118
118
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as s, mergeModels as p, useModel as u, resolveComponent as i, openBlock as t, createElementBlock as d, toDisplayString as c, createBlock as y, mergeProps as f } from "vue";
2
- import { u as v } from "./index-COoXTzR3.js";
2
+ import { u as v } from "./index-2Lph8ou3.js";
3
3
  import "element-plus";
4
4
  const k = { key: 0 }, K = /* @__PURE__ */ s({
5
5
  __name: "Component",
@@ -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-COoXTzR3.js";
3
+ import { _ as f } from "./index-2Lph8ou3.js";
4
4
  const $ = {
5
5
  key: 0,
6
6
  style: { "min-width": "300px" }
@@ -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-COoXTzR3.js";
2
+ import { u as V } from "./index-2Lph8ou3.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-COoXTzR3.js";
2
+ import { b as H, u as K, c as Q } from "./index-2Lph8ou3.js";
3
3
  import "element-plus";
4
4
  const Z = $({
5
5
  props: {
@@ -172,7 +172,7 @@ function j(a, n, c, d, t, g) {
172
172
  onTouchend: n[5] || (n[5] = (...o) => a.touchEnd && a.touchEnd(...o))
173
173
  }, null, 544);
174
174
  }
175
- const _ = /* @__PURE__ */ H(Z, [["render", j], ["__scopeId", "data-v-0e272b28"]]), ee = { key: 0 }, te = { class: "vfc-esign-preview" }, le = ["src"], ae = {
175
+ const _ = /* @__PURE__ */ H(Z, [["render", j], ["__scopeId", "data-v-5f3bfcf7"]]), ee = { key: 0 }, te = { class: "vfc-esign-preview" }, le = ["src"], ae = {
176
176
  key: 1,
177
177
  class: "vfc-esign"
178
178
  }, ie = /* @__PURE__ */ $({
@@ -1,5 +1,5 @@
1
- import { defineComponent as z, inject as V, ref as I, resolveComponent as C, openBlock as a, createElementBlock as s, createElementVNode as i, normalizeClass as y, createBlock as r, createCommentVNode as m, toDisplayString as M, withCtx as f, Fragment as w, renderList as $, createTextVNode as j, createVNode as p, unref as T, withDirectives as P, vShow as U } from "vue";
2
- import { u as q, I as u, B as A, a as R, h as G, b as H } from "./index-COoXTzR3.js";
1
+ import { defineComponent as z, inject as V, ref as _, resolveComponent as y, openBlock as a, createElementBlock as s, createElementVNode as i, normalizeClass as C, createBlock as r, createCommentVNode as m, toDisplayString as M, withCtx as f, Fragment as w, renderList as $, createTextVNode as j, createVNode as p, unref as T, withDirectives as P, vShow as U } from "vue";
2
+ import { u as q, I as u, B as A, a as R, h as G, b as H } from "./index-2Lph8ou3.js";
3
3
  import "element-plus";
4
4
  const J = { class: "crm-curd-card" }, K = { class: "left-part" }, O = { class: "title" }, Q = { class: "right-part" }, W = {
5
5
  key: 0,
@@ -23,7 +23,7 @@ const J = { class: "crm-curd-card" }, K = { class: "left-part" }, O = { class: "
23
23
  radioDefault: {}
24
24
  },
25
25
  setup(S) {
26
- const c = V("ruleModule", void 0), k = V("pageMethodMap", {}), n = S, b = I(n.radioDefault ?? "2"), B = (e) => {
26
+ const c = V("ruleModule", void 0), k = V("pageMethodMap", {}), n = S, g = _(n.radioDefault ?? "2"), B = (e) => {
27
27
  if (e && c)
28
28
  try {
29
29
  c[e](k);
@@ -34,23 +34,24 @@ const J = { class: "crm-curd-card" }, K = { class: "left-part" }, O = { class: "
34
34
  n.onRadioChange && c && c[n.onRadioChange](k, e);
35
35
  }, L = () => {
36
36
  d.value = !d.value, n.onCollapsed && c && c[n.onCollapsed](k, d.value);
37
- }, d = I(!1), v = I(n.displayType || (n.typeSwitch ? "card" : "table")), N = q(), g = (e) => {
37
+ }, d = _(!1), v = _(n.displayType || (n.typeSwitch ? "card" : "table")), N = q(), b = (e) => {
38
38
  v.value = e;
39
- const o = G(N.schema.items, n.name), h = (_) => {
40
- _.forEach((t) => {
39
+ const o = G(N.schema.items, n.name), h = (I) => {
40
+ I.forEach((t) => {
41
41
  t.component === "Table" && t.props && (t.props.displayType = e), t.children && t.children.length > 0 && h(t.children);
42
42
  });
43
43
  };
44
44
  o && o.children && h(o.children);
45
45
  };
46
- return g(v.value), (e, o) => {
47
- const h = C("el-radio"), _ = C("el-radio-group"), t = C("el-tooltip"), E = C("el-collapse-transition");
46
+ return b(v.value), (e, o) => {
47
+ const h = y("el-radio"), I = y("el-radio-group"), t = y("el-tooltip"), E = y("el-collapse-transition");
48
48
  return a(), s("div", J, [
49
49
  i("div", {
50
- class: y(["card-header", {
50
+ class: C(["card-header", {
51
51
  inline: e.type === "inline",
52
52
  mix: e.type === "mix",
53
53
  default: e.type === "default",
54
+ gridItem: e.type === "gridItem",
54
55
  collapsedPadding: d.value && e.onCollapsed
55
56
  }])
56
57
  }, [
@@ -63,12 +64,12 @@ const J = { class: "crm-curd-card" }, K = { class: "left-part" }, O = { class: "
63
64
  color: e.mainIcon.color
64
65
  }, null, 8, ["name", "color"])) : m("", !0),
65
66
  i("span", O, M(e.title), 1),
66
- e.radioList ? (a(), r(_, {
67
+ e.radioList ? (a(), r(I, {
67
68
  key: 1,
68
69
  class: "ml-9",
69
- modelValue: b.value,
70
- "onUpdate:modelValue": o[0] || (o[0] = (l) => b.value = l),
71
- onChange: o[1] || (o[1] = (l) => D(b.value))
70
+ modelValue: g.value,
71
+ "onUpdate:modelValue": o[0] || (o[0] = (l) => g.value = l),
72
+ onChange: o[1] || (o[1] = (l) => D(g.value))
72
73
  }, {
73
74
  default: f(() => [
74
75
  (a(!0), s(w, null, $(e.radioList, (l) => (a(), r(h, {
@@ -112,21 +113,21 @@ const J = { class: "crm-curd-card" }, K = { class: "left-part" }, O = { class: "
112
113
  i("div", Q, [
113
114
  e.typeSwitch ? (a(), s("div", W, [
114
115
  i("div", {
115
- class: y(["switch-icon-wrapper", { active: v.value === "card" }]),
116
- onClick: o[2] || (o[2] = (l) => g("card"))
116
+ class: C(["switch-icon-wrapper", { active: v.value === "card" }]),
117
+ onClick: o[2] || (o[2] = (l) => b("card"))
117
118
  }, [
118
119
  p(u, { name: "icon-kapian" })
119
120
  ], 2),
120
121
  i("div", {
121
- class: y(["switch-icon-wrapper", { active: v.value === "table" }]),
122
- onClick: o[3] || (o[3] = (l) => g("table"))
122
+ class: C(["switch-icon-wrapper", { active: v.value === "table" }]),
123
+ onClick: o[3] || (o[3] = (l) => b("table"))
123
124
  }, [
124
125
  p(u, { name: "icon-biaoge" })
125
126
  ], 2)
126
127
  ])) : m("", !0),
127
128
  e.collapsible ? (a(), s("div", {
128
129
  key: 1,
129
- class: y(["collapse-icon-wrapper", { collapsed: d.value }]),
130
+ class: C(["collapse-icon-wrapper", { collapsed: d.value }]),
130
131
  onClick: L
131
132
  }, [
132
133
  p(u, { name: "icon-shaixuan" })
@@ -154,7 +155,7 @@ const J = { class: "crm-curd-card" }, K = { class: "left-part" }, O = { class: "
154
155
  ]);
155
156
  };
156
157
  }
157
- }), le = /* @__PURE__ */ H(Y, [["__scopeId", "data-v-fadf0058"]]);
158
+ }), le = /* @__PURE__ */ H(Y, [["__scopeId", "data-v-f57a931b"]]);
158
159
  export {
159
160
  le as default
160
161
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as n, mergeModels as s, useModel as p, openBlock as t, createElementBlock as r, createBlock as d, resolveDynamicComponent as u, mergeProps as c } from "vue";
2
- import { b as i } from "./index-COoXTzR3.js";
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-2Lph8ou3.js";
3
3
  const f = {
4
4
  key: 0,
5
5
  class: "empty"
@@ -12,15 +12,15 @@ const f = {
12
12
  modelModifiers: {}
13
13
  }),
14
14
  emits: ["update:modelValue"],
15
- setup(l) {
16
- const o = p(l, "modelValue");
17
- return (e, m) => e.componentName ? (t(), d(u(e.componentName), c({
15
+ setup(a) {
16
+ const o = p(a, "modelValue");
17
+ return (e, m) => e.componentName ? (t(), u(d(e.componentName), c({
18
18
  key: 1,
19
19
  modelValue: o.value,
20
- "onUpdate:modelValue": m[0] || (m[0] = (a) => o.value = a)
20
+ "onUpdate:modelValue": m[0] || (m[0] = (l) => o.value = l)
21
21
  }, e.$attrs), null, 16, ["modelValue"])) : (t(), r("span", f, "请输入全局注册得组件名"));
22
22
  }
23
- }), v = /* @__PURE__ */ i(_, [["__scopeId", "data-v-2250b7d1"]]);
23
+ }), v = /* @__PURE__ */ i(_, [["__scopeId", "data-v-a013b8cf"]]);
24
24
  export {
25
25
  v as default
26
26
  };