How to implement v-model for custom components in Vue2 and Vue3

This article demonstrates how to implement v-model functionality in custom components, using input as an example. We'll create a custom component named z-input that can be used with v-model in a parent component like this: <template> <z-input v-model="msg" /> </template> <!-- JS code omitted --> Both Vue 2 ...

Posted on Sun, 12 Jul 2026 17:21:25 +0000 by chaiwei

Deploy Spring Boot and Vue Applications on Baota Panel with HTTPS

Backend Packaging Notes Configure proxy bypass in the backend to allow specific domain access. Write two allowed domains: your configured domain and the server IP address. During frontend development, ports are used; in production, omit ports to avoid lock-in. application.yml Configuration server: port: 9999 servlet: context-path: /api ...

Posted on Thu, 09 Jul 2026 16:46:33 +0000 by rimelta

Building Desktop Applications with Vue and Electron

Setting Up a Vite, Vue 3, and JavaScript Project Ensure all JSON configuration files do not contain comments, as they may cause runtime issues even if no immediate errors are shown. 1. Creating the Desktop Application 1.1 Project Initialization Run the following command to create a new project: npm create vite@latest When prompted, select the ...

Posted on Mon, 29 Jun 2026 17:13:30 +0000 by ashu.khetan

Why Vue Doesn't Make Array Index Assignment Reactive via Object.defineProperty

Object.defineProperty can indeed observe array elements. For example, you can iterate over an array and define getter/setter for each index: let array = [1, 2, 3, 4, 5]; array.forEach((item, index) => { defineReactive(array, index, item); }); function defineReactive(obj, key, val) { Object.defineProperty(obj, key, { enumerab ...

Posted on Sat, 20 Jun 2026 17:46:28 +0000 by klainis

Flight Management System with SpringBoot

This project is a flight entry and exit management system built using Java and SpringBoot framework. The system can be opened and run in both Eclipse and IDE. The recommended environment includes Eclipse/IDE, JDK 1.8, Maven, and MySQL. Technical Stack Frontend technologies include Vue.js, Ajax, and JSON for dynamic user interfaces. Backend impl ...

Posted on Sat, 20 Jun 2026 17:07:28 +0000 by gimzo

Building a Vue Admin Dashboard with TypeScript and Element UI

The foundation of this application relies on a centralized layout structure located within the src/layout directory. This pattern organizes the shell of the application separately from the core business logic, allowing for a modular design. The recommended directory structure for the layout module is as follows: src/ └── layout/ ├── compone ...

Posted on Thu, 18 Jun 2026 18:07:19 +0000 by neofox

Vue Dashboard Development: ECharts Composition API Wrapper

ECharts Configuration Hook Implementation Core Configuration Functions The implementation begins with utility functions that define default chart styling: const createDefaultLegend = () => ({ bottom: 0, left: 0, orient: "vertical", itemWidth: 8, itemHeight: 8, textStyle: { color: "white", }, }); const c ...

Posted on Sat, 13 Jun 2026 18:24:09 +0000 by tommychi

Front-End Strategies for Secure and Efficient Uploads to Alibaba Cloud OSS

Prerequisites Create a OSS bucket and collect the following credentials from the RAM console: AccessKeyId and AccessKeySecret (store the secret immediately, it is shown only once) Bucket name and endpoint (found in the OSS console under "Bucket Overview") Attach the AliyunOSSFullAccess policy (or a scoped custom policy) to the RAM us ...

Posted on Fri, 12 Jun 2026 17:12:34 +0000 by snuggles79

Working with Vue Single File Components in CLI Environments

In Vue CLI environments powered by Webpack, a .vue file represents a standalone component. The build process, specifically through vue-loader, compiles the HTML template, JavaScript logic, and CSS styles into a single cohesive unit.Historically, defining components required using Vue.component with inline template strings:Vue.component('nav-bar ...

Posted on Tue, 09 Jun 2026 17:31:14 +0000 by dimitar

State Management Patterns Across Vue and Flutter

What Is Application State? Application state is any data that lives only while the program is running—values that may never reach a database or disk but still need to be shared, updated, and kept consistent across screens or components. From Props Drilling to Global Stores The simplest way to move data is through the component tree: Downward f ...

Posted on Tue, 09 Jun 2026 16:53:31 +0000 by blackwidow