1、效果图 2、代码 第一步:建组件文件夹 第二步:写index.vue里面的代码 第三步:注册全局组件 第四步:在引需要入的页面将el-button改为hint-button-----加上title提示文本