Switch prevent space to scroll

This commit is contained in:
梁灏 2018-03-05 09:18:23 +08:00
parent e7fa279934
commit 5bb01822df
2 changed files with 3 additions and 1 deletions

View file

@ -479,6 +479,7 @@
<Button type="primary">Submit</Button>
<Button type="ghost" style="margin-left: 8px">Cancel</Button>
</FormItem>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</Form>
</template>
<script>

View file

@ -68,7 +68,8 @@
}
},
methods: {
toggle () {
toggle (event) {
event.preventDefault();
if (this.disabled) {
return false;
}