What’s New in Layui? Latest Features and Bug Fixes Overview
This article outlines the recent updates to the free open‑source Layui UI library, detailing new options, bug fixes, and security patches across components such as laydate, treeTable, form, upload, and more, while highlighting its lightweight, browser‑centric design philosophy.
Layui is a free open‑source web UI component library that follows native HTML/CSS/JavaScript conventions, offering a lightweight modular approach for rapid page construction.
Layui’s design emphasizes simplicity and minimal tooling, targeting developers who prefer direct browser‑based development without build tools.
Update Log
laydate
Added support for mark and holidays option types for more flexible assignments.
Introduced cellRender option to customize cell content, enabling lunar calendar extensions.
Added formatToDisplay option for formatting displayed dates.
Fixed issue where the change callback was not triggered on date click.
treeTable
Added className setting for icons via tree.view option.
Fixed failures when adding a new row after deleting all rows.
Corrected select‑all button state after all rows are removed.
Resolved internal cache synchronization problems when deleting child nodes.
Fixed incorrect row index retrieval after node movement.
Ensured node icons update correctly when adding or deleting nodes.
Addressed isParentKey update issue when removing child nodes.
Fixed row index errors after node relocation.
form
Patched XSS vulnerability in select component when lay-creatable="" attribute is set.
tree
Patched XSS issue when editing node titles.
upload
Added choose callback’s getChooseFiles method to retrieve selected files.
Fixed problem where already‑queued files could be selected again during multi‑file upload.
dropdown
Added id option to be attached to the trigger element’s lay-id attribute for better component integration.
element
Improved custom tab index retrieval.
colorpicker
Optimized cursor display.
Fixed incomplete display of RGBA color input fields.
flow
Enhanced flow.load to release previous events when re‑executed.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Open Source Tech Hub
Sharing cutting-edge internet technologies and practical AI resources.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
