1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 1× 1× 1× 1× | import { getElementSize } from '../../util'; let InitSize = Base => class extends Base { constructor (...args) { super(...args); const size = getElementSize(this.el); this.width = size.width; this.height = size.height; } }; export default InitSize; |