mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-23 08:00:57 +00:00
23 lines
365 B
JavaScript
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);
|
|
}
|
|
|
|
|
|
} |