2pv-vue-bulma-datepicker 中文文档教程
Datepicker
Datepicker 组件基于 flatpickr for Vue Bulma。 从 vue-bulma-datepicker 分叉,以便在运行中实现语言环境更改的重新初始化。
Installation
npm install 2pv-vue-bulma-datepicker --save
Examples
Single Input
<template>
<datepicker placeholder="European Format ('d-m-Y')" :config="{ dateFormat: 'd-m-Y', static: true }"></datepicker>
</template>
<script>
import Datepicker from '2pv-vue-bulma-datepicker'
export default {
components: {
Datepicker
}
}
</script>
Wrap Input
<template>
<datepicker :config="{ wrap: true }" readonly>
<a class="button" data-toggle><i class="fa fa-calendar"></i></a>
<a class="button" data-clear><i class="fa fa-close"></i></a>
</datepicker>
</template>
<script>
import Datepicker from '2pv-vue-bulma-datepicker'
export default {
components: {
Datepicker
}
}
</script>
Badges
Datepicker
Datepicker component is based on flatpickr for Vue Bulma. Forked from vue-bulma-datepicker in order to implement reinitialisation for locale changes on the fly.
Installation
npm install 2pv-vue-bulma-datepicker --save
Examples
Single Input
<template>
<datepicker placeholder="European Format ('d-m-Y')" :config="{ dateFormat: 'd-m-Y', static: true }"></datepicker>
</template>
<script>
import Datepicker from '2pv-vue-bulma-datepicker'
export default {
components: {
Datepicker
}
}
</script>
Wrap Input
<template>
<datepicker :config="{ wrap: true }" readonly>
<a class="button" data-toggle><i class="fa fa-calendar"></i></a>
<a class="button" data-clear><i class="fa fa-close"></i></a>
</datepicker>
</template>
<script>
import Datepicker from '2pv-vue-bulma-datepicker'
export default {
components: {
Datepicker
}
}
</script>
Badges