Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
qdleader-cj
Advanced tools
npm install qdleader-cj
import plug from 'qdleader-cj'
import 'qdleader-cj/lib/plugin.css'
createApp(App)
.use(plug)
.mount('#app')
<drawBox /> 就是要引入的组件
<template>
<div class="list">
<drawBox :imgArr="newArr1" :awardNum="2"/>
</div>
</template>
<script>
import {ref , onMounted} from 'vue';
import logo from './logo.png';
let newArr = [
{
img:logo,
title:'草莓'
},
{
img:'https://img2.baidu.com/it/u=3758616094,217032655&fm=26&fmt=auto&gp=0.jpg',
title:'草莓'
}, {
img:'https://img2.baidu.com/it/u=3758616094,217032655&fm=26&fmt=auto&gp=0.jpg',
title:'草莓'
}, {
img:'https://img2.baidu.com/it/u=3758616094,217032655&fm=26&fmt=auto&gp=0.jpg',
title:'草莓'
}, {
img:'https://img2.baidu.com/it/u=3758616094,217032655&fm=26&fmt=auto&gp=0.jpg',
title:'草莓'
}, {
img:'https://img2.baidu.com/it/u=3758616094,217032655&fm=26&fmt=auto&gp=0.jpg',
title:'草莓'
}, {
img:'https://img2.baidu.com/it/u=3758616094,217032655&fm=26&fmt=auto&gp=0.jpg',
title:'草莓'
}, {
img:'https://img2.baidu.com/it/u=3758616094,217032655&fm=26&fmt=auto&gp=0.jpg',
title:'草莓'
}
]
export default {
name: 'HelloWorld11',
props: {
msg: String
},
setup() {
let newArr1 = ref(newArr)
return {
newArr1
}
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.list {
width: 98%;
margin: 0 auto;
}
</style>
参数名称 | type | 描述 |
---|---|---|
imgArr | Array | 中奖图片信息配置 |
awardNum | Number | 中奖奖项配置 |
imgArr格式:
[{
img:'https://img2.baidu.com/it/u=3758616094,217032655&fm=26&fmt=auto&gp=0.jpg',
title:'草莓'
},
{
img:'https://img2.baidu.com/it/u=3758616094,217032655&fm=26&fmt=auto&gp=0.jpg',
title:'草莓'
}, {
img:'https://img2.baidu.com/it/u=3758616094,217032655&fm=26&fmt=auto&gp=0.jpg',
title:'草莓'
}, {
img:'https://img2.baidu.com/it/u=3758616094,217032655&fm=26&fmt=auto&gp=0.jpg',
title:'草莓'
}, {
img:'https://img2.baidu.com/it/u=3758616094,217032655&fm=26&fmt=auto&gp=0.jpg',
title:'草莓'
}, {
img:'https://img2.baidu.com/it/u=3758616094,217032655&fm=26&fmt=auto&gp=0.jpg',
title:'草莓'
}, {
img:'https://img2.baidu.com/it/u=3758616094,217032655&fm=26&fmt=auto&gp=0.jpg',
title:'草莓'
}, {
img:'https://img2.baidu.com/it/u=3758616094,217032655&fm=26&fmt=auto&gp=0.jpg',
title:'草莓'
}]
FAQs
vue vue3 9宫格抽奖
We found that qdleader-cj 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.