odc.xiaohui
2023-01-11 d942877495ceea1575e64fb6d4e2972f6da10cac
src/components/Table/index.vue
@@ -1,8 +1,11 @@
<template>
    <div class="Table">
        <div class="datatable">
            <el-table ref="multipleTable" :data="tableData" style="width: 100%"
                :header-cell-style="{'font-size':'14px','font-weight':'650','line-height':'45px'}"
            <el-table
                border
                stripe
                ref="multipleTable" :data="tableData" style="width: 100%"
                :header-cell-style="{'background':'#F5F5F5','font-size':'14px','font-weight':'650','line-height':'45px'}"
                :row-class-name="tableRowClassName">
                <el-table-column v-for="item in option.group" :key="item.prop" :label="item.label"
                    :prop="item.prop" :min-width="item['min-width'] ? item['item.min-width']:'10'">
@@ -11,11 +14,11 @@
                            {{scope.row[item.prop]}}
                        </div>
                        <slot v-else-if="item.type === 'operation'" name="operation" :info="scope">
                        </slot>
                        <slot name="status" v-else-if="item.type === 'status'" :info="scope">
                        </slot>
                        <slot name='time' v-else-if="item.type === 'time'" :timeobj="scope">
                        <slot name='time' v-else-if="item.type === 'time'" :timeobj="scope">
                        </slot>
                    </template>
@@ -255,4 +258,4 @@
        background-color: #4b9bb7;
    }
}
</style>
</style>