mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-08 09:52:28 +03:00
fix: input class with object syntax (#552)
This commit is contained in:
+2
-2
@@ -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',
|
||||
<input value={value} {...{ attrs, on: events }} ref="input" />,
|
||||
<input value={value} class={className} {...{ attrs, on: events }} ref="input" />,
|
||||
{
|
||||
props,
|
||||
events,
|
||||
|
||||
Reference in New Issue
Block a user