在Bootstrap 4 Beta中切换嵌套标签

时间:2017-09-15 13:29:00

标签: twitter-bootstrap bootstrap-4 bootstrap-tabs

我目前正在使用Bootstrap 4 beta,我有嵌套标签。当试图在它们之间切换时,它会产生混淆。

我不确定它在Bootstrap 4 alphas中是否有相同的行为,但我认为这是测试版中的新行为。

HTML(JSFiddle):

SELECT IF(rank=0, invoice_id, '-') AS invoice_id,
       invoice_item_id
FROM
    (SELECT inv.id AS invoice_id,
            invHas.id AS invoice_item_id,
            @rank:=CASE WHEN @invoice <> inv.id THEN 0 ELSE @rank+1 END AS rank,
            @invoice:=inv.id AS clset
     FROM invoice inv,
          invoice_has_item invHas,

         (SELECT @rank:= -1) r,

         (SELECT @invoice:= -1) i
     WHERE invHas.invoiceID=inv.id
     order by inv.id, invoice_has_item.id
     ) AS ranked; 

1 个答案:

答案 0 :(得分:2)

Johann-S回复了the issue on Github,因为它将在v4 Beta 2中fixed