mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 17:18:40 +08:00
fix: 🐛 修复Cell 单格组件 is-link 不触发 click
This commit is contained in:
parent
eb0ce30c0e
commit
ece5568ecc
@ -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