Skip to content

Commit

Permalink
feat: v2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
uxsi committed Jun 21, 2023
1 parent 898d4f8 commit 6c236c6
Show file tree
Hide file tree
Showing 55 changed files with 2,675 additions and 1,321 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
### v2.6.0 (2023-06-21)

#### Features
* feat: 新增informationBar组件
* feat: cell组件支持上下结构
* feat: actionsheet菜单新增副标题
* feat: form新增weui-form__bd和weui-form__ft结构,布局向后兼容
* feat: form新增底部悬浮效果
* feat: button UI升级



### v2.5.16 (2023-01-16)

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

Large diffs are not rendered by default.

1,450 changes: 954 additions & 496 deletions dist/example/index.html

Large diffs are not rendered by default.

499 changes: 333 additions & 166 deletions dist/style/weui.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/style/weui.min.css

Large diffs are not rendered by default.

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.5.16",
"version": "2.6.0",
"description": "A UI library by WeChat official design team, includes the most useful widgets/modules in mobile web applications.",
"keywords": [
"weui",
Expand Down
5 changes: 4 additions & 1 deletion src/example/actionsheet/actionsheet.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ <h1 class="page__title">ActionSheet</h1>
</div>
<div class="weui-actionsheet__menu">
<div id="current1" tabindex="0" role="button" class="weui-actionsheet__cell">示例菜单</div>
<div role="button" tabindex="0" class="weui-actionsheet__cell">示例菜单</div>
<div role="button" tabindex="0" class="weui-actionsheet__cell weui-actionsheet__cell_tips">
示例菜单
<div class="weui-actionsheet__cell__tips">副标题</div>
</div>
<div role="button" tabindex="0" class="weui-actionsheet__cell weui-actionsheet__cell_warn">负向菜单</div>
</div>
<div class="weui-actionsheet__action">
Expand Down
14 changes: 11 additions & 3 deletions src/example/button/button_bottom_fixed.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,17 @@
<div class="weui-bottom-fixed-opr-page__content">
<div class="weui-bottom-fixed-opr-demo">Dolor tempora dolore aperiam fuga necessitatibus? Odio atque tempora deleniti voluptates voluptatem. Dolorem earum voluptas blanditiis labore quisquam? Quibusdam nesciunt consequatur aliquam ea corrupti animi, itaque consequatur neque? At porroSit nemo aliquid quas error doloremque Reiciendis ratione repellendus quae sit commodi amet architecto? Aut officiis aliquam fugit nulla at necessitatibus Optio totam quibusdam laboriosam aperiam libero! Officiis reiciendis Elit quaerat sed vero perferendis architecto consequatur. Consequuntur ad illum dolore ut accusamus. Cum possimus odit sequi quaerat beatae, eveniet. Rerum dolore ipsam quia consectetur iste Veniam mollitia dolores tempore? Dolor tempora dolore aperiam fuga necessitatibus? Odio atque tempora deleniti voluptates voluptatem. Dolorem earum voluptas blanditiis labore quisquam? Quibusdam nesciunt consequatur aliquam ea corrupti animi, itaque consequatur neque? At porroSit nemo aliquid quas error doloremque Reiciendis ratione repellendus quae sit commodi amet architecto? Aut officiis aliquam fugit nulla at necessitatibus Optio totam quibusdam laboriosam aperiam libero! Officiis reiciendis Elit quaerat sed vero perferendis architecto consequatur. Consequuntur ad illum dolore ut accusamus. Cum possimus odit sequi quaerat beatae, eveniet. Rerum dolore ipsam quia consectetur iste Veniam mollitia dolores tempore? </div>
</div>
<div class="weui-bottom-fixed-opr" id="js_opr">
<a href="javascript:;" role="button" class="weui-btn weui-btn_primary" id="js_btn">阅读并同意</a>
<a href="javascript:;" role="button" class="weui-btn weui-btn_default">取消</a>
<div class="weui-bottom-fixed-opr-page__tool">
<div class="weui-bottom-fixed-opr-page__tips">
<label id="weuiAgree" for="weuiAgreeCheckbox" class="weui-agree weui-wa-hotarea">
<input id="weuiAgreeCheckbox" type="checkbox" class="weui-agree__checkbox">
<span class="weui-agree__text">阅读并同意<a href="/example/" target="_blank">《相关条款》</a></span>
</label>
</div>
<div class="weui-bottom-fixed-opr" id="js_opr">
<a href="javascript:;" role="button" class="weui-btn weui-btn_primary" id="js_btn">阅读并同意</a>
<a href="javascript:;" role="button" class="weui-btn weui-btn_default">取消</a>
</div>
</div>
</div>
<script type="text/javascript">
Expand Down
30 changes: 20 additions & 10 deletions src/example/button/button_default.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,28 @@ <h1 class="page__title">Button</h1>
<div class="page__bd">

<div class="button-sp-area">
<a href="javascript:" role="button" class="weui-btn weui-btn_primary">主要操作</a>
<a href="javascript:" role="button" title="正在操作" class="weui-btn weui-btn_primary weui-btn_loading"><i class="weui-mask-loading"></i>主要操作</a>
<a href="javascript:" role="button" title="正在操作" class="weui-btn weui-btn_primary weui-btn_loading"><i class="weui-mask-loading"></i></span>主要操作</a>
<a href="javascript:" role="button" aria-disabled="true" disabled class="weui-btn weui-btn_disabled weui-btn_primary">主要操作</a>
<a href="javascript:" role="button" class="weui-btn weui-btn_default">次要操作</a>
<a href="javascript:" role="button" title="正在操作" class="weui-btn weui-btn_default weui-btn_loading"><i class="weui-mask-loading"></i>次要操作</a>
<a href="javascript:" role="button" aria-disabled="true" disabled class="weui-btn weui-btn_disabled weui-btn_default">次要操作</a>
<a href="javascript:" role="button" class="weui-btn weui-btn_warn">警示操作</a>
<a href="javascript:" role="button" title="正在操作" class="weui-btn weui-btn_warn weui-btn_loading"><i class="weui-mask-loading"></i>警示操作</a>
<a href="javascript:" role="button" aria-disabled="true" disabled class="weui-btn weui-btn_disabled weui-btn_warn">警示操作</a>
<a href="javascript:" role="button" class="weui-btn weui-btn_primary">主要操作</a>
<a href="javascript:" role="button" title="正在操作" class="weui-btn weui-btn_primary weui-btn_loading"><i class="weui-mask-loading"></i>主要操作</a>
<a href="javascript:" role="button" aria-disabled="true" disabled class="weui-btn weui-btn_disabled weui-btn_primary">主要操作</a>
<a href="javascript:" role="button" class="weui-btn weui-btn_default">次要操作</a>
<a href="javascript:" role="button" title="正在操作" class="weui-btn weui-btn_default weui-btn_loading"><i class="weui-mask-loading"></i>次要操作</a>
<a href="javascript:" role="button" aria-disabled="true" disabled class="weui-btn weui-btn_disabled weui-btn_default">次要操作</a>
<a href="javascript:" role="button" class="weui-btn weui-btn_warn">警示操作</a>
<a href="javascript:" role="button" title="正在操作" class="weui-btn weui-btn_warn weui-btn_loading"><i class="weui-mask-loading"></i>警示操作</a>
<a href="javascript:" role="button" aria-disabled="true" disabled class="weui-btn weui-btn_disabled weui-btn_warn">警示操作</a>
</div>

<div class="button-sp-area">
<a href="javascript:" role="button" class="weui-btn weui-btn_primary weui-btn_medium">medium 按钮</a>
<a href="javascript:" role="button" class="weui-btn weui-btn_default weui-btn_medium">medium 按钮</a>
<a href="javascript:" role="button" class="weui-btn weui-btn_warn weui-btn_medium">medium 按钮</a>
</div>

<div class="button-sp-area overlay">
<a href="javascript:" role="button" class="weui-btn weui-btn_overlay">overlay 按钮</a>
<a href="javascript:" role="button" class="weui-btn weui-btn_overlay weui-btn_medium">overlay 按钮</a>
<a href="javascript:" role="button" class="weui-btn weui-btn_overlay weui-btn_mini">overlay 按钮</a>
</div>

<div class="button-sp-area cell">
<a href="javascript:" role="button" class="weui-btn_cell weui-btn_cell-default">普通行按钮</a>
Expand Down
18 changes: 17 additions & 1 deletion src/example/example.less
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,17 @@ body,
margin: 15px auto;
padding: 15px;
text-align: center;
&.cell { padding: 15px 0; }
&.cell {
padding: 15px 0;
display:none;
}
&.overlay {
padding: 15px 0;
background:var(--weui-BRAND);
.weui-btn_mini{
margin-top:16px;
}
}
}
}
.page.button_bottom_fixed {
Expand Down Expand Up @@ -569,6 +579,12 @@ body,
}
}
}
.page.information-bar {
.weui-information-bar{
position:static;
margin-bottom:20px;
}
}

.page.gallery {
overflow: hidden;
Expand Down
2 changes: 2 additions & 0 deletions src/example/form/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ <h1 class="page__title">Form</h1>
<a style="display:none;" href="#form_primary" role="button" class="weui-btn weui-btn_default">反色表单</a>
<a href="#form_input_status" role="button" class="weui-btn weui-btn_default">输入框状态</a>
<a href="#form_vcode" role="button" class="weui-btn weui-btn_default">验证码</a>
<a href="#form_bottom_fixed" role="button" class="weui-btn weui-btn_default">底部悬浮</a>
<a href="#form_checkbox" role="button" class="weui-btn weui-btn_default">复选框</a>
<a href="#form_access" role="button" class="weui-btn weui-btn_default">跳转列表项</a>
<a href="#form_radio" role="button" class="weui-btn weui-btn_default">单选框</a>
<a href="#form_switch" role="button" class="weui-btn weui-btn_default">开关</a>
<a href="#form_select" role="button" class="weui-btn weui-btn_default">原生选择框</a>
<a href="#form_select_primary" role="button" class="weui-btn weui-btn_default">模拟选择框</a>
<a href="#form_textarea" role="button" class="weui-btn weui-btn_default">文本域</a>
<a href="#form_vertical" role="button" class="weui-btn weui-btn_default">上下结构</a>
</div>
</div>
30 changes: 16 additions & 14 deletions src/example/form/form_access.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
<div class="page">
<div class="weui-form">
<div class="weui-form__text-area">
<h2 class="weui-form__title">跳转列表项</h2>
</div>
<div class="weui-form__control-area">
<div class="weui-cells__group weui-cells__group_form">
<div class="weui-cells">
<a class="weui-cell weui-cell_access" href="javascript:">
<div class="weui-cell__bd"><p>cell standard</p></div>
<div class="weui-cell__ft"></div>
</a>
<a class="weui-cell weui-cell_access" href="javascript:">
<div class="weui-cell__bd"><p>cell standard</p></div>
<div class="weui-cell__ft"></div>
</a>
<div class="weui-form__bd">
<div class="weui-form__text-area">
<h2 class="weui-form__title">跳转列表项</h2>
</div>
<div class="weui-form__control-area">
<div class="weui-cells__group weui-cells__group_form">
<div class="weui-cells">
<a class="weui-cell weui-cell_access" href="javascript:">
<div class="weui-cell__bd"><p>cell standard</p></div>
<div class="weui-cell__ft"></div>
</a>
<a class="weui-cell weui-cell_access" href="javascript:">
<div class="weui-cell__bd"><p>cell standard</p></div>
<div class="weui-cell__ft"></div>
</a>
</div>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit 6c236c6

Please sign in to comment.