P粉2486022982023-09-04 00:33:24
這是漣漪效果,您可以使用:ripple
屬性來關閉它:
<v-checkbox :ripple="false" ... />
以下是一個範例:
new Vue({ el: '#app', vuetify: new Vuetify(), data() { return { myTabList: [1, 2, 3] } } })
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/@mdi/font@6.x/css/materialdesignicons.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/vuetify@2.x/dist/vuetify.min.css" rel="stylesheet"> <div id="app"> <v-app> <v-main> <v-container> <v-tab v-for="tab in myTabList" :key="tab"> <span>{{tab}}</span> <v-tooltip bottom> <template #activator="{ on }"> <span v-on="on"> <v-checkbox @click.stop :ripple="false"/> </span> </template> <span>Tooltip text</span> </v-tooltip> </v-tab> </v-container> </v-main> </v-app> </div> <script src="https://cdn.jsdelivr.net/npm/vue@2.x/dist/vue.js"></script> <script src="https://cdn.jsdelivr.net/npm/vuetify@2.x/dist/vuetify.js"></script>