Semantic-UI 2.2.12 和 2.2.13 已发布,Semantic UI ---- 完全语义化的前端界面开发框架,跟 Bootstrap 和 Foundation 比起来,还是有些不同的,在功能特性上、布局设计上、用户体验上均存在很多差异。
2.2.12 的主要更新如下:
主要增强:
Dropdown - 下拉菜单现在可以在初始化时在 javascript 中指定值。这可简化下拉菜单内容与其他字段有关的情况,例如列出子类别。可在这里和下拉菜单文档的部分使用教程中看到一些示例。
关键的 bug 修复:
Dropdown - Fixed regression that caused sub menu dropdown inside ui menu to always appear on left edge of dropdown introduced 2.2.11
Popup - Fixed a regression with popup in 2.2.11 that caused popups to appear out of place in some cases due to incorrect calculation of offsetParent
Build Tools - Fixes issue with deprecated uglify setting that could cause build tools to fail with the following error:
GulpUglifyError: unable to minify JavaScript
Caused by: DefaultsError: `preserveComments` is not a supported option
2.2.13 主要是对 2.2.12 的热修复:
Install - 修复某些交互式安装脚本的问题。fork 的 gulp-prompt 插件可用于更新的 inquirer 版本
Build Tools - 修复由于输入错误导致修复构建工具失败的问题
软件详情:https://github.com/Semantic-Org/Semantic-UI/releases
来自:开源中国社区

