Explorar el Código

feat(manifest): 开启合并组件虚拟节点外层属性

uni-app 3.5.1+ 开始支持合并虚拟节点属性,目前仅支持 style 和 class 属性。默认不开启,此处设置为开启以利用新特性。
feige996 hace 7 meses
padre
commit
459c665ecb
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      manifest.config.ts

+ 3 - 0
manifest.config.ts

@@ -128,6 +128,9 @@ export default defineManifestConfig({
     optimization: {
       subPackages: true,
     },
+    // 是否合并组件虚拟节点外层属性,uni-app 3.5.1+ 开始支持。目前仅支持 style、class 属性。
+    // 默认不开启(undefined),这里设置为开启。
+    mergeVirtualHostAttributes: true,
     // styleIsolation: 'shared',
     usingComponents: true,
     // __usePrivacyCheck__: true,