原创 在vue中全局組件的封裝與使用

一 . 寫組件 新建 button.vue 組件 <template> <button> <slot> <slot/> <!-- 插槽 --> </button> </template> <s