vue-proportion-directive

vue 固定元素比例指令
6,003 10
Install
npm install vue-proportion-directive
Latest Version:1.1.0
Vue:2
License:ISC
Last Updated:Dec 12, 2022
Links: GitHub  ·  npm
Maintainer: marxjiao

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>

Related Packages

vue3-highlight-text

a vue3 directive of highlight text

84,789
ardirectives

Ardirectives

811
vue-on-click-outside

vue mixin/directive that does something when you click outside a container

169,297 31
vue-bind-once

A tiny, SSR-safe directive for binding random data to an element.

152,016 169
vue3-sticky-directive

Vue3-sticky-directive is a powerful Vue 3 directive make element sticky. This is...

75,838 4

Version History

Version Released Vue License
1.1.0 ^2.1.4 ISC
1.0.7 ^2.1.4 ISC
1.0.6 ^2.1.4 ISC
1.0.5 ^2.1.4 ISC
1.0.4 ^2.1.4 ISC