miao-plugin/components/models/Base.js

21 lines
362 B
JavaScript
Raw Normal View History

import { Data } from '../index.js'
2022-03-26 08:21:44 +00:00
export default class Base {
constructor () {
this.name = ''
2022-03-26 08:21:44 +00:00
}
toString () {
return this.name
2022-03-26 08:21:44 +00:00
}
getData (arrList = '', cfg = {}) {
return Data.getData(this, arrList, cfg)
2022-03-26 08:21:44 +00:00
}
// 获取指定值数据,支持通过
getVal (key, defaultValue) {
return Data.getVal(this, key, defaultValue)
2022-03-26 08:21:44 +00:00
}
}