【class*=xxxxx】class 封装组件用法

 

 

 【class*=hm-icon-】  包含class 带hm-icon-的

上图的意思是 button 下面包含hm-icon- 后面的span 加上margin

 

 

 this.$slots  可以获取到   有没有传插槽

 

 

 

 

cursor: not-allowed;  鼠标禁用图标



 v-model  等价于    :value=‘xxxx’ @input=‘xxxx = $event.target.value’

 

 

 this.$nexTick  是 pormiss封装的所以可以.then() 和 async await

 

 

 provider / inject  祖 给后代传值

posted @ 2022-03-29 18:03  未几  阅读(109)  评论(0)    收藏  举报