@yorha2b-lab/autodev 3.1.1 → 3.1.3

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/config.js CHANGED
@@ -11,7 +11,7 @@ module.exports = {
11
11
  enableAutoAlignment: false,
12
12
 
13
13
  textModel: 'qwen-turbo',
14
- visionModel: 'qwen3.5-plus',
14
+ visionModel: 'qwen3.6-plus',
15
15
 
16
16
  hooksDir: 'src/hooks',
17
17
  pagesDir: 'src/pages',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yorha2b-lab/autodev",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "description": "基于视觉大模型的前端(react+Antd)全自动 CRUD 代码生成器",
5
5
  "bin": {
6
6
  "autodev": "bin/autodev.js"
@@ -43,11 +43,10 @@ const resource = ({ pageConfig, resourceTpl }) => {
43
43
  */
44
44
  const index = ({ config, fileName, indexTpl, pageConfig }) => {
45
45
 
46
- console.log(stringify.default(pageConfig, { indent: 4, maxLength: 200 }))
47
-
48
46
  const hasTabs = pageConfig.tabs?.length > 0
49
47
  const hasFormItems = pageConfig.formItems?.length > 0
50
48
  const hasOperate = pageConfig.table.operation?.length > 0
49
+ const pageStruct = pageConfig.pageStruct?.filter(item => item.toLowerCase() !== 'tabs') || []
51
50
  const functionButtons = pageConfig.functionButton?.filter(item => !['查询', '重置'].includes(item.btn)) || []
52
51
  const hasFunctionButtons = functionButtons.length > 0
53
52
 
@@ -71,7 +70,7 @@ const index = ({ config, fileName, indexTpl, pageConfig }) => {
71
70
  operations: pageConfig.table.operation || [],
72
71
  hasRowSelection: pageConfig.table.rowSelection,
73
72
  formItems: hasFormItems ? (hasTabs ? 'formItems[activeKey]' : 'formItems') : '[]',
74
- pageStruct: hasFunctionButtons ? pageConfig.pageStruct : pageConfig.pageStruct?.filter(item => item !== 'FunctionButtonsBlock'),
73
+ pageStruct: hasFunctionButtons ? pageStruct : pageStruct.filter(item => item !== 'FunctionButtonsBlock'),
75
74
  }
76
75
 
77
76
  if (viewData.hasOperate) {