First of all, we have a general direction for the component library we want to use: on the PC side, components that can be used on the computer, can be understood, and are easy to use
Here I recommend: Button Button | Element Plus
First install dependencies:
Import: Quick Start | Element Plus
Then you can use:
Select the display code, find the one you want to use and copy it directly
You can also click Edit to perform an online debugging
When encountering a component that is more suitable, but does not have the desired effect:
Scroll down:
Here it lists all the methods supported by this component, which can be changed as needed
But it should be noted that:
Some components require a specified version, like this one must be version 2.3.0 or above before it can be used, otherwise an error will be reported