mirror of
https://gitee.com/dgflash/oops-plugin-excel-to-json.git
synced 2026-06-23 16:53:37 +08:00
19 lines
289 B
JavaScript
19 lines
289 B
JavaScript
'use strict';
|
|
|
|
const XLSX = require('../xlsx/xlsx');
|
|
|
|
class ModelContainer {
|
|
constructor(model) {
|
|
this.model = model;
|
|
}
|
|
|
|
get xlsx() {
|
|
if (!this._xlsx) {
|
|
this._xlsx = new XLSX(this);
|
|
}
|
|
return this._xlsx;
|
|
}
|
|
}
|
|
|
|
module.exports = ModelContainer;
|