@kp-ui/lowcode 2.16.0-alpha.14 → 2.16.0-alpha.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kp-ui/lowcode",
3
- "version": "2.16.0-alpha.14",
3
+ "version": "2.16.0-alpha.15",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,12 +1,12 @@
1
- import { defineComponent as g, onMounted as x, createElementBlock as B, openBlock as k, createVNode as o, unref as t, withCtx as m, createElementVNode as L } from "vue";
2
- import { getLocat as s } from "@kp-ui/tool";
1
+ import { defineComponent as _, onMounted as x, createElementBlock as B, openBlock as k, createVNode as o, unref as t, withCtx as d, createElementVNode as L } from "vue";
2
+ import { getLocat as l } from "@kp-ui/tool";
3
3
  import { TpfAddInfoLayout as v } from "tmgc2-share";
4
4
  import { useLowcode as R } from "../../../hooks/useLowcode.js";
5
5
  import y from "../ActionButtonListRender.vue.js";
6
6
  import b from "../../FormRender/index.vue.js";
7
7
  const h = {
8
8
  class: "t-bg-[#fff] t-h-full"
9
- }, J = /* @__PURE__ */ g({
9
+ }, I = /* @__PURE__ */ _({
10
10
  __name: "CustomPageRender",
11
11
  props: {
12
12
  title: {
@@ -14,56 +14,53 @@ const h = {
14
14
  default: ""
15
15
  }
16
16
  },
17
- setup(w) {
17
+ setup(m) {
18
18
  const {
19
19
  formCode: u = "",
20
20
  id: a = "",
21
- type: p = "edit"
22
- } = s(), {
21
+ type: s = "edit"
22
+ } = l(), {
23
23
  vfdRef: e,
24
- formConfig: n,
25
- getComponentJson: _,
26
- goBack: r
24
+ formConfig: p,
25
+ getComponentJson: C,
26
+ goBack: n
27
27
  } = R({
28
28
  formCode: u,
29
- type: p
30
- }), C = ({
31
- item: f
29
+ type: s
30
+ }), g = ({
31
+ item: r
32
32
  }) => {
33
- f.name === "cancelButton" && r();
33
+ r.name === "cancelButton" && n();
34
34
  };
35
35
  return x(async () => {
36
- await _([]);
37
- }), (f, i) => {
38
- var c;
39
- return k(), B("div", h, [o(t(v), {
40
- title: (c = t(n)) == null ? void 0 : c.title
41
- }, {
42
- footerRight: m(() => {
43
- var d, l;
44
- return [i[0] || (i[0] = L("div", {
45
- id: "fromBtn"
46
- }, null, -1)), o(y, {
47
- buttonList: ((d = t(n)) == null ? void 0 : d.buttonList) || [],
48
- ctx: (l = t(e)) == null ? void 0 : l.context,
49
- onOnClick: C
50
- }, null, 8, ["buttonList", "ctx"])];
51
- }),
52
- default: m(() => [o(b, {
53
- ref_key: "vfdRef",
54
- ref: e,
55
- vfCtx: {
56
- _id: t(a),
57
- ...t(s)(),
58
- goBack: t(r)
59
- }
60
- }, null, 8, ["vfCtx"])]),
61
- _: 1
62
- }, 8, ["title"])]);
63
- };
36
+ await C([]);
37
+ }), (r, f) => (k(), B("div", h, [o(t(v), {
38
+ title: m.title
39
+ }, {
40
+ footerRight: d(() => {
41
+ var i, c;
42
+ return [f[0] || (f[0] = L("div", {
43
+ id: "fromBtn"
44
+ }, null, -1)), o(y, {
45
+ buttonList: ((i = t(p)) == null ? void 0 : i.buttonList) || [],
46
+ ctx: (c = t(e)) == null ? void 0 : c.context,
47
+ onOnClick: g
48
+ }, null, 8, ["buttonList", "ctx"])];
49
+ }),
50
+ default: d(() => [o(b, {
51
+ ref_key: "vfdRef",
52
+ ref: e,
53
+ vfCtx: {
54
+ _id: t(a),
55
+ ...t(l)(),
56
+ goBack: t(n)
57
+ }
58
+ }, null, 8, ["vfCtx"])]),
59
+ _: 1
60
+ }, 8, ["title"])]));
64
61
  }
65
62
  });
66
63
  export {
67
- J as default
64
+ I as default
68
65
  };
69
66
  //# sourceMappingURL=CustomPageRender.vue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CustomPageRender.vue.js","sources":["../../../../../src/components/public/ConfigView/CustomPageRender.vue"],"sourcesContent":["<template>\n <div class=\"t-bg-[#fff] t-h-full\">\n <TpfAddInfoLayout :title=\"formConfig?.title\">\n <VFormRender ref=\"vfdRef\" :vfCtx=\"{ _id: id, ...getLocat(), goBack }\" />\n <template #footerRight>\n <div id=\"fromBtn\"></div>\n <ActionButtonListRender\n :buttonList=\"formConfig?.buttonList || []\"\n :ctx=\"vfdRef?.context\"\n @on-click=\"handleButtonClick\"\n />\n </template>\n </TpfAddInfoLayout>\n </div>\n</template>\n\n<script lang=\"tsx\" setup>\n import { getLocat } from '@kp-ui/tool';\n import { computed, onMounted } from 'vue';\n import { TpfAddInfoLayout } from 'tmgc2-share';\n import { useLowcode } from '@/hooks/useLowcode';\n import ActionButtonListRender from '@/components/public/ActionButtonListRender.vue';\n import VFormRender from '@/components/FormRender/index.vue';\n import { ActionButton } from '@/types/button';\n\n const props = defineProps({\n title: {\n type: String,\n default: ''\n }\n });\n const { formCode = '', id = '', type = 'edit' } = getLocat();\n\n const { vfdRef, formConfig, getComponentJson, goBack } = useLowcode({ formCode, type });\n\n const handleButtonClick = ({ item }: { item: ActionButton }) => {\n if (item.name === 'cancelButton') {\n goBack();\n }\n };\n\n onMounted(async () => {\n await getComponentJson([]);\n });\n</script>\n\n<style lang=\"less\"></style>\n"],"names":["formCode","id","type","getLocat","vfdRef","formConfig","getComponentJson","goBack","useLowcode","handleButtonClick","item","name","onMounted","_openBlock","_createElementBlock","_hoisted_1","_createVNode","_unref","TpfAddInfoLayout","title","footerRight","_createElementVNode","ActionButtonListRender","buttonList","ctx","context","onOnClick","VFormRender","ref","vfCtx","_id"],"mappings":";;;;;;;;;;;;;;;;;AA+BI,UAAM;AAAA,MAAEA,UAAAA,IAAW;AAAA,MAAIC,IAAAA,IAAK;AAAA,MAAIC,MAAAA,IAAO;AAAA,QAAWC,EAAQ,GAEpD;AAAA,MAAEC,QAAAA;AAAAA,MAAQC,YAAAA;AAAAA,MAAYC,kBAAAA;AAAAA,MAAkBC,QAAAA;AAAAA,QAAWC,EAAW;AAAA,MAAER,UAAAA;AAAAA,MAAUE,MAAAA;AAAAA,IAAK,CAAC,GAEhFO,IAAoBA,CAAC;AAAA,MAAEC,MAAAA;AAAAA,IAA6B,MAAM;AAC5D,MAAIA,EAAKC,SAAS,kBACdJ,EAAM;AAAA,IAEd;AAEAK,WAAAA,EAAU,YAAY;AAClB,YAAMN,EAAiB,CAAA,CAAE;AAAA,IAC7B,CAAC;;AA1CD,aAAAO,EAAA,GAAAC,EAYM,OAZNC,GAYM,CAXFC,EAUmBC,EAAAC,CAAA,GAAA;AAAA,QAVAC,QAAOF,IAAAA,EAAAZ,CAAA,MAAAY,gBAAAA,EAAYE;AAAAA;QAEvBC,eACP,MAAA;;AAAwB,kCAAxBC,EAAwB,OAAA;AAAA,YAAnBpB,IAAG;AAAA,aAAS,MAAA,EAAA,IACjBe,EAIEM,GAAA;AAAA,YAHGC,cAAYN,IAAAA,EAAAZ,CAAA,MAAAY,gBAAAA,EAAYM,eAAU,CAAA;AAAA,YAClCC,MAAKP,IAAAA,EAAAb,CAAA,MAAAa,gBAAAA,EAAQQ;AAAAA,YACbC,WAAUjB;AAAAA;;mBANnB,MAAwE,CAAxEO,EAAwEW,GAAA;AAAA,mBAAvD;AAAA,UAAJC,KAAIxB;AAAAA,UAAUyB,OAAK;AAAA,YAAAC,KAASb,EAAAhB,CAAA;AAAA,YAAE,GAAKgB,EAAAd,CAAA,EAAQ;AAAA,oBAAIc,EAAAV,CAAA;AAAA,UAAM;AAAA;;;;;;"}
1
+ {"version":3,"file":"CustomPageRender.vue.js","sources":["../../../../../src/components/public/ConfigView/CustomPageRender.vue"],"sourcesContent":["<template>\n <div class=\"t-bg-[#fff] t-h-full\">\n <TpfAddInfoLayout :title=\"title\">\n <VFormRender ref=\"vfdRef\" :vfCtx=\"{ _id: id, ...getLocat(), goBack }\" />\n <template #footerRight>\n <div id=\"fromBtn\"></div>\n <ActionButtonListRender\n :buttonList=\"formConfig?.buttonList || []\"\n :ctx=\"vfdRef?.context\"\n @on-click=\"handleButtonClick\"\n />\n </template>\n </TpfAddInfoLayout>\n </div>\n</template>\n\n<script lang=\"tsx\" setup>\n import { getLocat } from '@kp-ui/tool';\n import { computed, onMounted } from 'vue';\n import { TpfAddInfoLayout } from 'tmgc2-share';\n import { useLowcode } from '@/hooks/useLowcode';\n import ActionButtonListRender from '@/components/public/ActionButtonListRender.vue';\n import VFormRender from '@/components/FormRender/index.vue';\n import { ActionButton } from '@/types/button';\n\n const props = defineProps({\n title: {\n type: String,\n default: ''\n }\n });\n const { formCode = '', id = '', type = 'edit' } = getLocat();\n\n const { vfdRef, formConfig, getComponentJson, goBack } = useLowcode({ formCode, type });\n\n const handleButtonClick = ({ item }: { item: ActionButton }) => {\n if (item.name === 'cancelButton') {\n goBack();\n }\n };\n\n onMounted(async () => {\n await getComponentJson([]);\n });\n</script>\n\n<style lang=\"less\"></style>\n"],"names":["formCode","id","type","getLocat","vfdRef","formConfig","getComponentJson","goBack","useLowcode","handleButtonClick","item","name","onMounted","_openBlock","_createElementBlock","_hoisted_1","_createVNode","_unref","TpfAddInfoLayout","title","__props","footerRight","_createElementVNode","ActionButtonListRender","buttonList","ctx","context","onOnClick","VFormRender","ref","vfCtx","_id"],"mappings":";;;;;;;;;;;;;;;;;AA+BI,UAAM;AAAA,MAAEA,UAAAA,IAAW;AAAA,MAAIC,IAAAA,IAAK;AAAA,MAAIC,MAAAA,IAAO;AAAA,QAAWC,EAAQ,GAEpD;AAAA,MAAEC,QAAAA;AAAAA,MAAQC,YAAAA;AAAAA,MAAYC,kBAAAA;AAAAA,MAAkBC,QAAAA;AAAAA,QAAWC,EAAW;AAAA,MAAER,UAAAA;AAAAA,MAAUE,MAAAA;AAAAA,IAAK,CAAC,GAEhFO,IAAoBA,CAAC;AAAA,MAAEC,MAAAA;AAAAA,IAA6B,MAAM;AAC5D,MAAIA,EAAKC,SAAS,kBACdJ,EAAM;AAAA,IAEd;AAEAK,WAAAA,EAAU,YAAY;AAClB,YAAMN,EAAiB,CAAA,CAAE;AAAA,IAC7B,CAAC,cA1CDO,EAAA,GAAAC,EAYM,OAZNC,GAYM,CAXFC,EAUmBC,EAAAC,CAAA,GAAA;AAAA,MAVAC,OAAOC,EAAAD;AAAAA,IAAK,GAAA;AAAA,MAEhBE,eACP,MAAA;;AAAwB,gCAAxBC,EAAwB,OAAA;AAAA,UAAnBrB,IAAG;AAAA,WAAS,MAAA,EAAA,IACjBe,EAIEO,GAAA;AAAA,UAHGC,cAAYP,IAAAA,EAAAZ,CAAA,MAAAY,gBAAAA,EAAYO,eAAU,CAAA;AAAA,UAClCC,MAAKR,IAAAA,EAAAb,CAAA,MAAAa,gBAAAA,EAAQS;AAAAA,UACbC,WAAUlB;AAAAA;;iBANnB,MAAwE,CAAxEO,EAAwEY,GAAA;AAAA,iBAAvD;AAAA,QAAJC,KAAIzB;AAAAA,QAAU0B,OAAK;AAAA,UAAAC,KAASd,EAAAhB,CAAA;AAAA,UAAE,GAAKgB,EAAAd,CAAA,EAAQ;AAAA,kBAAIc,EAAAV,CAAA;AAAA,QAAM;AAAA;;;;;"}