Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.8k views
in Technique[技术] by (71.8m points)

vue中 prop写在标签里是什么意思?

image.png

这种写在标签里是什么用法?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

就是个属性名啊……

人家声明时这个属性名就叫 prop,跟前面的 label 没有什么本质的不同。

如果你是问这个属性是干啥的,看上去你这是 ElementUI 的表单组件,那这个是控制表单检验的,在你执行 validate 方法时会去按你设定的同名规则来校验这个表单项对应的值。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...