"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 SearchButton extends Common_1.default {
    constructor() {
        super();
        this.name = 'SearchButton';
        this.init();
    }
    init() {
        const fileStr = fsExtra.readFileSync(path.join(config_1.default.templatePath, 'component/BasicTable/SearchButton', 'comp.vue'), 'utf8');
        this.vueParse = new VueParse_1.default(this.uuid, fileStr);
    }
    fragment() {
        return `
      <el-button class="filter-item" type="primary" icon="el-icon-search" @click="handleFilter" style="margin-right: 10px;">
        搜索
      </el-button>
    `;
    }
}
exports.default = SearchButton;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGliL2FkYXB0ZXItdnVlL21vZHVsZXMvY3VzdG9tL0Jhc2VUYWJsZS9TZWFyY2hCdXR0b24vaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxvQ0FBb0M7QUFDcEMsMERBQW1EO0FBQ25ELDZCQUE2QjtBQUM3QiwrQ0FBd0M7QUFDeEMseUNBQWtDO0FBRWxDLE1BQXFCLFlBQWEsU0FBUSxnQkFBTTtJQUs5QztRQUNFLEtBQUssRUFBRSxDQUFBO1FBTFQsU0FBSSxHQUFXLGNBQWMsQ0FBQztRQU01QixJQUFJLENBQUMsSUFBSSxFQUFFLENBQUM7SUFDZCxDQUFDO0lBRU8sSUFBSTtRQUNWLE1BQU0sT0FBTyxHQUFHLE9BQU8sQ0FBQyxZQUFZLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxnQkFBTSxDQUFDLFlBQVksRUFBRSxtQ0FBbUMsRUFBRSxVQUFVLENBQUMsRUFBRSxNQUFNLENBQUMsQ0FBQztRQUM5SCxJQUFJLENBQUMsUUFBUSxHQUFHLElBQUksa0JBQVEsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLE9BQU8sQ0FBQyxDQUFDO0lBQ25ELENBQUM7SUFFTSxRQUFRO1FBQ2IsT0FBTzs7OztLQUlOLENBQUM7SUFDSixDQUFDO0NBQ0Y7QUF0QkQsK0JBc0JDIn0=