"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 Edit extends Common_1.default {
    constructor(params = {}) {
        super();
        this.name = 'Edit';
        this.init();
    }
    init() {
        const fileStr = fsExtra.readFileSync(path.join(config_1.default.templatePath, 'component/Table/Edit', 'comp.vue'), 'utf8');
        this.vueParse = new VueParse_1.default(this.uuid, fileStr);
    }
    fragment() {
        return `
      <el-button size="mini" type="success" @click="handleEdit(row,$index)">
        编辑
      </el-button>
    `;
    }
}
exports.default = Edit;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGliL2FkYXB0ZXItdnVlL21vZHVsZXMvY3VzdG9tL1RhYmxlL0VkaXQvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxvQ0FBb0M7QUFDcEMsMERBQW1EO0FBQ25ELDZCQUE2QjtBQUM3QiwrQ0FBd0M7QUFDeEMseUNBQWtDO0FBR2xDLE1BQXFCLElBQUssU0FBUSxnQkFBTTtJQU10QyxZQUFhLFNBQWMsRUFBRTtRQUMzQixLQUFLLEVBQUUsQ0FBQztRQU5WLFNBQUksR0FBVyxNQUFNLENBQUM7UUFRcEIsSUFBSSxDQUFDLElBQUksRUFBRSxDQUFDO0lBQ2QsQ0FBQztJQUVPLElBQUk7UUFDVixNQUFNLE9BQU8sR0FBRyxPQUFPLENBQUMsWUFBWSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsZ0JBQU0sQ0FBQyxZQUFZLEVBQUUsc0JBQXNCLEVBQUUsVUFBVSxDQUFDLEVBQUUsTUFBTSxDQUFDLENBQUM7UUFDakgsSUFBSSxDQUFDLFFBQVEsR0FBRyxJQUFJLGtCQUFRLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxPQUFPLENBQUMsQ0FBQztJQUNuRCxDQUFDO0lBRU0sUUFBUTtRQUNiLE9BQU87Ozs7S0FJTixDQUFDO0lBQ0osQ0FBQztDQUNGO0FBeEJELHVCQXdCQyJ9