feat: update SingleWeekPicker and SingleDatePicker components with documentation and remove unnecessary v-model binding
Some checks are pending
Publish to npm / publish (push) Waiting to run
Some checks are pending
Publish to npm / publish (push) Waiting to run
This commit is contained in:
parent
4ace02ebfd
commit
2ae8c30902
|
@ -1,13 +1,10 @@
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {SingleWeekPicker} from '../src'
|
import { SingleWeekPicker } from '../src'
|
||||||
import {ref} from 'vue'
|
|
||||||
|
|
||||||
const value = ref({weekYear: 2022, weekNum: 1})
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<SingleWeekPicker v-model="value" />
|
<SingleWeekPicker />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
<script lang="ts">
|
||||||
|
/**
|
||||||
|
* @name SingleDatePicker
|
||||||
|
* @description A panel that allows users to select a date.
|
||||||
|
* @component
|
||||||
|
* @see {@link https://datenel.js.org/guide/vue/components/SingleDatePicker.html}
|
||||||
|
*/
|
||||||
|
export default {
|
||||||
|
name: 'SingleDatePicker',
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, defineProps, watch, onMounted, toRefs, getCurrentInstance, PropType } from 'vue'
|
import { ref, defineProps, watch, onMounted, toRefs, getCurrentInstance, PropType } from 'vue'
|
||||||
import { generateUniqueId, applyColor, getL10Weekday, getCalendarDates } from '../utils'
|
import { generateUniqueId, applyColor, getL10Weekday, getCalendarDates } from '../utils'
|
||||||
|
|
|
@ -1,3 +1,15 @@
|
||||||
|
<script lang="ts">
|
||||||
|
/**
|
||||||
|
* @name SingleWeekPicker
|
||||||
|
* @description A panel that allows users to select a week.
|
||||||
|
* @component
|
||||||
|
* @see {@link https://datenel.js.org/guide/vue/components/SingleWeekPicker.html}
|
||||||
|
*/
|
||||||
|
export default {
|
||||||
|
name: 'SingleDatePicker',
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, defineProps, toRefs, onMounted, getCurrentInstance, watch } from 'vue'
|
import { ref, defineProps, toRefs, onMounted, getCurrentInstance, watch } from 'vue'
|
||||||
import { generateUniqueId, applyColor, getL10Weekday, getCalendarDates, calculateWeekNum } from '../utils'
|
import { generateUniqueId, applyColor, getL10Weekday, getCalendarDates, calculateWeekNum } from '../utils'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user