@kp-ui/lowcode-pc-v2 0.0.2 → 0.0.4
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/_virtual/virtual_svg-icons-register.js +21 -0
- package/assets/styles/style.css +2 -2
- package/core/src/components/common/render/usePageContext.js +3 -3
- package/core/src/hooks/useField.js +408 -497
- package/core/src/hooks/useLowcode.js +1 -1
- package/core/src/hooks/useWebMCP.js +2 -2
- package/install.js +1 -1
- package/package.json +1 -1
- package/src/render/index.js +1 -1
- package/src/render/index.vue_vue_type_script_setup_true_lang.js +1 -1
- package/stats.html +1 -1
|
@@ -57,7 +57,7 @@ var useLowcode = (options = {}) => {
|
|
|
57
57
|
}
|
|
58
58
|
isLoading.value = false;
|
|
59
59
|
formConfig.value = json.formConfig;
|
|
60
|
-
vfdRef.value.
|
|
60
|
+
vfdRef.value.setPageJson(json);
|
|
61
61
|
return json;
|
|
62
62
|
};
|
|
63
63
|
const getComponentJson = async (..._args) => getPageJson(options.formCode);
|
|
@@ -23,7 +23,7 @@ var useWebMCP = (context) => {
|
|
|
23
23
|
var _context$widgetRefLis;
|
|
24
24
|
return Array.from(((_context$widgetRefLis = context.widgetRefList) === null || _context$widgetRefLis === void 0 || (_context$widgetRefLis = _context$widgetRefLis.value) === null || _context$widgetRefLis === void 0 ? void 0 : _context$widgetRefLis.keys()) || []);
|
|
25
25
|
},
|
|
26
|
-
|
|
26
|
+
getPageJson: () => {
|
|
27
27
|
var _context$designer;
|
|
28
28
|
const designer = (_context$designer = context.designer) === null || _context$designer === void 0 ? void 0 : _context$designer.value;
|
|
29
29
|
if (designer) return {
|
|
@@ -32,7 +32,7 @@ var useWebMCP = (context) => {
|
|
|
32
32
|
};
|
|
33
33
|
return null;
|
|
34
34
|
},
|
|
35
|
-
|
|
35
|
+
setPageJson: (formJson) => {
|
|
36
36
|
var _context$designer2;
|
|
37
37
|
const designer = (_context$designer2 = context.designer) === null || _context$designer2 === void 0 ? void 0 : _context$designer2.value;
|
|
38
38
|
if (designer) {
|
package/install.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import "./_virtual/virtual_svg-icons-register.js";
|
|
1
2
|
import render_default from "./src/render/index.js";
|
|
2
3
|
import CustomPageRender_default from "./src/components/public/ConfigView/CustomPageRender.js";
|
|
3
|
-
import "virtual:svg-icons-register";
|
|
4
4
|
import { VxeTooltip } from "vxe-pc-ui";
|
|
5
5
|
//#region install.ts
|
|
6
6
|
var createLowcode = ({ app, publicComponents }) => {
|
package/package.json
CHANGED
package/src/render/index.js
CHANGED
|
@@ -2,6 +2,6 @@ import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export
|
|
|
2
2
|
import index_vue_vue_type_script_setup_true_lang_default from "./index.vue_vue_type_script_setup_true_lang.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
//#region src/render/index.vue
|
|
5
|
-
var render_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var render_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-039c10e2"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { render_default as default };
|
|
@@ -37,7 +37,7 @@ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
37
37
|
registerToRefList(formWidgetId);
|
|
38
38
|
});
|
|
39
39
|
watchEffect(() => {
|
|
40
|
-
if (props.formJson) formContext.
|
|
40
|
+
if (props.formJson) formContext.setPageJson(props.formJson);
|
|
41
41
|
});
|
|
42
42
|
__expose({
|
|
43
43
|
formWidgetId,
|