Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug fix 优化 datePicker 在 Safari 中 时间间隔大于100年时弹出过慢的问题 #261

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
#### v1.1.4 (2018-07-20)

- 【修复】 percent拼写错误 #207
- 【优化】 弹窗之后背景还是可以滑动的问题
- 【优化】 `datePicker`默认选择当天 #196
- 【优化】 `actionSheet`增加`title`参数



#### v1.1.3 (2017-11-08)

- 【优化】 `picker` 和 `actionSheet` 增加`onClose`
Expand Down
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ weui.js
=====

[![npm version](https://img.shields.io/npm/v/weui.js.svg)](https://www.npmjs.org/package/weui.js/)
[![QQ](http://pub.idqqimg.com/wpa/images/group.png)](http://jq.qq.com/?_wv=1027&k=413HLfV)


### 概述

[WeUI](https://github.com/weui/weui.git) 的轻量级 js 封装。
[WeUI](https://github.com/Tencent/weui.git) 的轻量级 js 封装。

注意:由于微信小程序不支持dom操作,所以weui.js并不适用于小程序。不过WeUI也为小程序开发了另外的版本,详情请看:https://github.com/weui/weui-wxss/
注意:由于微信小程序不支持dom操作,所以weui.js并不适用于小程序。不过WeUI也为小程序开发了另外的版本,详情请看:https://github.com/Tencent/weui-wxss/

### 手机预览

Expand All @@ -23,7 +22,7 @@ weui.js
安装

```shell
git clone https://github.com/weui/weui.js.git
git clone https://github.com/Tencent/weui.js.git
cd weui.js
npm install
npm start
Expand All @@ -41,8 +40,8 @@ npm run build
#### global

```html
<link rel="stylesheet" href="https://res.wx.qq.com/open/libs/weui/1.1.0/weui.min.css">
<script type="text/javascript" src="https://res.wx.qq.com/open/libs/weuijs/1.1.1/weui.min.js"></script>
<link rel="stylesheet" href="https://res.wx.qq.com/open/libs/weui/1.1.3/weui.min.css">
<script type="text/javascript" src="https://res.wx.qq.com/open/libs/weuijs/1.1.4/weui.min.js"></script>
<script type="text/javascript">
weui.alert('alert');
</script>
Expand All @@ -59,7 +58,7 @@ weui.alert('alert');

### 文档

[Documents](https://github.com/weui/weui.js/tree/master/docs/README.md)
[Documents](https://github.com/Tencent/weui.js/tree/master/docs/README.md)

### 贡献

Expand Down
2 changes: 2 additions & 0 deletions __tests__/actionsheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ describe('actionsheet', function(){
[ {label: '拍照'}, {label: '从相册选择'}],
[ {label: '确定'}, {label: '取消'}],
{
title: 'title',
className: 'test'
}
);
const $actionsheet = $('.weui-actionsheet');
assert($actionsheet.length === 1);
assert(actionsheetWrp.classList.contains('test'));
assert($('.weui-actionsheet__title-text').text() == 'title');
});
it('should render menus', () => {
const $menu = $('.weui-actionsheet__menu');
Expand Down
Loading