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

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

<style></style>
