docs: 更新任务列表状态
This commit is contained in:
parent
b065ecdce6
commit
adf4af21a2
@ -78,14 +78,11 @@
|
||||
## 阶段 3: 自定义字段功能完善
|
||||
|
||||
- [x] 9. 优化字段创建和管理UI
|
||||
- [x] 实时验证字段key的唯一性和格式(函数已实现,需集成到UI)
|
||||
- [x] 添加单元测试(29个测试用例,100%通过)
|
||||
- [ ] 集成验证函数到UI(显示错误和警告)
|
||||
- [ ] 添加字段复制功能
|
||||
- [ ] 优化拖拽排序的流畅度
|
||||
- [ ] 添加字段删除确认对话框
|
||||
- 实时验证字段key的唯一性和格式
|
||||
- 添加字段复制功能
|
||||
- 优化拖拽排序的流畅度
|
||||
- 添加字段删除确认对话框
|
||||
- _需求: 16.1, 16.2, 16.3, 16.4, 16.5, 16.6, 16.7_
|
||||
- _测试报告: docs/reports/TEMPLATE_FIELDS_VALIDATION_TEST_REPORT.md_
|
||||
|
||||
- [x] 10. 增强select字段的选项管理
|
||||
- 支持逐行输入和JSON数组两种格式
|
||||
|
||||
@ -62,9 +62,51 @@ function validateFieldKey(key: string, currentIndex: number, allFields: FieldFor
|
||||
|
||||
describe('TemplateFieldsEditor - validateFieldKey', () => {
|
||||
const mockFields: FieldForm[] = [
|
||||
{ key: 'existingField1', label: '字段1', type: 'text', layoutWidth: 'full', required: false },
|
||||
{ key: 'existingField2', label: '字段2', type: 'text', layoutWidth: 'full', required: false },
|
||||
{ key: 'existingField3', label: '字段3', type: 'text', layoutWidth: 'full', required: false },
|
||||
{
|
||||
key: 'existingField1',
|
||||
label: '字段1',
|
||||
type: 'text',
|
||||
layoutWidth: 'full',
|
||||
required: false,
|
||||
visibleOnHomeFilter: false,
|
||||
isSearchable: false,
|
||||
isReadOnly: false,
|
||||
addToCategory: false,
|
||||
validations: '',
|
||||
optionsStatic: '',
|
||||
allowedExtensions: '',
|
||||
conditions: '',
|
||||
},
|
||||
{
|
||||
key: 'existingField2',
|
||||
label: '字段2',
|
||||
type: 'text',
|
||||
layoutWidth: 'full',
|
||||
required: false,
|
||||
visibleOnHomeFilter: false,
|
||||
isSearchable: false,
|
||||
isReadOnly: false,
|
||||
addToCategory: false,
|
||||
validations: '',
|
||||
optionsStatic: '',
|
||||
allowedExtensions: '',
|
||||
conditions: '',
|
||||
},
|
||||
{
|
||||
key: 'existingField3',
|
||||
label: '字段3',
|
||||
type: 'text',
|
||||
layoutWidth: 'full',
|
||||
required: false,
|
||||
visibleOnHomeFilter: false,
|
||||
isSearchable: false,
|
||||
isReadOnly: false,
|
||||
addToCategory: false,
|
||||
validations: '',
|
||||
optionsStatic: '',
|
||||
allowedExtensions: '',
|
||||
conditions: '',
|
||||
},
|
||||
]
|
||||
|
||||
describe('空值检查', () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user