Skip to content

Commit

Permalink
feat: weui 2.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
uxsi committed Sep 17, 2021
1 parent 7b8d25a commit 15cdf26
Show file tree
Hide file tree
Showing 87 changed files with 3,323 additions and 1,697 deletions.
18 changes: 18 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,21 @@
### v2.5.0 (2021-09-17)

#### Features
* feat: WeUI组件库适配无障碍
* feat: WeUI组件库适配大字号
* feat: 新增无障碍、热区工具类(见`/style/base/a11y.less`)
* feat: 按钮组件UI升级:高度、圆角属性
* feat: 新增底部悬浮按钮
* feat: 统一各平台组件样式(涉及dialog、actionsheet)
* feat: 构建支持Node.js 12+的环境

#### Bugfixes
* fix: msg组件extra-area新增水平间距
* fix: 修复toast文字场景默认宽度问题




### v2.4.4 (2021-03-23)

#### Features
Expand Down
2 changes: 1 addition & 1 deletion dist/example/example.css

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions dist/example/example.js
Expand Up @@ -64,7 +64,9 @@ $(function () {
var $html = $(html).addClass('slideIn').addClass(config.name);
$html.on('animationend webkitAnimationEnd', function(){
$html.removeClass('slideIn').addClass('js_show');
setPageA11y();
});

this.$container.append($html);
this._pageAppend.call(this, $html);
this._pageStack.push({
Expand Down Expand Up @@ -108,6 +110,7 @@ $(function () {

stack.dom.addClass('slideOut').on('animationend webkitAnimationEnd', function () {
stack.dom.remove();
setPageA11y();
});

return this;
Expand Down Expand Up @@ -284,6 +287,13 @@ $(function () {
.setDefault('home')
.init();
}
function setPageA11y() {
var $pages = $('.page');
var $lastPage = $pages.eq($pages.length - 1);

$pages.attr('aria-hidden','true'); // 所有page都加
$lastPage.removeAttr('aria-hidden').attr('tabindex','-1').trigger('focus'); // 最后一个page不用加
}

function init(){
preload();
Expand Down
1,309 changes: 778 additions & 531 deletions dist/example/index.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/example/wah.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 15cdf26

Please sign in to comment.