Init
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
<template>
|
||||
<div>
|
||||
<md-table v-model="users" @md-selected="onSelect">
|
||||
<md-table-row
|
||||
slot="md-table-row"
|
||||
slot-scope="{ item }"
|
||||
md-selectable="multiple"
|
||||
md-auto-select
|
||||
>
|
||||
<md-table-cell>{{ item.name }}</md-table-cell>
|
||||
<md-table-cell>
|
||||
<md-button class="md-just-icon md-simple md-primary">
|
||||
<md-icon>edit</md-icon>
|
||||
<md-tooltip md-direction="top">Edit</md-tooltip>
|
||||
</md-button>
|
||||
<md-button class="md-just-icon md-simple md-danger">
|
||||
<md-icon>close</md-icon>
|
||||
<md-tooltip md-direction="top">Close</md-tooltip>
|
||||
</md-button>
|
||||
</md-table-cell>
|
||||
</md-table-row>
|
||||
</md-table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "nav-tabs-table",
|
||||
data() {
|
||||
return {
|
||||
selected: [],
|
||||
users: [
|
||||
{
|
||||
name: 'Sign contract for "What are conference organizers afraid of?"',
|
||||
},
|
||||
{
|
||||
name: "Lines From Great Russian Literature? Or E-mails From My Boss?",
|
||||
},
|
||||
{
|
||||
name: "Flooded: One year later, assessing what was lost and what was found when a ravaging rain swept through metro Detroit",
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
onSelect: function (items) {
|
||||
this.selected = items;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -0,0 +1,60 @@
|
||||
<template>
|
||||
<div>
|
||||
<md-table v-model="users" :table-header-color="tableHeaderColor">
|
||||
<md-table-row slot="md-table-row" slot-scope="{ item }">
|
||||
<md-table-cell md-label="ID">{{ item.id }}</md-table-cell>
|
||||
<md-table-cell md-label="Name">{{ item.name }}</md-table-cell>
|
||||
<md-table-cell md-label="Salary">{{ item.salary }}</md-table-cell>
|
||||
<md-table-cell md-label="Country">{{ item.country }}</md-table-cell>
|
||||
<md-table-cell md-label="City">{{ item.city }}</md-table-cell>
|
||||
</md-table-row>
|
||||
</md-table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "ordered-table",
|
||||
props: {
|
||||
tableHeaderColor: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
selected: [],
|
||||
users: [
|
||||
{
|
||||
id: 1,
|
||||
name: "Dakota Rice",
|
||||
salary: "$36,738",
|
||||
country: "Niger",
|
||||
city: "Oud-Turnhout",
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: "Minerva Hooper",
|
||||
salary: "$23,738",
|
||||
country: "Curaçao",
|
||||
city: "Sinaai-Waas",
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
name: "Sage Rodriguez",
|
||||
salary: "$56,142",
|
||||
country: "Netherlands",
|
||||
city: "Overland Park",
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
name: "Philip Chaney",
|
||||
salary: "$38,735",
|
||||
country: "Korea, South",
|
||||
city: "Gloucester",
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -0,0 +1,67 @@
|
||||
<template>
|
||||
<div>
|
||||
<md-table v-model="users" :table-header-color="tableHeaderColor">
|
||||
<md-table-row slot="md-table-row" slot-scope="{ item }">
|
||||
<md-table-cell md-label="Name">{{ item.name }}</md-table-cell>
|
||||
<md-table-cell md-label="Country">{{ item.country }}</md-table-cell>
|
||||
<md-table-cell md-label="City">{{ item.city }}</md-table-cell>
|
||||
<md-table-cell md-label="Salary">{{ item.salary }}</md-table-cell>
|
||||
</md-table-row>
|
||||
</md-table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: "simple-table",
|
||||
props: {
|
||||
tableHeaderColor: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
selected: [],
|
||||
users: [
|
||||
{
|
||||
name: "Dakota Rice",
|
||||
salary: "$36,738",
|
||||
country: "Niger",
|
||||
city: "Oud-Turnhout",
|
||||
},
|
||||
{
|
||||
name: "Minerva Hooper",
|
||||
salary: "$23,738",
|
||||
country: "Curaçao",
|
||||
city: "Sinaai-Waas",
|
||||
},
|
||||
{
|
||||
name: "Sage Rodriguez",
|
||||
salary: "$56,142",
|
||||
country: "Netherlands",
|
||||
city: "Overland Park",
|
||||
},
|
||||
{
|
||||
name: "Philip Chaney",
|
||||
salary: "$38,735",
|
||||
country: "Korea, South",
|
||||
city: "Gloucester",
|
||||
},
|
||||
{
|
||||
name: "Doris Greene",
|
||||
salary: "$63,542",
|
||||
country: "Malawi",
|
||||
city: "Feldkirchen in Kārnten",
|
||||
},
|
||||
{
|
||||
name: "Mason Porter",
|
||||
salary: "$78,615",
|
||||
country: "Chile",
|
||||
city: "Gloucester",
|
||||
},
|
||||
],
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user