"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fsExtra = require("fs-extra");
const VueParse_1 = require("../../../generator/VueParse");
const path = require("path");
const config_1 = require("../../../../config");
const Common_1 = require("../../Common");
class Delete extends Common_1.default {
    constructor(params = {}) {
        super();
        this.name = 'Delete';
        this.init();
    }
    init() {
        const fileStr = fsExtra.readFileSync(path.join(config_1.default.templatePath, 'component/Table/Delete', 'comp.vue'), 'utf8');
        this.vueParse = new VueParse_1.default(this.uuid, fileStr);
    }
    fragment() {
        return `
      <el-button size="mini" type="danger" @click="handleDelete(row,$index)">
        删除
      </el-button>
    `;
    }
}
exports.default = Delete;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGliL2FkYXB0ZXItdnVlL21vZHVsZXMvY3VzdG9tL1RhYmxlL0RlbGV0ZS9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLG9DQUFvQztBQUNwQywwREFBbUQ7QUFDbkQsNkJBQTZCO0FBQzdCLCtDQUF3QztBQUN4Qyx5Q0FBa0M7QUFFbEMsTUFBcUIsTUFBTyxTQUFRLGdCQUFNO0lBTXhDLFlBQWEsU0FBYyxFQUFFO1FBQzNCLEtBQUssRUFBRSxDQUFDO1FBTlYsU0FBSSxHQUFXLFFBQVEsQ0FBQztRQU90QixJQUFJLENBQUMsSUFBSSxFQUFFLENBQUM7SUFDZCxDQUFDO0lBRU8sSUFBSTtRQUNWLE1BQU0sT0FBTyxHQUFHLE9BQU8sQ0FBQyxZQUFZLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxnQkFBTSxDQUFDLFlBQVksRUFBRSx3QkFBd0IsRUFBRSxVQUFVLENBQUMsRUFBRSxNQUFNLENBQUMsQ0FBQztRQUNuSCxJQUFJLENBQUMsUUFBUSxHQUFHLElBQUksa0JBQVEsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLE9BQU8sQ0FBQyxDQUFDO0lBQ25ELENBQUM7SUFFTSxRQUFRO1FBQ1gsT0FBTzs7OztLQUlSLENBQUM7SUFDSixDQUFDO0NBQ0Y7QUF2QkQseUJBdUJDIn0=