Commit 3fb961a 1 parent f334a26 commit 3fb961a Copy full SHA for 3fb961a
File tree 1 file changed +8
-10
lines changed
1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 4
4
<slot name =" label" />
5
5
</template >
6
6
<div
7
- class =" border border-gray-300"
7
+ class =" border border-gray-300 overflow-x-auto "
8
8
:class =" [
9
9
theme.default.borderRadius,
10
10
{
13
13
},
14
14
]"
15
15
>
16
- <table
17
- class =" w-full table-fixed overflow-hidden"
18
- >
16
+ <table class =" w-full table-auto" >
19
17
<thead class =" " >
20
18
<tr >
21
- <th />
19
+ <th class = " text-left p-2 w-auto max-w-xs " />
22
20
<td
23
21
v-for =" column in columns"
24
22
:key =" column"
25
- class =" border-l border-gray-300"
23
+ class =" border-l border-gray-300 max-w-24 overflow-hidden "
26
24
>
27
- <div class =" p-2 w-full flex items-center justify-center capitalize text-sm truncate " >
25
+ <div class =" p-2 w-full flex items-center justify-center text-sm" >
28
26
{{ column }}
29
27
</div >
30
28
</td >
37
35
:key =" rowIndex"
38
36
class =" border-t border-gray-300"
39
37
>
40
- <td >
41
- <div class =" w-full flex-grow p-2 text-sm truncate " >
38
+ <td class = " text-left w-auto max-w-24 overflow-hidden " >
39
+ <div class =" w-full p-2 text-sm" >
42
40
{{ row }}
43
41
</div >
44
42
</td >
@@ -103,7 +101,7 @@ export default {
103
101
}
104
102
},
105
103
computed: {},
106
- beforeMount () {
104
+ mounted () {
107
105
if (! this .compVal || typeof this .compVal !== ' object' ) {
108
106
this .compVal = {}
109
107
}
You can’t perform that action at this time.
0 commit comments