fix: tabs renderer remove switchTab handler

This commit is contained in:
NGPixel 2020-04-26 21:18:51 -04:00
parent 5d43f6ada1
commit 954262f517

View File

@ -8,7 +8,7 @@ module.exports = {
let tabs = [] let tabs = []
let tabContents = [] let tabContents = []
$(elm).nextUntil(_.times(i, t => `h${t + 1}`).join(', '), `h${i + 1}`).each((hidx, hd) => { $(elm).nextUntil(_.times(i, t => `h${t + 1}`).join(', '), `h${i + 1}`).each((hidx, hd) => {
tabs.push(`<li @click="switchTab(${hidx})">${$(hd).html()}</li>`) tabs.push(`<li>${$(hd).html()}</li>`)
let tabContent = '' let tabContent = ''
$(hd).nextUntil(_.times(i + 1, t => `h${t + 1}`).join(', ')).each((cidx, celm) => { $(hd).nextUntil(_.times(i + 1, t => `h${t + 1}`).join(', ')).each((cidx, celm) => {
tabContent += $.html(celm) tabContent += $.html(celm)