Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug report] El drawer size attribute source code conflicts with document type #19425

Closed
Ylushen opened this issue May 15, 2020 · 2 comments
Closed

Comments

@Ylushen
Copy link

Ylushen commented May 15, 2020

Element UI version

2.13.1

OS/Browsers version

win10 chorme 版本 81.0.4044.138(正式版本) (64 位)

Vue version

2.6.11

Reproduction Link

https://jsfiddle.net/mmx38qxw/

Steps to reproduce

文档中有提供Number类型,使用会抛警告

What is Expected?

填Number属性自动转换为px,跟文档一致

What is actually happening?

填Number会抛出类型错误警告,也不会被转换为px

@element-bot element-bot changed the title [Bug Report] el-drawer size属性源码跟文档类型冲突 [bug report] El drawer size attribute source code conflicts with document type May 15, 2020
@element-bot
Copy link
Member

Translation of this issue:

Element UI version

2.13.1

OS/Browsers version

Win10 chord version 81.0.4044.138 (official version) (64 bit)

Vue version

2.6.11

Reproduction Link

https://jsfiddle.net/mmx38qxw/

Steps to reproduce

Number type is provided in the document, warning will be thrown when using

What is Expected?

Fill in the number attribute and automatically convert it to PX, which is consistent with the document

What is actually happening?

Filling in number will throw a type error warning and will not be converted to PX

@cs1707
Copy link
Contributor

cs1707 commented Jan 22, 2021

Duplicate of #20636

@cs1707 cs1707 marked this as a duplicate of #20636 Jan 22, 2021
@cs1707 cs1707 closed this as completed Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants