dev #2
|
@ -8,13 +8,8 @@
|
||||||
export default {
|
export default {
|
||||||
name: 'SingleDatePicker',
|
name: 'SingleDatePicker',
|
||||||
}
|
}
|
||||||
</script>
|
|
||||||
|
|
||||||
<script setup lang="ts">
|
export interface SingleDatePickerPropsColorScheme {
|
||||||
import { ref, defineProps, watch, onMounted, toRefs, getCurrentInstance, PropType } from 'vue'
|
|
||||||
import { generateUniqueId, applyColor, getL10Weekday, getCalendarDates } from '../utils'
|
|
||||||
|
|
||||||
interface SingleDatePickerPropsColorScheme {
|
|
||||||
mainColor: string
|
mainColor: string
|
||||||
accentColor: string
|
accentColor: string
|
||||||
borderColor: string
|
borderColor: string
|
||||||
|
@ -22,7 +17,12 @@ export default {
|
||||||
reversedColor: string
|
reversedColor: string
|
||||||
}
|
}
|
||||||
|
|
||||||
type SingleDatePickerPropsAvailableDates = [Date | null, Date | null]
|
export type SingleDatePickerPropsAvailableDates = [Date | null, Date | null]
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { ref, defineProps, watch, onMounted, toRefs, getCurrentInstance, PropType } from 'vue'
|
||||||
|
import { generateUniqueId, applyColor, getL10Weekday, getCalendarDates } from '../utils'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -8,23 +8,23 @@
|
||||||
export default {
|
export default {
|
||||||
name: 'SingleDatePicker',
|
name: 'SingleDatePicker',
|
||||||
}
|
}
|
||||||
</script>
|
|
||||||
|
|
||||||
<script setup lang="ts">
|
export interface SingleWeekPickerPropsColorScheme {
|
||||||
import { ref, defineProps, toRefs, onMounted, getCurrentInstance, watch } from 'vue'
|
|
||||||
import { generateUniqueId, applyColor, getL10Weekday, getCalendarDates, calculateWeekNum } from '../utils'
|
|
||||||
|
|
||||||
interface SingleWeekPickerPropsColorScheme {
|
|
||||||
mainColor: string
|
mainColor: string
|
||||||
accentColor: string
|
accentColor: string
|
||||||
borderColor: string
|
borderColor: string
|
||||||
hoverColor: string
|
hoverColor: string
|
||||||
reversedColor: string
|
reversedColor: string
|
||||||
}
|
}
|
||||||
interface SingleWeekPickerModelValue {
|
export interface SingleWeekPickerModelValue {
|
||||||
weekYear: number
|
weekYear: number
|
||||||
weekNum: number
|
weekNum: number
|
||||||
}
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import { ref, defineProps, toRefs, onMounted, getCurrentInstance, watch } from 'vue'
|
||||||
|
import { generateUniqueId, applyColor, getL10Weekday, getCalendarDates, calculateWeekNum } from '../utils'
|
||||||
|
|
||||||
const selectMonth = ref(false)
|
const selectMonth = ref(false)
|
||||||
const uniqueId = generateUniqueId()
|
const uniqueId = generateUniqueId()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user