::v-deep
可代替/deep/
和>>>
在 vue 中实现对样式的深层穿透nth-of-type()
,是当前元素父元素的同类型元素的第几个子元素nth-child()
,是当前元素父元素的第几个子元素,只使用一个类名及当前类名为子元素.label dev:nth-child()
,当前元素为 dev ,父元素为 .label.label:nth-child()
,当前元素为 .label ,父元素为 .label 的父元素this.$message
的 duration 为 0 时,该消息不会自动关闭,可通过实例的close
方法关闭消息,可用于长时间提示时使用。
let m = this.$message({
message:"hello"