Files
smart-table/lib/index.js

17 lines
412 B
JavaScript
Raw Normal View History

2020-01-13 16:25:20 +08:00
import './index.scss'
import initMixin from './core/core'
2020-01-13 16:25:20 +08:00
function Table(options) {
if (!(this instanceof Table)) {
console.error('Smart Table is a constructor and should be called with the `new` keyword')
}
2020-01-28 22:13:48 +08:00
//等待素材加载之后再初始化 保证cell的精准高宽
window.addEventListener('load', () => {
setTimeout(this._init(options), 0)
})
2020-01-13 16:25:20 +08:00
}
initMixin(Table)
2020-01-28 22:13:48 +08:00
export default Table