[bug report]The size property of drawer cannot receive the number type, which is not consistent with the document description
Open
stale
- Dominant language
- Vue
- Stars
- 54k
- Forks
- 14.4k
- PR merge metrics
- No merged PRs in 30d
Description
### Element UI version
2.13.0
### OS/Browsers version
Win10 / Chrome latest
### Vue version
2.6.11
### Reproduction Link
https://codepen.io/mirari/pen/PowdrEJ
### Steps to reproduce
点击打开drawer即可看到区别。
文档说明如下:
Drawer 窗体的大小, 当使用 number 类型时, 以像素为单位, 当使用 string 类型时, 请传入 'x%', 否则便会以 number 类型解释。
看源码并没有对传入的size参数进行处理,而是直接写到了style样式里,因此无单位的数字均视作无效样式。
### What is Expected?
所有配置均有效。
### What is actually happening?
数字、字符串无单位配置无效。
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.