projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix. TODO: Vue reactivity on game.score and game. ...
[vchess.git]
/
client
/
src
/
components
/
MoveList.vue
diff --git
a/client/src/components/MoveList.vue
b/client/src/components/MoveList.vue
index
0d9e8d3
..
6e2ef66
100644
(file)
--- a/
client/src/components/MoveList.vue
+++ b/
client/src/components/MoveList.vue
@@
-3,16
+3,9
@@
export default {
name: 'my-move-list',
props: ["moves","cursor"],
export default {
name: 'my-move-list',
props: ["moves","cursor"],
- data: function() {
- return {
- something: "", //TODO?
- };
- },
render(h) {
if (this.moves.length == 0)
return;
render(h) {
if (this.moves.length == 0)
return;
- if (this.moves[0].color == "b")
- this.moves.unshift({color: "w", notation: "..."});
let tableContent = [];
let moveCounter = 0;
let tableRow = undefined;
let tableContent = [];
let moveCounter = 0;
let tableRow = undefined;
@@
-73,10
+66,14
@@
export default {
tableRow.children = moveCells;
tableContent.push(tableRow);
const movesTable = h(
tableRow.children = moveCells;
tableContent.push(tableRow);
const movesTable = h(
- "table",
- { },
- tableContent
- );
+ "div",
+ { },
+ [h(
+ "table",
+ { },
+ tableContent
+ )]
+ );
return movesTable;
},
methods: {
return movesTable;
},
methods: {