Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 292530b

Browse files
committed
Run lint fix
1 parent 7d7e226 commit 292530b

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

‎components/Example1.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default {
2525
<template>
2626
<div>
2727
<h2>1. Hello, World!</h2>
28-
<ElButton type="primary" data-cy="btn-hello-world"@click="helloWorld()"
28+
<ElButton @click="helloWorld()"type="primary" data-cy="btn-hello-world"
2929
>Hello</ElButton
3030
>
3131
<p>Response: {{ response }}</p>

‎components/Example2.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ export default {
3131
<ElForm
3232
ref="form"
3333
:model="form"
34+
@submit.native.prevent="helloName(form.name)"
3435
inline
3536
label-width="auto"
3637
label-position="left"
37-
@submit.native.prevent="helloName(form.name)"
3838
>
3939
<h2>2. Hello, {name}</h2>
4040
<ElFormItem label="Name">
@@ -46,9 +46,9 @@ export default {
4646
/>
4747
</ElFormItem>
4848
<ElButton
49+
@click="helloName(form.name)"
4950
type="primary"
5051
data-cy="btn-hello-name"
51-
@click="helloName(form.name)"
5252
>
5353
👋 Say hello
5454
</ElButton>

‎components/Example3.vue‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ export default {
4444
<ElForm
4545
ref="form"
4646
:model="form"
47+
@submit.native.prevent="helloNamePost(form.name)"
4748
inline
4849
label-width="auto"
4950
label-position="left"
50-
@submit.native.prevent="helloNamePost(form.name)"
5151
>
5252
<h2>3. Hello, {name} (POST version)</h2>
5353
<ElFormItem label="Name">
@@ -58,16 +58,16 @@ export default {
5858
/>
5959
</ElFormItem>
6060
<ElButton
61+
@click="helloNamePost(form.name)"
6162
type="primary"
6263
data-cy="btn-hello-name-post"
63-
@click="helloNamePost(form.name)"
6464
>
6565
👋 Say hello
6666
</ElButton>
6767
<ElButton
68+
@click="helloNamePostError(form.name)"
6869
type="danger"
6970
data-cy="btn-hello-name-post-error"
70-
@click="helloNamePostError(form.name)"
7171
>
7272
.$get() Error
7373
</ElButton>

‎components/Example4.vue‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ export default {
3131
<ElForm
3232
ref="form"
3333
:model="form"
34+
@submit.native.prevent="randomCat(form.name)"
3435
inline
3536
label-width="auto"
3637
label-position="left"
37-
@submit.native.prevent="randomCat(form.name)"
3838
>
3939
<h2>4. Get a random cat with your name</h2>
4040
<p><em>API call done by your browser</em></p>
@@ -47,9 +47,9 @@ export default {
4747
/>
4848
</ElFormItem>
4949
<ElButton
50+
@click="randomCat(form.name)"
5051
type="primary"
5152
data-cy="btn-random-cat"
52-
@click="randomCat(form.name)"
5353
>
5454
🐈 Meow
5555
</ElButton>
@@ -59,8 +59,8 @@ export default {
5959
<br />
6060
<img
6161
v-show="response"
62-
data-cy="img-random-cat"
6362
:src="response"
63+
data-cy="img-random-cat"
6464
style="width:100%;height:auto;"
6565
/>
6666
</p>

‎components/Example5.vue‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@ export default {
4141
<ElForm
4242
ref="form"
4343
:model="form"
44+
@submit.native.prevent="icanhazip()"
4445
inline
4546
label-width="auto"
4647
label-position="left"
47-
@submit.native.prevent="icanhazip()"
4848
>
4949
<h2>5. icanhazip.com</h2>
5050
<p><em>API call done by lambda function</em></p>
5151
<p>Your IP: {{ ip }}</p>
52-
<ElButton type="primary"@click="icanhazip()">
52+
<ElButton @click="icanhazip()"type="primary">
5353
🤖 Haz AWS IP please
5454
</ElButton>
55-
<ElButton type="info"@click="response = '—'">Clear</ElButton>
55+
<ElButton @click="response = '—'"type="info">Clear</ElButton>
5656
<p>Response: {{ response }}</p>
5757
<p v-if="error" style="color:red;">
5858
<strong>Error {{ error.status }}</strong>

‎components/Example6.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ export default {
8282
<ElFormItem label="Email" prop="email">
8383
<ElInput v-model="form.email" placeholder="Your email" required />
8484
</ElFormItem>
85-
<ElButton type="primary"@click="submitForm('mailgunForm')">
85+
<ElButton @click="submitForm('mailgunForm')"type="primary">
8686
💌 Send form
8787
</ElButton>
88-
<ElButton type="info"@click="resetForm('mailgunForm')">Reset</ElButton>
88+
<ElButton @click="resetForm('mailgunForm')"type="info">Reset</ElButton>
8989
<p>Response: {{ response }}</p>
9090
<p v-if="error" style="color:red;">
9191
<strong>Error {{ error.status }}</strong>

‎components/Example7.vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,16 @@ export default {
3232
<ElForm
3333
ref="form"
3434
:model="form"
35+
@submit.native.prevent="sendSlackMessage(form.name)"
3536
inline
3637
label-width="auto"
3738
label-position="left"
38-
@submit.native.prevent="sendSlackMessage(form.name)"
3939
>
4040
<h2>7. Send a Slack message</h2>
4141
<ElFormItem label="Name">
4242
<ElInput v-model="form.name" placeholder="Your name" />
4343
</ElFormItem>
44-
<ElButton type="primary"@click="sendSlackMessage(form.name)">
44+
<ElButton @click="sendSlackMessage(form.name)"type="primary">
4545
👋 Say hello
4646
</ElButton>
4747
<p>Response: {{ response }}</p>

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /