worsoft-frontend-codegen-local-mcp 0.1.83 → 0.1.84
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/mcp_server.js +7 -8
- package/package.json +1 -1
package/mcp_server.js
CHANGED
|
@@ -5,7 +5,7 @@ const fs = require('fs');
|
|
|
5
5
|
const path = require('path');
|
|
6
6
|
|
|
7
7
|
const SERVER_NAME = 'worsoft-codegen-local';
|
|
8
|
-
const SERVER_VERSION = '0.1.
|
|
8
|
+
const SERVER_VERSION = '0.1.84';
|
|
9
9
|
const PROTOCOL_VERSION = '2024-11-05';
|
|
10
10
|
const TOOL_NAME = 'worsoft_codegen_local_generate_frontend';
|
|
11
11
|
const STYLE_CATALOG_PATH = path.join(__dirname, 'assets', 'style-catalog.json');
|
|
@@ -2779,13 +2779,12 @@ ${moduleModel.visibleFields.map(renderMultiLevelFormField).join('\n')}
|
|
|
2779
2779
|
// 表单响应式数据
|
|
2780
2780
|
const form = reactive(createDefaultFormState());
|
|
2781
2781
|
|
|
2782
|
-
// 设置父级关联字段
|
|
2783
|
-
const setParentFieldValue = (parentId: string | number) => {
|
|
2784
|
-
const parentField = moduleConfig.queryParentField
|
|
2785
|
-
if (!parentField) return;
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
};
|
|
2782
|
+
// 设置父级关联字段
|
|
2783
|
+
const setParentFieldValue = (parentId: string | number) => {
|
|
2784
|
+
const parentField = moduleConfig.queryParentField;
|
|
2785
|
+
if (!parentField) return;
|
|
2786
|
+
(form as Record<string, unknown>)[parentField] = parentId;
|
|
2787
|
+
};
|
|
2789
2788
|
|
|
2790
2789
|
// 表单校验规则
|
|
2791
2790
|
const dataRules = ref({
|
package/package.json
CHANGED