asiaint-lowcode 3.1.38 → 3.1.39

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 (43) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +161 -160
  3. package/dist/index.d.ts +15 -1
  4. package/dist/lazy/{Card-BDM6XuJU.js → Card-xaPIgEf-.js} +23 -22
  5. package/dist/lazy/{Cascader-CZHGG0pG.js → Cascader-CIneQK_J.js} +6 -5
  6. package/dist/lazy/{Checkbox-BhvL5E2k.js → Checkbox-C72IOaoc.js} +8 -7
  7. package/dist/lazy/{Collapse-ClRN3_Of.js → Collapse-KICA4Zu5.js} +1 -1
  8. package/dist/lazy/{Component-C7VeIPP5.js → Component-CuDRSQjU.js} +1 -1
  9. package/dist/lazy/{Component-DM4mr-di.js → Component-DYC0xOUO.js} +1 -1
  10. package/dist/lazy/{Component-555PMoc2.js → Component-D_olaC47.js} +1 -1
  11. package/dist/lazy/{Component-Z05b2x3I.js → Component-F_Q0psy5.js} +1 -1
  12. package/dist/lazy/{Component-CwrnPKx7.js → Component-jJWl2i0B.js} +1 -1
  13. package/dist/lazy/Component-vSUXweJM.js +153 -0
  14. package/dist/lazy/{CurdCard-MbVA6Mi-.js → CurdCard-D0jdTzK2.js} +1 -1
  15. package/dist/lazy/{Custom-CfeLPQAL.js → Custom-CT-vwPPd.js} +1 -1
  16. package/dist/lazy/DatePicker-QOEOzrF4.js +48 -0
  17. package/dist/lazy/{DragList-Ch2e0ELU.js → DragList-XbDqvP-j.js} +1 -1
  18. package/dist/lazy/{FilterSearch-Kt9PdLaA.js → FilterSearch-BqIZ1S1W.js} +1 -1
  19. package/dist/lazy/{FormList-D9SgU07A.js → FormList-xtHCsYzT.js} +1 -1
  20. package/dist/lazy/{Grid-BkcT4oBE.js → Grid-C1jTdSoZ.js} +1 -1
  21. package/dist/lazy/{InfiniteScroll-CcpNdUU1.js → InfiniteScroll-CZ4l8YsY.js} +1 -1
  22. package/dist/lazy/{Inline-DGUu4c-C.js → Inline-ChaJEtb4.js} +1 -1
  23. package/dist/lazy/{JsonEdit-EzeyrtX4.js → JsonEdit-Dcco309G.js} +1 -1
  24. package/dist/lazy/{LogList-CHVupI_V.js → LogList-CZXtzROI.js} +1 -1
  25. package/dist/lazy/{ObjGroup-ChPL8CLg.js → ObjGroup-CRIqAsRN.js} +1 -1
  26. package/dist/lazy/{OfferDetails-JouhmtOf.js → OfferDetails-B8Rz--PH.js} +1 -1
  27. package/dist/lazy/{Pagination-Dt_xyHyP.js → Pagination-DVdsyCWo.js} +1 -1
  28. package/dist/lazy/{Progress-BrL4wDR7.js → Progress-D0qjx-AG.js} +1 -1
  29. package/dist/lazy/{Radio-CR0QoEHh.js → Radio-DqnUepm9.js} +11 -10
  30. package/dist/lazy/{SearchSelect-BbDe3rPF.js → SearchSelect-DwBCUhg1.js} +8 -7
  31. package/dist/lazy/{Select-DOMvoT5o.js → Select-aTvuzPTf.js} +15 -13
  32. package/dist/lazy/{Table-BKElHVXy.js → Table-BLs3eSzr.js} +104 -93
  33. package/dist/lazy/Tabs-X9CjeOA2.js +72 -0
  34. package/dist/lazy/TextArea-Bc-TYkjs.js +36 -0
  35. package/dist/lazy/{Wrapper-DkjAAPP8.js → Wrapper-DxwoVC2i.js} +1 -1
  36. package/dist/lazy/{index-BHy32Cui.js → index-BAvzFzs-.js} +4200 -4103
  37. package/dist/lazy/{useSelect-BLTr8z88.js → useSelect-BglioMMD.js} +1 -1
  38. package/dist/style.css +2 -2
  39. package/package.json +1 -1
  40. package/dist/lazy/Component-BW8Nr-Mq.js +0 -96
  41. package/dist/lazy/DatePicker-Cdulq02P.js +0 -33
  42. package/dist/lazy/Tabs-DmKX4tAt.js +0 -47
  43. package/dist/lazy/TextArea-dV8kQ_Qw.js +0 -36
package/dist/index.d.ts CHANGED
@@ -110,6 +110,7 @@ pageUrl?: string;
110
110
  pageParams?: any;
111
111
  }>>, {
112
112
  activate: typeof activate;
113
+ ruleFunction: typeof ruleFunction;
113
114
  findRef: <T extends keyof FindRefTypeMap>(key: string) => FindRefType<T>;
114
115
  setFormDisabled: (key: string, disabled: boolean) => void;
115
116
  clearValidate: (key: string, names: string | string[]) => void;
@@ -125,7 +126,7 @@ emit: {
125
126
  };
126
127
  setData: (key: string, dataModel: any, isAssign?: boolean) => void;
127
128
  getItemByName: (formKey: string, itemKey: string) => FormItemType | null | undefined;
128
- getPageParams: () => any;
129
+ getPageParams: typeof getPageParams;
129
130
  setHidden: (key: string, hiddenState: boolean) => void;
130
131
  setBtnHidden: (key: string, hiddenState: boolean) => void;
131
132
  setBtnStateByKey: (key: string, stateType: "hidden" | "disabled" | "condition", state: boolean | string) => void;
@@ -136,6 +137,7 @@ setGlobalParams: (params: any) => void;
136
137
  getGlobalParams: () => any;
137
138
  setBtnState: setBtnStateFn;
138
139
  setReadMode: (key: string, readMode: boolean) => void;
140
+ setPageMask: (mask: boolean) => void;
139
141
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
140
142
  done: (data?: any) => void;
141
143
  refresh: () => void;
@@ -769,6 +771,12 @@ export declare type FormSchema = {
769
771
 
770
772
  declare type getArrayType<T> = T extends Array<infer U> ? U : never;
771
773
 
774
+ /**
775
+ * 获取页面参数
776
+ * @returns 页面参数
777
+ */
778
+ declare function getPageParams<T = any>(): T;
779
+
772
780
  declare type InfoCardSchema = {
773
781
  hidden?: boolean;
774
782
  copiable: boolean;
@@ -799,6 +807,7 @@ declare type InfoCardSchema = {
799
807
  subTitle: string;
800
808
  subTitleClick?: string;
801
809
  avatar: string;
810
+ avatarSize?: "small" | "x-small" | "normal" | "large" | "ultra-large" | undefined;
802
811
  avatarIconColor?: string;
803
812
  subTitleIcons?: {
804
813
  icon: {
@@ -903,6 +912,7 @@ export declare type Options = {
903
912
  formSchema: DeepReadonly<FormInstance['schema']>;
904
913
  }) => Promise<any>;
905
914
  translateFn?: (key: string, dataSource: Record<string, any>) => any;
915
+ setPageMaskFn?: (mask: boolean) => void;
906
916
  };
907
917
 
908
918
  export declare type PageMethods = Omit<InstanceType<typeof PageRender>, keyof ComponentPublicInstance | 'onDone' | 'onRefresh'>;
@@ -944,6 +954,8 @@ declare type RouteLocationRaw = string | number | {
944
954
  force?: boolean;
945
955
  };
946
956
 
957
+ declare function ruleFunction(funcName: string): Promise<any>;
958
+
947
959
  declare interface SelectProps {
948
960
  options?: Record<string, any>[];
949
961
  defaultOptions?: Record<string, any>[];
@@ -962,6 +974,7 @@ declare interface SelectProps {
962
974
  filters?: (string | number | boolean)[];
963
975
  refreshFlag?: boolean;
964
976
  clearable?: boolean;
977
+ width?: string;
965
978
  }
966
979
 
967
980
  declare type setBtnStateFn = (params: {
@@ -997,6 +1010,7 @@ declare interface TableColumn {
997
1010
  iconPosition?: 'left' | 'right';
998
1011
  iconPopover?: boolean;
999
1012
  getIconPopoverContent?: string;
1013
+ getCustomContent?: string;
1000
1014
  }
1001
1015
 
1002
1016
  export declare const TableRender: DefineComponent<ExtractPropTypes< {
@@ -1,9 +1,10 @@
1
- import { defineComponent as $, ref as M, inject as k, resolveComponent as p, openBlock as o, createBlock as c, mergeProps as F, withCtx as i, createElementVNode as s, normalizeClass as C, createElementBlock as a, createVNode as n, unref as d, createCommentVNode as m, toDisplayString as f, Fragment as u, renderList as b, withDirectives as S, vShow as E } from "vue";
2
- import { a as V, I as h, b as y, B as D, _ as N } from "./index-BHy32Cui.js";
1
+ import { defineComponent as $, ref as M, inject as C, resolveComponent as m, openBlock as o, createBlock as c, mergeProps as F, withCtx as d, createElementVNode as s, normalizeClass as _, createElementBlock as a, createVNode as n, unref as i, createCommentVNode as p, toDisplayString as f, Fragment as u, renderList as b, withDirectives as S, vShow as E } from "vue";
2
+ import { a as V, I as h, b as y, B as D, _ as N } from "./index-BAvzFzs-.js";
3
3
  import "element-plus";
4
4
  const j = { key: 2 }, H = { class: "card-btns" }, L = { class: "card-sub-header" }, P = /* @__PURE__ */ $({
5
5
  __name: "Card",
6
6
  props: {
7
+ hidden: { type: Boolean },
7
8
  children: {},
8
9
  headerFormSlots: {},
9
10
  collapsible: { type: Boolean },
@@ -15,7 +16,7 @@ const j = { key: 2 }, H = { class: "card-btns" }, L = { class: "card-sub-header"
15
16
  subHeaders: {}
16
17
  },
17
18
  setup(R) {
18
- const r = M(!1), v = k("ruleModule", void 0), w = k("pageMethodMap", {}), _ = (e) => {
19
+ const r = M(!1), v = C("ruleModule", void 0), w = C("pageMethodMap", {}), k = (e) => {
19
20
  if (e && v)
20
21
  try {
21
22
  v[e](w);
@@ -25,36 +26,36 @@ funcName: ${e}`);
25
26
  }
26
27
  };
27
28
  return (e, t) => {
28
- const I = p("el-tooltip"), z = p("el-collapse-transition"), g = p("ElCard");
29
- return o(), c(g, F(e.$attrs, {
29
+ const I = m("el-tooltip"), z = m("el-collapse-transition"), B = m("ElCard");
30
+ return e.hidden ? p("", !0) : (o(), c(B, F({ key: 0 }, e.$attrs, {
30
31
  class: ["crm-card", { collapsed: r.value, shadowless: e.shadowless }],
31
32
  shadow: "never"
32
33
  }), {
33
- header: i(() => [
34
+ header: d(() => [
34
35
  s("div", {
35
- class: C(["card-header", { "has-collapsed": e.collapsible }])
36
+ class: _(["card-header", { "has-collapsed": e.collapsible }])
36
37
  }, [
37
38
  e.collapsible ? (o(), a("div", {
38
39
  key: 0,
39
40
  class: "icon-wrapper",
40
41
  onClick: t[0] || (t[0] = (l) => r.value = !r.value)
41
42
  }, [
42
- n(d(V), {
43
+ n(i(V), {
43
44
  name: "dropdown",
44
- class: C(["dropdown-icon", { "is-collapsed": r.value }])
45
+ class: _(["dropdown-icon", { "is-collapsed": r.value }])
45
46
  }, null, 8, ["class"])
46
- ])) : m("", !0),
47
+ ])) : p("", !0),
47
48
  e.mainIcon ? (o(), c(h, {
48
49
  key: 1,
49
50
  class: "title-icon",
50
51
  size: "large",
51
52
  name: e.mainIcon.name,
52
53
  color: e.mainIcon.color
53
- }, null, 8, ["name", "color"])) : m("", !0),
54
+ }, null, 8, ["name", "color"])) : p("", !0),
54
55
  s("span", null, f(e.header), 1),
55
56
  e.headerFormSlots ? (o(), a("div", j, [
56
- n(d(y), { list: e.headerFormSlots }, null, 8, ["list"])
57
- ])) : m("", !0),
57
+ n(i(y), { list: e.headerFormSlots }, null, 8, ["list"])
58
+ ])) : p("", !0),
58
59
  (o(!0), a(u, null, b(e.extraIcons, (l) => (o(), a(u, {
59
60
  key: l.name
60
61
  }, [
@@ -63,13 +64,13 @@ funcName: ${e}`);
63
64
  content: l.tips,
64
65
  placement: "right"
65
66
  }, {
66
- default: i(() => [
67
+ default: d(() => [
67
68
  n(h, {
68
69
  class: "extra-icon",
69
70
  name: l.name,
70
71
  color: l.color,
71
72
  size: l.size || "small",
72
- onClick: (B) => _(l.onClick)
73
+ onClick: (g) => k(l.onClick)
73
74
  }, null, 8, ["name", "color", "size", "onClick"])
74
75
  ]),
75
76
  _: 2
@@ -79,11 +80,11 @@ funcName: ${e}`);
79
80
  name: l.name,
80
81
  color: l.color,
81
82
  size: l.size || "small",
82
- onClick: (B) => _(l.onClick)
83
+ onClick: (g) => k(l.onClick)
83
84
  }, null, 8, ["name", "color", "size", "onClick"]))
84
85
  ], 64))), 128)),
85
86
  s("div", H, [
86
- n(d(D), {
87
+ n(i(D), {
87
88
  btns: e.btns || []
88
89
  }, null, 8, ["btns"])
89
90
  ]),
@@ -97,11 +98,11 @@ funcName: ${e}`);
97
98
  ])
98
99
  ], 2)
99
100
  ]),
100
- default: i(() => [
101
+ default: d(() => [
101
102
  n(z, null, {
102
- default: i(() => [
103
+ default: d(() => [
103
104
  S(s("div", null, [
104
- n(d(y), { list: e.children }, null, 8, ["list"])
105
+ n(i(y), { list: e.children }, null, 8, ["list"])
105
106
  ], 512), [
106
107
  [E, !r.value]
107
108
  ])
@@ -110,10 +111,10 @@ funcName: ${e}`);
110
111
  })
111
112
  ]),
112
113
  _: 1
113
- }, 16, ["class"]);
114
+ }, 16, ["class"]));
114
115
  };
115
116
  }
116
- }), J = /* @__PURE__ */ N(P, [["__scopeId", "data-v-1cbeed34"]]);
117
+ }), J = /* @__PURE__ */ N(P, [["__scopeId", "data-v-dabefafe"]]);
117
118
  export {
118
119
  J as default
119
120
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as f, mergeModels as g, useModel as C, inject as r, resolveComponent as h, openBlock as v, createBlock as y, mergeProps as M, unref as d } from "vue";
1
+ import { defineComponent as f, mergeModels as g, useModel as h, inject as r, resolveComponent as C, openBlock as v, createBlock as y, mergeProps as M, unref as d } from "vue";
2
2
  import "element-plus";
3
- import { u as b } from "./useSelect-BLTr8z88.js";
3
+ import { u as b } from "./useSelect-BglioMMD.js";
4
4
  const k = /* @__PURE__ */ f({
5
5
  __name: "Cascader",
6
6
  props: /* @__PURE__ */ g({
@@ -20,14 +20,15 @@ const k = /* @__PURE__ */ f({
20
20
  readTextColor: {},
21
21
  filters: {},
22
22
  refreshFlag: { type: Boolean },
23
- clearable: { type: Boolean }
23
+ clearable: { type: Boolean },
24
+ width: {}
24
25
  }, {
25
26
  modelValue: {},
26
27
  modelModifiers: {}
27
28
  }),
28
29
  emits: ["update:modelValue"],
29
30
  setup(a) {
30
- const o = a, n = C(a, "modelValue"), t = r("ruleModule", void 0), s = r("pageMethodMap", {}), u = (e) => {
31
+ const o = a, n = h(a, "modelValue"), t = r("ruleModule", void 0), s = r("pageMethodMap", {}), u = (e) => {
31
32
  if (o.onChange && t)
32
33
  try {
33
34
  t[o.onChange](s, e);
@@ -37,7 +38,7 @@ onChange: ${o.onChange}`);
37
38
  }
38
39
  }, { currentOptions: p, loading: i } = b(o);
39
40
  return (e, l) => {
40
- const m = h("el-cascader");
41
+ const m = C("el-cascader");
41
42
  return v(), y(m, M({
42
43
  modelValue: n.value,
43
44
  "onUpdate:modelValue": l[0] || (l[0] = (c) => n.value = c),
@@ -1,7 +1,7 @@
1
- import { defineComponent as F, mergeModels as D, useModel as I, watch as O, resolveComponent as u, resolveDirective as P, unref as a, openBlock as l, createElementBlock as p, toDisplayString as S, withDirectives as $, createBlock as s, mergeProps as j, withCtx as f, Fragment as h, renderList as v, createCommentVNode as g } from "vue";
1
+ import { defineComponent as F, mergeModels as D, useModel as I, watch as O, resolveComponent as u, resolveDirective as P, unref as a, openBlock as l, createElementBlock as p, toDisplayString as S, withDirectives as $, createBlock as s, mergeProps as j, withCtx as h, Fragment as f, renderList as v, createCommentVNode as g } from "vue";
2
2
  import "element-plus";
3
- import { u as E, c as L } from "./index-BHy32Cui.js";
4
- import { u as N } from "./useSelect-BLTr8z88.js";
3
+ import { u as E, c as L } from "./index-BAvzFzs-.js";
4
+ import { u as N } from "./useSelect-BglioMMD.js";
5
5
  const R = { key: 0 }, H = /* @__PURE__ */ F({
6
6
  __name: "Checkbox",
7
7
  props: /* @__PURE__ */ D({
@@ -21,6 +21,7 @@ const R = { key: 0 }, H = /* @__PURE__ */ F({
21
21
  filters: {},
22
22
  refreshFlag: { type: Boolean },
23
23
  clearable: { type: Boolean },
24
+ width: {},
24
25
  optionType: { default: "circle" },
25
26
  direction: { default: "horizontal" },
26
27
  space: { default: 20 }
@@ -50,8 +51,8 @@ onChange: ${n.onChange}`);
50
51
  "onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
51
52
  onChange: V
52
53
  }), {
53
- default: f(() => [
54
- e.optionType === "circle" || e.optionType === "border" ? (l(!0), p(h, { key: 0 }, v(a(d), (o) => (l(), s(_, {
54
+ default: h(() => [
55
+ e.optionType === "circle" || e.optionType === "border" ? (l(!0), p(f, { key: 0 }, v(a(d), (o) => (l(), s(_, {
55
56
  key: o[e.valueKey],
56
57
  label: o[e.labelKey],
57
58
  value: o[e.valueKey],
@@ -62,8 +63,8 @@ onChange: ${n.onChange}`);
62
63
  wrap: "",
63
64
  size: [e.space, e.space]
64
65
  }, {
65
- default: f(() => [
66
- (l(!0), p(h, null, v(a(d), (o) => (l(), s(B, {
66
+ default: h(() => [
67
+ (l(!0), p(f, null, v(a(d), (o) => (l(), s(B, {
67
68
  key: o[e.valueKey],
68
69
  label: o[e.labelKey],
69
70
  value: o[e.valueKey],
@@ -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 { b as y } from "./index-BHy32Cui.js";
2
+ import { b as y } from "./index-BAvzFzs-.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 b = /* @__PURE__ */ u({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as w, inject as h, ref as N, watch as b, resolveComponent as k, openBlock as d, createBlock as m, mergeProps as A, withCtx as y, createElementVNode as l, toDisplayString as B, createElementBlock as _, createCommentVNode as f, Fragment as v, renderList as E, unref as I, withModifiers as P, createVNode as V } from "vue";
2
- import { h as F, I as j, _ as D } from "./index-BHy32Cui.js";
2
+ import { h as F, I as j, _ as D } from "./index-BAvzFzs-.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,
@@ -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-BHy32Cui.js";
2
+ import { u as V } from "./index-BAvzFzs-.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 x, _ as S } from "./index-BHy32Cui.js";
5
+ import { u as x, _ as S } from "./index-BAvzFzs-.js";
6
6
  import "element-plus";
7
7
  function b() {
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 { _ as H, u as K, d as Q } from "./index-BHy32Cui.js";
2
+ import { _ as H, u as K, d as Q } from "./index-BAvzFzs-.js";
3
3
  import "element-plus";
4
4
  const Z = $({
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, mergeModels as d, useModel as i, computed as c, resolveComponent as f, openBlock as t, createElementBlock as y, toDisplayString as v, createBlock as k, mergeProps as V } from "vue";
2
- import { u as _ } from "./index-BHy32Cui.js";
2
+ import { u as _ } from "./index-BAvzFzs-.js";
3
3
  import "element-plus";
4
4
  const B = { key: 0 }, g = /* @__PURE__ */ p({
5
5
  __name: "Component",
@@ -0,0 +1,153 @@
1
+ import { defineComponent as $, mergeModels as E, useModel as I, ref as L, resolveComponent as C, openBlock as a, createElementBlock as i, Fragment as d, createVNode as u, normalizeClass as N, createSlots as O, withCtx as c, createElementVNode as s, createTextVNode as b, createBlock as k, toDisplayString as p, createCommentVNode as f, unref as R, renderList as z } from "vue";
2
+ import { genFileId as S, ElMessage as D, ElMessageBox as j } from "element-plus";
3
+ import { c as P, I as h, a as q, _ as x } from "./index-BAvzFzs-.js";
4
+ const A = { class: "el-upload__tip" }, G = {
5
+ key: 0,
6
+ class: "upload-bottom-part"
7
+ }, H = { class: "file-list-wrapper" }, J = { class: "file-item-name" }, K = /* @__PURE__ */ $({
8
+ __name: "Component",
9
+ props: /* @__PURE__ */ E({
10
+ action: {},
11
+ multiple: { type: Boolean },
12
+ btnText: { default: "点击上传" },
13
+ tip: {},
14
+ limit: {},
15
+ drag: { type: Boolean },
16
+ name: { default: "file" },
17
+ listType: { default: "text" },
18
+ attachmentTitle: {},
19
+ showFileList: { type: Boolean, default: !0 },
20
+ autoUpload: { type: Boolean },
21
+ beforeUpload: {},
22
+ isOnlyOne: { type: Boolean, default: !1 },
23
+ onChange: {}
24
+ }, {
25
+ modelValue: {
26
+ default: () => []
27
+ },
28
+ modelModifiers: {}
29
+ }),
30
+ emits: ["update:modelValue"],
31
+ setup(g) {
32
+ const o = g, n = I(g, "modelValue"), { ruleModule: y, pageMethodMap: v } = P(), T = (e) => {
33
+ if (o.beforeUpload)
34
+ try {
35
+ return y[o.beforeUpload](v, e);
36
+ } catch (l) {
37
+ console.error(l);
38
+ }
39
+ return !0;
40
+ }, B = (e, l) => {
41
+ if (o.onChange)
42
+ try {
43
+ y[o.onChange](v, e, l);
44
+ } catch (t) {
45
+ console.error(t);
46
+ }
47
+ }, _ = (e) => {
48
+ const l = n.value.findIndex((t) => t.uid === e.uid);
49
+ l !== -1 && n.value.splice(l, 1);
50
+ }, w = (e, l) => {
51
+ console.log(e, l);
52
+ }, M = (e) => {
53
+ console.log(e);
54
+ }, m = L(), U = (e, l) => {
55
+ if (o.isOnlyOne && o.limit === 1) {
56
+ m.value.clearFiles();
57
+ const t = e[0];
58
+ t.uid = S(), m.value.handleStart(t);
59
+ } else
60
+ D.warning(
61
+ `The limit is ${o.limit}, you selected ${e.length} files this time, add up to ${e.length + l.length} totally`
62
+ );
63
+ }, F = (e, l) => o.beforeUpload ? !1 : j.confirm(`Cancel the transfer of ${e.name} ?`).then(
64
+ () => !0,
65
+ () => !1
66
+ );
67
+ return (e, l) => {
68
+ const t = C("el-button"), V = C("el-upload");
69
+ return a(), i(d, null, [
70
+ u(V, {
71
+ "file-list": n.value,
72
+ "onUpdate:fileList": l[0] || (l[0] = (r) => n.value = r),
73
+ action: e.action,
74
+ multiple: e.multiple,
75
+ limit: e.limit,
76
+ drag: e.drag,
77
+ name: e.name,
78
+ listType: e.listType,
79
+ "show-file-list": e.showFileList,
80
+ "on-preview": M,
81
+ "on-remove": w,
82
+ "before-remove": F,
83
+ "before-upload": T,
84
+ "on-change": B,
85
+ "on-exceed": U,
86
+ class: N({ dragUpload: e.drag }),
87
+ ref_key: "upload",
88
+ ref: m
89
+ }, O({
90
+ default: c(() => [
91
+ e.listType === "text" ? (a(), i(d, { key: 0 }, [
92
+ e.drag ? (a(), i(d, { key: 0 }, [
93
+ u(h, {
94
+ name: "icon-shangchuan",
95
+ color: "var(--el-color-primary)"
96
+ }),
97
+ l[1] || (l[1] = s("div", null, [
98
+ b("Drop file here or "),
99
+ s("em", null, "click to upload")
100
+ ], -1))
101
+ ], 64)) : (a(), k(t, {
102
+ key: 1,
103
+ type: "primary"
104
+ }, {
105
+ default: c(() => [
106
+ b(p(e.btnText), 1)
107
+ ]),
108
+ _: 1
109
+ }))
110
+ ], 64)) : f("", !0),
111
+ e.listType === "picture-card" ? (a(), k(R(q), {
112
+ key: 1,
113
+ name: "add"
114
+ })) : f("", !0)
115
+ ]),
116
+ _: 2
117
+ }, [
118
+ e.tip ? {
119
+ name: "tip",
120
+ fn: c(() => [
121
+ s("div", A, p(e.tip), 1)
122
+ ]),
123
+ key: "0"
124
+ } : void 0
125
+ ]), 1032, ["file-list", "action", "multiple", "limit", "drag", "name", "listType", "show-file-list", "class"]),
126
+ e.drag && n.value.length > 0 ? (a(), i("div", G, [
127
+ s("div", null, p(e.attachmentTitle), 1),
128
+ s("div", H, [
129
+ (a(!0), i(d, null, z(n.value, (r) => (a(), i("div", {
130
+ class: "file-item",
131
+ key: r.uid
132
+ }, [
133
+ u(h, {
134
+ name: "icon-fujiantubiao1",
135
+ size: "ultra-large"
136
+ }),
137
+ s("div", J, p(r.name), 1),
138
+ u(h, {
139
+ name: "icon-guanbi",
140
+ class: "file-item-close",
141
+ size: "x-small",
142
+ onClick: (Q) => _(r)
143
+ }, null, 8, ["onClick"])
144
+ ]))), 128))
145
+ ])
146
+ ])) : f("", !0)
147
+ ], 64);
148
+ };
149
+ }
150
+ }), Z = /* @__PURE__ */ x(K, [["__scopeId", "data-v-faced280"]]);
151
+ export {
152
+ Z as default
153
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as U, inject as M, ref as k, watch as A, resolveComponent as f, openBlock as o, createElementBlock as s, normalizeClass as m, normalizeStyle as O, createElementVNode as c, createBlock as p, createCommentVNode as u, toDisplayString as z, withCtx as v, Fragment as B, renderList as R, createTextVNode as q, createVNode as r, withKeys as G, unref as I, withDirectives as H, vShow as J } from "vue";
2
- import { u as Q, I as h, b as V, B as W, i as X, _ as Y } from "./index-BHy32Cui.js";
2
+ import { u as Q, I as h, b as V, B as W, i as X, _ as Y } from "./index-BAvzFzs-.js";
3
3
  import "element-plus";
4
4
  const Z = ["id"], x = { class: "left-part" }, ee = { class: "title" }, le = { class: "right-part" }, ae = { key: 0 }, oe = {
5
5
  key: 1,
@@ -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 { _ as i } from "./index-BHy32Cui.js";
2
+ import { _ as i } from "./index-BAvzFzs-.js";
3
3
  const f = {
4
4
  key: 0,
5
5
  class: "empty"
@@ -0,0 +1,48 @@
1
+ import { defineComponent as C, mergeModels as y, useModel as M, useAttrs as k, computed as s, inject as u, resolveComponent as _, openBlock as d, createElementBlock as V, toDisplayString as B, createBlock as x, mergeProps as D } from "vue";
2
+ import { dayjs as F } from "element-plus";
3
+ import { u as I } from "./index-BAvzFzs-.js";
4
+ const P = { key: 0 }, $ = /* @__PURE__ */ C({
5
+ __name: "DatePicker",
6
+ props: /* @__PURE__ */ y({
7
+ onChange: {},
8
+ onInput: {},
9
+ onEnter: {},
10
+ rulePath: {},
11
+ read: { type: Boolean },
12
+ readTextColor: {},
13
+ onClick: {}
14
+ }, {
15
+ modelValue: {},
16
+ modelModifiers: {}
17
+ }),
18
+ emits: ["update:modelValue"],
19
+ setup(n) {
20
+ const e = M(n, "modelValue"), o = n, r = k(), c = I(), m = s(() => o.read ?? c.schema.read ?? !1), p = s(() => e.value ? r.valueFormat ? F(e.value).format(r.valueFormat) : e.value : "--"), i = [
21
+ {
22
+ text: "Today",
23
+ value: /* @__PURE__ */ new Date()
24
+ }
25
+ ], l = u("ruleModule", void 0), h = u("pageMethodMap", {}), f = (t) => {
26
+ if (console.log("zytest-----handleChange", t), o.onChange && l)
27
+ try {
28
+ l[o.onChange](h, t);
29
+ } catch (a) {
30
+ console.error(a + `
31
+ onChange: ${o.onChange}`);
32
+ }
33
+ };
34
+ return (t, a) => {
35
+ const g = _("el-date-picker");
36
+ return m.value ? (d(), V("span", P, B(p.value), 1)) : (d(), x(g, D({ key: 1 }, t.$attrs, {
37
+ modelValue: e.value,
38
+ "onUpdate:modelValue": a[0] || (a[0] = (v) => e.value = v),
39
+ style: { width: "100%" },
40
+ shortcuts: i,
41
+ onChange: f
42
+ }), null, 16, ["modelValue"]));
43
+ };
44
+ }
45
+ });
46
+ export {
47
+ $ as default
48
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as J, reactive as F, ref as T, onBeforeMount as le, onMounted as ie, nextTick as h, onBeforeUnmount as re, watch as c, provide as j, toRefs as q, openBlock as R, createElementBlock as A, normalizeStyle as ne, renderSlot as O, Fragment as se, renderList as ue, createBlock as K, mergeProps as de, withCtx as Q, withDirectives as ce, createVNode as Z, vShow as me, mergeModels as ge, useModel as pe, onUnmounted as ye, unref as X, readonly as Y } from "vue";
2
- import { w as ve, m as fe, n as he, o as k, T as we, v as xe, p as C, A as be, q as G, x as Be, L as ke, y as Ce, r as De, Y as Le, s as Me, t as P, V as Se, c as ze, j as Re, b as Ie, _ as Ne } from "./index-BHy32Cui.js";
2
+ import { w as ve, m as fe, n as he, o as k, T as we, v as xe, p as C, A as be, q as G, x as Be, L as ke, y as Ce, r as De, Y as Le, s as Me, t as P, V as Se, c as ze, j as Re, b as Ie, _ as Ne } from "./index-BAvzFzs-.js";
3
3
  import "element-plus";
4
4
  const $e = /* @__PURE__ */ J({
5
5
  __name: "grid-layout",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, ref as v, readonly as D, onUnmounted as E, resolveComponent as f, openBlock as u, createElementBlock as m, createElementVNode as t, createVNode as s, withKeys as R, withModifiers as U, withCtx as c, createBlock as $, createTextVNode as C, toDisplayString as S, createCommentVNode as L, Fragment as q, renderList as A, normalizeClass as T, withDirectives as G, unref as H, vShow as J } from "vue";
2
- import { c as O, j as P, I as k, b as Q, _ as W } from "./index-BHy32Cui.js";
2
+ import { c as O, j as P, I as k, b as Q, _ as W } from "./index-BAvzFzs-.js";
3
3
  import "element-plus";
4
4
  const X = { class: "filter-search-header" }, Y = { class: "input-tag-wrapper" }, Z = { class: "input-action" }, ee = { class: "input-action-tag-wrapper" }, ae = /* @__PURE__ */ j({
5
5
  __name: "FilterSearch",
@@ -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, e as W, f as V, a as L, h as X } from "./index-BHy32Cui.js";
2
+ import { u as U, l as w, e as W, f as V, a as L, h as X } from "./index-BAvzFzs-.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 i, computed as o, openBlock as d, createElementBlock as a, normalizeStyle as r, createVNode as l, unref as m } from "vue";
2
- import { b as g } from "./index-BHy32Cui.js";
2
+ import { b as g } from "./index-BAvzFzs-.js";
3
3
  import "element-plus";
4
4
  const x = /* @__PURE__ */ i({
5
5
  __name: "Grid",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as s, resolveDirective as c, withDirectives as a, openBlock as d, createElementBlock as f, normalizeStyle as p, createVNode as _, unref as m } from "vue";
2
- import { c as u, b as y, _ as h } from "./index-BHy32Cui.js";
2
+ import { c as u, b as y, _ as h } from "./index-BAvzFzs-.js";
3
3
  import "element-plus";
4
4
  const b = ["infinite-scroll-disabled"], v = /* @__PURE__ */ s({
5
5
  __name: "InfiniteScroll",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as l, computed as o, openBlock as r, createElementBlock as i, normalizeStyle as p, createVNode as s, unref as c } from "vue";
2
- import { b as m, _ as u } from "./index-BHy32Cui.js";
2
+ import { b as m, _ as u } from "./index-BAvzFzs-.js";
3
3
  import "element-plus";
4
4
  const f = /* @__PURE__ */ l({
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 { _ as xt, g as Nt } from "./index-BHy32Cui.js";
2
+ import { _ as xt, g as Nt } from "./index-BAvzFzs-.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, openBlock as e, createElementBlock as o, Fragment as a, renderList as d, createElementVNode as s, normalizeStyle as i, toDisplayString as l, normalizeClass as u, createTextVNode as g, createCommentVNode as v } from "vue";
2
- import { _ as y } from "./index-BHy32Cui.js";
2
+ import { _ as y } from "./index-BAvzFzs-.js";
3
3
  const f = { class: "log-list" }, h = { class: "title-part" }, m = { class: "title" }, b = { class: "sub-title" }, k = { class: "content" }, C = { key: 0 }, L = /* @__PURE__ */ p({
4
4
  __name: "LogList",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, inject as i, provide as f, ref as d, 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, e as h, f as k } from "./index-BHy32Cui.js";
2
+ import { u as j, e as h, f as k } from "./index-BAvzFzs-.js";
3
3
  import "element-plus";
4
4
  const v = { class: "vfc-ObjGroup" }, B = {
5
5
  key: 1,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as D, resolveComponent as M, openBlock as l, createBlock as O, withCtx as B, createVNode as g, createElementVNode as i, createElementBlock as r, Fragment as u, renderList as b, toDisplayString as y, createCommentVNode as I, ref as E, inject as N, watchEffect as R, onMounted as S, normalizeStyle as $, unref as A } from "vue";
2
- import { k as L, $ as U, a as z, _ as x } from "./index-BHy32Cui.js";
2
+ import { k as L, $ as U, a as z, _ as x } from "./index-BAvzFzs-.js";
3
3
  const F = { class: "content" }, K = { class: "product-list" }, V = { class: "attribute-list" }, j = {
4
4
  key: 0,
5
5
  class: "attribute-list-item"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as y, ref as s, readonly as C, onUnmounted as v, resolveComponent as S, openBlock as h, createElementBlock as P, normalizeStyle as N, createVNode as _ } from "vue";
2
- import { c as B, j, _ as w } from "./index-BHy32Cui.js";
2
+ import { c as B, j, _ as w } from "./index-BAvzFzs-.js";
3
3
  import "element-plus";
4
4
  const M = /* @__PURE__ */ y({
5
5
  __name: "Pagination",