使用uni-app插槽不能正常编译

使用uni-app插槽不能正常编译

项目信息 详情
产品分类 uniapp/小程序
PC开发环境 Mac
操作系统版本 15.3
HBuilderX类型 正式
HBuilderX版本 4.45
工具版本 3.9.41
基础库版本 1.25.10
项目创建方式 HBuilderX

操作步骤:

<template #header><template slot=“header”> 编译结果不一样

预期结果:

<template #header><template slot=“header”> 编译结果不一样

实际结果:

<template #header><template slot=“header”> 编译结果不一样

bug描述:

4.45版本使用vue2开发项目,插槽不支持 <template #header> 写法, 只能使用 <template slot=“header”> ;低版本HBuilderX(3.7.8)两种写法都可以正常编译


更多关于使用uni-app插槽不能正常编译的实战教程也可以访问 https://www.itying.com/category-93-b0.html

回到顶部