From 88219658b04cd890fbae12f2b45509b4c61f02ce Mon Sep 17 00:00:00 2001 From: skirtle <65301168+skirtles-code@users.noreply.github.com> Date: Wed, 23 Mar 2022 23:59:33 +0000 Subject: [PATCH] Fix examples in HTML mode --- src/examples/src/cells/Cell/template.html | 2 +- .../src/circle-drawer/App/composition.js | 2 ++ .../src/circle-drawer/App/template.html | 2 +- .../src/flight-booker/App/template.html | 4 ++-- .../src/form-bindings/App/template.html | 20 +++++++++---------- src/examples/src/timer/App/template.html | 2 +- src/examples/src/todomvc/App/template.html | 10 +++++----- 7 files changed, 22 insertions(+), 20 deletions(-) diff --git a/src/examples/src/cells/Cell/template.html b/src/examples/src/cells/Cell/template.html index 5efe0477c7..257fae87a2 100644 --- a/src/examples/src/cells/Cell/template.html +++ b/src/examples/src/cells/Cell/template.html @@ -5,6 +5,6 @@ @change="update" @blur="update" @vnode-mounted="({ el }) => el.focus()" - /> + > {{ evalCell(cells[c][r]) }} diff --git a/src/examples/src/circle-drawer/App/composition.js b/src/examples/src/circle-drawer/App/composition.js index 07ac8704c9..655611af2f 100644 --- a/src/examples/src/circle-drawer/App/composition.js +++ b/src/examples/src/circle-drawer/App/composition.js @@ -57,10 +57,12 @@ export default { return { history, + index, circles, selected, adjusting, onClick, + adjust, undo, redo } diff --git a/src/examples/src/circle-drawer/App/template.html b/src/examples/src/circle-drawer/App/template.html index 7019b65d4b..98978d66b8 100644 --- a/src/examples/src/circle-drawer/App/template.html +++ b/src/examples/src/circle-drawer/App/template.html @@ -23,5 +23,5 @@

Adjust radius of circle at ({{ selected.cx }}, {{ selected.cy }})

- +
diff --git a/src/examples/src/flight-booker/App/template.html b/src/examples/src/flight-booker/App/template.html index ddb27342b3..efedf5ef89 100644 --- a/src/examples/src/flight-booker/App/template.html +++ b/src/examples/src/flight-booker/App/template.html @@ -3,8 +3,8 @@ - - + + diff --git a/src/examples/src/form-bindings/App/template.html b/src/examples/src/form-bindings/App/template.html index 065cf3a86b..fabedc6631 100644 --- a/src/examples/src/form-bindings/App/template.html +++ b/src/examples/src/form-bindings/App/template.html @@ -1,8 +1,8 @@

Text Input

- {{ text }} + {{ text }}

Checkbox

- +

Multi Checkbox

- + - + - +

Checked names:

{{ checkedNames }}

Radio

- + -
- +
+ -
+
Picked: {{ picked }}

Select

@@ -42,4 +42,4 @@

Multi Select

-Selected: {{ multiSelected }} \ No newline at end of file +Selected: {{ multiSelected }} diff --git a/src/examples/src/timer/App/template.html b/src/examples/src/timer/App/template.html index 84e80fe266..a2151dff3b 100644 --- a/src/examples/src/timer/App/template.html +++ b/src/examples/src/timer/App/template.html @@ -5,7 +5,7 @@
{{ (elapsed / 1000).toFixed(1) }}s
- Duration: + Duration: {{ (duration / 1000).toFixed(1) }}s
diff --git a/src/examples/src/todomvc/App/template.html b/src/examples/src/todomvc/App/template.html index ac927cf25c..9de05cefdc 100644 --- a/src/examples/src/todomvc/App/template.html +++ b/src/examples/src/todomvc/App/template.html @@ -6,7 +6,7 @@

todos

autofocus placeholder="What needs to be done?" @keyup.enter="addTodo" - /> + >
todos type="checkbox" :checked="remaining === 0" @change="toggleAll" - /> + >
@@ -62,4 +62,4 @@

todos

Clear completed - \ No newline at end of file +