Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | <template>
<v-col class="pb-2 pt-2 d-flex flex-column ml-n3" lg="3">
<v-row no-gutters class="gap">
<v-col>
<v-checkbox-btn
v-model="newDate"
color="indigo-darken-4"
label="Весь день"
/>
</v-col>
</v-row>
</v-col>
</template>
<script>
import { computed, ref } from "vue";
export default {
props: {
dateEventStart: {
type: Object,
default: () => {},
},
},
setup(props, { emit }) {
const newDate = computed({
get() {
return propsDateEvent.value.allday;
},
set(newValue) {
propsDateEvent.value.allday = newValue;
if (newValue == true)
(propsDateEvent.value.date_end = new Date(
new Date(propsDateEvent.value.date_end).setHours(23, 59, 0)
)) &&
(propsDateEvent.value.date_start = new Date(
new Date(propsDateEvent.value.date_start).setHours(0, 0, 0)
));
},
});
const propsDateEvent = computed({
get: () => props.dateEventStart,
set: (value) => emit("update:dateEventStart", value),
});
return {
newDate,
};
},
};
</script>
<style></style>
|