miao-plugin/components/models/Base.js
2022-03-26 16:21:44 +08:00

23 lines
365 B
JavaScript

import { Data } from "../index.js";
export default class Base {
constructor() {
this.name = "";
}
toString() {
return this.name;
}
getData(arrList = "", cfg = {}) {
return Data.getData(this, arrList, cfg);
}
// 获取指定值数据,支持通过
getVal(key, defaultValue) {
return Data.getVal(this, key, defaultValue);
}
}