弹出带标题的actionsheet
@@ -53,7 +57,8 @@ export default {
actions1: [
{
name: '微信安全支付',
- className: 'actionsheet-wx'
+ className: 'actionsheet-wx',
+ callback: this.handleActionClick
},
{
name: '支付宝支付',
@@ -71,6 +76,12 @@ export default {
}
]
};
+ },
+
+ methods: {
+ handleActionClick(item) {
+ console.log(item);
+ }
}
}
\ No newline at end of file
diff --git a/docs/examples-dist/swipe.vue b/docs/examples-dist/swipe.vue
index 4ddd3719d..1b417dab6 100644
--- a/docs/examples-dist/swipe.vue
+++ b/docs/examples-dist/swipe.vue
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/examples-dist/switch.vue b/docs/examples-dist/switch.vue
index bec31fbe1..0047ad4e9 100644
--- a/docs/examples-dist/switch.vue
+++ b/docs/examples-dist/switch.vue
@@ -1,24 +1,35 @@
switch
-
-{{ this.switchState ? ' ON' : 'OFF' }}
+
+{{ switchState1 ? ' ON' : 'OFF' }}
+
+
+
+
+
+
+{{ switchState2 ? ' ON' : 'OFF' }}
-
+
ON, DISABLED
-
+
OFF, DISABLED
+
+
-
+
ON, LOADING
-
+
OFF, LOADING
+
+