Skip to content

Commit 6cb9472

Browse files
committed
【修复】select组件默认值的extra在某些情况下(0、''、false)无法在回调函数中获取。
1 parent 8e8d97f commit 6cb9472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uview-ui/components/u-select/u-select.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ export default {
268268
label: tmp ? tmp[this.labelName] : null
269269
};
270270
// 判断是否存在额外的参数,如果存在,就返回
271-
if(tmp && tmp.extra) data.extra = tmp.extra;
271+
if(tmp && tmp.extra !== undefined) data.extra = tmp.extra;
272272
this.selectValue.push(data)
273273
}
274274
},

0 commit comments

Comments
 (0)