"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 ResetButton extends Common_1.default {
    constructor(type) {
        super();
        this.name = 'ResetButton';
        this.type = type;
        this.init();
    }
    init() {
        const fileStr = fsExtra.readFileSync(path.join(config_1.default.templatePath, 'component/BaseForm/ResetButton', 'comp.vue'), 'utf8');
        this.vueParse = new VueParse_1.default(this.uuid, fileStr);
    }
    fragment() {
        return `
      <el-button @click="resetForm('form')" style="margin-right: 10px;">
        重置
      </el-button>
    `;
    }
}
exports.default = ResetButton;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGliL2FkYXB0ZXItdnVlL21vZHVsZXMvY3VzdG9tL0Jhc2VGb3JtL1Jlc2V0QnV0dG9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsb0NBQW9DO0FBQ3BDLDBEQUFtRDtBQUNuRCw2QkFBNkI7QUFDN0IsK0NBQXdDO0FBQ3hDLHlDQUFrQztBQUdsQyxNQUFxQixXQUFZLFNBQVEsZ0JBQU07SUFNN0MsWUFBYSxJQUFZO1FBQ3ZCLEtBQUssRUFBRSxDQUFBO1FBTlQsU0FBSSxHQUFXLGFBQWEsQ0FBQztRQU8zQixJQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQztRQUNqQixJQUFJLENBQUMsSUFBSSxFQUFFLENBQUM7SUFDZCxDQUFDO0lBRU8sSUFBSTtRQUNWLE1BQU0sT0FBTyxHQUFHLE9BQU8sQ0FBQyxZQUFZLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxnQkFBTSxDQUFDLFlBQVksRUFBRSxnQ0FBZ0MsRUFBRyxVQUFVLENBQUMsRUFBRSxNQUFNLENBQUMsQ0FBQztRQUM1SCxJQUFJLENBQUMsUUFBUSxHQUFHLElBQUksa0JBQVEsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLE9BQU8sQ0FBQyxDQUFDO0lBQ25ELENBQUM7SUFFTSxRQUFRO1FBQ2IsT0FBTzs7OztLQUlOLENBQUM7SUFDSixDQUFDO0NBQ0Y7QUF4QkQsOEJBd0JDIn0=