Browse Source

fix: tabs renderer remove switchTab handler

pull/1802/head
NGPixel 4 years ago
parent
commit
954262f517
1 changed files with 1 additions and 1 deletions
  1. 2
      server/modules/rendering/html-tabset/renderer.js

2
server/modules/rendering/html-tabset/renderer.js

@ -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)

Loading…
Cancel
Save