UNPKG

uikit

Version:

UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.

11 lines (8 loc) 244 B
import { addClass, css } from 'uikit-util'; export default { props: ['width', 'height'], connected() { addClass(this.$el, 'uk-responsive-width'); css(this.$el, 'aspectRatio', `${this.width}/${this.height}`); }, };