vue-proportion-directive

1.1.0 • Public • Published

vue比例指令

Build Status

根据元素宽度,按比例设置元素高度

USE

install

npm install vue-proportion-directive --save

code

javascript

import proportion from 'vue-proportion-directive';
 
Vue.use(proportion);
 

html

<template>
    <!-- 这个元素的高度会是宽度的0.5倍 -->
    <div v-proportion="0.5">
        这里是头部
    </div>
</template>

Readme

Keywords

Package Sidebar

Install

npm i vue-proportion-directive

Weekly Downloads

32

Version

1.1.0

License

ISC

Unpacked Size

7.24 kB

Total Files

9

Last publish

Collaborators

  • marxjiao