@kp-ui/lowcode-pc-v2 0.0.3 → 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.
@@ -461,11 +461,11 @@
461
461
  .page-template-widget[data-v-dc2a06fa] .addInfoLayout-footer .ant-form-item {
462
462
  margin-bottom: 0;
463
463
  }
464
- .loading-wrapper[data-v-dfed9b96] {
464
+ .loading-wrapper[data-v-039c10e2] {
465
465
  min-height: 300px;
466
466
  padding: 20px;
467
467
  }
468
- .ant-form .ant-form-item-explain.ant-form-item-explain-connected[data-v-dfed9b96] {
468
+ .ant-form .ant-form-item-explain.ant-form-item-explain-connected[data-v-039c10e2] {
469
469
  display: none;
470
470
  }
471
471
  /*$vite$:1*/
@@ -55,7 +55,7 @@ var usePageContext = ({ props }) => {
55
55
  /**
56
56
  * 设置表单JSON数据
57
57
  */
58
- const setFormJson = async (json) => {
58
+ const setPageJson = async (json) => {
59
59
  formJsonObj.value = json || {
60
60
  widgetList: [],
61
61
  formConfig: {}
@@ -174,7 +174,7 @@ var usePageContext = ({ props }) => {
174
174
  return await execHttpFunction(fn, params);
175
175
  };
176
176
  onMounted(() => {
177
- if (formJson) setFormJson(formJson);
177
+ if (formJson) setPageJson(formJson);
178
178
  fieldChangeEventHandler();
179
179
  });
180
180
  const expose = {
@@ -192,7 +192,7 @@ var usePageContext = ({ props }) => {
192
192
  getChildFormRef,
193
193
  setPageData,
194
194
  setReadMode,
195
- setFormJson,
195
+ setPageJson,
196
196
  setLoading,
197
197
  formDataModel,
198
198
  setFiledValue,
@@ -57,7 +57,7 @@ var useLowcode = (options = {}) => {
57
57
  }
58
58
  isLoading.value = false;
59
59
  formConfig.value = json.formConfig;
60
- vfdRef.value.setFormJson(json);
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
- getFormJson: () => {
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
- setFormJson: (formJson) => {
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/package.json CHANGED
@@ -1,39 +1,39 @@
1
1
  {
2
- "name": "@kp-ui/lowcode-pc-v2",
3
- "version": "0.0.3",
4
- "publishConfig": {
5
- "access": "public",
6
- "registry": "https://registry.npmjs.org/"
2
+ "name": "@kp-ui/lowcode-pc-v2",
3
+ "version": "0.0.4",
4
+ "publishConfig": {
5
+ "access": "public",
6
+ "registry": "https://registry.npmjs.org/"
7
+ },
8
+ "module": "index.js",
9
+ "dependencies": {
10
+ "vxe-pc-ui": "4.10.29",
11
+ "vxe-table": "4.17.18",
12
+ "vuedraggable": "^4.0.0",
13
+ "bpmn-js": "13.2.0",
14
+ "vue-json-viewer": "^3.0.1",
15
+ "ant-design-vue": "4.2.6",
16
+ "query-string": "^6.14.1",
17
+ "dayjs": "^1.11.7",
18
+ "@kp-ui/tool": "2.14.1",
19
+ "tailwindcss": "3.4.9",
20
+ "vue": "3.5.17",
21
+ "vue-echarts": "^8.0.1",
22
+ "file-saver": "^2.0.5",
23
+ "echarts": "^5.6.0"
24
+ },
25
+ "main": "index.js",
26
+ "types": "types/pc/install.d.ts",
27
+ "sideEffects": [
28
+ "./assets/styles/*",
29
+ "./_virtual/*"
30
+ ],
31
+ "exports": {
32
+ ".": {
33
+ "import": "./install.js",
34
+ "types": "./types/pc/install.d.ts"
7
35
  },
8
- "module": "index.js",
9
- "dependencies": {
10
- "vxe-pc-ui": "4.10.29",
11
- "vxe-table": "4.17.18",
12
- "vuedraggable": "^4.0.0",
13
- "bpmn-js": "13.2.0",
14
- "vue-json-viewer": "^3.0.1",
15
- "ant-design-vue": "4.2.6",
16
- "query-string": "^6.14.1",
17
- "dayjs": "^1.11.7",
18
- "@kp-ui/tool": "2.14.1",
19
- "tailwindcss": "3.4.9",
20
- "vue": "3.5.17",
21
- "vue-echarts": "^8.0.1",
22
- "file-saver": "^2.0.5",
23
- "echarts": "^5.6.0"
24
- },
25
- "main": "index.js",
26
- "types": "types/pc/install.d.ts",
27
- "sideEffects": [
28
- "./assets/styles/*",
29
- "./_virtual/*"
30
- ],
31
- "exports": {
32
- ".": {
33
- "import": "./install.js",
34
- "types": "./types/pc/install.d.ts"
35
- },
36
- "./style": "./assets/styles/style.css",
37
- "./styles/*": "./assets/styles/*"
38
- }
36
+ "./style": "./assets/styles/style.css",
37
+ "./styles/*": "./assets/styles/*"
38
+ }
39
39
  }
@@ -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-dfed9b96"]]);
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.setFormJson(props.formJson);
40
+ if (props.formJson) formContext.setPageJson(props.formJson);
41
41
  });
42
42
  __expose({
43
43
  formWidgetId,