...
 
Commits (2)
    https://gitcode.net/vk-uni/vk-uview-ui/-/commit/35d890b5c5f69b46081f3e383899148866cfeefa update uni_modules/vk-uview-ui/components/u-button/u-button.vue. 2023-02-17T06:25:35+00:00 wflee liwenfengsss@gmail.com Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:liwenfengsss@gmail.com" title="liwenfengsss@gmail.com"></a><a href="javascript:void(0)" class="avatar s16 avatar-inline identicon bg5" style="text-decoration: none">N</a><a href="mailto:liwenfengsss@gmail.com" title="liwenfengsss@gmail.com">wflee</a> &lt;<a href="mailto:liwenfengsss@gmail.com" title="liwenfengsss@gmail.com">liwenfengsss@gmail.com</a>&gt;</span> https://gitcode.net/vk-uni/vk-uview-ui/-/commit/6c090371224271e7efec237b63c72a687398f547 !7 update uni_modules/vk-uview-ui/components/u-button/u-button.vue. 2023-02-21T03:48:07+00:00 VK 370725567@qq.com Merge pull request !7 from wflee/N/A
......@@ -30,6 +30,7 @@
@error="error"
@opensetting="opensetting"
@launchapp="launchapp"
@chooseavatar="chooseavatar"
:style="[customStyle, {
overflow: ripple ? 'hidden' : 'visible'
}]"
......@@ -80,11 +81,12 @@
* @event {Function} error 当使用开放能力时,发生错误的回调
* @event {Function} opensetting 在打开授权设置页并关闭后回调
* @event {Function} launchapp 打开 APP 成功的回调
* @event {Function} chooseavatar 获取用户头像,可以从@chooseavatar回调中获取到头像信息,open-type="chooseAvatar"时有效
* @example <u-button>月落</u-button>
*/
export default {
name: 'u-button',
emits: ["click", "getphonenumber", "getuserinfo", "error", "opensetting", "launchapp"],
emits: ["click", "getphonenumber", "getuserinfo", "error", "opensetting", "launchapp", "chooseavatar"],
props: {
// 是否细边框
hairLine: {
......@@ -342,7 +344,10 @@ export default {
},
launchapp(res) {
this.$emit('launchapp', res);
}
},
chooseavatar(res) {
this.$emit('chooseavatar', res);
}
}
};
</script>
......