Home > other >  Vue how to obtain the custom component tag values between (the innerText)
Vue how to obtain the custom component tag values between (the innerText)

Time:11-24


For example, a component:


How in the component internal access to Hear the word
{
Props: {
Style: {
Type: String,
}
},
Mounted () {
I just want to in internal access to Hear this value
}
}

Thank you

CodePudding user response:

Thank you very much, through this. $slots. The default [0]. The text can direct access to the text,

CodePudding user response:

Component definition solt inside

CodePudding user response:

The building Lord, how do I use the method of no, the following code
. {{item name}}

The text value, I want to get the current click. Is the item name

CodePudding user response:

Methods: changeStyle1 (e) {
Enclosing style='select'
The console. The log (enclosing $slots);
}
This $slots is an empty object
  • Related