Skip to content

v3.3.0

Choose a tag to compare

@wenjianzhang wenjianzhang released this 25 Sep 13:19
· 31 commits to master since this release
dbf490b
  • ✨ The code generator's per-table translations are loaded. The generator wrote them, but nothing imported them, so every generated page showed raw translation keys in place of its labels. #308
  • ✨ The code generator's table editor adds column width and default value fields, and its htmlType picker offers checkbox and datetime. #308
  • 🐛 Switching between two pages under a nested menu — the seeded 日志管理 → 登录日志 / 操作日志, or any two-level menu of your own — changed the URL and the sidebar but left the previous page on screen. #307
  • 🐛 A form whose primary key the user types in — a string key such as a code — submitted a create as an update. useForm now takes create or edit from openCreate / openEdit rather than from whether the key is filled in; a form opened any other way behaves as before. #310

Upgrading. The table editor reads colWidth and defaultValue, which go-admin adds to sys_columns in go-admin#943: upgrade the backend to include it and run its migration before using the editor. Pages the generator writes for a table keyed on a string (go-admin#951) need this release to create records.


  • ✨ 代码生成器按表生成的翻译现在会被加载。生成器一直在写这些文件,但没有任何地方导入它们,所以生成出来的页面上显示的都是翻译 key 本身,而不是字段名。#308
  • ✨ 代码生成的表编辑页新增列宽和默认值两个字段,htmlType 下拉放开了 checkbox 和 datetime。#308
  • 🐛 在二级菜单下的两个页面之间切换(种子数据里的 日志管理 → 登录日志 / 操作日志,或你自建的任意二级菜单),URL 和侧边栏都变了,内容区却还停在上一页。#307
  • 🐛 主键由用户输入的表单(例如以编码为主键的字符串主键表),新增时提交走成了更新。useForm 现在根据 openCreate / openEdit 判断新增还是编辑,不再看主键有没有填;用其他方式打开的表单行为不变。#310

升级说明。 表编辑页会读取 colWidth 和 defaultValue,这两列由 go-admin#943 加到 sys_columns:使用表编辑页之前,先把后端升级到包含它的版本并执行迁移。代码生成器为字符串主键表生成的页面(go-admin#951)需要本版本才能新增记录。