Home > Web Front-end > JS Tutorial > body text

Detailed explanation of use cases of vue+toast pop-up component

php中世界最好的语言
Release: 2018-05-21 15:27:41
Original
2318 people have browsed it

This time I will bring you a detailed explanation of the use cases of the vue toast pop-up component. What are the precautions when using the vue toast pop-up component? Here are the actual cases, let's take a look.

I believe that everyone can write ordinary vue components, definition->introduction->registration->use, everything is done in one go, but what if we want to customize a pop-up component today?

First, let’s analyze the characteristics (requirements) of the pop-up component:

0. Lightweight--a component is less than 1Kib (actual packaging is less than 0.8k)

1 . Generally used in multiple places - need to solve the repeated reference registration on each page

1. Generally interact with js - no need to write in