Home > other >  Excuse me ` v - if ` and ` slot - scope ` used together?
Excuse me ` v - if ` and ` slot - scope ` used together?

Time:05-11


Using the Element in the UI table, want to take advantage of tableHeader dong tao generate different columns, including custom and the custom, but using v - if control is something wrong with the custom or not, v - if if fails, the custom will override the default









CodePudding user response:

Is there any way to this problem?

CodePudding user response:

Thank you for your answer, the outer package also is not never thought ~ now basically is no solution

CodePudding user response:

I now think the problem should be in the slot - scope="scope and v - if used together on
No matter what the result is the v - if, will be the default replace
But you can't use div parcel slot - scope, it will lead to undefined custom parts

CodePudding user response:

Yes, v - if only to control the elements, but the execution to v - if has left a custom/default content when the judgment of the stage, you need to do is to advance the v - if to outer elements,

CodePudding user response:


I came to the conclusion in this slot is less than the values in the data outside, only according to the data he is bound to the value judgment, the inside is scope. Row inside to look for a value to judge
According to him is bound to the object to find a can judge the value of the judgment, reasons and should take less than it is for this slot inside the outside of the parameters in the data
  • Related