@custom_okoshko/vue
v0.1.0-beta.1
Published
Vue 3 wrapper for @custom_okoshko/core calendar.
Readme
@custom_okoshko/vue
Vue-обёртка (Vue ≥ 3.3) для @custom_okoshko/core.
npm i @custom_okoshko/vue @custom_okoshko/themes @custom_okoshko/locales<script setup>
import { ref } from 'vue';
import '@custom_okoshko/themes/base.css';
import '@custom_okoshko/themes/light.css';
import { Calendar } from '@custom_okoshko/vue';
import { ru } from '@custom_okoshko/locales/ru';
const value = ref(null);
</script>
<template>
<Calendar v-model="value" :locale="ru">{{ value ?? 'Выбрать дату' }}</Calendar>
</template>v-model— controlled,default-value— uncontrolled.- События:
change,open,close,date-click,event-click. ref.value.instance— инстанс ядра.
Документация и живые демо: DOCS_URL
Лицензия MIT.
