mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[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:
parent
c90f2663ee
commit
7325334734
@ -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');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -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');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -1,4 +1,6 @@
|
||||
<script>
|
||||
import { Toast } from 'packages/index';
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
@ -59,5 +59,9 @@
|
||||
color: $blue;
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: $active-color;
|
||||
}
|
||||
}
|
||||
}
|
@ -8,7 +8,15 @@
|
||||
height: 40px;
|
||||
line-height: 40px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
&__cancel,
|
||||
&__confirm {
|
||||
padding: 0 15px;
|
||||
|
||||
&:active {
|
||||
background-color: $active-color;
|
||||
}
|
||||
}
|
||||
|
||||
&__cancel {
|
||||
|
@ -51,6 +51,10 @@
|
||||
&__action-text {
|
||||
padding: 0 10px;
|
||||
color: $green;
|
||||
|
||||
&:active {
|
||||
background-color: $active-color;
|
||||
}
|
||||
}
|
||||
|
||||
.van-icon-search {
|
||||
|
@ -183,7 +183,7 @@
|
||||
height: 50px;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: $orange;
|
||||
background: #f85;
|
||||
color: $white;
|
||||
font-size: 16px;
|
||||
line-height: 50px;
|
||||
|
@ -44,6 +44,17 @@
|
||||
}
|
||||
}
|
||||
|
||||
&__minus,
|
||||
&__plus {
|
||||
&:active {
|
||||
background-color: $active-color;
|
||||
}
|
||||
|
||||
&--disabled:active {
|
||||
background-color: $background-color;
|
||||
}
|
||||
}
|
||||
|
||||
&__minus {
|
||||
border-radius: 2px 0 0 2px;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user