misc.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons" rel="stylesheet">
  7. <meta name="viewport" content="width=device-width,initial-scale=1.0">
  8. <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
  9. <title>vuetify demo</title>
  10. <style>
  11. [v-cloak] {
  12. display: none;
  13. }
  14. </style>
  15. </head>
  16. <body>
  17. <div id="app" v-cloak>
  18. <v-app>
  19. <v-content>
  20. <v-container v-init-context-vars='{expand: false}'>
  21. <v-btn color="success">Success</v-btn>
  22. <v-btn color="warning" :depressed="true">Warning</v-btn>
  23. <v-btn color="warning" :text="true">Warning</v-btn>
  24. <v-btn color="warning" href="https://google.com">Google</v-btn>
  25. <v-btn color="info">Info</v-btn>
  26. <v-btn color="info" :large="true">Info</v-btn>
  27. <v-btn color="info" :rounded="true">Info</v-btn>
  28. <div v-ripple style="width: 100px; height: 100px; border: 1px solid red;">
  29. Ripple
  30. </div>
  31. <v-btn @click="test = !test">show</v-btn>
  32. <v-expand-transition>
  33. <v-card
  34. v-show="test"
  35. height="100"
  36. width="100"
  37. class="mx-auto"
  38. key="123"
  39. ></v-card>
  40. </v-expand-transition>
  41. <v-card>
  42. <v-card-title>
  43. Nutrition
  44. <v-spacer></v-spacer>
  45. <v-text-field append-icon="search" label="Search" single-line hide-details>
  46. </v-text-field>
  47. </v-card-title>
  48. <v-data-table show-select show-expand item-key="name" :headers="[
  49. {
  50. text: 'Dessert (100g serving)',
  51. align: 'left',
  52. sortable: false,
  53. value: 'name'
  54. },
  55. { text: 'Calories', value: 'calories' },
  56. { text: 'Fat (g)', value: 'fat' },
  57. { text: 'Carbs (g)', value: 'carbs' },
  58. { text: 'Protein (g)', value: 'protein' },
  59. { text: 'Iron (%)', value: 'iron' }
  60. ]" :items="[
  61. {
  62. name: 'Frozen Yogurt',
  63. calories: 159,
  64. fat: 6.0,
  65. carbs: 24,
  66. protein: 4.0,
  67. iron: '1%'
  68. },
  69. {
  70. name: 'Ice cream sandwich',
  71. calories: 237,
  72. fat: 9.0,
  73. carbs: 37,
  74. protein: 4.3,
  75. iron: '1%'
  76. },
  77. {
  78. name: 'Eclair',
  79. calories: 262,
  80. fat: 16.0,
  81. carbs: 23,
  82. protein: 6.0,
  83. iron: '7%'
  84. },
  85. {
  86. name: 'Cupcake',
  87. calories: 305,
  88. fat: 3.7,
  89. carbs: 67,
  90. protein: 4.3,
  91. iron: '8%'
  92. },
  93. {
  94. name: 'Gingerbread',
  95. calories: 356,
  96. fat: 16.0,
  97. carbs: 49,
  98. protein: 3.9,
  99. iron: '16%'
  100. },
  101. {
  102. name: 'Jelly bean',
  103. calories: 375,
  104. fat: 0.0,
  105. carbs: 94,
  106. protein: 0.0,
  107. iron: '0%'
  108. },
  109. {
  110. name: 'Lollipop',
  111. calories: 392,
  112. fat: 0.2,
  113. carbs: 98,
  114. protein: 0,
  115. iron: '2%'
  116. },
  117. {
  118. name: 'Honeycomb',
  119. calories: 408,
  120. fat: 3.2,
  121. carbs: 87,
  122. protein: 6.5,
  123. iron: '45%'
  124. },
  125. {
  126. name: 'Donut',
  127. calories: 452,
  128. fat: 25.0,
  129. carbs: 51,
  130. protein: 4.9,
  131. iron: '22%'
  132. },
  133. {
  134. name: 'KitKat',
  135. calories: 518,
  136. fat: 26.0,
  137. carbs: 65,
  138. protein: 7,
  139. iron: '6%'
  140. }
  141. ]" class="elevation-1">
  142. <template v-slot:items="props">
  143. <td>{{ props.item.name }}</td>
  144. <td class="text-xs-right">{{ props.item.calories }}</td>
  145. <td class="text-xs-right">{{ props.item.fat }}</td>
  146. <td class="text-xs-right">{{ props.item.carbs }}</td>
  147. <td class="text-xs-right">{{ props.item.protein }}</td>
  148. <td class="text-xs-right">{{ props.item.iron }}</td>
  149. </template>
  150. <template v-slot:expanded-item="{ headers }">
  151. <td :colspan="headers.length">Peek-a-boo!</td>
  152. </template>
  153. </v-data-table>
  154. </v-card>
  155. </v-container>
  156. </v-content>
  157. </v-app>
  158. </div>
  159. <script src="http://localhost:3080/app.js"></script>
  160. <script src="http://localhost:3100/app.js"></script>
  161. </body>
  162. </html>