vuetify 3 v-date-picker(type =“month”)在nuxt中不起作用(“vue”:“^3.3.4”,)

问题描述 投票:0回答:1

"vuetify": "^3.5.7"
"vite-plugin-vuetify": "^2.0.1",
"@mdi/font": "^7.4.47",

我想从日期选择器中选择并检索 YYYY/MM 格式的数据。 v-date-picker(type="month") 不起作用

<v-locale-provider locale="ja">
  <v-date-picker
    v-model="datePickerModel"
    type="month"
    hide-header
    elevation="15"
   ></v-date-picker>
</v-locale-provider>

this is the result

I'm looking for something like this

https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/components/VDatePicker/VDatePicker.tsx

datepicker nuxt.js vuetify.js vuetifyjs3
1个回答
0
投票

您检查过组件文档吗?从这个开始...

该组件没有

type
属性。使用
view-mode

© www.soinside.com 2019 - 2024. All rights reserved.