Fading Coder

One Final Commit for the Last Sprint

Eight Methods for Vue Component Communication

1. Parent Component Passing Data to Child Component Import child component in parent component Register the child component Use dynamic binding on child component tag to pass dynamic/static values In child component, use props to receive values passed from parent component The received values are ca...

Building a Universal Document Viewer Component in Vue.js

<template> <div class="document-viewer"> <!-- DOCX/XLSX Container --> <div v-show="activeCategory === 'word' || activeCategory === 'spreadsheet'" ref="documentContainer" class="document-wrapper" :style="{ height: viewerHeight + 'px' }...

SpringBoot + Vue Hotel Booking Management System

In the digital transformation era, the hotel industry is actively adopting advanced information technology to optimize customer experience and operational efficiency. This study aims to develop a hotel booking management system based on Spring Boot backend framework and Vue.js frontend framework to...

Implementing Branch Performance Aggregation and Therapist Performance View Features

Aggregate Real Monthly and Annual Branch Performance Implementation approach: Sum the performance of all therapists assigned to the branch to get total branch performance. No frontend changes required. Backend Implementation // Accumulate therapist performance points to the branch's monthly and annu...

Understanding Vue's Computed Properties, Methods, and Watchers

Computed Properties vs Methods computed properties and methods both process data from data, but with key differences. Computed properties cache results based on reactive dependencies, only recalculatign when dependencies change. Methods execute on every call during re-renders. Use computed propertie...

Manual File Upload Implementation with Element Plus and Axios

Managing file uploads manually in Element Plus requires bypassing the default upload behavior of the el-upload component. By utilizing the http-request attribute and disabling automatic submission, developers can gain full control over the request lifecycle, including custom headers and progress tra...

Implementing Single Node Selection with the el-cascader Component

Using el-cascader in Vue 3 with Element Plus A common requirement is to bind the component's value to a single leaf node identifier rather than an array representing the full path. Template Strcuture <el-cascader v-model="currentNodeId" style="min-width: 250px;" ref="casc...

Vue Router Implementation: Lazy Loading and History Modes

Implementing Lazy Loading in Vue Router Standard component loading without lazy loading: import ArticleList from '@/components/ArticleList.vue'; const routerConfig = new VueRouter({ routes: [ { path: '/articles', component: ArticleList } ] }); Method 1: Arrow Function with Dynamic Import (Most Commo...

Implementing a Data Table with Vue.js for Create, Read, Update, Delete, Copy, Revert, and Submit Operations

Table Feature Implementation using vxe-table@4.5.21 Implementation Overview Template Structure <vxe-table ref="dataTableRef" :data="displayData" keep-source :edit-config="{ trigger: 'dblclick', mode: 'cell', showStatus: true, enabled: isEditable }" style="width:...

Understanding the Trade-offs in Vue.js Framework Design

Framework design involves constant trade-offs between different approaches. When designing a framework, its modules are interconnected and influence eachother. Designers must understand the framework's overall direction to make informed decisions about module architecture. Similarly, learners should...