code quality

This commit is contained in:
bkfox
2023-03-13 17:47:00 +01:00
parent 934817da8a
commit 112770eddf
162 changed files with 4798 additions and 4069 deletions

View File

@ -65,7 +65,7 @@ const Component = {
for(var row in this.items)
cells.push({row})
},
rowSlots() {
return Object.keys(this.$slots).filter(x => x.startsWith('row-'))
.map(x => [x, x.slice(4)])
@ -94,7 +94,7 @@ const Component = {
* Return row component at provided index
*/
getRow(row) {
const els = this.$el.querySelectorAll('tr')
const els = this.$el.querySelectorAll('tr')
for(var el of els)
if(el.__row && row == Number(el.dataset.row))
return el.__row