zhangqi il y a 11 mois
Parent
commit
37481f9e3e
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      src/components/detailTemplate/index.vue

+ 3 - 1
src/components/detailTemplate/index.vue

@@ -29,7 +29,7 @@
         </div>
       </template>
       <a-descriptions :column="6" :colon="false" :labelStyle="{display:'block',lineHeight:'25px',color:'#666',width:'80px',textAlignLast:'justify'}" :contentStyle="{marginRight:'20px',background:'#f1f2f3',color:'#333',padding:'0px 5px',lineHeight:'25px',borderRadius:'3px'}"  size="small">
-        <a-descriptions-item :span="item.span ? item.span : 1"  v-for="item in props.headData" :key="item.index" :label="item.label"><span :style="item.style?item.style():''">{{item.value}}</span></a-descriptions-item>
+        <a-descriptions-item :span="item.span ? item.span : 1"  v-for="item in props.headData" :key="item.index" :label="item.label"><span :style="item.style?item.style():''">{{typeof(item.value) == 'object'?item.value.join(','):item.value}}</span></a-descriptions-item>
       </a-descriptions>
       <slot name="customContent"></slot>
     </a-card>
@@ -75,6 +75,7 @@
     disable:Boolean,
     notabs:Boolean,
   })
+  const emits = defineEmits(['changeTab'])
   const activeKey = ref(0)
   
   const goBack = ()=>{
@@ -104,6 +105,7 @@
   }
   const onTabChange = (key)=>{
     activeKey.value = key
+    emits('changeTab',key)
   }
   const time = ref(null)
   const previous = ()=>{