Uiapplication detailed explanation

2022-12-20   ES  

  1. Set the routepropsparameters
  2. Use in the componentpropsreceivingparamsparameter
// Set as true
const router = new VueRouter({
  routes: [{
    path: '/user/:id',
    component: User,
    props: true

// Back with a function
const router = new VueRouter({
  routes: [{
    path: '/user/:id',
    component: User,
    props: (route) => ({
      id: route.query.id

>>> .el-image {

/deep/ .el-image {

<input type="text" @input="inputHandler('hello', $event)" />

this.$emit('method', 'value')

    <child @hook:mounted="listenMounted" />

emm … I have always put the ID of the listener in the data, but I just used it once when destroyed, so I can write it like this:

const timer = setInterval(method, 1000)

this.$once('hook:beforeDestroy', function () {

import Vue from 'vue'
import Message from './Message.vue'

// Constructor class
let MessageConstructor = Vue.extend(Message)
// instantiated components
let messageInstance = new MessageConstructor()
// $ Mount can be passed into the selector string, indicating that it is mounted to the selector
// If the selector is not passed into the element outside the document, you can imagine the document.createElement () to generate DOM in memory
// MessageInstance. $ EL Get the DOM element


Related Posts

Vue-AWSOME-SWIPER installation and CSS introduction problem

C language to implement eight sorting algorithms (1)

Android 4.0.x Browser does not trigger the solution of the onTouchend event Zoewang

[iOSGithub] Suspear/Suspending button/auxiliary button (similar to the ASSISTIVETOUCH/JD/Jacking of JD/Getting/Costs/Costs/Costume/Costume/Capital)

Uiapplication detailed explanation

Random Posts

LOGSTASH-Input-JDBC ORALCE plug-in configuration, version logstash-6.2.4

Simply talk about UI-Route

React’s eCharts realizes gradient and zoomed in Welkin

Android Studio execute error com.android.ddmlib.adbcommandrejectException: Device Unauthorized.leo The following problems occur during the execution of the real machine.

Python small details solution (continuously updated)