Replies: 5 comments
-
一、按需引入与 unplugin 插件1、使用 JSX、TSX 编写项目时无法实现自动按需引入
Components({
include: [/\.[tj]sx?$/, /\.vue$/, /\.vue\?vue/],
resolvers: [NutUIResolver()],
}) 2、使用自动按需引入时组件没有类型提示
{
"include": ["components.d.ts"]
} |
Beta Was this translation helpful? Give feedback.
-
1、Overlay、Popup 等弹层组件的滚动穿透(lockScroll)
其他小程序中,建议开发者在开启带遮罩层组件的同时,自行设置需要锁定滚动的组件的样式。 |
Beta Was this translation helpful? Give feedback.
-
使用组件后,微信小程序无内容,控制台警告找不到 template可能的原因:开启了 Webpack 预加载或者 cache,Taro 框架下该模式会偶发丢失第三方组件库文件。 module.exports = {
// ...
compiler: {
type: 'webpack5',
prebundle: {
exclude: ['@nutui/nutui-taro', '@nutui/icons-vue-taro']
}
},
cache: {
enable: false
}
} |
Beta Was this translation helpful? Give feedback.
-
出现
|
Beta Was this translation helpful? Give feedback.
-
此讨论不再更新,已迁移至 #2461
Beta Was this translation helpful? Give feedback.
All reactions