asiaint-lowcode 3.0.5 → 3.0.6

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 (30) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +140 -140
  3. package/dist/index.d.ts +16 -8
  4. package/dist/lazy/Card-BwIpHHbi.js +65 -0
  5. package/dist/lazy/{Cascader-VrWiXWef.js → Cascader-cKLK7mem.js} +1 -1
  6. package/dist/lazy/{Checkbox-CMsY6WjS.js → Checkbox-DtbVDDXb.js} +2 -2
  7. package/dist/lazy/{Collapse-Ciaob2ZL.js → Collapse-DMYUW4Km.js} +1 -1
  8. package/dist/lazy/Component-B0VBQwhJ.js +29 -0
  9. package/dist/lazy/{Component-8SAI-15Y.js → Component-BCxS_AH5.js} +1 -1
  10. package/dist/lazy/{Component-CI_B8-m5.js → Component-BjEXrMSI.js} +1 -1
  11. package/dist/lazy/{Component-C1DW5f5U.js → Component-DzK59rNg.js} +1 -1
  12. package/dist/lazy/{Component-XgcecAM3.js → Component-i7k--fN-.js} +1 -1
  13. package/dist/lazy/{Custom-BHt4ZDGh.js → Custom-DEoV7gvb.js} +1 -1
  14. package/dist/lazy/{DatePicker-CVPwVYdm.js → DatePicker-al4c4ajg.js} +1 -1
  15. package/dist/lazy/{FormList-CXh76oSE.js → FormList-CNSVq4AR.js} +1 -1
  16. package/dist/lazy/{Grid-CDSfkwnB.js → Grid-CyJHLzs1.js} +1 -1
  17. package/dist/lazy/{Inline-gbqztsv5.js → Inline-CpQAmde3.js} +1 -1
  18. package/dist/lazy/{JsonEdit-BlXHJTlR.js → JsonEdit-D4tp2QDt.js} +1 -1
  19. package/dist/lazy/{ObjGroup-DkTI60tG.js → ObjGroup-Z7cutw6v.js} +1 -1
  20. package/dist/lazy/{Radio-CFFFY0pm.js → Radio-Bbn3m_Hg.js} +2 -2
  21. package/dist/lazy/{SearchSelect-C_hL9yqi.js → SearchSelect-DrwHTBHY.js} +2 -2
  22. package/dist/lazy/{Select-U2j6iqY2.js → Select-D3sP3-da.js} +2 -2
  23. package/dist/lazy/{Tabs-CvrPV-du.js → Tabs-BraXCkHy.js} +1 -1
  24. package/dist/lazy/{TextArea-M1a-STKd.js → TextArea-5g1xr0mj.js} +1 -1
  25. package/dist/lazy/{index-CHaTGLOB.js → index-D5eszhxL.js} +4915 -4831
  26. package/dist/lazy/{useSelect-CBLVtYrq.js → useSelect-CPxQO_Ri.js} +1 -1
  27. package/dist/style.css +1 -1
  28. package/package.json +1 -1
  29. package/dist/lazy/Card-DFihjj-u.js +0 -46
  30. package/dist/lazy/Component-CFRtjJag.js +0 -28
package/dist/index.d.ts CHANGED
@@ -53,7 +53,9 @@ resetFields: (names?: string[]) => void;
53
53
  submit: () => void;
54
54
  setDisabled: (disabled: boolean) => void;
55
55
  findItemByName: (items: FormItemType[], name: string) => FormItemType | null;
56
- setValue: (key: string, value: any, realValue: any) => void;
56
+ setFieldEditSts: (key: string, value: boolean) => void;
57
+ setFieldVisibleSts: (key: string, value: boolean) => void;
58
+ setFieldValue: (key: string, realValue: any, value: any) => void;
57
59
  type: string;
58
60
  schema: FormSchema;
59
61
  schemaContext: Record<string, any>;
@@ -145,6 +147,14 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
145
147
  };
146
148
  };
147
149
 
150
+ declare type BtnType = {
151
+ key: string;
152
+ text: string;
153
+ onClick: string;
154
+ disabled: boolean;
155
+ hidden: boolean;
156
+ };
157
+
148
158
  declare const _default: {
149
159
  install: (app: App<Element>, options?: Options) => void;
150
160
  };
@@ -339,6 +349,10 @@ export declare type PageMethods = {
339
349
  getPageParams: () => any;
340
350
  setHidden: (key: string, hiddenState: boolean) => void;
341
351
  setBtnHidden: (key: string, hiddenState: boolean) => void;
352
+ addPageParams: (params: any) => void;
353
+ setPageParams: (params: any) => void;
354
+ setGlobalParams: (params: any) => void;
355
+ getGlobalParams: () => any;
342
356
  };
343
357
 
344
358
  export declare const PageRender: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, ReturnType<typeof __VLS_template_2>>;
@@ -358,13 +372,7 @@ declare type PageSchema = {
358
372
  type: 'tabs';
359
373
  schema: TabsSchema;
360
374
  }>;
361
- btns: Array<{
362
- key: string;
363
- text: string;
364
- onClick: string;
365
- disabled: boolean;
366
- hidden: boolean;
367
- }>;
375
+ btns: Array<BtnType>;
368
376
  };
369
377
 
370
378
  declare interface SelectProps {
@@ -0,0 +1,65 @@
1
+ import { defineComponent as y, ref as M, inject as i, resolveComponent as c, openBlock as l, createBlock as r, normalizeProps as g, guardReactiveProps as w, withCtx as t, createElementVNode as n, unref as p, normalizeClass as $, createCommentVNode as u, toDisplayString as _, createElementBlock as m, Fragment as v, renderList as B, createTextVNode as E, createVNode as C, Transition as V, withDirectives as N, vShow as z } from "vue";
2
+ import { _ as D, a as P, b as S } from "./index-D5eszhxL.js";
3
+ import "element-plus";
4
+ const T = { class: "card-header" }, j = { class: "card-btns" }, x = /* @__PURE__ */ y({
5
+ __name: "Card",
6
+ props: {
7
+ children: {},
8
+ collapsible: { type: Boolean },
9
+ header: {},
10
+ btns: {}
11
+ },
12
+ setup(F) {
13
+ const a = M(!1), s = i("ruleModule", void 0), f = i("pageMethodMap", {}), h = (e) => {
14
+ s && s[e] && s[e](f);
15
+ };
16
+ return (e, d) => {
17
+ const k = c("el-button"), b = c("ElCard");
18
+ return l(), r(b, g(w(e.$attrs)), {
19
+ header: t(() => [
20
+ n("div", T, [
21
+ e.collapsible ? (l(), r(p(D), {
22
+ key: 0,
23
+ name: "dropdown",
24
+ onClick: d[0] || (d[0] = (o) => a.value = !a.value),
25
+ class: $(["dropdown-icon", { "is-collapsed": a.value }])
26
+ }, null, 8, ["class"])) : u("", !0),
27
+ n("span", null, _(e.header), 1),
28
+ n("div", j, [
29
+ (l(!0), m(v, null, B(e.btns, (o) => (l(), m(v, {
30
+ key: o.key
31
+ }, [
32
+ o.hidden ? u("", !0) : (l(), r(k, {
33
+ key: 0,
34
+ onClick: (I) => h(o.onClick),
35
+ disabled: o.disabled
36
+ }, {
37
+ default: t(() => [
38
+ E(_(o.text), 1)
39
+ ]),
40
+ _: 2
41
+ }, 1032, ["onClick", "disabled"]))
42
+ ], 64))), 128))
43
+ ])
44
+ ])
45
+ ]),
46
+ default: t(() => [
47
+ C(V, { name: "collapse" }, {
48
+ default: t(() => [
49
+ N(n("div", null, [
50
+ C(p(P), { list: e.children }, null, 8, ["list"])
51
+ ], 512), [
52
+ [z, !a.value]
53
+ ])
54
+ ]),
55
+ _: 1
56
+ })
57
+ ]),
58
+ _: 1
59
+ }, 16);
60
+ };
61
+ }
62
+ }), A = /* @__PURE__ */ S(x, [["__scopeId", "data-v-3a7c0d8d"]]);
63
+ export {
64
+ A 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 C, createBlock as h, mergeProps as y, unref as u } from "vue";
2
2
  import "element-plus";
3
- import { u as V } from "./useSelect-CBLVtYrq.js";
3
+ import { u as V } from "./useSelect-CPxQO_Ri.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-CHaTGLOB.js";
4
- import { u as E } from "./useSelect-CBLVtYrq.js";
3
+ import { u as j } from "./index-D5eszhxL.js";
4
+ import { u as E } from "./useSelect-CPxQO_Ri.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-CHaTGLOB.js";
2
+ import { a as y } from "./index-D5eszhxL.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({
@@ -0,0 +1,29 @@
1
+ import { defineComponent as r, mergeModels as s, useModel as d, resolveComponent as a, openBlock as p, createBlock as i, mergeProps as c } from "vue";
2
+ const v = /* @__PURE__ */ r({
3
+ __name: "Component",
4
+ props: /* @__PURE__ */ s({
5
+ min: {}
6
+ }, {
7
+ modelValue: {},
8
+ modelModifiers: {}
9
+ }),
10
+ emits: ["update:modelValue"],
11
+ setup(l) {
12
+ const o = d(l, "modelValue"), t = (e) => {
13
+ ["E", "e", "+", "-"].includes(e.key) && e.preventDefault();
14
+ };
15
+ return (e, n) => {
16
+ const m = a("el-input-number");
17
+ return p(), i(m, c(e.$attrs, {
18
+ modelValue: o.value,
19
+ "onUpdate:modelValue": n[0] || (n[0] = (u) => o.value = u),
20
+ style: { width: "100%" },
21
+ min: e.min || 0,
22
+ onKeydown: t
23
+ }), null, 16, ["modelValue", "min"]);
24
+ };
25
+ }
26
+ });
27
+ export {
28
+ v as default
29
+ };
@@ -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-CHaTGLOB.js";
5
+ import { u as b, b as x } from "./index-D5eszhxL.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,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-CHaTGLOB.js";
3
+ import { _ as f } from "./index-D5eszhxL.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-CHaTGLOB.js";
2
+ import { u as V } from "./index-D5eszhxL.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-CHaTGLOB.js";
2
+ import { b as H, u as K, c as Q } from "./index-D5eszhxL.js";
3
3
  import "element-plus";
4
4
  const Z = $({
5
5
  props: {
@@ -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-CHaTGLOB.js";
2
+ import { b as i } from "./index-D5eszhxL.js";
3
3
  const f = {
4
4
  key: 0,
5
5
  class: "empty"
@@ -1,5 +1,5 @@
1
1
  import { resolveComponent as t, openBlock as o, createBlock as c, mergeProps as n } from "vue";
2
- import { b as s } from "./index-CHaTGLOB.js";
2
+ import { b as s } from "./index-D5eszhxL.js";
3
3
  const _ = {};
4
4
  function a(e, p) {
5
5
  const r = t("el-date-picker");
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, mergeModels as j, useModel as G, ref as T, computed as M, watch as H, onMounted as J, provide as K, resolveComponent as b, openBlock as l, createElementBlock as _, unref as m, createBlock as s, Fragment as $, renderList as g, withCtx as r, createElementVNode as C, createVNode as v, mergeProps as R, createCommentVNode as y, toDisplayString as F, createTextVNode as O, h as Q } from "vue";
2
- import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-CHaTGLOB.js";
2
+ import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-D5eszhxL.js";
3
3
  import "element-plus";
4
4
  const Y = { class: "vfc-formList" }, Z = { key: 1 }, x = { class: "list-item-content" }, ee = { class: "card-header" }, le = { style: { "margin-top": "5px" } }, oe = /* @__PURE__ */ S({
5
5
  __name: "FormList",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as t, computed as n, openBlock as a, createBlock as m, unref as p, normalizeStyle as s } from "vue";
2
- import { a as i } from "./index-CHaTGLOB.js";
2
+ import { a as i } from "./index-D5eszhxL.js";
3
3
  import "element-plus";
4
4
  const g = /* @__PURE__ */ t({
5
5
  __name: "Grid",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as a, computed as l, openBlock as p, createBlock as r, unref as i, normalizeStyle as s } from "vue";
2
- import { a as c, b as f } from "./index-CHaTGLOB.js";
2
+ import { a as c, b as f } from "./index-D5eszhxL.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-CHaTGLOB.js";
2
+ import { b as xt, g as Nt } from "./index-D5eszhxL.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-CHaTGLOB.js";
2
+ import { u as j, d as h, e as k } from "./index-D5eszhxL.js";
3
3
  import "element-plus";
4
4
  const v = { class: "vfc-ObjGroup" }, B = {
5
5
  key: 1,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as B, mergeModels as S, useModel as T, inject as h, resolveComponent as s, resolveDirective as w, unref as o, openBlock as l, createElementBlock as d, toDisplayString as F, Fragment as f, createCommentVNode as N, withDirectives as I, createBlock as y, mergeProps as k, withCtx as C, createVNode as P, renderList as M } from "vue";
2
- import { u as $ } from "./index-CHaTGLOB.js";
3
- import { u as j } from "./useSelect-CBLVtYrq.js";
2
+ import { u as $ } from "./index-D5eszhxL.js";
3
+ import { u as j } from "./useSelect-CPxQO_Ri.js";
4
4
  const E = { key: 0 }, L = {
5
5
  key: 0,
6
6
  style: { "font-size": "12px" }
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as w, mergeModels as A, useModel as F, inject as S, resolveComponent as b, resolveDirective as I, unref as n, openBlock as a, createElementBlock as u, toDisplayString as v, withDirectives as N, createBlock as k, mergeProps as j, withCtx as y, Fragment as P, renderList as $, createTextVNode as E, createVNode as C } from "vue";
2
- import { u as L, _ as O, b as T } from "./index-CHaTGLOB.js";
3
- import { u as U } from "./useSelect-CBLVtYrq.js";
2
+ import { u as L, _ as O, b as T } from "./index-D5eszhxL.js";
3
+ import { u as U } from "./useSelect-CPxQO_Ri.js";
4
4
  const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
5
5
  key: 1,
6
6
  class: "search-select-wrapper"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as C, mergeModels as V, useModel as _, inject as c, resolveComponent as f, resolveDirective as D, openBlock as u, createBlock as v, mergeProps as k, withCtx as y, withDirectives as B, createElementBlock as b, Fragment as S, renderList as A, unref as g, createTextVNode as F, toDisplayString as w } from "vue";
2
- import { u as I } from "./index-CHaTGLOB.js";
3
- import { u as N } from "./useSelect-CBLVtYrq.js";
2
+ import { u as I } from "./index-D5eszhxL.js";
3
+ import { u as N } from "./useSelect-CPxQO_Ri.js";
4
4
  const P = { style: { "min-height": "32px" } }, O = /* @__PURE__ */ C({
5
5
  __name: "Select",
6
6
  props: /* @__PURE__ */ V({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, ref as m, watch as _, onMounted as h, resolveComponent as a, openBlock as l, createBlock as c, mergeProps as u, withCtx as d, createElementBlock as b, Fragment as v, renderList as y, createVNode as k, unref as K } from "vue";
2
- import { a as V } from "./index-CHaTGLOB.js";
2
+ import { a as V } from "./index-D5eszhxL.js";
3
3
  import "element-plus";
4
4
  const w = /* @__PURE__ */ i({
5
5
  __name: "Tabs",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, useModel as s, resolveComponent as p, unref as d, openBlock as t, createElementBlock as i, toDisplayString as c, createBlock as f, mergeProps as _ } from "vue";
2
- import { u as v } from "./index-CHaTGLOB.js";
2
+ import { u as v } from "./index-D5eszhxL.js";
3
3
  import "element-plus";
4
4
  const V = { key: 0 }, B = /* @__PURE__ */ u({
5
5
  __name: "TextArea",