Skip to content

[ImageViewer] 缩放比例显示异常 #3537

@wulide

Description

@wulide

tdesign-vue 版本

1.11.1

重现链接

No response

重现步骤

Image

期望结果

当前scale显示为110%和60%

实际结果

显示为110.000000000000001%,源代码貌似是直接相加step的值,出现了0.1加0.3 不等于0.4的问题

框架版本

2.6.14

浏览器版本

No response

系统版本

No response

Node版本

16.20.2

补充说明

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    to be publishedfixed, not be published🐞 bugSomething isn't working

    Type

    No type

    Projects

    Status

    已发布

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions