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
uni-app开发定一个dk-tabs组件,如下代码所示:
<script type="text/javascript"> const tabs = ref([{ name: '关注', id: 1}, {name: '美食', id: 6}]) </script> <template> <view class="main"> <view v-for="(item, index) in tabs" :key="index"> <view style="font-size:24px">标题</view> <slot name="content" :item="item" :index="index"></slot> </view> </view> </template>
然后使用 dk-tabs 组件,如下所示:
<dk-tabs> <template #content="{ item, index }"> <text>{{ item.name + index }}</text>≈ </template> </dk-tabs>
但是运行到快手小程序时,渲染的内容却不正常,为 “关注1美食6 关注1美食6”,而不是正常的 “关注1 美食6”,这该如何解决
uni-app论坛上也有这个问题,https://ask.dcloud.net.cn/question/197861,但没有人解决,求指教。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
uni-app开发定一个dk-tabs组件,如下代码所示:
然后使用 dk-tabs 组件,如下所示:
但是运行到快手小程序时,渲染的内容却不正常,为 “关注1美食6 关注1美食6”,而不是正常的 “关注1 美食6”,这该如何解决
uni-app论坛上也有这个问题,https://ask.dcloud.net.cn/question/197861,但没有人解决,求指教。
The text was updated successfully, but these errors were encountered: