mirror of
https://github.com/weilanwl/coloruicss.git
synced 2026-03-12 10:34:02 +08:00
v2.0.2 (单位全局使用rpx)
v2.0.2 (单位全局使用rpx)
This commit is contained in:
@@ -97,8 +97,8 @@
|
||||
<switch class='red sm' checked/>
|
||||
</form-group>
|
||||
<form-group>
|
||||
<switch class='switch-sex' checked/>
|
||||
<view class='title'>定义图标</view>
|
||||
<switch class='switch-sex sm' checked/>
|
||||
</form-group>
|
||||
<form-group>
|
||||
<view class='title'>方形开关</view>
|
||||
|
||||
@@ -46,7 +46,6 @@ Page({
|
||||
// 初始化towerSwiper
|
||||
towerSwiper(name) {
|
||||
let list = this.data[name];
|
||||
|
||||
for (let i = 0; i < list.length; i++) {
|
||||
list[i].zIndex = parseInt(list.length / 2) + 1 - Math.abs(i - parseInt(list.length / 2))
|
||||
list[i].mLeft = i - parseInt(list.length / 2)
|
||||
@@ -99,6 +98,5 @@ Page({
|
||||
towerList: list
|
||||
})
|
||||
}
|
||||
console.log(list);
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user