From 3b302ad7411c54a515292d99c379018327840eb2 Mon Sep 17 00:00:00 2001 From: hechang27-sprt Date: Tue, 7 Apr 2026 09:05:21 +0800 Subject: [PATCH] docs(frontend): add Vue 3 template ref auto-unwrap gotchas Add common mistakes section for: - Vue 3 refs nested in objects not auto-unwrapped in templates - Virtual scrolling overscan behavior with small datasets Co-Authored-By: Claude Opus 4.6 --- .../spec/frontend/component-guidelines.md | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.trellis/spec/frontend/component-guidelines.md b/.trellis/spec/frontend/component-guidelines.md index c9daf77..afec38f 100644 --- a/.trellis/spec/frontend/component-guidelines.md +++ b/.trellis/spec/frontend/component-guidelines.md @@ -157,6 +157,45 @@ Element Plus `el-table` (v1) and `el-table-v2` (virtualized) have completely dif When using new Element Plus components, verify required props - they will cause runtime errors if omitted. +### 4. Vue 3 Template Ref Auto-Unwrap Gotchas + +Vue 3 `