@kp-ui/lowcode 2.16.0-alpha.3 → 2.16.0-alpha.5

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/install.js CHANGED
@@ -1,27 +1,29 @@
1
1
  /* empty css */
2
2
  import "./_virtual/virtual_svg-icons-register.js";
3
- import p from "dayjs";
4
- import { getLocat as m } from "@kp-ui/tool";
5
- import { VxeTooltip as s } from "vxe-pc-ui";
6
- import { basicFieldsEnums as P } from "./src/components/form-designer/widget-panel/basicFieldsEnums.js";
3
+ import a from "dayjs";
4
+ import { getLocat as i } from "@kp-ui/tool";
5
+ import { VxeTooltip as m } from "vxe-pc-ui";
6
+ import { basicFieldsEnums as R } from "./src/components/form-designer/widget-panel/basicFieldsEnums.js";
7
7
  import { default as $ } from "./src/components/form-designer/index.vue.js";
8
8
  /* empty css */
9
- import { openCustomerModal as a } from "./src/components/public/CustomerModal/useCustomerModal.js";
10
- import { default as V } from "./src/components/form-render/SubmitButtonRender.vue.js";
9
+ import { openCustomerModal as s } from "./src/components/public/CustomerModal/useCustomerModal.js";
10
+ import { default as C } from "./src/components/form-render/SubmitButtonRender.vue.js";
11
11
  import { default as F } from "./src/components/public/ActionButtonListRender.vue.js";
12
- import { useLowcode as w } from "./src/hooks/useLowcode.js";
13
- import { default as I } from "./src/components/FormRender/index.vue.js";
12
+ import { default as w } from "./src/components/public/ConfigView/CustomPageRender.vue.js";
13
+ import { useLowcode as I } from "./src/hooks/useLowcode.js";
14
+ import { default as T } from "./src/components/FormRender/index.vue.js";
14
15
  const x = (e) => {
15
16
  const { app: o, factoryRender: r, getUserInfo: t } = e;
16
- o.config.globalProperties.$getLocat = m, o.config.globalProperties.$dayjs = p, o.config.globalProperties.$getUserInfo = t, o.config.globalProperties.$factoryRender = r, o.config.globalProperties.$openCustomerModal = (i) => a(i, o), o.component("VxeTooltip", s);
17
+ o.config.globalProperties.$getLocat = i, o.config.globalProperties.$dayjs = a, o.config.globalProperties.$getUserInfo = t, o.config.globalProperties.$factoryRender = r, o.config.globalProperties.$openCustomerModal = (p) => s(p, o), o.component("VxeTooltip", m);
17
18
  };
18
19
  export {
19
20
  F as ActionButtonListRender,
20
- V as SubmitButtonRender,
21
+ w as CustomPageRender,
22
+ C as SubmitButtonRender,
21
23
  $ as VFormDesigner,
22
- I as VFormRender,
23
- P as basicFieldsEnums,
24
+ T as VFormRender,
25
+ R as basicFieldsEnums,
24
26
  x as registerLowcodeCore,
25
- w as useLowcode
27
+ I as useLowcode
26
28
  };
27
29
  //# sourceMappingURL=install.js.map
package/install.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"install.js","sources":["../install.ts"],"sourcesContent":["// 导出基础组件\nimport '@/styles/global.less';\nimport 'virtual:svg-icons-register';\nimport dayjs from 'dayjs';\nimport { getLocat } from '@kp-ui/tool';\nimport { VxeTooltip } from 'vxe-pc-ui';\n\nexport { basicFieldsEnums } from '@/components/form-designer/widget-panel/basicFieldsEnums';\n\nexport { default as VFormDesigner } from '@/components/form-designer/index.vue';\n\nimport { openCustomerModal } from '@/components/public/CustomerModal/useCustomerModal';\nimport type { App } from 'vue';\nexport { default as SubmitButtonRender } from '@/components/form-render/SubmitButtonRender.vue';\n\nexport { default as ActionButtonListRender } from '@/components/public/ActionButtonListRender.vue';\n\nexport { useLowcode, VFormRender } from '@/hooks/useLowcode';\nexport type { ActionButton } from '@/types/button';\n\ninterface RegisterLowcodeCoreParams {\n app: App;\n factoryRender: (name: any, props: any, ...args: any[]) => any;\n getUserInfo?: () => any;\n}\n\n// 注册 HTTP\nexport const registerLowcodeCore = (params: RegisterLowcodeCoreParams) => {\n const { app, factoryRender, getUserInfo } = params;\n app.config.globalProperties.$getLocat = getLocat;\n app.config.globalProperties.$dayjs = dayjs;\n app.config.globalProperties.$getUserInfo = getUserInfo;\n app.config.globalProperties.$factoryRender = factoryRender;\n app.config.globalProperties.$openCustomerModal = ops => openCustomerModal(ops, app);\n app.component('VxeTooltip', VxeTooltip);\n};\n"],"names":["registerLowcodeCore","params","app","factoryRender","getUserInfo","getLocat","dayjs","ops","openCustomerModal","VxeTooltip"],"mappings":";;;;;;;;;;;;;AA2BO,MAAMA,IAAsB,CAACC,MAAsC;AACtE,QAAM,EAAE,KAAAC,GAAK,eAAAC,GAAe,aAAAC,EAAA,IAAgBH;AAC5C,EAAAC,EAAI,OAAO,iBAAiB,YAAYG,GACxCH,EAAI,OAAO,iBAAiB,SAASI,GACrCJ,EAAI,OAAO,iBAAiB,eAAeE,GAC3CF,EAAI,OAAO,iBAAiB,iBAAiBC,GAC7CD,EAAI,OAAO,iBAAiB,qBAAqB,CAAAK,MAAOC,EAAkBD,GAAKL,CAAG,GAClFA,EAAI,UAAU,cAAcO,CAAU;AAC1C;"}
1
+ {"version":3,"file":"install.js","sources":["../install.ts"],"sourcesContent":["// 导出基础组件\nimport '@/styles/global.less';\nimport 'virtual:svg-icons-register';\nimport dayjs from 'dayjs';\nimport { getLocat } from '@kp-ui/tool';\nimport { VxeTooltip } from 'vxe-pc-ui';\n\nexport { basicFieldsEnums } from '@/components/form-designer/widget-panel/basicFieldsEnums';\n\nexport { default as VFormDesigner } from '@/components/form-designer/index.vue';\n\nimport { openCustomerModal } from '@/components/public/CustomerModal/useCustomerModal';\nimport type { App } from 'vue';\nexport { default as SubmitButtonRender } from '@/components/form-render/SubmitButtonRender.vue';\n\nexport { default as ActionButtonListRender } from '@/components/public/ActionButtonListRender.vue';\n\nexport { default as CustomPageRender } from '@/components/public/ConfigView/CustomPageRender.vue';\n\nexport { useLowcode, VFormRender } from '@/hooks/useLowcode';\nexport type { ActionButton } from '@/types/button';\n\ninterface RegisterLowcodeCoreParams {\n app: App;\n factoryRender: (name: any, props: any, ...args: any[]) => any;\n getUserInfo?: () => any;\n}\n\n// 注册 HTTP\nexport const registerLowcodeCore = (params: RegisterLowcodeCoreParams) => {\n const { app, factoryRender, getUserInfo } = params;\n app.config.globalProperties.$getLocat = getLocat;\n app.config.globalProperties.$dayjs = dayjs;\n app.config.globalProperties.$getUserInfo = getUserInfo;\n app.config.globalProperties.$factoryRender = factoryRender;\n app.config.globalProperties.$openCustomerModal = ops => openCustomerModal(ops, app);\n app.component('VxeTooltip', VxeTooltip);\n};\n"],"names":["registerLowcodeCore","params","app","factoryRender","getUserInfo","getLocat","dayjs","ops","openCustomerModal","VxeTooltip"],"mappings":";;;;;;;;;;;;;;AA6BO,MAAMA,IAAsB,CAACC,MAAsC;AACtE,QAAM,EAAE,KAAAC,GAAK,eAAAC,GAAe,aAAAC,EAAA,IAAgBH;AAC5C,EAAAC,EAAI,OAAO,iBAAiB,YAAYG,GACxCH,EAAI,OAAO,iBAAiB,SAASI,GACrCJ,EAAI,OAAO,iBAAiB,eAAeE,GAC3CF,EAAI,OAAO,iBAAiB,iBAAiBC,GAC7CD,EAAI,OAAO,iBAAiB,qBAAqB,CAAAK,MAAOC,EAAkBD,GAAKL,CAAG,GAClFA,EAAI,UAAU,cAAcO,CAAU;AAC1C;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kp-ui/lowcode",
3
- "version": "2.16.0-alpha.3",
3
+ "version": "2.16.0-alpha.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -0,0 +1,58 @@
1
+ import { defineComponent as C, onMounted as g, createElementBlock as x, openBlock as B, createVNode as o, unref as t, withCtx as m, createElementVNode as k } from "vue";
2
+ import { getLocat as d } from "@kp-ui/tool";
3
+ import { TpfAddInfoLayout as L } from "tmgc2-share";
4
+ import { useLowcode as v } from "../../../hooks/useLowcode.js";
5
+ import R from "../ActionButtonListRender.vue.js";
6
+ import b from "../../FormRender/index.vue.js";
7
+ const h = {
8
+ class: "t-bg-[#fff] t-h-full"
9
+ }, I = /* @__PURE__ */ C({
10
+ __name: "CustomPageRender",
11
+ setup(y) {
12
+ const {
13
+ formCode: l = "",
14
+ id: u = "",
15
+ type: s = "edit"
16
+ } = d(), {
17
+ vfdRef: e,
18
+ formConfig: a,
19
+ getComponentJson: p,
20
+ goBack: n
21
+ } = v({
22
+ formCode: l,
23
+ type: s
24
+ }), _ = ({
25
+ item: r
26
+ }) => {
27
+ r.name === "cancelButton" && n();
28
+ };
29
+ return g(async () => {
30
+ await p([]);
31
+ }), (r, f) => (B(), x("div", h, [o(t(L), null, {
32
+ footerRight: m(() => {
33
+ var i, c;
34
+ return [f[0] || (f[0] = k("div", {
35
+ id: "fromBtn"
36
+ }, null, -1)), o(R, {
37
+ buttonList: ((i = t(a)) == null ? void 0 : i.buttonList) || [],
38
+ ctx: (c = t(e)) == null ? void 0 : c.context,
39
+ onOnClick: _
40
+ }, null, 8, ["buttonList", "ctx"])];
41
+ }),
42
+ default: m(() => [o(b, {
43
+ ref_key: "vfdRef",
44
+ ref: e,
45
+ vfCtx: {
46
+ _id: t(u),
47
+ ...t(d)(),
48
+ goBack: t(n)
49
+ }
50
+ }, null, 8, ["vfCtx"])]),
51
+ _: 1
52
+ })]));
53
+ }
54
+ });
55
+ export {
56
+ I as default
57
+ };
58
+ //# sourceMappingURL=CustomPageRender.vue.js.map
@@ -0,0 +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>\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 { 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 { 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","footerRight","_createElementVNode","ActionButtonListRender","buttonList","ctx","context","onOnClick","VFormRender","ref","vfCtx","_id"],"mappings":";;;;;;;;;;;AAyBI,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,cApCDO,EAAA,GAAAC,EAYM,OAZNC,GAYM,CAXFC,EAUmBC,EAAAC,CAAA,GAAA,MAAA;AAAA,MARJC,eACP,MAAA;;AAAwB,gCAAxBC,EAAwB,OAAA;AAAA,UAAnBnB,IAAG;AAAA,WAAS,MAAA,EAAA,IACjBe,EAIEK,GAAA;AAAA,UAHGC,cAAYL,IAAAA,EAAAZ,CAAA,MAAAY,gBAAAA,EAAYK,eAAU,CAAA;AAAA,UAClCC,MAAKN,IAAAA,EAAAb,CAAA,MAAAa,gBAAAA,EAAQO;AAAAA,UACbC,WAAUhB;AAAAA;;iBANnB,MAAwE,CAAxEO,EAAwEU,GAAA;AAAA,iBAAvD;AAAA,QAAJC,KAAIvB;AAAAA,QAAUwB,OAAK;AAAA,UAAAC,KAASZ,EAAAhB,CAAA;AAAA,UAAE,GAAKgB,EAAAd,CAAA,EAAQ;AAAA,kBAAIc,EAAAV,CAAA;AAAA,QAAM;AAAA;;;;;"}
@@ -0,0 +1,5 @@
1
+ import f from "./CustomPageRender.vue.js";
2
+ export {
3
+ f as default
4
+ };
5
+ //# sourceMappingURL=CustomPageRender.vue2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomPageRender.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}