Category: Vue

You are not allowed to understand the vue life cycle 0

You are not allowed to understand the vue life cycle

Article directory vue life cycle 1. Introduce the life cycle 1.1 Write functions outside the vue instance 1.2 Configuring methods 1.3 Introducing the life cycle 2. Lifecycle 2.1 Creation period 2.2 Generate virtual DOM...

vue slots, `slot` and `slot-scope` are deprecated 0

vue slots, `slot` and `slot-scope` are deprecated

I found an error when writing a project to use the slot: slot attributes are deprecated vue/no-deprecated-slot-attribute After consulting the information, it is known that the official documents slothave slot-scopebeen deprecated . Original usage:...

Vue implements one-click back to the top 0

Vue implements one-click back to the top

Requirement: Scroll to a certain distance and return to the top (full code at the end of the article) HTML code <div style="height:3000px"> content…… <div id="btnBox" class="top" @click="goBack">⬆️</div> </div> (1) Listen to scroll events:...

Vue and element ui usage process record 0

Vue and element ui usage process record

Label v-show controls html display <div v-show="isShowMServiceImage || isShowFileImage"> ……. </div> table Vue uses v-html data is too long and does not wrap First, use the pre tag pre element to define preformatted text....