Skip to content

Commit ee52529

Browse files
Fix examples in HTML mode (#1636)
1 parent 0f893e7 commit ee52529

File tree

7 files changed

+22
-20
lines changed

7 files changed

+22
-20
lines changed

src/examples/src/cells/Cell/template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
@change="update"
66
@blur="update"
77
@vnode-mounted="({ el }) => el.focus()"
8-
/>
8+
>
99
<span v-else>{{ evalCell(cells[c][r]) }}</span>
1010
</div>

src/examples/src/circle-drawer/App/composition.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,12 @@ export default {
5757

5858
return {
5959
history,
60+
index,
6061
circles,
6162
selected,
6263
adjusting,
6364
onClick,
65+
adjust,
6466
undo,
6567
redo
6668
}

src/examples/src/circle-drawer/App/template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@
2323

2424
<div class="dialog" v-if="adjusting" @click.stop>
2525
<p>Adjust radius of circle at ({{ selected.cx }}, {{ selected.cy }})</p>
26-
<input type="range" v-model="selected.r" min="1" max="300" />
26+
<input type="range" v-model="selected.r" min="1" max="300">
2727
</div>

src/examples/src/flight-booker/App/template.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
<option value="return flight">Return Flight</option>
44
</select>
55

6-
<input type="date" v-model="departureDate" />
7-
<input type="date" v-model="returnDate" :disabled="!isReturn" />
6+
<input type="date" v-model="departureDate">
7+
<input type="date" v-model="returnDate" :disabled="!isReturn">
88

99
<button :disabled="!canBook" @click="book">Book</button>
1010

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
<h2>Text Input</h2>
2-
<input v-model="text" /> {{ text }}
2+
<input v-model="text"> {{ text }}
33

44
<h2>Checkbox</h2>
5-
<input type="checkbox" id="checkbox" v-model="checked" />
5+
<input type="checkbox" id="checkbox" v-model="checked">
66
<label for="checkbox">Checked: {{ checked }}</label>
77

88
<!--
99
multiple checkboxes can bind to the same
1010
array v-model value
1111
-->
1212
<h2>Multi Checkbox</h2>
13-
<input type="checkbox" id="jack" value="Jack" v-model="checkedNames" />
13+
<input type="checkbox" id="jack" value="Jack" v-model="checkedNames">
1414
<label for="jack">Jack</label>
15-
<input type="checkbox" id="john" value="John" v-model="checkedNames" />
15+
<input type="checkbox" id="john" value="John" v-model="checkedNames">
1616
<label for="john">John</label>
17-
<input type="checkbox" id="mike" value="Mike" v-model="checkedNames" />
17+
<input type="checkbox" id="mike" value="Mike" v-model="checkedNames">
1818
<label for="mike">Mike</label>
1919
<p>Checked names: <pre>{{ checkedNames }}</pre></p>
2020

2121
<h2>Radio</h2>
22-
<input type="radio" id="one" value="One" v-model="picked" />
22+
<input type="radio" id="one" value="One" v-model="picked">
2323
<label for="one">One</label>
24-
<br />
25-
<input type="radio" id="two" value="Two" v-model="picked" />
24+
<br>
25+
<input type="radio" id="two" value="Two" v-model="picked">
2626
<label for="two">Two</label>
27-
<br />
27+
<br>
2828
<span>Picked: {{ picked }}</span>
2929

3030
<h2>Select</h2>
@@ -42,4 +42,4 @@ <h2>Multi Select</h2>
4242
<option>B</option>
4343
<option>C</option>
4444
</select>
45-
<span>Selected: {{ multiSelected }}</span>
45+
<span>Selected: {{ multiSelected }}</span>

src/examples/src/timer/App/template.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div>{{ (elapsed / 1000).toFixed(1) }}s</div>
66

77
<div>
8-
Duration: <input type="range" v-model="duration" min="1" max="30000" />
8+
Duration: <input type="range" v-model="duration" min="1" max="30000">
99
{{ (duration / 1000).toFixed(1) }}s
1010
</div>
1111

src/examples/src/todomvc/App/template.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ <h1>todos</h1>
66
autofocus
77
placeholder="What needs to be done?"
88
@keyup.enter="addTodo"
9-
/>
9+
>
1010
</header>
1111
<section class="main" v-show="todos.length">
1212
<input
@@ -15,7 +15,7 @@ <h1>todos</h1>
1515
type="checkbox"
1616
:checked="remaining === 0"
1717
@change="toggleAll"
18-
/>
18+
>
1919
<label for="toggle-all">Mark all as complete</label>
2020
<ul class="todo-list">
2121
<li
@@ -25,7 +25,7 @@ <h1>todos</h1>
2525
:class="{ completed: todo.completed, editing: todo === editedTodo }"
2626
>
2727
<div class="view">
28-
<input class="toggle" type="checkbox" v-model="todo.completed" />
28+
<input class="toggle" type="checkbox" v-model="todo.completed">
2929
<label @dblclick="editTodo(todo)">{{ todo.title }}</label>
3030
<button class="destroy" @click="removeTodo(todo)"></button>
3131
</div>
@@ -38,7 +38,7 @@ <h1>todos</h1>
3838
@blur="doneEdit(todo)"
3939
@keyup.enter="doneEdit(todo)"
4040
@keyup.escape="cancelEdit(todo)"
41-
/>
41+
>
4242
</li>
4343
</ul>
4444
</section>
@@ -62,4 +62,4 @@ <h1>todos</h1>
6262
Clear completed
6363
</button>
6464
</footer>
65-
</section>
65+
</section>

0 commit comments

Comments
 (0)