npm version jsDelivr hits
GitHub npm License
Lightweight and Dependency-Free

Built with pure JavaScript and native APIs at its core, achieving a completely dependency-free framework design.
Compared to traditional frameworks, its compact size and simple structure effectively reduce web application resource overhead.
Without the need for heavy third-party library support, it ensures efficient and stable performance across various runtime environments, particularly suitable for traffic-sensitive mobile scenarios.

Efficient Rendering and Data Monitoring

Incorporates Virtual DOM technology to reconstruct rendering logic, achieving fine-grained data monitoring and updates.
The framework automatically detects data changes and updates views with minimal resource consumption, avoiding unnecessary DOM operations.
This design significantly improves performance, ensuring the framework can easily handle highly interactive application requirements and provide users with a smoother experience.

Simple and User-Friendly Syntax

Provides intuitive and easy-to-understand syntax design, allowing developers to quickly familiarize and apply.
Supports syntax like {{value}}, :for, and :if, greatly simplifying common development needs:
- Data binding: Directly insert data into views, automatically updating with data changes.
- Conditional rendering: Implement branch logic control with concise syntax.
- Loop rendering: Efficiently handle lists and multi-layer data structures, reducing redundant code.

Strong Flexibility and Compatibility

Supports multi-level nesting and custom style settings, flexibly adapting to both single-page applications and multi-page systems.
The framework includes complete lifecycle control, allowing developers to precisely manage component behavior and meet complex application scenario requirements through built-in extension capabilities.
Efficient compatibility design makes it an ideal choice for multi-platform development.

Features

Text Replacement

Provides efficient text replacement capabilities:
> {{value}}: Dynamically insert data into HTML elements, automatically updating with data changes.
> :html: Supports insertion of multiple text segments or nested HTML structures, meeting more diverse view requirements.

Conditional Rendering

Implements flexible view display through conditional syntax:
> :if: Display elements only when conditions are met.
> :else-if / :elif: Used for handling multiple condition branches.
> :else: Handle all scenarios that don't meet conditions, simplifying complex logic control.

Loop Rendering

Efficiently handles rendering of lists and multi-layer data structures:
> Simple loops: Use item in items to traverse data lists.
> Multi-layer structures: Support nested structure rendering like (key, value) in object.
> Index support: Obtain data indices for generating dynamic unique identifiers or attributes.

Two-Way Binding

Implements real-time synchronization between form elements and data through :model:
> Automatic updates: Data synchronizes instantly with user input.
> Simplified process: No need for additional event listeners or logic handling.
> Multiple support: Applicable to various form elements including input, textarea, select

Quick CSS Setup

Provides intuitive and easy-to-use CSS quick setup syntax, letting developers focus on functionality rather than style details:
> Basic style support: Such as :padding:margin, :border, etc., quickly set element spacing and borders.
> Background settings: Support quick setup of background colors or images with :background-color, :background-image.
> Dynamic properties: Can bind data to dynamically modify styles, adapting to various interaction needs.

Event Binding

Through the @[event] syntax, QuickUI supports quick binding of various DOM events, implementing flexible interaction logic:
> Wide range: Supports common event types like @click, @input, @change, etc.
> Custom event handling: Can bind developer-defined callback functions.
> Efficient operation: Avoid manually writing lengthy event listening code, improving development efficiency.

中文