We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hbuilderX版本:4.22.2024062415-alpha 复现demo:toutiao-vue3-virtualhost 问题描述: 当组件开启了virtualHost后,运行到mp-toutiao平台,无法触发定义的test事件。 组件代码:
virtualHost
mp-toutiao
test
<template> <view class="test" @click="handleClick">点我测试</view> </template> <script lang="ts"> export default { name: 'virtual-host-cmp', options: { addGlobalClass: true, virtualHost: true, styleIsolation: 'shared' } } </script> <script lang="ts" setup> const emit = defineEmits(['test']) function handleClick() { emit('test') } </script>
使用:
<template> <view class="content"> <image class="logo" src="/static/logo.png"></image> <view class="text-area"> <text class="title">{{title}}</text> </view> <virtual-host-cmp @test="handleTest"></virtual-host-cmp> </view> </template> <script> export default { data() { return { title: 'Hello' } }, onLoad() { }, methods: { handleTest(){ uni.showToast({ title:'点到了' }) } } } </script>
The text was updated successfully, but these errors were encountered:
补充:4.15~4.22均可以复现该问题。
Sorry, something went wrong.
相关issue:#4969 #4699
编译到抖音平台真是一步一个坑
No branches or pull requests
hbuilderX版本:4.22.2024062415-alpha
复现demo:toutiao-vue3-virtualhost
问题描述:
当组件开启了
virtualHost
后,运行到mp-toutiao
平台,无法触发定义的test
事件。 组件代码:使用:
The text was updated successfully, but these errors were encountered: