vue.js - 为什么我在 vuetify 中的日历是这样的?(混乱)在右上角
问题描述
为什么我的日历是这样的??
这是我的日历组件代码
日历.vue
<template>
<v-row class="fill-height">
<v-col>
<v-sheet height="64">
<v-toolbar
flat
>
<v-btn
outlined
class="mr-4"
color="grey darken-2"
@click="setToday"
>
Today
</v-btn>
<v-btn
fab
text
small
color="grey darken-2"
@click="prev"
>
<v-icon small>
mdi-chevron-left
</v-icon>
</v-btn>
<v-btn
fab
text
small
color="grey darken-2"
@click="next"
>
<v-icon small>
mdi-chevron-right
</v-icon>
</v-btn>
<v-toolbar-title v-if="$refs.calendar">
{{ $refs.calendar.title }}
</v-toolbar-title>
<v-spacer></v-spacer>
<v-menu
bottom
right
>
<template v-slot:activator="{ on, attrs }">
<v-btn
outlined
color="grey darken-2"
v-bind="attrs"
v-on="on"
>
<span>{{ typeToLabel[type] }}</span>
<v-icon right>
mdi-menu-down
</v-icon>
</v-btn>
</template>
<v-list>
<v-list-item @click="type = 'day'">
<v-list-item-title>Day</v-list-item-title>
</v-list-item>
<v-list-item @click="type = 'week'">
<v-list-item-title>Week</v-list-item-title>
</v-list-item>
<v-list-item @click="type = 'month'">
<v-list-item-title>Month</v-list-item-title>
</v-list-item>
<v-list-item @click="type = '4day'">
<v-list-item-title>4 days</v-list-item-title>
</v-list-item>
</v-list>
</v-menu>
</v-toolbar>
</v-sheet>
<v-sheet height="600">
<v-calendar
ref="calendar"
v-model="focus"
color="primary"
:events="events"
:event-color="getEventColor"
:type="type"
@click:event="showEvent"
@click:more="viewDay"
@click:date="viewDay"
@change="updateRange"
></v-calendar>
<v-menu
v-model="selectedOpen"
:close-on-content-click="false"
:activator="selectedElement"
offset-x
>
<v-card
color="grey lighten-4"
min-width="350px"
flat
>
<v-toolbar
:color="selectedEvent.color"
dark
>
<v-btn icon>
<v-icon>mdi-pencil</v-icon>
</v-btn>
<v-toolbar-title v-html="selectedEvent.name"></v-toolbar-title>
<v-spacer></v-spacer>
<v-btn icon>
<v-icon>mdi-heart</v-icon>
</v-btn>
<v-btn icon>
<v-icon>mdi-dots-vertical</v-icon>
</v-btn>
</v-toolbar>
<v-card-text>
<span v-html="selectedEvent.details"></span>
</v-card-text>
<v-card-actions>
<v-btn
text
color="secondary"
@click="selectedOpen = false"
>
Cancel
</v-btn>
</v-card-actions>
</v-card>
</v-menu>
</v-sheet>
</v-col>
</v-row>
</template>
并且脚本部分看起来像参考参考 https://vuetifyjs.com/en/components/calendars/#click但看起来像这样
我想看起来像
这张图片的参考是正确
的:问题是我在预设中使用 rtl 我应该怎么做?我想使用 rtl 并且不希望右上角出现这种混乱
解决方案
推荐阅读
- python - 测试 SSH 私钥密码(暴力破解)
- flutter - 在 Flutter 中的 TextField 列表中检测焦点
- c++ - 附加到 C++ 数组
- ios - 如何在同一设备上运行 2 个版本的应用程序而不覆盖以前的版本?
- c# - 不能在此范围内声明名为“nextjunction”的本地或参数,因为该名称在封闭的本地范围中用于定义本地
- botframework - 如何根据常见问题知识库动态生成 LUIS 意图、实体、模式、话语
- python-3.x - 矩阵位置
- roblox - 如何在 Roblox 的地形上放置零件?
- linux - linux期望语言-脚本不适用于if语句
- c# - 我的基本构造函数如何访问派生实例?