-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathEventList.vue
More file actions
59 lines (56 loc) · 1.83 KB
/
EventList.vue
File metadata and controls
59 lines (56 loc) · 1.83 KB
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
53
54
55
56
57
58
59
<template>
<div class="member-list" v-if="events.length">
<h2 id="events">
<a href="#events" class="header-anchor">#</a> Events
</h2>
<div v-for="(event, index) in events" :key="event.name">
<div class="member-header" :id="`${event.name.toLowerCase()}`">
<h3 :id="`events_${event.name.toLowerCase()}`">
<a :href="`#${event.name.toLowerCase()}`" class="header-anchor">#</a> {{event.name}} <Badge v-if="event.deprecated" text="DEPRECATED" type="warn"/>
</h3>
<AvailabilityInfo :platforms="event.platforms"/>
</div>
<!--<EventSignature v-bind="property"/>-->
<DeprecationAlert :deprecated="event.deprecated"/>
<p v-html="event.summary"></p>
<p v-html="event.description"></p>
<h4 v-if="event.properties && event.properties.length">Properties</h4>
<table v-if="event.properties && event.properties.length" class="parameter-table">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr v-for="property in event.properties" :key="property.name">
<td>{{property.name}}</td>
<td><TypeLinks :types="property.type"/></td>
<td class="parameter-description">
<div v-html="property.summary"></div>
<div v-if="property.description" v-html="property.description"></div>
</td>
</tr>
</tbody>
</table>
<hr v-if="index < events.length - 1">
</div>
</div>
</template>
<script>
import AvailabilityInfo from './AvailabilityInfo'
import DeprecationAlert from './DeprecationAlert'
export default {
components: {
AvailabilityInfo,
DeprecationAlert
},
props: {
events: {
type: Array,
default: () => []
}
}
}
</script>