mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 17:18:40 +08:00
Merge branch 'master' into develop
This commit is contained in:
commit
4da8b71864
@ -103,12 +103,13 @@ const emit = defineEmits(['click'])
|
||||
*/
|
||||
function onClick() {
|
||||
const url = props.to
|
||||
|
||||
if (props.clickable || props.isLink) {
|
||||
emit('click')
|
||||
}
|
||||
if (url && props.isLink) {
|
||||
;(uni as any)[props.replace ? 'redirectTo' : 'navigateTo']({ url })
|
||||
}
|
||||
if (props.clickable) {
|
||||
emit('click')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user