Explorar el Código

新增基础信息模板

zhangqiOMG hace 2 años
padre
commit
85bb2e8a2b
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12 0
      src/template/defaultInfo/index.vue

+ 12 - 0
src/template/defaultInfo/index.vue

@@ -0,0 +1,12 @@
+<template>
+  <a-descriptions :column="6" :labelStyle="{color:'#666',width:'150px'}" :contentStyle="{marginRight:'20px',marginBottom:'5px'}"  size="small" bordered>
+    <a-descriptions-item :span="item.span ? item.span : 1"  v-for="item in props.data" :key="item.index" :label="item.label"><span :style="item.style?item.style():''">{{item.value}}</span></a-descriptions-item>
+  </a-descriptions>
+</template>
+
+<script setup>
+import {defineProps} from 'vue'
+const props = defineProps(['data'])
+</script>
+<style>
+</style>