docs(AGENTS.md): 移除关于 Naive UI 表单布局的冗余内容
This commit is contained in:
19
AGENTS.md
19
AGENTS.md
@@ -46,25 +46,6 @@ Multiple auto-import systems are active:
|
|||||||
Project has multiple UI frameworks configured:
|
Project has multiple UI frameworks configured:
|
||||||
|
|
||||||
- **Naive UI**
|
- **Naive UI**
|
||||||
- **Form Layout**: When using `NGrid` for form layouts, prefer `NFormItemGi` over nesting `NFormItem` inside `NGridItem` for more concise code.
|
|
||||||
|
|
||||||
```vue
|
|
||||||
<!-- ❌ Avoid: Verbose nesting -->
|
|
||||||
<NGrid :cols="4">
|
|
||||||
<NGridItem>
|
|
||||||
<NFormItem label="Username">
|
|
||||||
<NInput />
|
|
||||||
</NFormItem>
|
|
||||||
</NGridItem>
|
|
||||||
</NGrid>
|
|
||||||
|
|
||||||
<!-- ✅ Use: Concise and direct -->
|
|
||||||
<NGrid :cols="4">
|
|
||||||
<NFormItemGi label="Username">
|
|
||||||
<NInput />
|
|
||||||
</NFormItemGi>
|
|
||||||
</NGrid>
|
|
||||||
```
|
|
||||||
|
|
||||||
- **PrimeVue**:
|
- **PrimeVue**:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user