worsoft-frontend-codegen-local-mcp 0.1.92 → 0.1.93
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 -5
- 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.93';
|
|
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');
|
|
@@ -2354,7 +2354,7 @@ function renderChildTableColumn(field, childListName) {
|
|
|
2354
2354
|
return [
|
|
2355
2355
|
` <el-table-column :label="${labelExpr}" prop="${field.attrName}">`,
|
|
2356
2356
|
' <template #default="{ row, $index }">',
|
|
2357
|
-
` <el-form-item :prop="\`${childListName}.\${$index}.${field.attrName}\`"${rules}>`,
|
|
2357
|
+
` <el-form-item label-width="0" :prop="\`${childListName}.\${$index}.${field.attrName}\`"${rules}>`,
|
|
2358
2358
|
control,
|
|
2359
2359
|
' </el-form-item>',
|
|
2360
2360
|
' </template>',
|
|
@@ -2448,9 +2448,11 @@ function renderChildSection(childModel, childCount) {
|
|
|
2448
2448
|
' <el-row :gutter="24">',
|
|
2449
2449
|
' <el-col :span="24" class="mb20">',
|
|
2450
2450
|
` <!-- 子表区域:${sanitizeHtmlComment(childModel.comment || childModel.tableName)} -->`,
|
|
2451
|
-
' <div class="
|
|
2452
|
-
|
|
2453
|
-
`
|
|
2451
|
+
' <div class="mt-[5px] mb-[10px] flex items-center justify-between">',
|
|
2452
|
+
' <div class="flex items-center gap-2">',
|
|
2453
|
+
` <el-button icon="Plus" type="primary" :disabled="detail" @click="handleAddChild('${childModel.listName}')">{{ t('common.addBtn') }}</el-button>`,
|
|
2454
|
+
` <el-button icon="Delete" type="primary" :disabled="detail || !getSelectedChildRows('${childModel.listName}').length" @click="handleDeleteSelectedChild('${childModel.listName}', '${childModel.pk.attrName}')">{{ t('common.delBtn') }}</el-button>`,
|
|
2455
|
+
' </div>',
|
|
2454
2456
|
' </div>',
|
|
2455
2457
|
' <!-- 子表编辑表格:新增/删除按钮外置,表格内部隐藏新增、删除和序号控制列 -->',
|
|
2456
2458
|
` <sc-form-table :ref="(el) => setChildTableRef('${childModel.listName}', el)" v-model="form.${childModel.listName}" :addTemplate="childTemp${childModel.className}" hide-index hide-add hide-delete @delete="(obj) => ${deleteExpression}" :placeholder="t('common.noData')" @selection-change="(rows) => handleChildSelectionChange('${childModel.listName}', rows)">`,
|
package/package.json
CHANGED