fix: 修正 layui-ellip 类名简写 (#2557)

* 修正 class文档中的 layui-ellip拼写

类名 layui-elip 修改为 layui-ellip,以符合业界及官方文档中通常的拼写形式

* feat: 新增 .layui-ellip 类

---------

Co-authored-by: 贤心 <3277200+sentsim@users.noreply.github.com>
This commit is contained in:
letianpailove 2025-03-13 14:16:47 +08:00 committed by GitHub
parent bb45393cb8
commit 1c608d9e69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View File

@ -16,7 +16,7 @@ toc: true
| layui-clear | 清除前面的同级元素产生的浮动 |
| layui-clear-space <sup>2.8+</sup> | 清除容器内的空白符 |
| layui-inline | 设置元素为内联块状结构 |
| layui-elip | 设置单行文本溢出并显示省略号 |
| layui-ellip | 设置单行文本溢出并显示省略号 |
| layui-unselect | 屏蔽选中 |
| layui-disabled | 设置元素为不可点击状态 |
| layui-circle | 设置元素为圆形。需确保 `width``height` 相同 |

View File

@ -35,7 +35,9 @@ a cite{font-style: normal;}
.layui-edge-right{border-left-color: #999; border-left-style: solid;}
.layui-edge-bottom{top: 2px; border-top-color: #999; border-top-style: solid;}
.layui-edge-left{border-right-color: #999; border-right-style: solid;}
/* 单行溢出省略 */.layui-elip{text-overflow: ellipsis; overflow: hidden; white-space: nowrap;}
/* 单行溢出省略 */
.layui-elip, /* 仅为向下兼容保留 #2557 */
.layui-ellip{text-overflow: ellipsis; overflow: hidden; white-space: nowrap;}
/* 屏蔽选中 */.layui-unselect,.layui-icon, .layui-disabled{user-select: none;}
/* 禁用 */.layui-disabled,.layui-disabled:hover{color: #d2d2d2 !important; cursor: not-allowed !important;}
/* 纯圆角 */.layui-circle{border-radius: 100%;}