mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-12-02 03:33:45 +00:00
21 lines
362 B
JavaScript
21 lines
362 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)
|
|
}
|
|
}
|