Skip to content

Commit

Permalink
Merge branch 'master' into feature-dark-mode
Browse files Browse the repository at this point in the history
# Conflicts:
#	dist/style/weui.css
#	dist/style/weui.min.css
  • Loading branch information
bearyan committed Jan 26, 2020
2 parents 49874ba + b57ba9a commit 3e2a142
Show file tree
Hide file tree
Showing 35 changed files with 3,424 additions and 4,125 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
### [v2.1.4](https://github.com/Tencent/weui/compare/v2.1.3...v2.1.4) (2020-01-20)

#### Features
* feat: 更改weui-cell点击态的实现方式,需要点击态额外加weui-cell_active扩展类([0aa806d](https://github.com/Tencent/weui/commit/0aa806d))

#### Bugfixes
* fix: 修复弹窗组件在ios10下内容区域无法局部滚动的问题([9fe8971](https://github.com/Tencent/weui/commit/9fe8971))
* fix: 修复文本域计数器对齐问题([587c35c](https://github.com/Tencent/weui/commit/587c35c))
* fix: 修复图片预览组件在刘海屏下安全间距的问题以及多个文字颜色问题([f923afb](https://github.com/Tencent/weui/commit/f923afb))
* fix: 优化footer组件固定底部在刘海屏上的体验([1034346](https://github.com/Tencent/weui/commit/1034346))
* fix: 优化半屏弹窗的头部图标,使背景透明化,weui-icon-btn_close更名为weui-icon-close-thin,weui-icon-btn_more更名为weui-icon-more,weui-icon-btn_goback更名为weui-icon-back-arrow-thin([0c2c0c1](https://github.com/Tencent/weui/commit/0c2c0c1))
* fix: 修复半屏弹窗非刘海屏下的布局问题([ae86a50](https://github.com/Tencent/weui/commit/ae86a50))
* fix: 修复新表单底部提示区域链接颜色([ddf0a89](https://github.com/Tencent/weui/commit/ddf0a89))
* fix: 修复weui-cell_access在新表单下的字体颜色被覆盖的问题([a993864](https://github.com/Tencent/weui/commit/a993864))
* fix: 去掉同意协议ios默认点击态([3863da6](https://github.com/Tencent/weui/commit/3863da6))

#### Breaking Changes
* fix: 更新表单下默认链接字体颜色,去掉了weui-form的超链接默认色值。若需要使用原链接色,可对超链接加扩展类weui-link([a993864](https://github.com/Tencent/weui/commit/a993864))
* fix: weui-cells下方提示增加超链接默认颜色([5d22c51](https://github.com/Tencent/weui/commit/6344135abcddf77ff93c5ac31f35d9e3c5d22c51))




### [v2.1.3](https://github.com/Tencent/weui/compare/v2.1.2...v2.1.3) (2019-09-18)

#### Style
Expand Down
204 changes: 104 additions & 100 deletions dist/example/index.html

Large diffs are not rendered by default.

6,934 changes: 3,072 additions & 3,862 deletions dist/style/weui.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/style/weui.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "weui",
"version": "2.1.3",
"version": "2.1.4",
"description": "A UI library by WeChat official design team, includes the most useful widgets/modules in mobile web applications.",
"keywords": [
"weui",
Expand Down
12 changes: 6 additions & 6 deletions src/example/fragment/badge.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h1 class="page__title">Badge</h1>
<div class="page__bd">
<div class="weui-cells__title">新消息提示跟摘要信息后,统一在列表右侧</div>
<div class="weui-cells">
<div class="weui-cell weui-cell_access">
<div class="weui-cell weui-cell_active weui-cell_access">
<div class="weui-cell__bd">单行列表</div>
<div class="weui-cell__ft" style="font-size: 0">
<span style="vertical-align:middle; font-size: 17px;">详细信息</span>
Expand All @@ -17,7 +17,7 @@ <h1 class="page__title">Badge</h1>

<div class="weui-cells__title">未读数红点跟在主题信息后,统一在列表左侧</div>
<div class="weui-cells">
<div class="weui-cell">
<div class="weui-cell weui-cell_active">
<div class="weui-cell__hd" style="position: relative;margin-right: 10px;">
<img src="images/pic_160.png" style="width: 50px;display: block"/>
<span class="weui-badge" style="position: absolute;top: -.4em;right: -.4em;">8</span>
Expand All @@ -27,21 +27,21 @@ <h1 class="page__title">Badge</h1>
<p style="font-size: 13px;color: #888888;">摘要信息</p>
</div>
</div>
<div class="weui-cell weui-cell_access">
<div class="weui-cell weui-cell_active weui-cell_access">
<div class="weui-cell__bd">
<span style="vertical-align: middle">单行列表</span>
<span class="weui-badge" style="margin-left: 5px;">8</span>
</div>
<div class="weui-cell__ft"></div>
</div>
<div class="weui-cell weui-cell_access">
<div class="weui-cell weui-cell_active weui-cell_access">
<div class="weui-cell__bd">
<span style="vertical-align: middle">单行列表</span>
<span class="weui-badge" style="margin-left: 5px;">8</span>
</div>
<div class="weui-cell__ft">详细信息</div>
</div>
<div class="weui-cell weui-cell_access">
<div class="weui-cell weui-cell_active weui-cell_access">
<div class="weui-cell__bd">
<span style="vertical-align: middle">单行列表</span>
<span class="weui-badge" style="margin-left: 5px;">New</span>
Expand All @@ -53,4 +53,4 @@ <h1 class="page__title">Badge</h1>
<div class="page__ft">
<a href="javascript:home()"><img src="./images/icon_footer_link.png" /></a>
</div>
</div>
</div>
6 changes: 3 additions & 3 deletions src/example/fragment/form_checkbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h2 class="weui-form__title">复选框样式展示</h2>
<div class="weui-form__control-area">
<div class="weui-cells__group weui-cells__group_form">
<div class="weui-cells weui-cells_checkbox">
<label class="weui-cell weui-check__label" for="s11">
<label class="weui-cell weui-cell_active weui-check__label" for="s11">
<div class="weui-cell__hd">
<input type="checkbox" class="weui-check" name="checkbox1" id="s11" checked="checked"/>
<i class="weui-icon-checked"></i>
Expand All @@ -15,7 +15,7 @@ <h2 class="weui-form__title">复选框样式展示</h2>
<p>standard is dealt for u.</p>
</div>
</label>
<label class="weui-cell weui-check__label" for="s12">
<label class="weui-cell weui-cell_active weui-check__label" for="s12">
<div class="weui-cell__hd">
<input type="checkbox" name="checkbox1" class="weui-check" id="s12"/>
<i class="weui-icon-checked"></i>
Expand All @@ -24,7 +24,7 @@ <h2 class="weui-form__title">复选框样式展示</h2>
<p>standard is dealicient for u.</p>
</div>
</label>
<a href="javascript:void(0);" class="weui-cell weui-cell_link">
<a href="javascript:void(0);" class="weui-cell weui-cell_active weui-cell_link">
<div class="weui-cell__bd">添加更多</div>
</a>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/example/fragment/form_input_status.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ <h2 class="weui-form__title">输入框状态</h2>
<div class="weui-cells__group weui-cells__group_form">
<div class="weui-cells__title">表单报错</div>
<div class="weui-cells weui-cells_form">
<div class="weui-cell" id="js_cell">
<div class="weui-cell weui-cell_active" id="js_cell">
<div class="weui-cell__hd"><label class="weui-label">卡号</label></div>
<div class="weui-cell__bd">
<div class="weui-cell__bd weui-flex">
<input id="js_input" class="weui-input" autofocus type="text" pattern="[0-9]*" placeholder="请输入16位数卡号" maxlength="16" />
<button id="js_input_clear" class="weui-btn_reset weui-btn_icon weui-btn_input-clear">
<i class="weui-icon-clear"></i>
Expand All @@ -22,13 +22,13 @@ <h2 class="weui-form__title">输入框状态</h2>
<div class="weui-cells__group weui-cells__group_form">
<div class="weui-cells__title">表单只读、置灰</div>
<div class="weui-cells weui-cells_form">
<div class="weui-cell weui-cell_readonly">
<div class="weui-cell weui-cell_active weui-cell_readonly">
<div class="weui-cell__hd"><label class="weui-label">EMail</label></div>
<div class="weui-cell__bd">
<input class="weui-input" placeholder="请输入EMail" value="1234567" readonly/>
</div>
</div>
<div class="weui-cell weui-cell_disabled">
<div class="weui-cell weui-cell_active weui-cell_disabled">
<div class="weui-cell__hd"><label class="weui-label">微信号</label></div>
<div class="weui-cell__bd">
<input class="weui-input" placeholder="请输入微信号" value="WeUI" disabled/>
Expand Down
6 changes: 3 additions & 3 deletions src/example/fragment/form_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ <h2 class="weui-form__title">表单结构</h2>
<div class="weui-cells__group weui-cells__group_form">
<div class="weui-cells__title">表单组标题</div>
<div class="weui-cells weui-cells_form">
<div class="weui-cell">
<div class="weui-cell weui-cell_active">
<div class="weui-cell__hd"><label class="weui-label">微信号</label></div>
<div class="weui-cell__bd">
<input id="js_input" class="weui-input" placeholder="填写本人微信号"/>
</div>
</div>
<div class="weui-cell">
<div class="weui-cell weui-cell_active">
<div class="weui-cell__hd"><label class="weui-label">昵称</label></div>
<div class="weui-cell__bd">
<input id="js_input" class="weui-input" placeholder="填写本人微信号的昵称"/>
</div>
</div>
<div class="weui-cell">
<div class="weui-cell weui-cell_active">
<div class="weui-cell__hd"><label class="weui-label">联系电话</label></div>
<div class="weui-cell__bd">
<input id="js_input" class="weui-input" placeholder="填写绑定的电话号码" type="number" pattern="[0-9]*" />
Expand Down
6 changes: 3 additions & 3 deletions src/example/fragment/form_radio.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h2 class="weui-form__title">单选框样式展示</h2>
<div class="weui-form__control-area">
<div class="weui-cells__group weui-cells__group_form">
<div class="weui-cells weui-cells_radio">
<label class="weui-cell weui-check__label" for="x11">
<label class="weui-cell weui-cell_active weui-check__label" for="x11">
<div class="weui-cell__bd">
<p>cell standard</p>
</div>
Expand All @@ -15,7 +15,7 @@ <h2 class="weui-form__title">单选框样式展示</h2>
<span class="weui-icon-checked"></span>
</div>
</label>
<label class="weui-cell weui-check__label" for="x12">
<label class="weui-cell weui-cell_active weui-check__label" for="x12">

<div class="weui-cell__bd">
<p>cell standard</p>
Expand All @@ -25,7 +25,7 @@ <h2 class="weui-form__title">单选框样式展示</h2>
<span class="weui-icon-checked"></span>
</div>
</label>
<a href="javascript:void(0);" class="weui-cell weui-cell_link">
<a href="javascript:void(0);" class="weui-cell weui-cell_active weui-cell_link">
<div class="weui-cell__bd">添加更多</div>
</a>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/example/fragment/form_select.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h2 class="weui-form__title">原生选择框</h2>
<div class="weui-form__control-area">
<div class="weui-cells__group weui-cells__group_form">
<div class="weui-cells">
<div class="weui-cell weui-cell_select">
<div class="weui-cell weui-cell_active weui-cell_select">
<div class="weui-cell__bd">
<select class="weui-select" name="select1">
<option selected="" value="1">微信号</option>
Expand All @@ -15,7 +15,7 @@ <h2 class="weui-form__title">原生选择框</h2>
</select>
</div>
</div>
<div class="weui-cell weui-cell_select weui-cell_select-before">
<div class="weui-cell weui-cell_active weui-cell_select weui-cell_select-before">
<div class="weui-cell__hd">
<select class="weui-select" name="select2">
<option value="1">+86</option>
Expand All @@ -28,7 +28,7 @@ <h2 class="weui-form__title">原生选择框</h2>
<input class="weui-input" type="number" pattern="[0-9]*" placeholder="请输入号码" value="12345678907"/>
</div>
</div>
<div class="weui-cell weui-cell_select weui-cell_select-after">
<div class="weui-cell weui-cell_active weui-cell_select weui-cell_select-after">
<div class="weui-cell__hd">
<label for="" class="weui-label">国家</label>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/example/fragment/form_select_primary.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ <h2 class="weui-form__title">模拟选择框</h2>
<div class="weui-form__control-area">
<div class="weui-cells__group weui-cells__group_form">
<div class="weui-cells">
<div class="weui-cell weui-cell_access" id="showDatePicker">
<div class="weui-cell weui-cell_active weui-cell_access" id="showDatePicker">
<div class="weui-cell__bd">日期</div>
<div class="weui-cell__ft"></div>
</div>
<div class="weui-cell weui-cell_access weui-cell_select weui-cell_select-before">
<div class="weui-cell weui-cell_active weui-cell_access weui-cell_select weui-cell_select-before">
<div class="weui-cell__hd" id="showPhone"><label class="weui-label">+86</label></div>
<div class="weui-cell__bd">
<input class="weui-input" type="number" pattern="[0-9]*" placeholder="请输入号码" value="12345678907"/>
</div>
</div>
<div class="weui-cell weui-cell_access weui-cell_select weui-cell_select-after">
<div class="weui-cell weui-cell_active weui-cell_access weui-cell_select weui-cell_select-after">
<div class="weui-cell__hd"><label class="weui-label">票种</label></div>
<div class="weui-cell__bd" id="showPicker">的士票</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/example/fragment/form_switch.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ <h2 class="weui-form__title">开关样式展示</h2>
<div class="weui-form__control-area">
<div class="weui-cells__group weui-cells__group_form">
<div class="weui-cells weui-cells_form">
<div class="weui-cell weui-cell_switch">
<div class="weui-cell weui-cell_active weui-cell_switch">
<div class="weui-cell__bd">标题文字</div>
<div class="weui-cell__ft">
<input class="weui-switch" type="checkbox"/>
</div>
</div>
<div class="weui-cell weui-cell_switch">
<div class="weui-cell weui-cell_active weui-cell_switch">
<div class="weui-cell__bd">兼容IE Edge的版本</div>
<div class="weui-cell__ft">
<label for="switchCP" class="weui-switch-cp">
Expand Down
2 changes: 1 addition & 1 deletion src/example/fragment/form_textarea.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h2 class="weui-form__title">文本域</h2>
<div class="weui-cells__group weui-cells__group_form">
<div class="weui-cells__title">问题描述</div>
<div class="weui-cells weui-cells_form">
<div class="weui-cell">
<div class="weui-cell ">
<div class="weui-cell__bd">
<textarea class="weui-textarea" placeholder="请描述你所发生的问题" rows="3"></textarea>
<div class="weui-textarea-counter"><span>0</span>/200</div>
Expand Down
8 changes: 4 additions & 4 deletions src/example/fragment/form_vcode.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ <h2 class="weui-form__title">验证码</h2>
<div class="weui-form__control-area">
<div class="weui-cells__group weui-cells__group_form">
<div class="weui-cells weui-cells_form">
<div class="weui-cell">
<div class="weui-cell weui-cell_active">
<div class="weui-cell__hd"><label class="weui-label">手机号</label></div>
<div class="weui-cell__bd">
<input class="weui-input" type="number" pattern="[0-9]*" placeholder="请输入手机号" value="12345678907"/>
Expand All @@ -18,7 +18,7 @@ <h2 class="weui-form__title">验证码</h2>
</button>
</div>
</div>
<div class="weui-cell weui-cell_vcode">
<div class="weui-cell weui-cell_active weui-cell_vcode">
<div class="weui-cell__hd"><label class="weui-label">验证码</label></div>
<div class="weui-cell__bd">
<input autofocus class="weui-input" type="text" pattern="[0-9]*" id="js_input" placeholder="输入验证码" maxlength="6"/>
Expand All @@ -28,7 +28,7 @@ <h2 class="weui-form__title">验证码</h2>
</div>
</div>
</div>
<div class="weui-cells__tips"><a href="javascript:;">收不到验证码</a></div>
<div class="weui-cells__tips"><a class="weui-link" href="javascript:;">收不到验证码</a></div>
</div>
</div>
<div class="weui-form__tips-area">
Expand All @@ -55,7 +55,7 @@ <h2 class="weui-form__title">验证码</h2>
<div id="js_half_screen_dialog" class="weui-half-screen-dialog">
<div class="weui-half-screen-dialog__hd">
<div class="weui-half-screen-dialog__hd__side">
<button id="dialogClose" class="weui-icon-btn weui-icon-btn_close">关闭</button>
<button id="dialogClose" class="weui-icon-btn">关闭<i class="weui-icon-close-thin"></i></button>
</div>
<div class="weui-half-screen-dialog__hd__main">
<strong class="weui-half-screen-dialog__title">标题</strong>
Expand Down
8 changes: 4 additions & 4 deletions src/example/fragment/half-screen-dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h1 class="page__title">Half-screen Dialog</h1>
<div id="js_dialog_1" class="weui-half-screen-dialog">
<div class="weui-half-screen-dialog__hd">
<div class="weui-half-screen-dialog__hd__side">
<button class="weui-icon-btn weui-icon-btn_close">关闭</button>
<button class="weui-icon-btn">关闭<i class="weui-icon-close-thin"></i></button>
</div>
<div class="weui-half-screen-dialog__hd__main">
<strong class="weui-half-screen-dialog__title">标题</strong>
Expand All @@ -42,15 +42,15 @@ <h1 class="page__title">Half-screen Dialog</h1>
<div id="js_dialog_2" class="weui-half-screen-dialog">
<div class="weui-half-screen-dialog__hd">
<div class="weui-half-screen-dialog__hd__side">
<button style="display:none;" class="weui-icon-btn weui-icon-btn_goback">返回</button>
<button class="weui-icon-btn weui-icon-btn_close">关闭</button>
<button style="display:none;" class="weui-icon-btn">返回<i class="weui-icon-back-arrow-thin"></i></button>
<button class="weui-icon-btn">关闭<i class="weui-icon-close-thin"></i></button>
</div>
<div class="weui-half-screen-dialog__hd__main">
<strong class="weui-half-screen-dialog__title">标题</strong>
<span class="weui-half-screen-dialog__subtitle">标题</span>
</div>
<div class="weui-half-screen-dialog__hd__side">
<button class="weui-icon-btn weui-icon-btn_more">更多</button>
<button class="weui-icon-btn">更多<i class="weui-icon-more"></i></button>
</div>
</div>
<div class="weui-half-screen-dialog__bd">
Expand Down
Loading

0 comments on commit 3e2a142

Please sign in to comment.