Old
<div class="weui-cells__title">带说明的列表项</div>
<div class="weui-cells"></div>
New
<view class="weui-cells__title">带说明的列表项</view>
<view class="weui-cells weui-cells_after-title"></view>
Old
<div class="weui-cell weui-cell_access">
<div class="weui-cell__ft"></div>
</div>
New
<view class="weui-cell weui-cell_access">
<view class="weui-cell__ft weui-cell__ft_in-access"></view>
</view>
Old
<div class="weui-cells weui-cells_radio">
<label class="weui-cell weui-check__label">
<div class="weui-cell__ft">
<span class="weui-icon-checked"></span>
</div>
</label>
</div>
New
<view class="weui-cells weui-cells_with-title">
<label class="weui-cell weui-check__label">
<view class="weui-cell__ft weui-cell__ft_in-radio">
<icon class="weui-icon-radio" type="success_no_circle" size="16"></icon>
</view>
</label>
</view>
采用小程序的icon。因为原生的icon
的font-size:0
,所以需要新增一些类来控制icon的边距,如.weui-icon-radio
、.weui-icon-checkbox_circle
等,具体看代码。(当然,你也可以不加。)
采用小程序的button,.weui-btn
则用于控制间距
Old
<a href="javascript:;" class="weui-btn weui-btn_primary">页面主操作 Normal</a>
New
<button class="weui-btn" type="primary">页面主操作 Normal</button>
由navigator
的hover-class
来指定类weui-cell_active
来控制
New
<navigator url="" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
<view class="weui-cell__bd">cell standard</view>
<view class="weui-cell__ft weui-cell__ft_with-access">说明文字</view>
</navigator>
因为采用小程序的input,键盘弹起高度有所区别,所以实现上也有所改变,需要增加.weui-cell_input
的扩展类
Old
<div class="weui-cell">
<div class="weui-cell__bd">
<input class="weui-input" />
</div>
</div>
New
<view class="weui-cell weui-cell_input">
<view class="weui-cell__bd">
<input class="weui-input" />
</view>
</view>