Skip to content

AspectRatio 宽高比容器 ​

宽高比容器,按比例锁定容器尺寸。

基础用法 ​

vue
<template>
  <parrot-aspect-ratio />
</template>

API ​

Props ​

属性类型默认值说明
rationumber1宽高比(如 16/9 = 1.78)

Slots ​

插槽说明
default默认内容
9:41

Released under the MIT License.