1.1.0 • Published 4 years ago

vue-proportion-directive v1.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

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>
1.1.0

4 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago