Vue學習(6)-插槽、模塊化導入導出、webpack基礎配置使用

1、插槽的基本使用 插槽的基本使用:<slot></slot> 插槽的默認值:例<slot><button>101</button></slot> 若是有多個值,同時放入到組件中進行替換時,一塊兒做爲替換元素。 <div id="app"> <cpn></cpn> <cpn> <div>是替換的值</div> <button>200</button> </cpn> </
相關文章
相關標籤/搜索