Добавила иконки

This commit is contained in:
Daria Golova
2023-07-04 15:17:30 +03:00
parent 6f8637c25d
commit 017f6a3085
5 changed files with 75 additions and 18 deletions

View File

@@ -63,8 +63,14 @@
:options="displayTypesList",
no-caps,
toggle-color="light-blue-4",
padding="4px"
padding="0px"
)
template(v-slot:one)
.w-12.h-8.flex.items-center.justify-center
date-switcher-svg(name-svg="expanded", :active="value === 'expanded'")
template(v-slot:two)
.w-12.h-8.flex.items-center.justify-center
date-switcher-svg(name-svg="compressed", :active="value === 'collapsed'")
</template>
<script>
@@ -72,19 +78,20 @@ import BaseInput from "@/components/base/BaseInput";
import BaseCalendar from "@/components/base/Calendar/BaseCalendar.vue";
import { mapState, mapActions } from "vuex";
import { v_model } from "@/shared/mixins/v-model";
import DateSwitcherSvg from "@/pages/newCalendar/components/CalendarDateSwitcherSvg.vue";
export default {
name: "CalendarHeader",
mixins: [v_model],
components: { BaseInput, BaseCalendar },
components: { BaseInput, BaseCalendar, DateSwitcherSvg },
data() {
return {
displayTypesList: [
{
label: "exp",
slot: "one",
value: "expanded",
},
{
label: "col",
slot: "two",
value: "collapsed",
},
],