From 5db4ecc36e7409dcb1a91879ed6510bc74f6caa4 Mon Sep 17 00:00:00 2001 From: Terry Truong Date: Sun, 18 Dec 2022 20:47:12 +1100 Subject: Only show close button for multiple timelines Change close icon from '-' to 'x' --- src/components/TimeLine.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/components/TimeLine.vue') diff --git a/src/components/TimeLine.vue b/src/components/TimeLine.vue index fd119be..7d37ca8 100644 --- a/src/components/TimeLine.vue +++ b/src/components/TimeLine.vue @@ -48,10 +48,10 @@ - - + @@ -61,7 +61,7 @@ import {ref, onMounted, computed, watch, watchEffect, PropType, Ref, shallowRef, // Components import IconButton from './IconButton.vue'; // Icons -import MinusIcon from './icon/MinusIcon.vue'; +import CloseIcon from './icon/CloseIcon.vue'; // Other import {WRITING_MODE_HORZ, MIN_DATE, MAX_DATE, MONTH_SCALE, DAY_SCALE, SCALES, MIN_CAL_YEAR, HistDate, CalDate, stepDate, inDateScale, getScaleRatio, getUnitDiff, getDaysInMonth, @@ -78,6 +78,7 @@ const store = useStore(); // Props + events const props = defineProps({ vert: {type: Boolean, required: true}, + closeable: {type: Boolean, default: true}, initialState: {type: Object as PropType, required: true}, eventTree: {type: Object as PropType>, required: true}, }); -- cgit v1.2.3