本文档由 Apifox 自动生成,推荐使用 Apifox - API 文档、API 调试、API Mock、API 自动化测试!
<salla-verify> web component used to show fields for verifying email/mobile of users by sending OTP verification code during registration, login, or profile update, and that can be done using the properties' parameters available.
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
| Auto Reload | auto-reload | Should auto reloading the page after success verification. | boolean | 'true' |
| Display | display | Should render component without modal | "inline" | "modal" | 'modal' |
| Support Web Authentication | support-web-auth | Once the API verifies the success. It will login the customer in web pages | boolean | true |
| Type | type | Verifying method | "email" | "mobile" | 'mobile' |
| Event | Description | Type |
|---|---|---|
verified | This is triggered when success verification event is fired. | CustomEvent<any> |
methods allow for calling functions built by Salla to carry out certain actvities, such as getCode which gets the current code and open(data:any) which shows the verifying as modal.| Method | Description | Return Type |
|---|---|---|
getCode() | Gets the current code. | Promise<string> |
open(data: any) | Shows the verifying as modal. | Promise<void> |
slots makes it customizable to modify certain labels, such as after-footer.| Slot | Description |
|---|---|
after-footer | Placeholder position that appears after the footer. |
footer | Replaces the footer. By default, it contains: verify button, resend, and timer. |
扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

扫码加入交流群