Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mosha-vue-toastify

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mosha-vue-toastify - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

LICENSE

2

package.json
{
"name": "mosha-vue-toastify",
"version": "1.0.12",
"version": "1.0.13",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "A light weight and fun Vue 3 toast or notification or snack bar or however you wanna call it library.",

@@ -66,5 +66,21 @@ # Mosha Vue Toastify

`createToast` 方法接受两个参数, 第一个可以是一个字符串也可以是一个像这样的对象 `{ title: 'some title', description: 'some good description'}`, 第二个参数是options,可以自定义提醒框。
`createToast` 方法接受两个参数:
- **第一个参数**:
- 可以是一个字符串也可以是一个像这样的对象 `{ title: 'some title', description: 'some good description'}`
- 也可使是一个Vue组件, 比如:
```ts
import CustomizedContent from "./CustomizedContent.vue";
export default defineComponent({
setup () {
const toast = () => {
createToast(CustomizedContent)
}
return { toast }
}
})
```
- **第二个参数**: 第二个参数是options,可以自定义提醒框。
Options:

@@ -71,0 +87,0 @@

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