清除默认样式
button{padding: 0;margin: 0; border: 1px solid transparent;}
button::after{ border: none; }
清除点击样式
.button-hover {
color:transparent;
background-color:transparent;
}
<button hover-class="none" >提交</button>
分享
uniapp 文档地址 分享
button
<button hover-class="none" open-type='share'>分享</button>
onShareAppMessage(res) {
let that = this;
if (res.from === 'button') {
console.log(res.target,'页面内分享')
}
return {
title: '小程序名称',
path: '/pages/index/index'
}
},
onShareTimeline(){
let that = this;
return {
title: '小程序名称',
path: '/pages/index/index'
}
},