Understanding ref and Template Refs in Vue 3 with Migration from Vue 2

Vue 3 introduces distinct concepts of ref for reactivity and template refs for accessing DOM elements or component instances. ref: Reactive References ref creates reactive data references in Composition API. Basic Usage import { ref } from 'vue' const counter = ref(0) console.log(counter.value) // Output: 0 counter.value++ console.log(counter ...

Posted on Thu, 30 Jul 2026 16:24:34 +0000 by tyson

Implementing Drag-and-Drop Node Creation in AntV G6

AntV G6 is a graph visualization engine providing capabilities for drawing, layout, analysis, interaction, and animation of graphs. This guide explains how to imlpement a drag-and-drop interface to add nodes to a G6 graph from an external HTML panel. Core Implementation Considerations 1. Coordinate System Transformation In practical application ...

Posted on Tue, 21 Jul 2026 17:08:48 +0000 by ghgarcia

Preventing Browser Password Saving for Vue 3 Login via Text Input Masking

Browser default behavior monitors form submissions and prompts to save passwords when a visible type="password" input is detected. Too bypass this, use a text input instead and dynamically replace entered characters with dots. <template> <el-form :model="authCreds" :rules="authRules" ref="authForm ...

Posted on Tue, 07 Jul 2026 16:25:06 +0000 by nloding

Getting Started with Vue 3: A Comprehensive Guide

Vue 3 GuideIntroduction to Vue 3 On September 18, 2020, Vue.js released version 3.0 (https://cn.vuejs.org/guide/introduction.html) Key Changes in Vue 3 Performance Improvements Bundle size reduced by 41% Initial rendering 55% faster, updates 133% faster Memory usage reduced by 54% Source Code Upgrades Uses Proxy instead of defineProperty ...

Posted on Mon, 06 Jul 2026 16:34:39 +0000 by MichaelHe

Implementing Drag-to-Select Location with Amap JS API in Vue 3

To integrate drag-based location selection using the Amap JavaScript API within a Vue 3 environment, begin by installing the official loader package: npm install @amap/amap-jsapi-loader The core mechanism relies on AMapUI.PositionPicker configured in dragMap mode. This allows the map viewport to move while a fixed visual indicator remains cent ...

Posted on Mon, 29 Jun 2026 16:52:50 +0000 by aurigus

Implementing File Preview in Vue 3: Complete Implementation Guide

File Preview Implementation in Vue3 This guide covers implementing preview functionality for common file types within a Vue 3 project. Supported File Types The implementation supports: docx, xlsx, pdf, txt, png, jpg, jpeg, mp4, and mp3. Note: Legacy DOC format is not supported due to lack of reliable solutions. Only DOCX is covered. 1. DOCX Do ...

Posted on Wed, 24 Jun 2026 16:59:38 +0000 by 6pandn21

Creating and Using Global Components in Vue 3

What Are Global Components? Global components are reusable Vue components that can be accessed anywhere in your application, unlike local components which are restricted to the scope of their parent component. Once registered globally, you can reference these components in any template without additional imports or local registration, streamlin ...

Posted on Sun, 21 Jun 2026 18:05:36 +0000 by arpowers

Implementing Radial and Linear Gradients in Fabric.js

To build gradient effects in a Vue 3 application using Fabric.js, you can create both linear and radial color transitions directly on canvas objects. Thelux explained demonstrates how to define, configure, and apply these gradients. Start by scaffolding a Vue 3 project with Vite if needed: npm init @vitejs/app Select Vue 3 and complete the pro ...

Posted on Sat, 06 Jun 2026 16:01:01 +0000 by sharapov

Key Differences Between Vue 2 and Vue 3

Lifecycle Hooks Vue 2 Description Vue 3 beforeCreate() Before creation setup() created() After creation setup() beforeMount() Before mounting onBeforeMount() mounted() After mounting onMounted() beforeUpdate() Before update onBeforeUpdate() updated() After update onUpdated() beforeDestroy() Before destruction onBeforeUnmount( ...

Posted on Sat, 16 May 2026 13:57:10 +0000 by awpti

Implementing Bluetooth Low Energy Data Transfer in uni-app with Vue 3

Bluetooth Low Energy (BLE) communication is a fundamental requirement for many IoT applications. This guide outlines the technical workflow for establishing a BLE connection, discovering services, and managing bidirectional data transmission using uni-app and Vue 3. The logic described here is applicable to Android apps, iOS apps, and WeChat Mi ...

Posted on Fri, 15 May 2026 19:13:04 +0000 by xeno