Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

wepy.js 不能动态绑定style #4

@ACERY1

Description

@ACERY1

在设计组件的时候,想通过props来动态传入style参数从而改变组件的样式,但是经过查询,当前版本的wepy(v1.6.0)不支持:style,仅仅支持:class,且:class只支持bool判断,不支持其他运算,导致无法更好的设计组件。

目前采用的方案:将一些样式写固定,通过wx-if来销毁和生成。

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    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