Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
vue-simple-drawer-csp
Advanced tools
npm install vue-simple-drawer --save
<template>
<div id="app">
<button @click="toggle">toggle</button>
<Drawer @close="toggle" align="left" :closeable="true">
<div v-if="open">content here</div>
</Drawer>
</div>
</template>
<script>
import Drawer from "vue-simple-drawer-csp"
import from "vue-simple-drawer-csp/dist/vue-simple-drawer.css"
export default {
name: "app",
data() {
return {
open: true
}
},
components: {
Drawer
},
methods: {
toggle() {
this.open = !this.open
}
}
}
</script>
Property | Type | Required? | Description |
---|---|---|---|
align | String | One of "left", "up", "right", "down", default is 'right'. the location of the drawer. | |
closeable | Boolean | show the x - close button, default true | |
mask | Boolean | show the mask layer - close button, default true | |
maskClosable | Boolean | emit 'close' event when click on mask layer, default: false | |
zIndex | Number | z-index value for the drawer, the nest drawer's z-index will be increased automatically, default is 1000 |
Event | Params | Required? | Description |
---|---|---|---|
close | None | will be triggered when user click the x close button |
Slot Name | Description |
---|---|
default | the content display in the drawer which can show/hide the draw by v-if |
<button @click="toggle">Open/Close</button>
<Drawer @close="toggle" :align="align" :closeable="true">
<div v-if="open">
<span @click="innerOpen=true">
content here
content here
content here
content here
content here
content here
content here
</span>
<Drawer @close="innerOpen=false" :align="align" :closeable="true">
<div v-if="innerOpen">
content here
content here
content here
</div>
</Drawer>
</div>
</Drawer>
...
data() {
return {
open: false,
innerOpen: false,
align: "left"
};
},
$--simple-drawer-close-width: 50px;
@import "~vue-simple-drawer/src/index";
import "./demo.scss";
variables
close button style
close button size
drawer background
drawer text color
Thanks goes to these wonderful people (emoji key):
Vincent Guo 💻 📖 🚇 |
This project follows the all-contributors specification. Contributions of any kind welcome!
FAQs
A tiny Drawer component for vue
We found that vue-simple-drawer-csp 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.