@hadss/hmrouter-plugin
Version:
HMRouter Compiler Plugin
24 lines (23 loc) • 815 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RouterInfo = exports.TemplateModel = void 0;
class TemplateModel {
constructor(pageUrl, importPath, componentName, dialog, generatorViewName, isDefaultExport) {
this.isDefaultExport = isDefaultExport;
this.pageUrl = pageUrl;
this.importPath = importPath;
this.componentName = componentName;
this.dialog = dialog;
this.generatorViewName = generatorViewName;
}
}
exports.TemplateModel = TemplateModel;
class RouterInfo {
constructor(name, pageSourceFile, buildFunction, data = {}) {
this.name = name;
this.pageSourceFile = pageSourceFile;
this.buildFunction = buildFunction;
this.customData = data;
}
}
exports.RouterInfo = RouterInfo;