[tag] 添加 Tag 标签组件
作者: sunxiaobin89创建于 2026年8月13日更新于 2026年8月14日
Control method
The configuration dimensions (state color, size, theme, rounded corners, closable) are carried by the data-lay-* attribute (aligned with the official lay.parseDataset prefix convention), and are driven by CSS attribute selectors; the class only retains the structure (lay-tag) and state (lay-is-disabled), and the close button is automatically injected by the component without manual writing.
内容来源: layui/layui