[bugfix] add click feedback of buttons in components (#248)

* [bugfix] CouponList always show empty info

* [bugfix] add click feedback of buttons in components
This commit is contained in:
neverland 2017-10-25 03:03:44 -05:00 committed by GitHub
parent c90f2663ee
commit 7325334734
8 changed files with 38 additions and 5 deletions

View File

@ -1,4 +1,6 @@
<script>
import { Toast } from 'packages/index';
const citys = {
'浙江': ['杭州', '宁波', '温州', '嘉兴', '湖州', '绍兴', '金华', '衢州', '舟山', '台州', '丽水'],
'福建': ['福州', '厦门', '莆田', '三明', '泉州', '漳州', '南平', '龙岩', '宁德'],
@ -27,10 +29,10 @@ export default {
picker.setColumnValues(1, citys[values[0]]);
},
handlePickerCancel() {
alert('picker cancel');
Toast('picker cancel');
},
handlePickerConfirm() {
alert('picker confirm');
Toast('picker confirm');
}
}
};

View File

@ -1,4 +1,6 @@
<script>
import { Toast } from 'packages/index';
const citys = {
'浙江': ['杭州', '宁波', '温州', '嘉兴', '湖州', '绍兴', '金华', '衢州', '舟山', '台州', '丽水'],
'福建': ['福州', '厦门', '莆田', '三明', '泉州', '漳州', '南平', '龙岩', '宁德'],
@ -27,10 +29,10 @@ export default {
picker.setColumnValues(1, citys[values[0]]);
},
handlePickerCancel() {
alert('picker cancel');
Toast('picker cancel');
},
handlePickerConfirm() {
alert('picker confirm');
Toast('picker confirm');
}
}
};

View File

@ -1,4 +1,6 @@
<script>
import { Toast } from 'packages/index';
export default {
data() {
return {

View File

@ -59,5 +59,9 @@
color: $blue;
font-size: 20px;
}
&:active {
background-color: $active-color;
}
}
}

View File

@ -8,7 +8,15 @@
height: 40px;
line-height: 40px;
overflow: hidden;
}
&__cancel,
&__confirm {
padding: 0 15px;
&:active {
background-color: $active-color;
}
}
&__cancel {

View File

@ -51,6 +51,10 @@
&__action-text {
padding: 0 10px;
color: $green;
&:active {
background-color: $active-color;
}
}
.van-icon-search {

View File

@ -183,7 +183,7 @@
height: 50px;
padding: 0;
border: 0;
background: $orange;
background: #f85;
color: $white;
font-size: 16px;
line-height: 50px;

View File

@ -44,6 +44,17 @@
}
}
&__minus,
&__plus {
&:active {
background-color: $active-color;
}
&--disabled:active {
background-color: $background-color;
}
}
&__minus {
border-radius: 2px 0 0 2px;