Skip to content

Commit ddc0cab

Browse files
committed
Fixed 9c4e0ec
1 parent 9c4e0ec commit ddc0cab

File tree

4 files changed

+49
-49
lines changed

4 files changed

+49
-49
lines changed

dev/Table.vue

Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -93,50 +93,4 @@ const items = ref([
9393
},
9494
])
9595
96-
</script>
97-
98-
<style>
99-
table {
100-
@apply min-w-full ;
101-
}
102-
103-
thead {
104-
@apply bg-gray-300 border;
105-
}
106-
107-
tr {
108-
@apply divide-x divide-y;
109-
}
110-
111-
tr:last-child {
112-
@apply border-b-0;
113-
}
114-
115-
th {
116-
@apply px-2 py-1.5 text-xs font-medium text-black uppercase;
117-
}
118-
119-
td {
120-
@apply px-2 py-1.5 align-top lg:table-cell lg:text-left lg:align-middle;
121-
}
122-
123-
td:last-child {
124-
@apply border-b-0;
125-
}
126-
127-
tbody tr, tbody {
128-
@apply px-2 py-1.5 text-left text-xs font-medium border;
129-
}
130-
131-
tbody tr:nth-child(odd) {
132-
@apply bg-gray-300/50 hover:bg-gray-400/50;
133-
}
134-
135-
tbody tr:nth-child(even) {
136-
@apply bg-gray-100/50 hover:bg-gray-400/50 ;
137-
}
138-
139-
.table-sort {
140-
@apply w-2.5 h-2.5 cursor-pointer
141-
}
142-
</style>
96+
</script>
File renamed without changes.

dev/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import '../src/css/app.css';
1+
import './css/app.css';
22
import { createApp } from 'vue';
33

44
import App from './App.vue';

src/components/TVDataTable.vue

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,50 @@ const updateSortable = (key, sort) => {
9090
9191
emit('updateSortable', sortable.value)
9292
}
93-
</script>
93+
</script>
94+
95+
<style>
96+
table {
97+
@apply min-w-full ;
98+
}
99+
100+
thead {
101+
@apply bg-gray-300 border;
102+
}
103+
104+
tr {
105+
@apply divide-x divide-y;
106+
}
107+
108+
tr:last-child {
109+
@apply border-b-0;
110+
}
111+
112+
th {
113+
@apply px-2 py-1.5 text-xs font-medium text-black uppercase;
114+
}
115+
116+
td {
117+
@apply px-2 py-1.5 align-top lg:table-cell lg:text-left lg:align-middle;
118+
}
119+
120+
td:last-child {
121+
@apply border-b-0;
122+
}
123+
124+
tbody tr, tbody {
125+
@apply px-2 py-1.5 text-left text-xs font-medium border;
126+
}
127+
128+
tbody tr:nth-child(odd) {
129+
@apply bg-gray-300/50 hover:bg-gray-400/50;
130+
}
131+
132+
tbody tr:nth-child(even) {
133+
@apply bg-gray-100/50 hover:bg-gray-400/50 ;
134+
}
135+
136+
.table-sort {
137+
@apply w-2.5 h-2.5 cursor-pointer
138+
}
139+
</style>

0 commit comments

Comments
 (0)