Quellcode durchsuchen

super-ux-table组件注释值不存在默认显示“--的功能

002390 vor 1 Jahr
Ursprung
Commit
5e6342522f
1 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen
  1. 2 3
      src/components/super-ux-table/index.vue

+ 2 - 3
src/components/super-ux-table/index.vue

@@ -527,9 +527,8 @@ export default {
               <component v-if="attr.formatter" is="span">{{
                 attr.formatter(scope.row)
               }}</component>
-              <component v-else is="span">{{
-                scope.row[item.key] || "--"
-              }}</component>
+              <component v-else is="span">{{ scope.row[item.key] }}</component>
+              <!-- scope.row[item.key] || "--" -->
             </template>
           </slot>
         </template>