mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[Improvement] Switch: support custom size (#723)
This commit is contained in:
@@ -127,6 +127,10 @@ export default create({
|
||||
}
|
||||
|
||||
const el = this.$refs.textarea;
|
||||
if (!el) {
|
||||
return;
|
||||
}
|
||||
|
||||
el.style.height = 'auto';
|
||||
|
||||
let height = el.scrollHeight;
|
||||
|
Reference in New Issue
Block a user