3***@qq.com
3***@qq.com
  • 发布:2019-08-16 09:44
  • 更新:2021-10-26 14:22
  • 阅读:1367

【报Bug】小程序及APP自定义组件模式下,自定义组件v-slot插槽内无法使用filters、computed等

分类:uni-app

详细问题描述

APP-PLUS、mp-weixin都设置为自定义组件模式:"usingComponents" : true
使用到的自定义插件:https://ext.dcloud.net.cn/plugin?id=632
在slot中增加过滤器后报错。H5是正常的

VM652:1 [Vue warn]: Property or method "items" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

[内容]

[步骤]

1、导入示例项目https://ext.dcloud.net.cn/plugin?id=632
2、增加过滤器{{item | timeAgo}}

[结果]

编译到h5正常,小程序及安卓APP报错,IOS未验证

[期望]

小程序及安卓APP自定义组件支持filters、computed

[如果语言难以表述清晰,拍一个视频或截图,有图有真相]

IDE运行环境说明

HBuilderX

[2.2.1.20190813]

联系方式

[309916778]

2019-08-16 09:44 负责人:无 分享
已邀请:
小伟Q

小伟Q

我今天突然想到一个好办法,既然他不支持,那我们就不用了,我们直接在拿到数据的时候,对源数据进行处理不就好了吗,哈哈

阿茶

阿茶

emmm~~~楼主这问题解决了么,脑仁快炸了

落叶疏影

落叶疏影

请问各位有解决吗?

h***@yeah.net

h***@yeah.net

啥呀哈哈哈

DCloud_UNI_GSQ

DCloud_UNI_GSQ

HBuilderX alpha 3.1.19+ 已修复

该问题目前已经被锁定, 无法添加新回复