Frontend Development 5 min read

Layui Release Notes – New Features, Bug Fixes, and Optimizations

This release note details the latest Layui updates, introducing new global form attributes, numerous bug fixes for checkboxes, tables, and tree tables, as well as performance optimizations across components like layer, laydate, upload, and code, with code snippets illustrating the changes.

Laravel Tech Community
Laravel Tech Community
Laravel Tech Community
Layui Release Notes – New Features, Bug Fixes, and Optimizations

Release Notes

Form

Added global attribute verIncludelRequired to control whether validation rules include required fields (I737EW).

Fixed checkbox title alignment and half‑checked icon centering (#1255).

Fixed checkbox half‑checked state not resetting after click.

Fixed title template not retrieved correctly when checkbox re‑renders (#1257).

Fixed select display issue after browser translation (#1256).

Optimized lay-skin for checkbox when using non‑default skins.

Table

Added recognition of lay-unrow attribute to prevent row click events on inner elements.

Fixed table.setRowChecked() causing checkbox/radio events to fail (I73MLV/I76KBX/I78VI3).

Fixed printing crash on Edge (#1264).

Optimized table.setRowChecked() to auto‑toggle checkbox state when checked is omitted.

Optimized row event mechanism to ignore row events when target is a checkbox or radio.

Optimized outer container height handling to auto‑expand based on height attribute.

Optimized bottom border rendering.

TreeTable

Added node collapse state memory feature (#1260/I777CJ).

Added customName.icon for custom icon property name (#1260/I73BQU).

Added async.format callback to process async child node data, higher priority than async.url (#1260).

Added treeTable.reloadAsyncNode(id, index) to reload async child nodes.

Added treeTable.getNodeById(id) to retrieve node information.

Added treeTable.getNodesByFilter(id, filter, opts) to get nodes matching filter rules.

Fixed default data sorting issue in isSimpleData mode after rendering.

Fixed full‑expand node sorting failure (#1260/I73M2K).

Fixed leaf node collapse icon not changing.

Fixed node selection state determination errors.

Optimized treeTable.checkStatus() to optionally return half‑checked data via second argument.

Optimized re‑ordering and form initialization logic within view.

Optimized node rendering method.

Layer

Fixed issue where setting skin:'layui-layer-lan' made btnAlign ineffective (I73PD1).

Laydate

Optimized theme attribute: when an array is provided with the first element as a hex primary color, the second element is treated as a secondary color (#1265).

Upload

Added support for .svg extension via the exts attribute for image uploads.

Code

Optimized copy attribute to initialize tools configuration when enabled (I72QGO).

Optimized preview: 'iframe' to support transparent background for the <iframe> container.

Guide

Documentation preview: https://layui.dev

Repository: https://gitee.com/layui/layui

frontendJavaScriptWeb Developmentui-componentsRelease NotesLayUI
Laravel Tech Community
Written by

Laravel Tech Community

Specializing in Laravel development, we continuously publish fresh content and grow alongside the elegant, stable Laravel framework.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.