Explorar el Código

[Feat 0000] 为看板公用列表添加折叠箭头

houzekong hace 9 meses
padre
commit
d46d9f7fb3
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/views/vent/home/billboard/components/CollapseTable.vue

+ 3 - 1
src/views/vent/home/billboard/components/CollapseTable.vue

@@ -5,7 +5,7 @@
         <div class="label-t" v-for="(item, index) in columns" :key="`svvhbcth-${index}`" :style="{ flexBasis }">{{ item.name }}</div>
       </div>
       <Collapse ghost class="table__content_list" :style="{ height: contentHeight }">
-        <CollapsePanel v-for="(item, index) in data" :key="`svvhbct-${index}`" class="table__content_list_row" :showArrow="false">
+        <CollapsePanel v-for="(item, index) in data" :key="`svvhbct-${index}`" class="table__content_list_row" :showArrow="showArrow">
           <template #header>
             <div v-for="(t, i) in columns" :key="`svvhbctr-${i}`" :style="{ flexBasis }">
               <slot :name="t.prop" :scope="item">
@@ -34,6 +34,7 @@
       data: any[];
       defaultValue: string;
       contentHeight: string;
+      showArrow: boolean;
     }>(),
     {
       columns: () => [],
@@ -41,6 +42,7 @@
       data: () => [],
       defaultValue: '/',
       contentHeight: '220px',
+      showArrow: true,
     }
   );