This paper adopts vue2.0+vuex+localStorage+sass+webpack to realize a localStorage notepad. Compatible with PC and mobile terminals. Online preview address: DEMO

Functional specifications

  • Supports carriage return add events
  • Event status switching is supported
    • Add events -> Go to the unfinished list
    • Not done -> Done (check checkbox)
    • Incomplete -> Cancelled (click cancel button)
    • Done -> Not done (uncheck checkbox)
    • Cancelled -> Not completed (click the Resume button)
  • Support console to print all event data
  • Support for filtering events
  • Support editing events
  • Support for deleting events
  • Supports clearing all events
  • Support local storage
  • Support for folding panels

conclusion

Although I just made a small notebook, BUT I feel that the harvest is still very big, many knowledge points to grasp more firmly. This notepad only makes a page, there is no vue-router, routing is a very powerful function in VUE. Do the original intention of this notepad, because in the work, I will put the recent things to do in the book, after completion will check, so WANT to put this to the computer to achieve.

01-25: Add the filtering function