From 5e399b459cb6bec91a98a92baf3c7cade99a8f2b Mon Sep 17 00:00:00 2001 From: mengxiong10 <15623530290@163.com> Date: Tue, 1 Dec 2020 11:20:59 +0800 Subject: [PATCH] fix: input class with object syntax (#552) --- src/date-picker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/date-picker.js b/src/date-picker.js index c4177ae..f8fda9e 100644 --- a/src/date-picker.js +++ b/src/date-picker.js @@ -449,7 +449,7 @@ export default { placeholder: this.placeholder, ...this.inputAttr, }; - const { value, ...attrs } = props; + const { value, class: className, ...attrs } = props; const events = { keydown: this.handleInputKeydown, focus: this.handleInputFocus, @@ -459,7 +459,7 @@ export default { }; const input = this.renderSlot( 'input', - , + , { props, events,