-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
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
QA:常见问题查看这里 #2461
Comments
一、按需引入与 unplugin 插件1、使用 JSX、TSX 编写项目时无法实现自动按需引入
Components({
include: [/\.[tj]sx?$/, /\.vue$/, /\.vue\?vue/],
resolvers: [NutUIResolver()],
}) 2、使用自动按需引入时组件没有类型提示
{
"include": ["components.d.ts"]
} |
Overlay、Popup、Dialog 等弹层组件的滚动穿透lock-scroll 只能阻止背景遮罩的滚动穿透问题 内部元素依然有滚动穿透需要添加 catch-move <template>
<nut-popup :catch-move="true">
</nut-popup>
</template> 开启 catch-move 之后,内容过长时无法滑动需要内部套一层 scroll-view <template>
<nut-popup :catch-move="true">
<scroll-view>
......
</scroll-view>
</nut-popup>
</template> |
关于 Prebundle 与 Cache表现1:使用组件后,微信小程序无内容,控制台警告找不到 template 可能的原因:开启了 Webpack 预加载或者 cache,Taro 框架下该模式会偶发丢失第三方组件库文件。 module.exports = {
// ...
compiler: {
type: 'webpack5',
prebundle: {
exclude: ['@nutui/nutui-taro', '@nutui/icons-vue-taro']
}
},
cache: {
enable: false
}
} |
出现
|
自定义 Tabbar 中 icon 图标无法显示Taro 下自定义 tabBar 默认存在样式隔离,无法引用到全局样式中的字体文件,需要手动配置: <script>
export default {
options: {
addGlobalClass: true,
},
}
</script> 相关 issue:NervJS/taro#11060 |
NutUI Vue 相关的一些使用问题或者限制
The text was updated successfully, but these errors were encountered: