Vuetifyjs:如何使 v-stepper 的步骤可点击?

Vuetifyjs: how to make the v-stepper's step clickable?

使用v-stepper组件,有没有办法让步骤响应点击?

P.S。在我提供的 link 上,有一个 Codepen 示例。它是官方文档的 link,因此该示例始终存在。

将道具 editable 添加到您的 v-stepper-step

Example in Vuetify doc


关于v-stepper-step的点击事件,好像@click没有触发。

因此,作为一种解决方法,您可以查看您在 v-stepperv-model 中提供的数据,并在更改或达到所需步骤时发出警报。 codepen.io/anon/pen/yReweK?editors=1011

Workaround Codepen

收听 @click.native 有效:

<v-stepper-step @click.native="alert('foo')"/>