forked from syncfusion/ej2-vue-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrow-temp.vue
52 lines (49 loc) · 1.78 KB
/
row-temp.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<template>
<tr>
<td class="border" style='padding-left:18px;'>
<div>{{data.EmpID}}</div>
</td>
<td class="border" style='padding: 10px 0px 0px 20px;'>
<div style="font-size:14px;">
{{data.Name}}
<p style="font-size:9px;">{{data.Designation}}</p>
</div>
</td>
<td class="border">
<div>
<div style="position:relative;display:inline-block;">
<img :src="image" :alt="data.FullName" />
</div>
<div style="display:inline-block;">
<div style="padding:5px;">{{data.Address}}</div>
<div style="padding:5px;">{{data.Country}}</div>
<div style="padding:5px;font-size:12px;">{{data.Contact}}</div>
</div>
</div>
</td>
<td class="border" style='padding-left: 20px;'>
<div>{{format(data.DOB)}}</div>
</td>
</tr>
</template>
<script>
import { Internationalization } from '@syncfusion/ej2-base';
let instance = new Internationalization();
export default {
data () {
return {
data: {}
}
},
methods: {
format: function(value) {
return instance.formatDate(value, { skeleton: 'yMd', type: 'date' });
}
},
computed: {
image: function() {
return 'source/tree-grid/images/' + this.data.FullName + '.png';
}
}
}
</script>