Building a Mini Vue: Implementing Observer, Watcher, and Compiler
Vue's source code implements dependency collection using the Observer pattern. It involves three main classes:
Dep: Acts as the observable target. Every data property has a Dep instance containing a subs queue (short for subscribers) that holds all Watcher instances depending on the data. When data changes, dep.notify() is called to inform all ...
Posted on Mon, 24 Aug 2026 16:25:35 +0000 by rcoursey
Custom Element Transfer Component with Drag Sorting and Checkbox Interaction
Usage
Import and register the custom drag-enabled transfer component, then integrate it into your Vue template:
<CustomDragTransfer
:selected-right-items="selectedRightFilterList"
left-panel-title="Unavailable Filter Fields"
right-panel-title="Saved Filter Presets"
:all-source-data="fullFilterDatase ...
Posted on Wed, 19 Aug 2026 16:16:58 +0000 by ceci
Setting Up Vue.js via npm with Custom Cache and Registry Configuration
Install Node.js and Verify npm
npm (Node Package Manager) is included with Node.js. Download and install Node.js from its official website. After installation, verify both tools by running:
node -v
npm -v
By default, npm stores global packages and cache in the user directory (e.g., C:\Users\<User>\AppData\Roaming\npm). To relocate these ...
Posted on Tue, 11 Aug 2026 16:59:30 +0000 by purefusion
Design and Implementation of a Music Player with SpringBoot, Vue, and Uniapp for WeChat Mini Program
Introduction
This article details the design and implementation of a music player application using SpringBoot for the backend, Vue for the frontend, and Uniapp for the WeChat Mini Program. The focus is on creating a robust, scalable system with modern web technologies.
Detailed Video Demonstration
For a comprehensive video demonstration, pleas ...
Posted on Tue, 11 Aug 2026 16:08:00 +0000 by RIGOLETO
Creating Toast Components in Vue Using Vue.extend Pattern
Implementation Preview
Component Overview
Notification components of this type are typically invoked directly within JavaScript code, similar to this example:
this.$notification('Stop clicking, you have reached the end!')
How ever, most implementations found online utilize the component approach, requiring manual placement of component elemen ...
Posted on Sun, 09 Aug 2026 16:37:50 +0000 by rakennedy75
Centralized State Management Patterns with Vuex
Vuex functions as a dedicated state management patttern and library designed specifically for Vue.js ecosystems. It implements a centralized storage system for managing component state across an application, enforcing rules that ensure state changes occur in a predictable manner. Essentially, Vuex synchronizes data changes globally, providing a ...
Posted on Sat, 08 Aug 2026 16:18:26 +0000 by kylecooper
Restricting el-input to Numeric Values with Decimal Points Only
Element UI provides several validation approaches, yet each prseents limitations. For instance:
Using type='number' allows invalid inputs like 1-1-1.
The el-input-number component permits multiple decimal points.
Regular expressions such as:
<el-input v-model='form.number' @input="(v)=>form.number=v.replace(/[^�-9.]/g,'')&quo ...
Posted on Thu, 23 Jul 2026 17:08:41 +0000 by cshinteractive
Building a Survey Platform with TDuck: Open-Source Form System
Overview
TDuck is a free, production-ready form and survey platform built with SpringBoot, Vue, and ElementUI. It enables rapid creation of questionnaires and business forms through a no-code approach while supporting custom component development.
Key Features
Form Components:
Over a dozen component types including rating scales, cascading sel ...
Posted on Tue, 21 Jul 2026 16:08:26 +0000 by Fife Club
Production Issue Monitoring: Complete Sentry Integration Guide
Background: When sporadic production issues occur, testers often cannot reproduce the error scenario based on API information alone. Production monitoring is critical for improving system reliability. Among the many monitoring tools available, why choose Sentry? Because it offers session replay capabilities, automatic error collection, multi-us ...
Posted on Mon, 20 Jul 2026 17:22:01 +0000 by papa
Optimizing Vue List Rendering: The Role of Keys and the Pitfalls of Using Index
The Virtual DOM Diffing Algorithm and PerformanceThe key attribute primarily serves as a performance optimization mechanism for Vue's virtual DOM. During the reconciliation process, Vue matches existing DOM nodes to virtual nodes based on their keys. If an element's key remains identical and its underlying data has not mutated, Vue skips updati ...
Posted on Wed, 15 Jul 2026 16:31:53 +0000 by jscnet