uni-app icon indicating copy to clipboard operation
uni-app copied to clipboard

vue3中useAttrs在计算属性中无法使用

Open xw-xw12 opened this issue 1 year ago • 1 comments
trafficstars

升级版本后useAttrs 无法使用,需要在使用前先用变量接一下 const attrs = useAttrs() import { computed,useAttrs } from 'vue' const params = computed(()=>{ return { selection:selection.value, ...useAttrs() } }) 报错信息为 Cannot read properties of null (reading 'setupContext')

xw-xw12 avatar Jul 01 '24 07:07 xw-xw12

我这边正常使用useAttr,可以提供一下复现工程

bfc846958672 avatar Aug 16 '24 06:08 bfc846958672

长时间未响应,关闭本issue。 如还有问题,可 reopen issue 继续讨论。

bfc846958672 avatar Sep 02 '24 04:09 bfc846958672