miao-plugin/components/models/Base.js

23 lines
365 B
JavaScript
Raw Normal View History

2022-03-26 08:21:44 +00:00
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);
}
}