Advertisement
Guest User

Untitled

a guest
Feb 1st, 2019
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.54 KB | None | 0 0
  1. <!DOCTYPE html>
  2.     <html>
  3.     <head>
  4.       <link href="https://cdn.jsdelivr.net/npm/vuesax/dist/vuesax.css" rel="stylesheet">
  5.       <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui">
  6.     </head>
  7.     <body>
  8.       <div id="app">
  9.  
  10.         <vs-row>
  11.           <vs-col vs-type="flex" vs-justify="center" vs-align="center" vs-w="12">
  12.             <vs-row vs-justify="center">
  13.            
  14.               <vs-col type="flex" vs-justify="center" vs-align="center" vs-w="6">
  15.                 <vs-card>
  16.                   <div slot="header">
  17.                     <h3>
  18.                       Hello world !
  19.                     </h3>
  20.                   </div>
  21.                   <div>
  22.                     <span>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</span>
  23.                   </div>
  24.  
  25.                 </vs-card>
  26.               </vs-col>
  27.               <br>
  28.              
  29.               <!--Tabela-->
  30.                 <template lang="pl">
  31.                   <div>
  32.                     <vs-table
  33.                       multiple
  34.                       v-model="selected"
  35.                       pagination
  36.                       max-items="3"
  37.                       search
  38.                       :data="users">
  39.                       <template slot="header">
  40.                         <h3>
  41.                           Users
  42.                         </h3>
  43.                       </template>
  44.                       <template slot="thead">
  45.                         <vs-th sort-key="email">
  46.                           Email
  47.                         </vs-th>
  48.                         <vs-th sort-key="username">
  49.                           Name
  50.                         </vs-th>
  51.                         <vs-th sort-key="website">
  52.                           Website
  53.                         </vs-th>
  54.                         <vs-th sort-key="id">
  55.                           Nro
  56.                         </vs-th>
  57.                       </template>
  58.  
  59.                       <template slot-scope="{data}">
  60.                         <vs-tr :data="tr" :key="indextr" v-for="(tr, indextr) in data" >
  61.                           <vs-td :data="data[indextr].email">
  62.                             {{data[indextr].email}}
  63.                           </vs-td>
  64.  
  65.                           <vs-td :data="data[indextr].username">
  66.                             {{data[indextr].username}}
  67.                           </vs-td>
  68.  
  69.                           <vs-td :data="data[indextr].id">
  70.                             {{data[indextr].website}}
  71.                           </vs-td>
  72.  
  73.                           <vs-td :data="data[indextr].id">
  74.                             {{data[indextr].id}}
  75.                           </vs-td>
  76.                         </vs-tr>
  77.                       </template>
  78.                     </vs-table>
  79.  
  80.                     <pre>{{ selected }}</pre>
  81.                   </div>
  82.                 </template>
  83.  
  84.                 <script>
  85.                 export default {
  86.                   data:()=>({
  87.                     selected:[],
  88.                     users:[
  89.                       {
  90.                         "id": 1,
  91.                         "name": "Leanne Graham",
  92.                         "username": "Bret",
  93.                         "email": "Sincere@april.biz",
  94.                         "website": "hildegard.org",
  95.                       },
  96.                       {
  97.                         "id": 2,
  98.                         "name": "Ervin Howell",
  99.                         "username": "Antonette",
  100.                         "email": "Shanna@melissa.tv",
  101.                         "website": "anastasia.net",
  102.                       },
  103.                       {
  104.                         "id": 3,
  105.                         "name": "Clementine Bauch",
  106.                         "username": "Samantha",
  107.                         "email": "Nathan@yesenia.net",
  108.                         "website": "ramiro.info",
  109.                       },
  110.                       {
  111.                         "id": 4,
  112.                         "name": "Patricia Lebsack",
  113.                         "username": "Karianne",
  114.                         "email": "Julianne.OConner@kory.org",
  115.                         "website": "kale.biz",
  116.                       },
  117.                       {
  118.                         "id": 5,
  119.                         "name": "Chelsey Dietrich",
  120.                         "username": "Kamren",
  121.                         "email": "Lucio_Hettinger@annie.ca",
  122.                         "website": "demarco.info",
  123.                       },
  124.                       {
  125.                         "id": 6,
  126.                         "name": "Mrs. Dennis Schulist",
  127.                         "username": "Leopoldo_Corkery",
  128.                         "email": "Karley_Dach@jasper.info",
  129.                         "website": "ola.org",
  130.                       },
  131.                       {
  132.                         "id": 7,
  133.                         "name": "Kurtis Weissnat",
  134.                         "username": "Elwyn.Skiles",
  135.                         "email": "Telly.Hoeger@billy.biz",
  136.                         "website": "elvis.io",
  137.                       },
  138.                       {
  139.                         "id": 8,
  140.                         "name": "Nicholas Runolfsdottir V",
  141.                         "username": "Maxime_Nienow",
  142.                         "email": "Sherwood@rosamond.me",
  143.                         "website": "jacynthe.com",
  144.                       },
  145.                       {
  146.                         "id": 9,
  147.                         "name": "Glenna Reichert",
  148.                         "username": "Delphine",
  149.                         "email": "Chaim_McDermott@dana.io",
  150.                         "website": "conrad.com",
  151.                       },
  152.                       {
  153.                         "id": 10,
  154.                         "name": "Clementina DuBuque",
  155.                         "username": "Moriah.Stanton",
  156.                         "email": "Rey.Padberg@karina.biz",
  157.                         "website": "ambrose.net",
  158.                       }
  159.                     ]
  160.                   }),
  161.                 }
  162.                 </script>
  163.              
  164.               <!--koniec tabeli-->
  165.              
  166.             </vs-row>
  167.           </vs-col>
  168.         </vs-row>
  169.        
  170.         <vs-row>
  171.           <vs-col :key="index" v-for="col,index in 2" vs-type="flex" vs-justify="center" vs-align="center" vs-w="6">
  172.             50%
  173.           </vs-col>
  174.         </vs-row>
  175.  
  176.       </div>
  177.  
  178.  
  179.       <script src="https://unpkg.com/vue/dist/vue.js"></script>
  180.       <script src="https://cdn.jsdelivr.net/npm/vuesax/dist/vuesax.umd.js"></script>
  181.       <script>
  182.         new Vue({
  183.           el: '#app'
  184.           //components: { App }
  185.           //template: "<App/>"
  186.         })
  187.       </script>
  188.     </body>
  189.     </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement