Home > Article > Web Front-end > How to use the V-Distpicker component
This time I will show you how to use the V-Distpicker component, and what are the precautions when using the V-Distpicker component. The following is a practical case, let's take a look.
1. Installation
Use npm to install:
npm install v-distpicker --save
Use yarn to install
yarn add v-distpicker --save
2. Use
Register component
Register global component
import VDistpicker from 'v-distpicker' Vue.component('v-distpicker', VDistpicker);
Register component
import VDistpicker from 'v-distpicker' export default { components: { VDistpicker } }
Simple use
Basic
Default value
Mobile terminal
3. The following are the key points
Get the selected value
Define several methods in the parent component where you reference v-distpicker to get the selected value.