-
-
Notifications
You must be signed in to change notification settings - Fork 237
Expand file tree
/
Copy pathMethodBase.vue
More file actions
42 lines (36 loc) · 701 Bytes
/
MethodBase.vue
File metadata and controls
42 lines (36 loc) · 701 Bytes
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
<template>
<div>
<h2><slot name="title" /></h2>
<p class="desc"><slot name="desc" /></p>
<p class="link"><em><a :href="`https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/${urlPath}`" target="_blank">{{$t('docsLink', 'see the docs')}} →</a></em></p>
</div>
</template>
<script>
export default {
name: 'method-base',
props: {
urlPath: {
type: String,
default: 'length'
}
}
}
</script>
<style scoped>
div {
border: 1px solid #ccc;
margin-top: 30px;
padding: 0 20px;
background: white;
border-radius: 5px;
}
h2 {
color: #ce371a;
}
p.desc {
margin-bottom: 0;
}
p.link {
margin-top: 5px;
}
</style>