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="primary">Submit</Button>
<Button type="ghost" style="margin-left: 8px">Cancel</Button> <Button type="ghost" style="margin-left: 8px">Cancel</Button>
</FormItem> </FormItem>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</Form> </Form>
</template> </template>
<script> <script>

View file

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