|
@@ -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,
|
|
|
}
|
|
|
);
|
|
|
|