浏览代码

Select: fix the bug when the value is Boolean (#21052)

好多大米 4 年之前
父节点
当前提交
9a4b758b77
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/select/src/select.vue

+ 1 - 1
packages/select/src/select.vue

@@ -526,7 +526,7 @@
         }
         if (option) return option;
         const label = (!isObject && !isNull && !isUndefined)
-          ? value : '';
+          ? String(value) : '';
         let newOption = {
           value: value,
           currentLabel: label