mirror of
https://github.com/Hopiu/vue-material.git
synced 2026-05-13 01:33:13 +00:00
updated docs
This commit is contained in:
parent
68c02ae766
commit
25d7d6aea3
1 changed files with 12 additions and 12 deletions
|
|
@ -38,12 +38,12 @@
|
|||
</demo-example>
|
||||
|
||||
<demo-example label="Typed">
|
||||
<form @click.stop.prevent="submit">
|
||||
<md-switch v-model="checked8" id="my-test8" name="my-test8">Submit (default)</md-switch>
|
||||
</form>
|
||||
<md-switch v-model="checked8" id="my-test8" name="my-test8">Button (default)</md-switch>
|
||||
|
||||
<div>
|
||||
<md-switch type="button" v-model="checked9" id="my-test9" name="my-test9" class="md-primary">Button</md-switch>
|
||||
<form @click.stop.prevent="submit">
|
||||
<md-switch type="submit" v-model="checked9" id="my-test9" name="my-test9" class="md-primary">Submit</md-switch>
|
||||
</form>
|
||||
</div>
|
||||
</demo-example>
|
||||
</div>
|
||||
|
|
@ -80,20 +80,20 @@
|
|||
|
||||
<demo-example label="Typed">
|
||||
<code-block lang="xml">
|
||||
<form @click.stop.prevent="submit">
|
||||
<md-switch v-model="checked8" id="my-test8" name="my-test8">Submit (default)</md-switch>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<md-switch type="button" v-model="checked9" id="my-test9" name="my-test9" class="md-primary">Button</md-switch>
|
||||
<md-switch v-model="checked8" id="my-test8" name="my-test8" class="md-primary">Button (default)</md-switch>
|
||||
</div>
|
||||
|
||||
<form @click.stop.prevent="submit">
|
||||
<md-switch type="submit" v-model="checked9" id="my-test9" name="my-test9">Submit</md-switch>
|
||||
</form>
|
||||
</code-block>
|
||||
|
||||
<code-block lang="javascript">
|
||||
export default {
|
||||
methods: {
|
||||
submit(e) {
|
||||
alert('Default switch submits form');
|
||||
alert('This switch submits the form');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -126,8 +126,8 @@ export default {
|
|||
},
|
||||
|
||||
methods: {
|
||||
submit(e) {
|
||||
alert('Default switch submits form');
|
||||
submit() {
|
||||
alert('This switch submits the form');
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue