最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - VuetifyJS: how to get rid of the v-stepper component elevation? - Stack Overflow

programmeradmin5浏览0评论

When using the v-stepper component in Vuetify, there is a default border like shape that appears on the edges:

I want to remove it. I tried to set the elevation to 0 but it did not work.

<v-stepper v-model="e1" class="elevation-{0}">

Codepen

How to achieve this?

When using the v-stepper component in Vuetify, there is a default border like shape that appears on the edges:

I want to remove it. I tried to set the elevation to 0 but it did not work.

<v-stepper v-model="e1" class="elevation-{0}">

Codepen

How to achieve this?

Share Improve this question edited Aug 27, 2019 at 8:48 Andath asked Oct 2, 2018 at 18:12 AndathAndath 22.7k45 gold badges122 silver badges140 bronze badges
Add a comment  | 

4 Answers 4

Reset to default 10

Not elevation-{0}, but elevation-0.
Elevation docs:

You can set an element's elevation by using the class elevation-{n}, where n is a integer between 0-24 corresponding to the desired elevation.

So actually you need to remove parentheses as well.
Should be clear because you can't use parentheses in class names as far as I know.

just put the following

<v-stepper v-model="e1" class="elevation-0">

Adding some CSS works (at least w/ your pen):

.v-stepper__header {
  box-shadow: none;
} 

<v-stepper v-model="e1" flat> for removing round edges and

.v-stepper__header {
  box-shadow: none;
}

to remove header shadow

发布评论

评论列表(0)

  1. 暂无评论