mosha-vue-toastify
Advanced tools
Comparing version 1.0.12 to 1.0.13
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
44319
15
0