mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
19 lines
383 B
JavaScript
19 lines
383 B
JavaScript
import { Data } from '../components/index.js'
|
|
|
|
export default class Base {
|
|
|
|
toString () {
|
|
return this?.name || ''
|
|
}
|
|
|
|
getData (arrList = '', cfg = {}) {
|
|
arrList = arrList || this._dataKey || ''
|
|
return Data.getData(this, arrList, cfg)
|
|
}
|
|
|
|
// 获取指定值数据,支持通过
|
|
getVal (key, defaultValue) {
|
|
return Data.getVal(this, key, defaultValue)
|
|
}
|
|
}
|