-
Notifications
You must be signed in to change notification settings - Fork 15.4k
CLI工具 create-form update 无法正确应用字段类型变更 #21432
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)
Description
Description
问题描述
create-form update 命令无法正确应用字段类型变更
复现步骤
- 使用
create-form create创建表单(如运维小组),字段为 TextField - 修改字段定义文件,将 TextField 改为 EmployeeField
- 运行
create-form update命令
预期行为
字段类型应从 TextField 变更为 EmployeeField
实际行为
影响范围
- 无法通过 CLI 修改字段类型(TextField → EmployeeField)
- 无法通过 CLI 添加新字段类型(AssociationFormField)
- 只能修改字段标签等部分属性
建议
修复 update 命令的字段类型变更识别逻辑,支持以下字段类型转换:
- TextField ↔ EmployeeField
- SelectField ↔ AssociationFormField
- 新增 AssociationFormField 字段
Plugins
No response
OpenCode version
No response
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcoreAnything pertaining to core functionality of the application (opencode server stuff)Anything pertaining to core functionality of the application (opencode server stuff)
Type
Fields
Give feedbackNo fields configured for issues without a type.