sloth-d2c-mcp 1.0.4-beta73 → 1.0.4-beta75
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.
|
@@ -79,16 +79,13 @@ export function buildComponentMappingPrompt(componentMappings, componentContexts
|
|
|
79
79
|
: '无';
|
|
80
80
|
const libInfo = component.lib ? ` (来自 ${component.lib})` : ' (项目组件)';
|
|
81
81
|
const descInfo = component.description ? `\n- **描述**: ${component.description}` : '';
|
|
82
|
-
// 构建导入方式文案
|
|
83
|
-
const importType = component.importType || 'default'; // 默认为 default 导入
|
|
84
|
-
const importTypeText = importType === 'named' ? '具名导入' : '默认导入';
|
|
85
82
|
prompt += `### ${component.name}${libInfo}\n`;
|
|
86
83
|
prompt += `- **文件路径**: ${component.path}\n`;
|
|
87
|
-
prompt += `- **导入方式**: ${
|
|
84
|
+
prompt += `- **导入方式**: ${component.import}\n`;
|
|
88
85
|
prompt += `- **Props**: ${propsInfo}${descInfo}\n\n`;
|
|
89
86
|
});
|
|
90
87
|
prompt +=
|
|
91
|
-
'
|
|
88
|
+
'**重要**:在最终写入代码时,请根据设计稿需求合理传递 props 参数。请按照项目路径规范合理引入组件。\n';
|
|
92
89
|
return prompt;
|
|
93
90
|
}
|
|
94
91
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"buildTime": "2025-12-
|
|
2
|
+
"buildTime": "2025-12-02T10:30:59.228Z",
|
|
3
3
|
"mode": "build",
|
|
4
4
|
"pages": {
|
|
5
5
|
"main": {
|
|
6
6
|
"file": "index.html",
|
|
7
|
-
"size":
|
|
7
|
+
"size": 1494620,
|
|
8
8
|
"sizeFormatted": "1.43 MB"
|
|
9
9
|
},
|
|
10
10
|
"detail": {
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
"sizeFormatted": "273.74 KB"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
|
-
"totalSize":
|
|
16
|
+
"totalSize": 1774931,
|
|
17
17
|
"totalSizeFormatted": "1.69 MB"
|
|
18
18
|
}
|