New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-proportion-directive

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-proportion-directive - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "vue-proportion-directive",
"version": "1.0.3",
"version": "1.0.4",
"description": "vue 固定元素比例指令",

@@ -5,0 +5,0 @@ "main": "src/index.js",

# vue比例指令
让元素能够按照一定的比例显示
根据元素宽度,按比例设置元素高度
# USE
## install
```shell
npm install vue-proportion-directive --save
```
## code
javascript
```javascript
import proportion from 'vue-proportion-directive';
Vue.use(proportion);
```
html
```html
<template>
<!-- 这个元素的高度会是宽度的0.5倍 -->
<div v-proportion="0.5">
这里是头部
</div>
</template>
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc