...
 
Commits (2)
    https://gitcode.net/dcloud/uni-app/-/commit/7b215b81f2ab1b5509530f1a1be4c2b41929b19d fix: options with mp 2024-04-19T15:35:08+08:00 qiang guoshengqiang@live.com https://gitcode.net/dcloud/uni-app/-/commit/c82b7b0aa6dcda1cf30a7ca001d2bd731f049cb8 Merge branch 'dev' of github.com:dcloudio/uni-app into dev 2024-04-19T15:35:25+08:00 git_robot git_robot@dcloud.io
......@@ -111,7 +111,7 @@ const compilerModule = {
if (process.env.UNI_PLATFORM === 'quickapp-native') {
// 排查所有标签
(options.isUnaryTag.autoComponents || (options.isUnaryTag.autoComponents = new Set())).add(el.tag)
} else if (isComponent(el.tag, options.mp.platform) && el.tag !== 'App') { // App.vue
} else if (isComponent(el.tag, options.mp && options.mp.platform) && el.tag !== 'App') { // App.vue
// 挂在 isUnaryTag 上边,可以保证外部访问到
(options.isUnaryTag.autoComponents || (options.isUnaryTag.autoComponents = new Set())).add(el.tag)
}
......
......@@ -67,7 +67,7 @@ module.exports = {
options.optimize = false // 启用 staticRenderFns
// domProps => attrs
options.mustUseProp = () => false
options.isReservedTag = (tagName) => !isComponent(tagName, options.mp.platform) // 非组件均为内置
options.isReservedTag = (tagName) => !isComponent(tagName, options.mp && options.mp.platform) // 非组件均为内置
options.getTagNamespace = () => false
try {
......