1.1.0 • Published 5 years ago

vue-proportion-directive v1.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
5 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

5 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago