3.0.0 (Breaking)
- Change:
flatPicker.vue
file name tocomponent.vue
- This will be breaking for users who were directly importing
.vue
file
- This will be breaking for users who were directly importing
- Change: Don't force
form-control
CSS class on input field, #18- If you wants to add a new class on input, you need to do like this
<flatpickr :class="form-control custom-css-class">
:class
prop will replace default CSS class on input field
- Add: Ability to pass component name when used as plugin
Vue.use(flatPickr,'date-picker')
- You can pass name as second parameter
- Chore: Upgrade to webpack v3.x
- Fix UglifyJS issue
- New way to use as plugin, old one is deprecated, see new example
- You should NOT import plugin like this
import {flatPickrPlugin} from 'vue-flatpickr-component';
- Add
id
prop
- Rollback importing css, component is no longer importing any css
- This also applies when using this package as plugin
Vue.use()
- This also applies when using this package as plugin
- Expose
install
method, so that now you can use this package as a plugin
2.0.0 (breaking)
- Rename
input-name
prop toname
- No longer support flatpickr v2.x, always pull v3.x
- No longer importing flatpickr css, you need to import css by yourself, see examples
- Improve value prop validation
- Add value prop validation
- Allow flatPickr v3.x stable
- Rename
instance
tofp
, if you were accessing it through$refs
this may be a breaking change for you
- Regenerate build files
- Allow array of objects and date object as default value
- Make
wrap
optional - From now, you need to wrap by your-self and pass
config.wrap
as true - No longer force bootstrap, you are free to use any of CSS framework
- Initial release