petite-vue example

This commit is contained in:
2024-05-28 13:19:27 +02:00
parent 7d55082f4d
commit 4a3aee2d41
2 changed files with 22 additions and 30 deletions

View File

@@ -77,29 +77,3 @@ const data = [
},
],
];
const root = document.getElementById('root');
const html = `<div>${data
.map((group) => {
return `<table><thead>
<tr>
<th>Имя</th>
<th>Время</th>
<th>Telegram</th>
</tr>
</thead>
<tbody>${group
.map((el) => {
return `<tr>
<td >${el.name}</td>
<td style='width: 200px'">${el.availableTime.from} - ${el.availableTime.to}</td>
<td style='width: 200px'>${el.tgUsername}</td>
</tr>`;
})
.join('')}</tbody>
</table>`;
})
.join('')}</div>`;
root.innerHTML = html;