ElemeFE / ElemeFE/mint-ui

mt-navbar 不支持 动态 mt-tab-item数据,默认选中效果失效

Open
#501 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vue
Stars
16.4k
Forks
3.5k
PR merge metrics
No merged PRs in 30d

Description

### Mint UI 2.0
示例代码:
```


{{item.title}}

如果是动态的tab-item数据,则通过设置v-model 中 selected的值,
默认选中效果失效,改成 注释中的静态数据设置 selected=‘1’ 时初始有 默认选中效果。

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue with the dynamic mt-tab-item example and compare it with the commented static items, focusing on the mt-navbar and mt-tab-item component entry points. Verify that setting selected through v-model initially selects the matching dynamic item, then add or update coverage for both dynamic and static data cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.