Blame view
src/pages/ui/Tooltip.vue
2.88 KB
8ab31dc8b
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 |
<template> <div id="page-tooltip"> <v-container grid-list-xl fluid> <v-layout row wrap> <v-flex lg6> <v-widget title="Basic Usage"> <div slot="widget-content"> <div class="text-xs-center d-flex align-center"> <v-tooltip bottom> <v-btn dark color="primary" slot="activator">Button</v-btn> <span>Tooltip</span> </v-tooltip> <v-tooltip bottom> <v-icon dark color="primary" slot="activator">home</v-icon> <span>Tooltip</span> </v-tooltip> <v-tooltip bottom> <span slot="activator">This text has a tooltip</span> <span>Tooltip</span> </v-tooltip> </div> </div> </v-widget> </v-flex> <v-flex lg6> <v-widget title="Alignment"> <div slot="widget-content"> <div class="text-xs-center"> <v-tooltip left> <v-btn dark color="primary" slot="activator">Left</v-btn> <span>Left tooltip</span> </v-tooltip> <v-tooltip top> <v-btn dark color="primary" slot="activator">Top</v-btn> <span>Top tooltip</span> </v-tooltip> <v-tooltip bottom> <v-btn dark color="primary" slot="activator">Bottom</v-btn> <span>Bottom tooltip</span> </v-tooltip> <v-tooltip right> <v-btn dark color="primary" slot="activator">Right</v-btn> <span>Right tooltip</span> </v-tooltip> </div> </div> </v-widget> </v-flex> <v-flex lg6> <v-widget title="Icon Badge"> <div slot="widget-content"> <v-container fluid class="text-xs-center"> <v-layout flex wrap row justify-space-between> <v-flex xs12> <v-btn @click.native="show = !show">toggle</v-btn> </v-flex> <v-flex xs12 class="mt-5"> <v-tooltip v-model="show" top> <v-btn icon slot="activator"> <v-icon color="grey lighten-1">shopping_cart</v-icon> </v-btn> <span>Programmatic tooltip</span> </v-tooltip> </v-flex> </v-layout> </v-container> </div> </v-widget> </v-flex> </v-layout> </v-container> </div> </template> <script> import VWidget from '@/components/VWidget'; export default { components: { VWidget }, data () { return { show: false, }; }, computed: { }, methods: { } }; </script> |