ElemeFE / ElemeFE/mint-ui

[Bug Report] In the source code, <mt checklist :value="option. Value || option"> returns not value when value is 0, which is the option value.i want to get 0 value

Open
#1,308 1 comment 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 version
2.2.13

### OS/Browsers version
win 7

### Vue version
2.5.16

### Reproduction Link
[http://mint-ui.github.io/docs/#/zh-cn2/checklist](http://mint-ui.github.io/docs/#/zh-cn2/checklist)

### Steps to reproduce
In the source code, returns not value when value is 0, which is the option value.i want to get 0 value

### What is Expected?
In the source code, returns not value when value is 0, which is the option value.i want to get 0 value

### What is actually happening?
In the source code, returns not value when value is 0, which is the option value.i want to get 0 value

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the checklist component linked in the reproduction page and inspect the source handling of option values. Reproduce the case with an option value of 0, then verify that the checklist preserves 0 rather than falling back to the option object or label.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.