<template>
    <div class="app-container">
        <!-- 盘点报废 -->
        <TableModel :config="config" :handleWidth="`240px`">
            <template slot="export">
                <el-row :gutter="10" class="mb8">
                    <el-button
                        type="success"
                        plain
                        icon="el-icon-download"
                        size="mini"
                        >导出数据</el-button
                    >
                </el-row>
            </template>
            <!-- 列表操作栏 -->
            <template slot="handle" slot-scope="data">
                <el-button
                    size="mini"
                    type="text"
                    v-for="btn in config.handleBtn"
                    :key="btn.id"
                    @click="handleBtn(data, btn.id)"
                >
                    {{ btn.btn_title }}
                </el-button>
            </template>
        </TableModel>
    </div>
</template>

<script>
    import TableModel from '@/components/TableModel'
    import { config } from './config'
    export default {
        name: 'Inventory',
        components: {
            TableModel,
        },
        data() {
            return {
                config,
            }
        },
        methods: {
            handleBtn() {},
        },
    }
</script>

<style></style>
