Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
适用于 Vue 3.0 的计算元素实时宽高的指令。
$ npm i -S v3-resize
<template>
<div id="resize">
拖拽获取实时尺寸
</div>
</template>
<script setup>
import { onMounted } from 'vue'
import useResize from 'v3-resize'
onMounted(() => {
useResize(document.querySelector('#resize'), (e) => {
console.log(e)
})
})
</script>
<style lang="scss" scoped>
#resize {
border: 1px solid #ccc;
resize: both;
overflow: hidden;
}
</style>
<template>
<div id="resize" v-resize="resize">
拖拽获取实时尺寸
</div>
</template>
<script setup>
const resize = (e) => {
console.log(e)
}
</script>
<style lang="scss" scoped>
#resize {
border: 1px solid #ccc;
resize: both;
overflow: hidden;
}
</style>
main.js
import useResize from 'v3-resize'
app.use(useResize).mount('#app')
FAQs
适用于 Vue 3.0 的计算元素实时宽高的指令。
The npm package v3-resize receives a total of 4 weekly downloads. As such, v3-resize popularity was classified as not popular.
We found that v3-resize demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.