Skip to content

uni-forms 插槽内部有多个计算属性导致canavs报错吗? #1039

@jiayc4215

Description

@jiayc4215

我现在的组件关系是
页面使用了二次封装的uni-file-picker 同级别的有个canvas 压缩组件
然后上传时canvas 报错Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The image argument is a canvas element with a width or height of 0.
页面

Image 上传组件 Image 压缩组件用的插件市场 的组件 https://ext.dcloud.net.cn/plugin?id=2316 Image

现在我如果只有一个计算属性就不报错
或者把uni-forms 换成view
或者不拆分组件 把三个放在一起放在uni-forms‘的插槽中 这是啥原因

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions