@kp-ui/lowcode-pc 1.0.0-alpha.1 → 1.0.0-alpha.2

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 (158) hide show
  1. package/assets/CustomerModal.mjs +3 -91
  2. package/assets/install.mjs +197 -41
  3. package/index.js +6 -2
  4. package/package.json +3 -3
  5. package/types/index.d.ts +1 -0
  6. package/types/pc/install.d.ts +9 -0
  7. package/types/core/src/components/DragBtn.vue.d.ts +0 -7
  8. package/types/core/src/components/HttpEditor.vue.d.ts +0 -46
  9. package/types/core/src/components/common/EventItemEditor.vue.d.ts +0 -12
  10. package/types/core/src/components/common/LowcodeI18nProvider.vue.d.ts +0 -17
  11. package/types/core/src/components/common/RenderWidgetList.vue.d.ts +0 -16
  12. package/types/core/src/components/common/desginer/FormWidgetContainer.vue.d.ts +0 -6
  13. package/types/core/src/components/common/desginer/RenderDesignerWrapper.vue.d.ts +0 -2
  14. package/types/core/src/components/common/desginer/WidgetWrapper.vue.d.ts +0 -30
  15. package/types/core/src/components/common/render/ActionButtonListDialog.vue.d.ts +0 -345
  16. package/types/core/src/components/common/render/Debugger.vue.d.ts +0 -10
  17. package/types/core/src/components/common/render/LowcodeRenderProvider.vue.d.ts +0 -26
  18. package/types/core/src/components/common/render/index.d.ts +0 -6
  19. package/types/core/src/components/common/render/useFormContext.d.ts +0 -148
  20. package/types/core/src/components/common/render/useFormDataProcessor.d.ts +0 -10
  21. package/types/core/src/components/contextMenu/WidgetContextMenu.vue.d.ts +0 -21
  22. package/types/core/src/components/contextMenu/useWidgetContextMenu.d.ts +0 -25
  23. package/types/core/src/components/index.d.ts +0 -17
  24. package/types/core/src/components/layout/LowcodeLayout.vue.d.ts +0 -24
  25. package/types/core/src/components/property-editor/index.d.ts +0 -3
  26. package/types/core/src/components/property-editor/propertyRegister.d.ts +0 -199
  27. package/types/core/src/components/property-editor/useEditor.d.ts +0 -19
  28. package/types/core/src/components/setting-plane/WidgetSettingPlane.vue.d.ts +0 -2
  29. package/types/core/src/components/setting-plane/form-crud-setting.vue.d.ts +0 -10
  30. package/types/core/src/components/setting-plane/form-setting.vue.d.ts +0 -332
  31. package/types/core/src/components/setting-plane/index.d.ts +0 -3
  32. package/types/core/src/components/setting-plane/index.vue.d.ts +0 -675
  33. package/types/core/src/components/settings/PanelItemDrag.vue.d.ts +0 -24
  34. package/types/core/src/components/settings/WidgetPanel.vue.d.ts +0 -20
  35. package/types/core/src/components/toolbar-panel/index.vue.d.ts +0 -689
  36. package/types/core/src/constants/EditorTypeEnum.d.ts +0 -151
  37. package/types/core/src/constants/LayoutTypeEnum.d.ts +0 -5
  38. package/types/core/src/constants/WidgetTypeEnum.d.ts +0 -65
  39. package/types/core/src/constants/index.d.ts +0 -12
  40. package/types/core/src/hooks/index.d.ts +0 -7
  41. package/types/core/src/hooks/useAppRef.d.ts +0 -9
  42. package/types/core/src/hooks/useDataHttp.d.ts +0 -207
  43. package/types/core/src/hooks/useDesigner.d.ts +0 -22
  44. package/types/core/src/hooks/useField.d.ts +0 -95
  45. package/types/core/src/hooks/useFormValidation.d.ts +0 -54
  46. package/types/core/src/hooks/useInputEvent.d.ts +0 -10
  47. package/types/core/src/hooks/useLowcode.d.ts +0 -22
  48. package/types/core/src/hooks/useNativeDragAndDrop.d.ts +0 -34
  49. package/types/core/src/hooks/useWidget.d.ts +0 -5
  50. package/types/core/src/lang/en-US.d.ts +0 -564
  51. package/types/core/src/lang/en-US_extension.d.ts +0 -23
  52. package/types/core/src/lang/en-US_render.d.ts +0 -38
  53. package/types/core/src/lang/zh-CN.d.ts +0 -584
  54. package/types/core/src/lang/zh-CN_extension.d.ts +0 -23
  55. package/types/core/src/lang/zh-CN_render.d.ts +0 -38
  56. package/types/core/src/types/button.d.ts +0 -17
  57. package/types/core/src/types/designer.d.ts +0 -74
  58. package/types/core/src/types/fileObject.d.ts +0 -7
  59. package/types/core/src/types/global.d.ts +0 -20
  60. package/types/core/src/types/index.d.ts +0 -8
  61. package/types/core/src/types/rowSelectionType.d.ts +0 -12
  62. package/types/core/src/types/schema.d.ts +0 -169
  63. package/types/core/src/types/widgetProps.d.ts +0 -8
  64. package/types/core/src/utils/emitter.d.ts +0 -17
  65. package/types/core/src/utils/event-bus.d.ts +0 -10
  66. package/types/core/src/utils/file.d.ts +0 -0
  67. package/types/core/src/utils/format.d.ts +0 -46
  68. package/types/core/src/utils/getFileName.d.ts +0 -1
  69. package/types/core/src/utils/i18n.d.ts +0 -27
  70. package/types/core/src/utils/index.d.ts +0 -7
  71. package/types/core/src/utils/insertAssetsToBody.d.ts +0 -3
  72. package/types/core/src/utils/request/handleAxiosError.d.ts +0 -11
  73. package/types/core/src/utils/request/http.d.ts +0 -4
  74. package/types/core/src/utils/smart-vue-i18n/index.d.ts +0 -11
  75. package/types/core/src/utils/transformWidgetList.d.ts +0 -2
  76. package/types/core/src/utils/useEmitter.d.ts +0 -31
  77. package/types/core/src/utils/util.d.ts +0 -81
  78. package/types/core/src/utils/validators.d.ts +0 -25
  79. package/types/pc/src/components/desginer/form-widget/container-widget/data-table-widget.vue.d.ts +0 -77
  80. package/types/pc/src/components/desginer/form-widget/container-widget/grid-col-widget.vue.d.ts +0 -16
  81. package/types/pc/src/components/desginer/form-widget/container-widget/grid-sub-form-widget.vue.d.ts +0 -5
  82. package/types/pc/src/components/desginer/form-widget/container-widget/grid-widget.vue.d.ts +0 -5
  83. package/types/pc/src/components/desginer/form-widget/container-widget/index.d.ts +0 -153
  84. package/types/pc/src/components/desginer/form-widget/container-widget/tab-widget.vue.d.ts +0 -5
  85. package/types/pc/src/components/desginer/form-widget/container-widget/useTableWidget.d.ts +0 -274
  86. package/types/pc/src/components/desginer/form-widget/container-widget/vf-box-widget.vue.d.ts +0 -32
  87. package/types/pc/src/components/desginer/form-widget/container-widget/vf-collapse-widget.vue.d.ts +0 -33
  88. package/types/pc/src/components/desginer/form-widget/container-widget/vf-dialog-widget.vue.d.ts +0 -4
  89. package/types/pc/src/components/desginer/form-widget/index.vue.d.ts +0 -171
  90. package/types/pc/src/components/desginer/index.vue.d.ts +0 -52
  91. package/types/pc/src/components/desginer/widget-panel/advanced/bpmn-editor.d.ts +0 -13
  92. package/types/pc/src/components/desginer/widget-panel/advanced/cascader.d.ts +0 -31
  93. package/types/pc/src/components/desginer/widget-panel/advanced/code-editor.d.ts +0 -18
  94. package/types/pc/src/components/desginer/widget-panel/advanced/data-table.d.ts +0 -52
  95. package/types/pc/src/components/desginer/widget-panel/advanced/diy-compontent.d.ts +0 -10
  96. package/types/pc/src/components/desginer/widget-panel/advanced/file-upload.d.ts +0 -24
  97. package/types/pc/src/components/desginer/widget-panel/advanced/index.d.ts +0 -8
  98. package/types/pc/src/components/desginer/widget-panel/advanced/rich-editor.d.ts +0 -22
  99. package/types/pc/src/components/desginer/widget-panel/advanced/tree-select.d.ts +0 -33
  100. package/types/pc/src/components/desginer/widget-panel/advanced/tree.d.ts +0 -27
  101. package/types/pc/src/components/desginer/widget-panel/advancedFieldsEnums.d.ts +0 -11
  102. package/types/pc/src/components/desginer/widget-panel/basicFields/button.d.ts +0 -17
  103. package/types/pc/src/components/desginer/widget-panel/basicFields/buttonList.d.ts +0 -22
  104. package/types/pc/src/components/desginer/widget-panel/basicFields/checkbox.d.ts +0 -27
  105. package/types/pc/src/components/desginer/widget-panel/basicFields/color.d.ts +0 -16
  106. package/types/pc/src/components/desginer/widget-panel/basicFields/date.d.ts +0 -29
  107. package/types/pc/src/components/desginer/widget-panel/basicFields/dateRange.d.ts +0 -29
  108. package/types/pc/src/components/desginer/widget-panel/basicFields/divider.d.ts +0 -12
  109. package/types/pc/src/components/desginer/widget-panel/basicFields/dropdown.d.ts +0 -18
  110. package/types/pc/src/components/desginer/widget-panel/basicFields/htmlText.d.ts +0 -11
  111. package/types/pc/src/components/desginer/widget-panel/basicFields/input.d.ts +0 -31
  112. package/types/pc/src/components/desginer/widget-panel/basicFields/number.d.ts +0 -26
  113. package/types/pc/src/components/desginer/widget-panel/basicFields/radio.d.ts +0 -38
  114. package/types/pc/src/components/desginer/widget-panel/basicFields/rate.d.ts +0 -23
  115. package/types/pc/src/components/desginer/widget-panel/basicFields/select.d.ts +0 -35
  116. package/types/pc/src/components/desginer/widget-panel/basicFields/slider.d.ts +0 -25
  117. package/types/pc/src/components/desginer/widget-panel/basicFields/staticText.d.ts +0 -11
  118. package/types/pc/src/components/desginer/widget-panel/basicFields/switch.d.ts +0 -19
  119. package/types/pc/src/components/desginer/widget-panel/basicFields/textarea.d.ts +0 -35
  120. package/types/pc/src/components/desginer/widget-panel/basicFields/time.d.ts +0 -26
  121. package/types/pc/src/components/desginer/widget-panel/basicFields/timeRange.d.ts +0 -27
  122. package/types/pc/src/components/desginer/widget-panel/basicFieldsEnums.d.ts +0 -38
  123. package/types/pc/src/components/desginer/widget-panel/containers/grid-col.d.ts +0 -17
  124. package/types/pc/src/components/desginer/widget-panel/containers/grid-sub-form.d.ts +0 -8
  125. package/types/pc/src/components/desginer/widget-panel/containers/grid.d.ts +0 -8
  126. package/types/pc/src/components/desginer/widget-panel/containers/index.d.ts +0 -8
  127. package/types/pc/src/components/desginer/widget-panel/containers/tab-pane.d.ts +0 -23
  128. package/types/pc/src/components/desginer/widget-panel/containers/tab.d.ts +0 -9
  129. package/types/pc/src/components/desginer/widget-panel/containers/vf-box.d.ts +0 -8
  130. package/types/pc/src/components/desginer/widget-panel/containers/vf-collapse.d.ts +0 -13
  131. package/types/pc/src/components/desginer/widget-panel/containers/vf-dialog.d.ts +0 -8
  132. package/types/pc/src/components/desginer/widget-panel/containersEnums.d.ts +0 -1
  133. package/types/pc/src/components/desginer/widget-panel/index.vue.d.ts +0 -8
  134. package/types/pc/src/components/desginer/widget-panel/widgetsConfig.d.ts +0 -28
  135. package/types/pc/src/components/field-widget/hooks/useSelect.d.ts +0 -72
  136. package/types/pc/src/components/field-widget/index.d.ts +0 -3
  137. package/types/pc/src/components/field-widget/useField.d.ts +0 -95
  138. package/types/pc/src/components/form-render/RenderWigetList.vue.d.ts +0 -27
  139. package/types/pc/src/components/form-render/container-items/data-table-widget.vue.d.ts +0 -95
  140. package/types/pc/src/components/form-render/container-items/grid-col-widget.vue.d.ts +0 -36
  141. package/types/pc/src/components/form-render/container-items/grid-sub-form-widget.vue.d.ts +0 -39
  142. package/types/pc/src/components/form-render/container-items/grid-widget.vue.d.ts +0 -35
  143. package/types/pc/src/components/form-render/container-items/index.d.ts +0 -255
  144. package/types/pc/src/components/form-render/container-items/tab-widget.vue.d.ts +0 -5
  145. package/types/pc/src/components/form-render/container-items/vf-box-widget.vue.d.ts +0 -32
  146. package/types/pc/src/components/form-render/container-items/vf-collapse-widget.vue.d.ts +0 -33
  147. package/types/pc/src/components/index.d.ts +0 -4
  148. package/types/pc/src/components/public/ActionButtonListRender.vue.d.ts +0 -121
  149. package/types/pc/src/components/public/ConfigView/CustomPageRender.vue.d.ts +0 -16
  150. package/types/pc/src/components/public/CustomerModal/CustomerModal.vue.d.ts +0 -14
  151. package/types/pc/src/components/public/CustomerModal/customerModal.d.ts +0 -6
  152. package/types/pc/src/components/public/CustomerModal/useCustomerModal.d.ts +0 -7
  153. package/types/pc/src/components/public/DynamicDialog.vue.d.ts +0 -97
  154. package/types/pc/src/components/render/index.vue.d.ts +0 -82
  155. package/types/pc/src/components/render/useRenderWidget.d.ts +0 -3
  156. package/types/pc/src/designer.d.ts +0 -233
  157. package/types/pc/src/hooks/useLowcode.d.ts +0 -21
  158. package/types/pc/src/hooks/useWidget.d.ts +0 -7
@@ -1,95 +1,7 @@
1
- import { ref, defineComponent, getCurrentInstance, useAttrs, computed, onMounted, createBlock, openBlock, unref, withCtx, createVNode, mergeProps, nextTick } from "vue";
2
- import { c as useI18n, V as VFormRender, A as ActionButtonListRender } from "./install.mjs";
3
- import { useDataQueryApi, useRouteBackTab, routerReloadStatus, TpfConfigProvider, TpfModal } from "tmgc2-share";
1
+ import { defineComponent, getCurrentInstance, useAttrs, ref, computed, onMounted, createBlock, openBlock, unref, withCtx, createVNode, mergeProps, nextTick } from "vue";
2
+ import { j as useLowcode, c as useI18n, V as VFormRender, A as ActionButtonListRender } from "./install.mjs";
3
+ import { TpfConfigProvider, TpfModal } from "tmgc2-share";
4
4
  import { Skeleton } from "ant-design-vue";
5
- const useLowcode = (params) => {
6
- let { formCode, entityCode, type = "add", basicFieldsEnums } = params;
7
- const isLoading = ref(false);
8
- const useDataQuery = useDataQueryApi();
9
- const vfdRef = ref();
10
- const formConfig = ref();
11
- const { routeBackTab } = useRouteBackTab();
12
- const insertBtn = (list = []) => {
13
- return list;
14
- };
15
- const getInitRenderJSON = (list = []) => {
16
- if (!basicFieldsEnums) {
17
- return [];
18
- }
19
- const res = list.reduce((t, v) => {
20
- const fn = basicFieldsEnums[v.componentType];
21
- if (fn) {
22
- const json = fn({
23
- name: v.entityPropertyCode,
24
- label: v.entityPropertyName,
25
- ...v.options
26
- });
27
- t = [...t, json];
28
- }
29
- return t;
30
- }, []);
31
- return res.length ? insertBtn(res) : res;
32
- };
33
- const getComponentJson = async (list = [], _formCode) => {
34
- var _a, _b;
35
- let json = { widgetList: [], formConfig: {} };
36
- formCode = _formCode || formCode;
37
- if (formCode && type) {
38
- (_a = vfdRef.value) == null ? void 0 : _a.setLoading(true);
39
- try {
40
- const res = await useDataQuery.dataQueryDetail({ code: formCode }, "FormDefinitionManagement").then((res2) => res2.data.object || {});
41
- json = JSON.parse(res.frontendDefinition || "{}");
42
- } finally {
43
- (_b = vfdRef.value) == null ? void 0 : _b.setLoading(false);
44
- }
45
- } else {
46
- json.widgetList = getInitRenderJSON(list);
47
- }
48
- isLoading.value = false;
49
- console.log("json: ", json);
50
- formConfig.value = json.formConfig;
51
- vfdRef.value.setFormJson(json);
52
- return json;
53
- };
54
- const getFieldList = async () => {
55
- isLoading.value = true;
56
- if (!entityCode) {
57
- getComponentJson([]);
58
- return [];
59
- }
60
- const p = {
61
- pageCode: "EntityPropertyFormItem",
62
- conditions: [{ fieldCode: "entityCode", type: "EQ", value: entityCode }],
63
- requiredFields: ["entityPropertyCode", "entityPropertyName", "valueType"],
64
- page: 1,
65
- pageSize: null,
66
- sorts: []
67
- };
68
- const list = await useDataQuery.execute(p).then((res) => res.data.object.list);
69
- getComponentJson(list);
70
- return list;
71
- };
72
- const fieldListApi = async () => {
73
- const list = await getFieldList();
74
- return list.map((item) => ({
75
- showName: item.entityPropertyName,
76
- fieldCode: item.entityPropertyCode
77
- }));
78
- };
79
- const goBack = (reloadStatus = routerReloadStatus.view, cb) => {
80
- routeBackTab(reloadStatus, cb);
81
- };
82
- return {
83
- isLoading,
84
- goBack,
85
- formConfig,
86
- getInitRenderJSON,
87
- vfdRef,
88
- getComponentJson,
89
- getFieldList,
90
- fieldListApi
91
- };
92
- };
93
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
94
6
  __name: "CustomerModal",
95
7
  props: {
@@ -1,10 +1,12 @@
1
+ import { getUuidKey, getLocat, getUserInfo } from "@kp-ui/tool";
2
+ import { VxeTooltip } from "vxe-pc-ui";
3
+ import dayjs from "dayjs";
1
4
  import "virtual:svg-icons-register";
2
5
  import { computed, defineComponent, mergeModels, useModel, resolveComponent, createBlock, openBlock, withCtx, createElementVNode, normalizeStyle, createVNode, createElementBlock, Fragment, renderList, unref, createCommentVNode, createSlots, createTextVNode, toDisplayString, resolveDynamicComponent, normalizeClass, inject, ref, getCurrentInstance, onMounted, withKeys, watch, provide, renderSlot, useTemplateRef, watchEffect, nextTick, reactive, withModifiers, toRaw, onBeforeUnmount, defineAsyncComponent, mergeProps, withDirectives, vShow, Teleport, h } from "vue";
3
6
  import { Form, message, Skeleton } from "ant-design-vue";
4
7
  import "clipboard";
5
- import { getUuidKey, getLocat as getLocat$1 } from "@kp-ui/tool";
6
8
  import { cloneDeep, set, get, isObject, isArray, eq, omit } from "lodash-es";
7
- import { SvgIcon, useRef, useExecFunction, TpfDelConfirm, useDataQueryApi, useComRef, useRouteBackTab, routerReloadStatus, TpfModal, tranformAntTableColumnToVxetableColumn, CustomItemRender, tranformAntSizzVxetableSize, useVxeTable, Table, TpfCollapse } from "tmgc2-share";
9
+ import { SvgIcon, useRef, useExecFunction, useDataQueryApi, useRouteBackTab, routerReloadStatus, TpfDelConfirm, TpfAddInfoLayout, useComRef, TpfModal, tranformAntTableColumnToVxetableColumn, CustomItemRender, tranformAntSizzVxetableSize, useVxeTable, Table, TpfCollapse } from "tmgc2-share";
8
10
  import { storeToRefs, mapActions, mapState } from "pinia";
9
11
  import { useLocaleStore } from "@kp-ui/i18n";
10
12
  import "vue-router";
@@ -316,7 +318,7 @@ function useWidgetContextMenu(props) {
316
318
  selectParentWidget
317
319
  };
318
320
  }
319
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
321
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
320
322
  ...{
321
323
  name: "WidgetContextMenu"
322
324
  },
@@ -435,9 +437,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
435
437
  };
436
438
  }
437
439
  });
438
- const WidgetContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-8adfdf56"]]);
439
- const _hoisted_1$8 = ["title"];
440
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
440
+ const WidgetContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-8adfdf56"]]);
441
+ const _hoisted_1$9 = ["title"];
442
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
441
443
  __name: "DragBtn",
442
444
  props: {
443
445
  selected: { type: Boolean },
@@ -453,7 +455,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
453
455
  title: unref(i18nt)("designer.hint.dragHandler")
454
456
  }, [
455
457
  createVNode(unref(SvgIcon), { "icon-class": "icon-el-drag-move" })
456
- ], 8, _hoisted_1$8),
458
+ ], 8, _hoisted_1$9),
457
459
  createElementVNode("i", null, toDisplayString(unref(i18n2t)(
458
460
  `designer.widgetLabel.${_ctx.widget.type}`,
459
461
  `extension.widgetLabel.${_ctx.widget.type}`
@@ -462,8 +464,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
462
464
  };
463
465
  }
464
466
  });
465
- const DragBtn = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-f7343dfb"]]);
466
- const _hoisted_1$7 = { class: "debug-content" };
467
+ const DragBtn = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-f7343dfb"]]);
468
+ const _hoisted_1$8 = { class: "debug-content" };
467
469
  const _hoisted_2$4 = { class: "debug-section" };
468
470
  const _hoisted_3$1 = { class: "debug-section" };
469
471
  const _hoisted_4$1 = { class: "widget-list" };
@@ -471,7 +473,7 @@ const _hoisted_5$1 = ["onClick"];
471
473
  const _hoisted_6$1 = { class: "widget-key" };
472
474
  const _hoisted_7$1 = { class: "debug-section" };
473
475
  const _hoisted_8 = { class: "widget-list" };
474
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
476
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
475
477
  __name: "Debugger",
476
478
  props: {
477
479
  "visible": {
@@ -494,7 +496,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
494
496
  class: "debug-toggle",
495
497
  onClick: _cache[0] || (_cache[0] = ($event) => debugVisible.value = !debugVisible.value)
496
498
  }, toDisplayString(debugVisible.value ? "收起" : "调试"), 1),
497
- createElementVNode("div", _hoisted_1$7, [
499
+ createElementVNode("div", _hoisted_1$8, [
498
500
  createElementVNode("div", _hoisted_2$4, [
499
501
  _cache[1] || (_cache[1] = createElementVNode("h3", null, "Form Data Model", -1)),
500
502
  createVNode(unref(JsonViewer), {
@@ -530,7 +532,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
530
532
  };
531
533
  }
532
534
  });
533
- const Debugger = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-68185782"]]);
535
+ const Debugger = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-68185782"]]);
534
536
  function useEmitter() {
535
537
  const vfEvents = ref({});
536
538
  const instance2 = getCurrentInstance();
@@ -621,7 +623,7 @@ function useEmitter() {
621
623
  broadcast
622
624
  };
623
625
  }
624
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
626
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
625
627
  __name: "RenderForm",
626
628
  props: {
627
629
  context: {
@@ -682,7 +684,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
682
684
  };
683
685
  }
684
686
  });
685
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
687
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
686
688
  ...{
687
689
  name: "LowcodeRenderProvider"
688
690
  },
@@ -1023,12 +1025,12 @@ function useDesigner() {
1023
1025
  onDragUpdate
1024
1026
  };
1025
1027
  }
1026
- const _hoisted_1$6 = ["id", "data-widget-id"];
1028
+ const _hoisted_1$7 = ["id", "data-widget-id"];
1027
1029
  const _hoisted_2$3 = {
1028
1030
  key: 0,
1029
1031
  class: "empty-drop-zone"
1030
1032
  };
1031
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
1033
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1032
1034
  ...{
1033
1035
  name: "RenderWidgetList"
1034
1036
  },
@@ -1087,7 +1089,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1087
1089
  ]),
1088
1090
  _: 2
1089
1091
  }, 1032, ["widget", "index", "list"])
1090
- ], 8, _hoisted_1$6)
1092
+ ], 8, _hoisted_1$7)
1091
1093
  ]),
1092
1094
  footer: withCtx(() => [
1093
1095
  !draggableList.value.length ? (openBlock(), createElementBlock("div", _hoisted_2$3, " 拖拽组件到此处 ")) : createCommentVNode("", true)
@@ -1103,8 +1105,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1103
1105
  };
1104
1106
  }
1105
1107
  });
1106
- const RenderWidgetList = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-18b73e97"]]);
1107
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
1108
+ const RenderWidgetList = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-18b73e97"]]);
1109
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1108
1110
  __name: "WidgetWrapper",
1109
1111
  props: /* @__PURE__ */ mergeModels({
1110
1112
  widget: {},
@@ -1158,7 +1160,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
1158
1160
  };
1159
1161
  }
1160
1162
  });
1161
- const WidgetWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-d7dcbe52"]]);
1163
+ const WidgetWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-d7dcbe52"]]);
1162
1164
  var LayoutTypeEnum = /* @__PURE__ */ ((LayoutTypeEnum2) => {
1163
1165
  LayoutTypeEnum2["PC"] = "PC";
1164
1166
  LayoutTypeEnum2["H5"] = "H5";
@@ -2261,13 +2263,101 @@ function useField(props, isInitModelValue = true) {
2261
2263
  defineExposed
2262
2264
  };
2263
2265
  }
2266
+ const useLowcode$1 = (params) => {
2267
+ let { formCode, entityCode, type = "add", basicFieldsEnums: basicFieldsEnums2 } = params;
2268
+ const isLoading = ref(false);
2269
+ const useDataQuery = useDataQueryApi();
2270
+ const vfdRef = ref();
2271
+ const formConfig = ref();
2272
+ const { routeBackTab } = useRouteBackTab();
2273
+ const insertBtn = (list = []) => {
2274
+ return list;
2275
+ };
2276
+ const getInitRenderJSON = (list = []) => {
2277
+ if (!basicFieldsEnums2) {
2278
+ return [];
2279
+ }
2280
+ const res = list.reduce((t, v) => {
2281
+ const fn = basicFieldsEnums2[v.componentType];
2282
+ if (fn) {
2283
+ const json = fn({
2284
+ name: v.entityPropertyCode,
2285
+ label: v.entityPropertyName,
2286
+ ...v.options
2287
+ });
2288
+ t = [...t, json];
2289
+ }
2290
+ return t;
2291
+ }, []);
2292
+ return res.length ? insertBtn(res) : res;
2293
+ };
2294
+ const getComponentJson = async (list = [], _formCode) => {
2295
+ var _a, _b;
2296
+ let json = { widgetList: [], formConfig: {} };
2297
+ formCode = _formCode || formCode;
2298
+ if (formCode && type) {
2299
+ (_a = vfdRef.value) == null ? void 0 : _a.setLoading(true);
2300
+ try {
2301
+ const res = await useDataQuery.dataQueryDetail({ code: formCode }, "FormDefinitionManagement").then((res2) => res2.data.object || {});
2302
+ json = JSON.parse(res.frontendDefinition || "{}");
2303
+ } finally {
2304
+ (_b = vfdRef.value) == null ? void 0 : _b.setLoading(false);
2305
+ }
2306
+ } else {
2307
+ json.widgetList = getInitRenderJSON(list);
2308
+ }
2309
+ isLoading.value = false;
2310
+ console.log("json: ", json);
2311
+ formConfig.value = json.formConfig;
2312
+ vfdRef.value.setFormJson(json);
2313
+ return json;
2314
+ };
2315
+ const getFieldList = async () => {
2316
+ isLoading.value = true;
2317
+ if (!entityCode) {
2318
+ getComponentJson([]);
2319
+ return [];
2320
+ }
2321
+ const p = {
2322
+ pageCode: "EntityPropertyFormItem",
2323
+ conditions: [{ fieldCode: "entityCode", type: "EQ", value: entityCode }],
2324
+ requiredFields: ["entityPropertyCode", "entityPropertyName", "valueType"],
2325
+ page: 1,
2326
+ pageSize: null,
2327
+ sorts: []
2328
+ };
2329
+ const list = await useDataQuery.execute(p).then((res) => res.data.object.list);
2330
+ getComponentJson(list);
2331
+ return list;
2332
+ };
2333
+ const fieldListApi = async () => {
2334
+ const list = await getFieldList();
2335
+ return list.map((item) => ({
2336
+ showName: item.entityPropertyName,
2337
+ fieldCode: item.entityPropertyCode
2338
+ }));
2339
+ };
2340
+ const goBack = (reloadStatus = routerReloadStatus.view, cb) => {
2341
+ routeBackTab(reloadStatus, cb);
2342
+ };
2343
+ return {
2344
+ isLoading,
2345
+ goBack,
2346
+ formConfig,
2347
+ getInitRenderJSON,
2348
+ vfdRef,
2349
+ getComponentJson,
2350
+ getFieldList,
2351
+ fieldListApi
2352
+ };
2353
+ };
2264
2354
  const comps = {};
2265
2355
  const modules = /* @__PURE__ */ Object.assign({ "./bpmn-editor-widget.vue": () => import("./bpmn-editor-widget.mjs"), "./button-list-widget.vue": () => import("./button-list-widget.mjs"), "./button-widget.vue": () => import("./button-widget.mjs"), "./cascader-widget.vue": () => import("./cascader-widget.mjs"), "./checkbox-widget.vue": () => import("./checkbox-widget.mjs"), "./code-editor-widget.vue": () => import("./code-editor-widget.mjs"), "./color-widget.vue": () => import("./color-widget.mjs"), "./date-range-widget.vue": () => import("./date-range-widget.mjs"), "./date-widget.vue": () => import("./date-widget.mjs"), "./divider-widget.vue": () => import("./divider-widget.mjs"), "./diy-compontent-widget.vue": () => import("./diy-compontent-widget.mjs"), "./dropdown-widget.vue": () => import("./dropdown-widget.mjs"), "./file-upload-widget.vue": () => import("./file-upload-widget.mjs"), "./form-item-wrapper.vue": () => import("./form-item-wrapper.mjs"), "./html-text-widget.vue": () => import("./html-text-widget.mjs"), "./input-widget.vue": () => import("./input-widget.mjs"), "./number-widget.vue": () => import("./number-widget.mjs"), "./radio-widget.vue": () => import("./radio-widget.mjs"), "./rate-widget.vue": () => import("./rate-widget.mjs"), "./rich-editor-widget.vue": () => import("./rich-editor-widget.mjs"), "./select-widget.vue": () => import("./select-widget.mjs"), "./slider-widget.vue": () => import("./slider-widget.mjs"), "./static-text-widget.vue": () => import("./static-text-widget.mjs"), "./switch-widget.vue": () => import("./switch-widget.mjs"), "./textarea-widget.vue": () => import("./textarea-widget.mjs"), "./time-range-widget.vue": () => import("./time-range-widget.mjs"), "./time-widget.vue": () => import("./time-widget.mjs"), "./tree-widget.vue": () => import("./tree-widget.mjs"), "./treeSelect-widget.vue": () => import("./treeSelect-widget.mjs"), "./vue-render-widget.vue": () => import("./vue-render-widget.mjs") });
2266
2356
  for (const path in modules) {
2267
2357
  const cname = getFileName(path);
2268
2358
  comps[cname] = defineAsyncComponent(modules[path]);
2269
2359
  }
2270
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
2360
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2271
2361
  ...{
2272
2362
  inheritAttrs: false,
2273
2363
  name: "RenderWigetList"
@@ -2308,14 +2398,14 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2308
2398
  };
2309
2399
  }
2310
2400
  });
2311
- const _hoisted_1$5 = { class: "sub-form-container" };
2401
+ const _hoisted_1$6 = { class: "sub-form-container" };
2312
2402
  const _hoisted_2$2 = { class: "row-no-column" };
2313
2403
  const _hoisted_3 = { class: "row-number-span" };
2314
2404
  const _hoisted_4 = { class: "grid-sub-form-data-row" };
2315
2405
  const _hoisted_5 = { class: "sub-form-action-column hide-label" };
2316
2406
  const _hoisted_6 = { class: "action-button-column" };
2317
2407
  const _hoisted_7 = { class: "header-row" };
2318
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2408
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
2319
2409
  ...{
2320
2410
  name: ContainerTypeEnum.GridSubFormWidget,
2321
2411
  componentName: ComponentNameEnum.ContainerWidget,
@@ -2486,7 +2576,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2486
2576
  });
2487
2577
  return (_ctx, _cache) => {
2488
2578
  const _component_a_button = resolveComponent("a-button");
2489
- return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$5, [
2579
+ return withDirectives((openBlock(), createElementBlock("div", _hoisted_1$6, [
2490
2580
  (openBlock(true), createElementBlock(Fragment, null, renderList(rowIdData.value, (subFormRowId, sfrIdx) => {
2491
2581
  return openBlock(), createElementBlock("div", {
2492
2582
  class: "sub-form-row",
@@ -2496,7 +2586,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2496
2586
  createElementVNode("span", _hoisted_3, "#" + toDisplayString(sfrIdx + 1), 1)
2497
2587
  ]),
2498
2588
  createElementVNode("div", _hoisted_4, [
2499
- createVNode(_sfc_main$a, {
2589
+ createVNode(_sfc_main$b, {
2500
2590
  widgetList: _ctx.widget.widgetList || [],
2501
2591
  parentWidget: _ctx.widget,
2502
2592
  subFormRowIndex: sfrIdx,
@@ -2560,8 +2650,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2560
2650
  };
2561
2651
  }
2562
2652
  });
2563
- const GridSubFormWidget = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-ddd06b7d"]]);
2564
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2653
+ const GridSubFormWidget = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-ddd06b7d"]]);
2654
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2565
2655
  ...{
2566
2656
  name: ContainerTypeEnum.GridColWidget,
2567
2657
  componentName: ComponentNameEnum.ContainerWidget,
@@ -2599,7 +2689,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2599
2689
  class: "grid-cell"
2600
2690
  }, layoutProps.value, { style: colHeightStyle.value }), {
2601
2691
  default: withCtx(() => [
2602
- createVNode(_sfc_main$a, {
2692
+ createVNode(_sfc_main$b, {
2603
2693
  widgetList: _ctx.widget.widgetList || [],
2604
2694
  parentWidget: _ctx.widget
2605
2695
  }, null, 8, ["widgetList", "parentWidget"])
@@ -2609,12 +2699,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2609
2699
  };
2610
2700
  }
2611
2701
  });
2612
- const GridColWidget = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-13ad810a"]]);
2613
- const _hoisted_1$4 = {
2702
+ const GridColWidget = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-13ad810a"]]);
2703
+ const _hoisted_1$5 = {
2614
2704
  key: 0,
2615
2705
  class: "grid-container"
2616
2706
  };
2617
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2707
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2618
2708
  ...{
2619
2709
  name: ContainerTypeEnum.grid,
2620
2710
  componentName: ComponentNameEnum.ContainerWidget
@@ -2637,7 +2727,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2637
2727
  });
2638
2728
  return (_ctx, _cache) => {
2639
2729
  const _component_a_row = resolveComponent("a-row");
2640
- return !unref(handleHidden) ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
2730
+ return !unref(handleHidden) ? (openBlock(), createElementBlock("div", _hoisted_1$5, [
2641
2731
  createVNode(_component_a_row, {
2642
2732
  gutter: _ctx.widget.options.gutter
2643
2733
  }, {
@@ -2660,7 +2750,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2660
2750
  };
2661
2751
  }
2662
2752
  });
2663
- const GridWidget = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-d2c94054"]]);
2753
+ const GridWidget = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-d2c94054"]]);
2664
2754
  const input = (ops = {}) => {
2665
2755
  return {
2666
2756
  key: getUuidKey(),
@@ -4236,6 +4326,70 @@ const instance = mitt();
4236
4326
  $off: instance.off,
4237
4327
  $emit: instance.emit
4238
4328
  });
4329
+ const _hoisted_1$4 = {
4330
+ class: "t-bg-[#fff] t-h-full"
4331
+ };
4332
+ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
4333
+ __name: "CustomPageRender",
4334
+ props: {
4335
+ title: {
4336
+ type: String,
4337
+ default: ""
4338
+ }
4339
+ },
4340
+ setup(__props) {
4341
+ const {
4342
+ formCode = "",
4343
+ id = "",
4344
+ type = "edit"
4345
+ } = getLocat();
4346
+ const {
4347
+ vfdRef,
4348
+ formConfig,
4349
+ getComponentJson,
4350
+ goBack
4351
+ } = useLowcode$1({
4352
+ formCode,
4353
+ type
4354
+ });
4355
+ const handleButtonClick = ({
4356
+ item
4357
+ }) => {
4358
+ if (item.name === "cancelButton") {
4359
+ goBack();
4360
+ }
4361
+ };
4362
+ onMounted(async () => {
4363
+ await getComponentJson([]);
4364
+ });
4365
+ return (_ctx, _cache) => {
4366
+ return openBlock(), createElementBlock("div", _hoisted_1$4, [createVNode(unref(TpfAddInfoLayout), {
4367
+ title: __props.title
4368
+ }, {
4369
+ footerRight: withCtx(() => {
4370
+ var _a, _b;
4371
+ return [_cache[0] || (_cache[0] = createElementVNode("div", {
4372
+ id: "fromBtn"
4373
+ }, null, -1)), createVNode(unref(ActionButtonListRender), {
4374
+ buttonList: ((_a = unref(formConfig)) == null ? void 0 : _a.buttonList) || [],
4375
+ ctx: (_b = unref(vfdRef)) == null ? void 0 : _b.context,
4376
+ onOnClick: handleButtonClick
4377
+ }, null, 8, ["buttonList", "ctx"])];
4378
+ }),
4379
+ default: withCtx(() => [createVNode(unref(VFormRender), {
4380
+ ref_key: "vfdRef",
4381
+ ref: vfdRef,
4382
+ vfCtx: {
4383
+ _id: unref(id),
4384
+ ...unref(getLocat)(),
4385
+ goBack: unref(goBack)
4386
+ }
4387
+ }, null, 8, ["vfCtx"])]),
4388
+ _: 1
4389
+ }, 8, ["title"])]);
4390
+ };
4391
+ }
4392
+ });
4239
4393
  const _sfc_main$6 = defineComponent({
4240
4394
  name: "ActionButtonListRender",
4241
4395
  components: { SvgIcon },
@@ -5132,7 +5286,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
5132
5286
  }, {
5133
5287
  right: withCtx(() => [
5134
5288
  createElementVNode("div", _hoisted_2$1, [
5135
- createVNode(_sfc_main$a, {
5289
+ createVNode(_sfc_main$b, {
5136
5290
  widgetList: headerRightSlotList.value || [],
5137
5291
  parentWidget: _ctx.widget
5138
5292
  }, null, 8, ["widgetList", "parentWidget"])
@@ -5145,7 +5299,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
5145
5299
  height: _ctx.widget.options.height || "unset"
5146
5300
  })
5147
5301
  }, [
5148
- createVNode(_sfc_main$a, {
5302
+ createVNode(_sfc_main$b, {
5149
5303
  widgetList: defaultSlotsList.value || [],
5150
5304
  parentWidget: _ctx.widget
5151
5305
  }, null, 8, ["widgetList", "parentWidget"])
@@ -5201,7 +5355,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
5201
5355
  key: _ctx.widget.id,
5202
5356
  style: normalizeStyle(boxStyle.value)
5203
5357
  }, [
5204
- createVNode(_sfc_main$a, {
5358
+ createVNode(_sfc_main$b, {
5205
5359
  subFormRowIndex: _ctx.subFormRowIndex,
5206
5360
  subFormRowId: _ctx.subFormRowId,
5207
5361
  widgetList: _ctx.widget.widgetList || [],
@@ -5255,7 +5409,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
5255
5409
  }, {
5256
5410
  default: withCtx(() => [
5257
5411
  createElementVNode("div", _hoisted_1$1, [
5258
- createVNode(_sfc_main$a, {
5412
+ createVNode(_sfc_main$b, {
5259
5413
  widgetList: tab2.widgetList || [],
5260
5414
  parentWidget: tab2
5261
5415
  }, null, 8, ["widgetList", "parentWidget"])
@@ -5308,7 +5462,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
5308
5462
  },
5309
5463
  emits: ["form-submit", "form-cancel"],
5310
5464
  setup(__props, { expose: __expose, emit: __emit }) {
5311
- const debug = computed(() => getLocat$1().debug === "1");
5465
+ const debug = computed(() => getLocat().debug === "1");
5312
5466
  const debugVisible = ref(false);
5313
5467
  const props = __props;
5314
5468
  const formContainer = useTemplateRef("formContainer");
@@ -5341,7 +5495,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
5341
5495
  renderForm
5342
5496
  });
5343
5497
  return (_ctx, _cache) => {
5344
- return openBlock(), createBlock(unref(_sfc_main$d), {
5498
+ return openBlock(), createBlock(unref(_sfc_main$e), {
5345
5499
  getWidget: unref(getWidget),
5346
5500
  context: unref(formContext)
5347
5501
  }, {
@@ -5350,7 +5504,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
5350
5504
  unref(isLoading) ? (openBlock(), createElementBlock("div", _hoisted_2, [
5351
5505
  createVNode(unref(Skeleton), { active: unref(isLoading) }, null, 8, ["active"])
5352
5506
  ])) : createCommentVNode("", true),
5353
- createVNode(unref(_sfc_main$e), {
5507
+ createVNode(unref(_sfc_main$f), {
5354
5508
  ref_key: "formContainer",
5355
5509
  ref: formContainer,
5356
5510
  context: unref(formContext)
@@ -5401,7 +5555,9 @@ export {
5401
5555
  WidgetContextMenu as g,
5402
5556
  useField as h,
5403
5557
  useTableWidget as i,
5404
- useLowcode as j,
5558
+ useLowcode$1 as j,
5559
+ _sfc_main$7 as k,
5560
+ useLowcode as l,
5405
5561
  registerLowcodeCore as r,
5406
5562
  translateOptionItems as t,
5407
5563
  useDesigner as u
package/index.js CHANGED
@@ -1,7 +1,11 @@
1
+ import "@kp-ui/tool";
2
+ import "vxe-pc-ui";
3
+ import "dayjs";
1
4
  import "virtual:svg-icons-register";
2
- import { V, r, j } from "./assets/install.mjs";
5
+ import { k, V, r, l } from "./assets/install.mjs";
3
6
  export {
7
+ k as CustomPageRender,
4
8
  V as VFormRender,
5
9
  r as registerLowcodeCore,
6
- j as useLowcode
10
+ l as useLowcode
7
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kp-ui/lowcode-pc",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org/"
@@ -18,7 +18,7 @@
18
18
  "echarts": "^5.6.0"
19
19
  },
20
20
  "main": "index.js",
21
- "types": "types/index.d.ts",
21
+ "types": "types/pc/install.d.ts",
22
22
  "sideEffects": [
23
23
  "./assets/styles/*",
24
24
  "./_virtual/*"
@@ -26,7 +26,7 @@
26
26
  "exports": {
27
27
  ".": {
28
28
  "import": "./index.js",
29
- "types": "./types/index.d.ts"
29
+ "types": "./types/pc/install.d.ts"
30
30
  },
31
31
  "./style": "./assets/styles/style.css",
32
32
  "./styles/*": "./assets/styles/*"
package/types/index.d.ts CHANGED
@@ -1 +1,2 @@
1
+ export * from './pc/install'
1
2
  export {}
@@ -0,0 +1,9 @@
1
+ import { App } from 'vue';
2
+ export { default as VFormRender } from './src/components/render/index.vue';
3
+ export * from './src/hooks/useLowcode';
4
+ export { default as CustomPageRender } from './src/components/public/ConfigView/CustomPageRender.vue';
5
+ interface RegisterLowcodeCoreParams {
6
+ app: App;
7
+ factoryRender: (name: any, props: any, ...args: any[]) => any;
8
+ }
9
+ export declare const registerLowcodeCore: (params: RegisterLowcodeCoreParams) => void;
@@ -1,7 +0,0 @@
1
- import { Widget } from '../..';
2
- type __VLS_Props = {
3
- selected: boolean;
4
- widget: Widget;
5
- };
6
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
7
- export default _default;