【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 祖 给后代传值

浙公网安备 33010602011771号