Skip to content

Commit

Permalink
add weui_textarea_counter
Browse files Browse the repository at this point in the history
  • Loading branch information
BearJ committed Dec 15, 2015
1 parent a0ae884 commit 306e35f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 4 deletions.
3 changes: 2 additions & 1 deletion dist/example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ <h1 class="page_title">Cell</h1>
<div class="weui_cells weui_cells_form">
<div class="weui_cell">
<div class="weui_cell_bd weui_cell_primary">
<textarea class="weui_textarea" placeholder="请输入评论"></textarea>
<textarea class="weui_textarea" placeholder="请输入评论" rows="3"></textarea>
<div class="weui_textarea_counter"><span>0</span>/200</div>
</div>
</div>
</div>
Expand Down
9 changes: 8 additions & 1 deletion dist/style/weui.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/style/weui.min.css

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ <h1 class="page_title">Cell</h1>
<div class="weui_cells weui_cells_form">
<div class="weui_cell">
<div class="weui_cell_bd weui_cell_primary">
<textarea class="weui_textarea" placeholder="请输入评论"></textarea>
<textarea class="weui_textarea" placeholder="请输入评论" rows="3"></textarea>
<div class="weui_textarea_counter"><span>0</span>/200</div>
</div>
</div>
</div>
Expand Down
8 changes: 8 additions & 0 deletions src/style/widget/weui_cell/weui_form/weui_form_common.less
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@
outline: 0;
}

.weui_textarea_counter{
color: @globalDescColor;
text-align: right;
.weui_cell_warn &{
color: @globalWarnColor;
}
}

.weui_toptips {
display:none;
position: fixed;
Expand Down

0 comments on commit 306e35f

Please sign in to comment.