How to Use vue2.0 datepicker, vue2.0datepicker
1. Use vue-cli scaffolding to create a vue project. Use vue-datepicker on the order list page. Follow the instructions in this document. After installation, use
MyDatepicker from 'vue-datepicker 'command to import components. However, the console prompts "exports is not defined.
2. The webpack package management tool is used.
1. Import code
import myDatepicker from ‘vue-datepicker'export default{components: { VSelection, myDatepicker}, }
The browser console prompts the following:
vue-datepicker-1.vue?268e:436 Uncaught ReferenceError: exports is not definedat eval (eval at <anonymous> (app.js:1778), <anonymous>:12:23)at Object.<anonymous> (app.js:1778)at webpack_require (app.js:660)at fn (app.js:84)at eval (eval at <anonymous> (app.js:2211), <anonymous>:7:3)at Object.<anonymous> (app.js:2211)at webpack_require (app.js:660)at fn (app.js:84)at eval (eval at <anonymous> (app.js:1904), <anonymous>:4:94)at Object.<anonymous> (app.js:1904)
Summary
The above section describes how to use vue2.0 datepicker. I hope it will help you. If you have any questions, please leave a message. I will reply to you in time!