📅  最后修改于: 2022-03-11 15:03:48.748000             🧑  作者: Mango
vue class binding if else
:class="darkMode ? 'dark-theme' : 'light-theme'"
If darkMode is true, we apply dark-theme as our class name.
Otherwise we choose light-theme.