Tagged articles
10 articles
Page 1 of 1
JavaScript
JavaScript
Sep 29, 2025 · Frontend Development

Boost Vue 3 Performance with v‑memo: When and How to Use It

This article explains Vue 3’s v‑memo directive, how it conditionally skips component updates by tracking dependency arrays, and demonstrates its use to dramatically reduce rendering costs in large v‑for lists compared to traditional v‑if/v‑show approaches.

DirectiveVue.jsfrontend performance
0 likes · 4 min read
Boost Vue 3 Performance with v‑memo: When and How to Use It
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 11, 2025 · Frontend Development

How to Build a Custom Vue3 Auto‑Scrolling Table Directive with Element‑Plus

This article explains how to create a custom Vue 3 directive for automatic scrolling of Element‑Plus tables, covering the underlying logic, handling mouse events, conditional scrolling, and integration steps with code examples, enabling developers to implement smooth list carousels without third‑party plugins.

Auto-ScrollDirectiveElement Plus
0 likes · 8 min read
How to Build a Custom Vue3 Auto‑Scrolling Table Directive with Element‑Plus
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 12, 2023 · Frontend Development

Implementing Resizable Elements with Vue Directives (v‑resize)

This article explains how to create a Vue directive for element resizing, covering basic right‑side resizing, handling trigger zones, enforcing minimum dimensions, adding left/right multi‑direction support, and providing complete JavaScript and TypeScript implementations with usage examples and future enhancements.

DirectiveJavaScriptResize
0 likes · 16 min read
Implementing Resizable Elements with Vue Directives (v‑resize)
TiPaiPai Technical Team
TiPaiPai Technical Team
Jul 16, 2021 · Frontend Development

Boost Vue Form Accuracy with the v‑timely‑validate Directive

The article introduces the Vue v‑timely‑validate directive, explains how it shifts form validation from blur to change for faster error clearance, outlines form structure, validation principles, usage steps, and provides complete code examples for seamless integration into i‑form components.

DirectiveJavaScriptform-validation
0 likes · 6 min read
Boost Vue Form Accuracy with the v‑timely‑validate Directive
360 Quality & Efficiency
360 Quality & Efficiency
Mar 6, 2020 · Frontend Development

Implementing Long‑Press Functionality in Vue with JavaScript

This article explains how to create a long‑press button in a Vue application by using native JavaScript events, timers, and a custom Vue directive, covering variable setup, start and cancel functions, event listeners for mouse and touch, and error handling for non‑function bindings.

DirectiveJavaScriptLong Press
0 likes · 8 min read
Implementing Long‑Press Functionality in Vue with JavaScript