Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Delete default classes from input #18

Merged
merged 1 commit into from
Aug 12, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ This example is based on Bootstrap 3 [input group](http://getbootstrap.com/compo
v-model="date"
placeholder="Select date"
:config="config"
:required="true"
input-class="date-input"
:required="true"
name="date">
</flat-pickr>
<div class="input-group-btn">
Expand Down Expand Up @@ -134,7 +133,7 @@ The component accepts these props:
| v-model / value | String / Date Object / Array / null| `null` | Set or Get date-picker value (required) |
| config | Object | `{wrap:false}` | Flatpickr configuration [options](https://chmln.github.io/flatpickr/options/)|
| placeholder | String | `''` | Set placeholder on input |
| input-class | String / Object | `''` | Add CSS class to input |
| input-class | String / Object | `'form-control input'` | Set CSS class to input |
| name | String | `'date-time'` | Set input field name |
| required | Boolean | `false` | Make input field required |
| id | String | `''` | Set input field id |
Expand Down
2 changes: 1 addition & 1 deletion examples/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
placeholder="Select date"
:config="configs.wrap"
:required="true"
input-class="date-input-class"
input-class="form-control input date-input"
name="date-name"
>
</flat-pickr>
Expand Down
3 changes: 1 addition & 2 deletions src/component.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<template>

<input type="text"
class="form-control input"
:id="id"
:class="inputClass"
:name="name"
Expand Down Expand Up @@ -38,7 +37,7 @@
},
inputClass: {
type: [String, Object],
default: ''
default: 'form-control input'
},
name: {
type: String,
Expand Down