@yorha2b-lab/autodev 7.4.5 → 7.4.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yorha2b-lab/autodev",
3
- "version": "7.4.5",
3
+ "version": "7.4.6",
4
4
  "description": "基于 AI 视觉与语义协议的前端 (React+Antd) 代码构筑与旧系统重构引擎",
5
5
  "bin": {
6
6
  "bunker": "bin/bunker.js"
@@ -40,7 +40,7 @@ module.exports = {
40
40
  let { tabs = [] } = pageConfig
41
41
  tabs = tabs.map(tab => ({ ...tab, children: `<${tab.key.at(0).toUpperCase()}${tab.key.slice(1)}/>` }))
42
42
 
43
- let { formItems, dictBlocks, processedColumns } = formatPageconfig({ pageConfig })
43
+ let { formItems, processedColumns } = formatPageconfig({ pageConfig })
44
44
  processedColumns = processedColumns.map(col => {
45
45
  delete col.type
46
46
  return col
@@ -51,7 +51,7 @@ module.exports = {
51
51
  let mainConfigStr = cleanCode(contextStringify({ context: result }))
52
52
 
53
53
  let optionsCodeStr = ''
54
- dictBlocks.forEach(key => {
54
+ Object.keys(pageConfig.optionDict ?? {}).forEach(key => {
55
55
  const optionsArray = pageConfig.optionDict?.[key] ?? []
56
56
  const arrayItemsStr = optionsArray.map(opt => ` { label: '${opt.label}', value: '${opt.value}' }`).join(',\n')
57
57
  optionsCodeStr += `\nexport const ${key} = [\n${arrayItemsStr}\n]\n`