
Security News
Rust RFC Proposes a Security Tab on crates.io for RustSec Advisories
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.
@dwqs/vue-toast
Advanced tools
A toast component written with Vue, designed based on Ant Design.â¨
vue-toast 1.x deprecated


First, install vue-toast from npm:
npm install @dwqs/vue-toast --save-dev
Or in package.json:
"dependencies": {
"@dwqs/vue-toast": "version"
}
Then use it:
//CommonJS
var Toast = require('@dwqs/vue-toast');
Basically you can pass a string to Toast:
Toast.info('this is a example');
Or invoke Toast with an object as its configuration:
Toast.info({
message: 'this is a example',
duration: 5000
});
| Opthion | Description |
|---|---|
| Toast.info(message:String|config:Object) | show a info toast |
| Toast.success(message:String|config:Object) | show a success toast |
| Toast.warn(message:String|config:Object) | show a warn toast |
| Toast.error(message:String|config:Object) | show a error toast |
| Toast.loading(message:String|config:Object) | show a loading toast |
|Opthion|Description|Default| |:--:|:--:|:--:|:--:| |message|a string as the content of the toast|''| |duration|time before the toast vanishes, in millisecond|1500|
If duration is 0, toast won't disappear but you invoke remove:
<button @click="loading"><span>ćžç¤şĺ č˝˝ä¸...</span></button>
loading() {
const instance = Toast.loading({
message:"Action....",
duration:0
});
setTimeout(instance.remove, 2500);
}
This is useful showing loading state for user in async action.
MIT
FAQs
A toast component for vue.js
We found that @dwqs/vue-toast 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
Rustâs crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.

Security News
/Research
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.

Research
/Security Fundamentals
A pair of typosquatted Go packages posing as Googleâs UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.