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] component: el-drawer Type detection fails when the size property is number #20636

Closed
hlfine opened this issue Dec 31, 2020 · 3 comments
Assignees

Comments

@hlfine
Copy link

hlfine commented Dec 31, 2020

Element UI version

2.14.1

OS/Browsers version

window

Vue version

2.6.12

Reproduction Link

https://codepen.io/hlfine/pen/rNMJpvV

Steps to reproduce

Click the button

What is Expected?

The property has been changed successfully and can be used normally

What is actually happening?

[Vue warn]: Invalid prop: type check failed for prop "size". Expected String with value "300", got Number with value 300.

found in

---> at packages/drawer/src/main.vue

@wupeiwen
Copy link

wupeiwen commented Jan 7, 2021

遇到了同样的问题,将数值300改为字符串"300px",符合期望成功渲染

@SimoralX
Copy link

同遇到,传入number不起作用,只能传入 ‘px’ 或者 ’%‘ 的string类型。

@cs1707
Copy link
Contributor

cs1707 commented Apr 22, 2021

fixed

@cs1707 cs1707 closed this as completed Apr 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

4 participants