1.选项卡优化
parent
49799714fe
commit
5f08c2b839
|
|
@ -79,7 +79,8 @@ const tabs_theme_style = computed(() => {
|
||||||
const title_style = (index: number) => {
|
const title_style = (index: number) => {
|
||||||
// 默认是未选中的状态
|
// 默认是未选中的状态
|
||||||
let style = `${tabs_theme_style.value.tabs_title}`;
|
let style = `${tabs_theme_style.value.tabs_title}`;
|
||||||
if (index == 0) {
|
console.log(index);
|
||||||
|
if (index == props.activeIndex) {
|
||||||
let checked_style = tabs_theme_style.value.tabs_title_checked;
|
let checked_style = tabs_theme_style.value.tabs_title_checked;
|
||||||
if (['2', '4'].includes(tabs_theme_index.value)) {
|
if (['2', '4'].includes(tabs_theme_index.value)) {
|
||||||
checked_style += tabs_check.value;
|
checked_style += tabs_check.value;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue