Vue2.x source code - initialization: stateMixin(Vue), eventsMixin(Vue), lifecycleMixin(Vue), renderMixin(Vue)

Previous: Vue2.x source code - initialization: initMixin(Vue) This article mainly looks at the four blends of stateMixin, eventsMixin, lifecycle mixin and renderMixin. These methods are mainly used to mount some methods on the prototype of Vue instances: 1. stateMixin: data related $data, $props, $set, $del, $watch 2. eventsMixin: e ...

Posted by venom999 on Tue, 02 Nov 2021 21:49:50 -0700

Vue router -- 10 Vue router routing

Vue router -- 10 Vue router routing 10.1 what is routing Vue Router is the official routing manager of Vue.js. It is deeply integrated with the core of Vue.js, making it very easy to build a single page application.By switching the display of different components to render pages according to different request paths. ย  10.2 basic routing usage 1 ...

Posted by cool75 on Tue, 02 Nov 2021 21:23:14 -0700

nuxt uses pdfjs dist plug-in to realize pdf preview

First of all, if the version of pdfjs dist is not installed correctly, there will be all kinds of bug s!!! At present, the versions of pdfjs dist and nuxt in my project: "nuxt": "^2.15.8", "pdfjs-dist": "2.3.200", 1, Project background Because the contract signing function in the company's project needs to involve the user preview contract fu ...

Posted by j0n on Tue, 02 Nov 2021 20:17:03 -0700

[introduction to JavaScript zero basics 1] javascript table

๐Ÿ… Java learning roadmap: ย  Thinking map of Java learning route ๐Ÿ… Java learning route summary: Brick movers counter attack Java Architects ๐Ÿ… Classic Java interview questions: Summary of 208 classic Java interview questions with 100000 words (with answers) ๐Ÿ… Introduction: high quality creator in Java field ๐Ÿ†, CSDN the author o ...

Posted by iceblossom on Tue, 02 Nov 2021 18:53:19 -0700

Installation and use of element UI, iview, vant and Vuex

Vue_UI and Vuex UI Library element-ui Official website: https://element.eleme.cn/#/zh-CN/component/installationhttps://element.eleme.cn/#/zh-CN/component/installation Element, a desktop component library based on Vue 2.0 for developers, designers and product managers Element UI is a third-party PC side component library based on vue box I ...

Posted by zimmo on Mon, 01 Nov 2021 04:57:43 -0700

Method for realizing drag and drop function in front end

preface Some time ago, a friend asked me if the front-end could realize the drag and drop function, which is generally used to adjust the list order. Although I haven't done it, I've seen such a website with this function, so I don't hesitate to say that it can be realized (I didn't write it anyway). Who knows, in less than a week, the company ...

Posted by Jas on Sun, 31 Oct 2021 19:51:08 -0700

Six ways of communication between vue components

Components are one of the most powerful functions of vue.js, and the scopes of component instances are independent, which means that data between different components cannot be referenced. In general, components can have the following relationships: As shown in the figure above, A and B, B and C, B and D are paternal-child relationships, ...

Posted by cheeks2k on Sat, 30 Oct 2021 10:11:13 -0700

Summary of PC cloud music project on October 27, 28, 29 and 30

๐ŸŒˆ Preamble It was supposed to write a summary yesterday. Yesterday, it was basically completed to transplant the music progress bar into the project and realize linkage with audio. But I was cheap last night ๐Ÿ˜‚๏ผŒ In order to realize the function better, we hope to save the songs played by the user before and display them directly when open ...

Posted by Gabriel_Haukness on Sat, 30 Oct 2021 06:06:36 -0700

Vue3.0 basic summary

Vue3.0 basic summary 2-year development, 99 contributors, 2600 submissions, 628 pr, 41% reduction in packaging volume, 55% faster initial rendering, 133% faster update, and 54% reduction in memory usage Deficiencies of Vue2.x Global API is easy to pollute the global environment Mixin disadvantages: naming conflict, unclear variabl ...

Posted by common on Fri, 29 Oct 2021 20:40:42 -0700

Detailed explanation of Vue Foundation

1.1 concept (based on vue2) 1.2 vue/cli scaffold 1.2.1 create project startup service 1.2.2 explanation of project directory (can be omitted) 1.2.3 custom configuration 1.2.4 eslint 1.2.5 single vue document 1.3 interpolation expression 1.4 MVVM design pattern 1.5 Vue instruction (key points, remember with a small book) 1.5.1 concep ...

Posted by thinsoldier on Wed, 27 Oct 2021 05:53:46 -0700